Write

From FradSer/dotclaude · View interactive version

Write is an AI agent skill from the GitHub repository FradSer/dotclaude. Run STORM phase 3 — per-section article writing. This skill should be used when the user asks to "write the article sections", "draft the storm article", or invokes /storm:write. Writes each outline section in parallel with inline citations grounded in the research sources.

How to use this skill

Skill file

/storm:write

Phase 3 of the STORM pipeline. Writes each outline section in parallel (one Task subagent per section), each grounded in top-k relevant sources from the research information table, with inline [n] citations.

CRITICAL: Prerequisites

Completion Contract

This phase is complete iff article.md exists and every outline section (except Introduction/Conclusion/Summary placeholders) has body text. If --force is not set and it exists, skip and exit early.

Procedure

  1. Resolve output dir.
  2. Read outline.md and research/sources.json. Index sources for retrieval (simple: rank by keyword/heading overlap with the section title).
  3. Identify sections to write — skip any whose heading is exactly "Introduction", "Conclusion", or "Summary" (these are filled in polish).
  4. Parallel writing — for each section, launch ONE Task subagent (single message, parallel). Each subagent:
  1. Assemble — concatenate sections in outline order under their headings into article.md. Preserve the heading hierarchy from outline.md.
  2. Verify every non-placeholder section has body. Update run-config.json: phases.write = "completed", section count, any TODO-flagged sections.

Citation Rules

Output

Report: number of sections written, number of citations used, list of sections flagged as TODO (no source), and the path to article.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.