Skip to content
Automation
Skill

/research-write

Orchestrates multi-agent collaborative writing from upstream research artifacts. Produces structured documents (papers, proposals) with evidence-grounded prose, MAGI cross-review, and automated quality validation.

From plugin
magi-researchers
139 skills

Claude Code

$ npx -y skills add Axect/magi-researchers --skill research-write --agent claude-code

SKILL.md

research-write.SKILL.md

Research Write Skill

Description

Orchestrates multi-agent collaborative writing from upstream research artifacts. Produces structured documents (papers, proposals) with evidence-grounded prose, MAGI cross-review, and automated quality validation.

Usage

/research-write --source <output_dir> [--mode paper|proposal] [--audience general-public|high-school|undergraduate|phd-student|researcher|expert|"free text"] [--depth low|medium|high] [--claude-only] [--resume <write_dir>]

Arguments

  • `$ARGUMENTS` — Required and optional flags:
  • `--source <output_dir>` — Path to an upstream research output directory containing artifacts from `/research`, `/research-brainstorm`, `/research-explain`, or `/research-report`. Required unless `--resume` is provided.
  • `--mode` — Writing mode (default: `paper`):
  • `paper` — Academic research paper with standard structure (abstract, introduction, methodology, experiments, results, discussion, limitations, conclusion, references)
  • `proposal` — Grant or funding proposal with persuasive structure (executive summary, problem statement, proposed approach, preliminary results, timeline, budget, broader impact, references)
  • `--audience` — Target audience (default: `researcher`):
  • `general-public` — No assumed technical background
  • `high-school` — Basic math/science literacy
  • `undergraduate` — Introductory college-level knowledge in the domain
  • `phd-student` — Graduate-level domain knowledge
  • `researcher` — Active researcher familiar with the field (default)
  • `expert` — Deep specialist in the exact sub-field
  • `"free text"` — Any custom audience description (e.g., `"medical doctors learning ML"`)
  • `--depth` — Controls review thoroughness (default: `medium`):
  • `low` — Skip MAGI cross-review; Claude reviews alone
  • `medium` — Standard MAGI cross-review (Gemini + Codex review in parallel)
  • `high` — MAGI cross-review + Devil's Advocate adversarial pass on high-stakes sections
  • `--claude-only` — Replace all Gemini/Codex MCP calls with Claude Agent subagents. Use when external model endpoints are unavailable. See **Claude-Only Mode** section below.
  • `--resume <write_dir>` — Resume an interrupted write pipeline from a previous write output directory. See **Resume Protocol** below.

Instructions

> **Shared rules**: Read `${CLAUDE_PLUGIN_ROOT}/shared/rules.md` before starting. §MCP, §Claude-Only, §LaTeX, §Visualization, §Substitute apply to this skill. > **Inline fallback** (if shared rules unavailable): Gemini models: gemini-3.1-pro-preview → gemini-2.5-pro → Claude. Codex: gpt-5.4. All math in LaTeX only (no Unicode: σ₁→`$\sigma_1$`). Use `@filepath` for MCP file refs; subagents use `Read` tool.

MCP Tool Rules

See §MCP, §Visualization, §LaTeX in shared rules. Additionally:

  • **Codex**: Use `mcp__codex-cli__ask-codex` for analysis/review.
  • **When to search**: citation verification, related work references, fact-checking claims, confirming state-of-the-art results, checking terminology conventions

Claude-Only Mode

See §Claude-Only and §Substitute in shared rules.

LaTeX Formatting Rules

See §LaTeX in shared rules.

When this skill is invoked, follow these steps exactly:

---

Phase 0: Setup & Intake

Step 0a: Parse Arguments

1. Parse `$ARGUMENTS`:

  • Extract `--source <output_dir>` (required unless `--resume`). Validate the directory exists using `Glob`.
  • Extract `--mode` (default: `paper`). Validate against supported modes: `paper`, `proposal`.
  • Extract `--audience` (default: `researcher`). Store as-is (predefined keyword or free-text string).
  • Extract `--depth` (default: `medium`). Validate: `low`, `medium`, `high`.
  • Extract `--claude-only` (boolean, default: `false`).
  • **Parse `--resume <write_dir>`**: If provided, skip to the **Resume Protocol** below.

2. Determine the domain by reading upstream artifacts:

  • Check for `brainstorm/weights.json` in the source directory — the `_meta.domain` field contains the domain.
  • If not found, check `brainstorm/personas.md` for domain context.
  • If neither exists, infer domain from the source directory name or contents.

3. Create the write output directory inside the source directory:

   {source_dir}/write/

If `write/` already exists, announce that existing artifacts will be preserved and new artifacts will be added alongside them.

4. Announce to the user: source directory, mode, audience, depth, domain, and claude-only status.

Step 0b: Locate Upstream Artifacts

Inventory the source directory for available artifacts using `Glob`:

| Artifact | Path | Required | Purpose | |:---------|:-----|:---------|:--------| | Brainstorm synthesis | `brainstorm/synthesis.md` | Recommended | Research directions, key findings | | Research plan | `plan/research_plan.md` | Recommended | Methodology, objectives | | Murder board | `plan/murder_board.md` | Optional | Stress-test results | | Mitigations | `plan/mitigations.md` | Optional | Plan revisions | | Source code | `src/**/*` | Optional | Implementation details | | Test results | `tests/**/*` | Optional | Validation data | | Plot manifest | `plots/plot_manifest.json` | Optional | Figures with metadata | | Report | `report.md` | Optional | Pre-existing report draft | | Explain outputs | `explain/**/*.md` | Optional | Concept explanations | | Brainstorm personas | `brainstorm/personas.md` | Optional | Expert persona context | | Weights | `brainstorm/weights.json` | Optional | Scoring weights used |

For each artifact found, read the first 5 lines to confirm it is non-empty.

**On missing recommended artifacts**: Warn the user which recommended artifacts are absent. Ask: "The following recommended artifacts are missing: [list]. The document will have thinner coverage in the corresponding sections. Proceed anyway?" Continue on confirmation.

Step 0c: Generate Intake Artifacts

Claude reads all located upstream artifacts and

Read more
@axect
Ships withmagi-researchers

Three AI models, one synthesis — Claude, Gemini & Codex cross-verify each other for rigorous multi-perspective research

Stars on GitHub

Momentum

stars in total
13
Star history of Axect/magi-researchers on GitHub, a chart by star-history.com

Other skills on magi-researchers.

research-execute

research-execute

Executes the research code in `src/` to generate result artifacts in `results/`. This is Phase 3.5 of the research pipeline,…

research-explain

research-explain

Generates high-quality explanations of concepts using Gemini and Codex in parallel (Phase 1: MAGI strategy exploration), then…

research-implement

research-implement

Implements research code based on an existing research plan. Requires a `research_plan.md` to be present in the active research…

research-report

research-report

Generates a structured markdown research report from all previous phase outputs. Actively integrates existing plots, generates…

research-search

research-search

Searches academic literature via OpenAlex (240M+ works) and optionally web sources. Standalone skill for quick literature…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about research-write.

Which coding agents can use research-write?
research-write installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.