draft
Launch a multi-agent writing system with specialist writers for literature, formal content, methodology, and results, orchestrated by a lead author. Produces a manuscript draft and section-level artifacts in .papermill/drafts/. Updates .papermill/state.md.
What this skill does
# Multi-Agent Paper Drafting Launch a multi-agent system to draft a research paper. The writing system uses specialist writers for different content types (related work, mathematical content, methodology, results), coordinated by a lead author who plans the paper, integrates sections, and writes the bookend sections (abstract, introduction, conclusion). ## Step 1: Read Context Read `.papermill/state.md` (Read tool) for: - **Thesis**: The central claim and novelty (required — the draft serves the thesis) - **Outline**: Section structure (strongly recommended — guides section assignment) - **Venue**: Target venue and format - **Prior art**: Key references and gaps - **Experiments**: Any registered experiments and their status - **Format**: Paper format (latex, markdown, rmarkdown) If `.papermill/state.md` does not exist, warn the user: > I can draft without a state file, but results will be much better if you first run: > 1. `/papermill:init` — to set up the project > 2. `/papermill:thesis` — to crystallize the central claim > 3. `/papermill:outline` — to design the paper structure > > Want to proceed anyway, or set up the project first? If no **outline** exists but a thesis does, the writer orchestrator will create an outline as its first step — but an author-approved outline produces better results. ## Step 2: Identify Existing Content Scan the project for existing materials: 1. **Manuscript files** (Glob: `*.tex`, `*.md`, `*.Rmd`) — is there already a partial draft? 2. **Bibliography** (Glob: `*.bib`) — existing references 3. **Code and data** (Glob: `code/`, `scripts/`, `data/`, `results/`) — evidence to incorporate 4. **Figures** (Glob: `images/`, `figures/`, `fig/`, `*.png`, `*.pdf` in paper directories) Summarize what exists to the user: > **Project inventory:** > - Thesis: [yes/no — quote if yes] > - Outline: [yes/no — summarize sections if yes] > - Existing draft: [yes/no — describe what exists] > - Bibliography: [N entries in file.bib] > - Code/data: [brief description] > - Figures: [N figures available] ## Step 3: Determine Scope Ask the user what they want drafted: > I can draft: > 1. **Full paper** — all sections from abstract to conclusion > 2. **Specific sections** — choose which sections to write > 3. **Extension** — add new sections/content to an existing draft > > Which approach? And is there anything specific I should know about the paper's direction? If the user chooses specific sections, note which ones. If they choose extension, identify what already exists and what needs adding. ## Step 4: Launch the Writer Orchestrator Launch the **writer** agent (Task tool with `subagent_type: "papermill:writer"`). Pass the agent: - Path to `.papermill/state.md` (if it exists) - Paths to existing manuscript files - Paths to bibliography, code, data, and figures - The drafting scope (full paper / specific sections / extension) - Any user preferences or instructions about direction - The thesis statement and target venue (if known) The agent will: 1. Read all context and produce a comprehension summary 2. Create a writing plan with section assignments 3. Spawn literature scouts in parallel for field context 4. Spawn specialist writers in parallel for assigned sections 5. Integrate section drafts into a unified manuscript 6. Write bookend sections (abstract, introduction, conclusion) 7. Verify the manuscript builds cleanly 8. Write the manuscript and section artifacts to the project ## Step 5: Present Results After the agent completes, read the manuscript file (Read tool). Present a summary to the user: > **Draft Complete** > > **Manuscript**: [path to main file] > **Sections drafted**: [list of sections with specialist who wrote each] > **Word/page count**: [approximate] > **Build status**: [compiles cleanly / has N warnings / needs fixes] > > **Section drafts and writing plan**: `.papermill/drafts/YYYY-MM-DD/` > > The draft is a starting point, not a final product. Key areas to review: > 1. [Most important thing to check — e.g., "Proof in Section 4 may need verification"] > 2. [Second priority — e.g., "Results section has placeholders for experimental data"] > 3. [Third priority — e.g., "Related work positioning could be sharpened"] Then ask: "Would you like to review specific sections, or run `/papermill:review` for a systematic evaluation?" ## Step 6: Update State File Update `.papermill/state.md` (Edit tool): - Set `stage` to `drafting` or `draft-complete` - Append a timestamped note documenting the draft: ``` - YYYY-MM-DD (draft): Multi-agent draft complete. Sections: [list]. Specialists used: [list]. Placeholders: [count if any]. ``` ## Step 7: Suggest Next Steps Based on the draft's state, suggest the most relevant next step: - **Draft has placeholders** (missing data/results) → "Run experiments to fill the placeholders, then re-draft those sections." - **Draft is complete but unreviewed** → `/papermill:review` for systematic multi-agent evaluation - **Draft needs specific section work** → "You can re-run `/papermill:draft` targeting specific sections, or edit directly." - **Draft is near-complete** → `/papermill:polish` for pre-submission preparation - **Proofs need verification** → `/papermill:proof` to check mathematical content
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.