/paper-assembly
Orchestrate the full paper pipeline end-to-end. Manage state propagation between phases (literature → plan → code → experiments → figures → tables → writing → review), support checkpointing and resumption. Use for assembling a complete paper from components.
$ npx -y skills add lingzhi227/agent-research-skills --skill paper-assembly --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/paper-assembly
Context preview
The summary Claude sees to decide when to auto-load this skill.
Orchestrate the full paper pipeline end-to-end. Manage state propagation between phases (literature → plan → code → experiments → figures → tables → writing → review), support checkpointing and resumption. Use for assembling a complete paper from components.
SKILL.md
paper-assembly.SKILL.mdname: paper-assembly
description: Orchestrate the full paper pipeline end-to-end. Manage state propagation between phases (literature → plan → code → experiments → figures → tables → writing → review), support checkpointing and resumption. Use for assembling a complete paper from components.
argument-hint: [paper-directory]
Paper Assembly
Orchestrate the entire paper pipeline end-to-end with state management and checkpointing.
Input
- `$0` — Paper project directory or paper plan
References
- Orchestration patterns and state management: `~/.claude/skills/paper-assembly/references/orchestration-patterns.md`
Scripts
Check pipeline completeness
python ~/.claude/skills/paper-assembly/scripts/assembly_checker.py --dir paper/ --output checkpoint.json
python ~/.claude/skills/paper-assembly/scripts/assembly_checker.py --dir paper/ --verbose
Scans paper directory, checks 9 pipeline phases, reports missing artifacts, suggests next steps.
Workflow
Step 1: Assess Current State
1. Scan the paper directory for existing artifacts 2. Identify which phases are complete vs pending 3. Build a dependency graph of remaining work
Step 2: Execute Pipeline Phases
Run phases in dependency order:
| Phase | Skill | Input | Output | |-------|-------|-------|--------| | 1. Literature | literature-search, literature-review | Topic | Knowledge base, BibTeX | | 2. Planning | research-planning | Knowledge base | Paper structure, task list | | 3. Code | experiment-code | Plan | Training/eval pipeline | | 4. Experiments | experiment-design | Code | Results JSON/CSV | | 5. Figures | figure-generation | Results | PNG figures | | 6. Tables | table-generation | Results | LaTeX tables | | 7. Writing | paper-writing-section | All above | main.tex sections | | 8. Citations | citation-management | Draft | references.bib | | 9. Formatting | latex-formatting | Draft | Formatted LaTeX | | 10. Compilation | paper-compilation | All | PDF | | 11. Review | self-review | PDF | Review scores |
Step 3: State Propagation
After each phase completes: 1. Save output artifacts to the paper directory 2. Propagate results to downstream phases 3. Update the progress checkpoint file
Step 4: Quality Gates
Before proceeding to the next phase:
- Verify all required outputs exist
- Check for consistency (e.g., all cited keys in .bib)
- Validate figures/tables match experimental results
Step 5: Final Assembly
1. Merge all sections into main.tex 2. Verify all \includegraphics files exist 3. Verify all \cite keys exist in .bib 4. Compile to PDF 5. Run self-review for quality check
Orchestration Patterns
Sequential Pipeline (AI-Scientist)
generate_ideas → experiments → writeup → review
Multi-Agent State Broadcasting (AgentLaboratory)
# Propagate results to all downstream agents
set_agent_attr("dataset_code", code)
set_agent_attr("results", results_json)Copilot Mode (AgentLaboratory)
Human can intervene at any phase boundary for review/correction.
Checkpoint Format
{
"project": "paper-name",
"phases_completed": ["literature", "planning", "code"],
"current_phase": "experiments",
"artifacts": {
"literature": "knowledge_base.json",
"plan": "research_plan.json",
"code": "experiments/",
"results": null
},
"last_updated": "2024-01-15T10:30:00Z"
}Rules
- Never skip phases — each depends on previous outputs
- Save checkpoints after every phase completion
- Human review is recommended at phase boundaries
- All numbers in the paper must trace to actual experiment logs
- Re-run downstream phases if upstream changes
Related Skills
- Upstream: all other skills (this is the orchestrator)
- Downstream: [paper-compilation](../paper-compilation/), [self-review](../self-review/)
- See also: [research-planning](../research-planning/)
Read more
name: paper-assembly description: Orchestrate the full paper pipeline end-to-end. Manage state propagation between phases (literature → plan → code → experiments → figures → tables → writing → review), support checkpointing and resumption. Use for assembling a complete paper from components. argument-hint: [paper-directory]
Paper Assembly
Orchestrate the entire paper pipeline end-to-end with state management and checkpointing.
Input
- `$0` — Paper project directory or paper plan
References
- Orchestration patterns and state management: `~/.claude/skills/paper-assembly/references/orchestration-patterns.md`
Scripts
Check pipeline completeness
python ~/.claude/skills/paper-assembly/scripts/assembly_checker.py --dir paper/ --output checkpoint.json python ~/.claude/skills/paper-assembly/scripts/assembly_checker.py --dir paper/ --verbose
Scans paper directory, checks 9 pipeline phases, reports missing artifacts, suggests next steps.
Workflow
Step 1: Assess Current State
1. Scan the paper directory for existing artifacts 2. Identify which phases are complete vs pending 3. Build a dependency graph of remaining work
Step 2: Execute Pipeline Phases
Run phases in dependency order:
| Phase | Skill | Input | Output | |-------|-------|-------|--------| | 1. Literature | literature-search, literature-review | Topic | Knowledge base, BibTeX | | 2. Planning | research-planning | Knowledge base | Paper structure, task list | | 3. Code | experiment-code | Plan | Training/eval pipeline | | 4. Experiments | experiment-design | Code | Results JSON/CSV | | 5. Figures | figure-generation | Results | PNG figures | | 6. Tables | table-generation | Results | LaTeX tables | | 7. Writing | paper-writing-section | All above | main.tex sections | | 8. Citations | citation-management | Draft | references.bib | | 9. Formatting | latex-formatting | Draft | Formatted LaTeX | | 10. Compilation | paper-compilation | All | PDF | | 11. Review | self-review | PDF | Review scores |
Step 3: State Propagation
After each phase completes: 1. Save output artifacts to the paper directory 2. Propagate results to downstream phases 3. Update the progress checkpoint file
Step 4: Quality Gates
Before proceeding to the next phase:
- Verify all required outputs exist
- Check for consistency (e.g., all cited keys in .bib)
- Validate figures/tables match experimental results
Step 5: Final Assembly
1. Merge all sections into main.tex 2. Verify all \includegraphics files exist 3. Verify all \cite keys exist in .bib 4. Compile to PDF 5. Run self-review for quality check
Orchestration Patterns
Sequential Pipeline (AI-Scientist)
generate_ideas → experiments → writeup → review
Multi-Agent State Broadcasting (AgentLaboratory)
# Propagate results to all downstream agents
set_agent_attr("dataset_code", code)
set_agent_attr("results", results_json)Copilot Mode (AgentLaboratory)
Human can intervene at any phase boundary for review/correction.
Checkpoint Format
{
"project": "paper-name",
"phases_completed": ["literature", "planning", "code"],
"current_phase": "experiments",
"artifacts": {
"literature": "knowledge_base.json",
"plan": "research_plan.json",
"code": "experiments/",
"results": null
},
"last_updated": "2024-01-15T10:30:00Z"
}Rules
- Never skip phases — each depends on previous outputs
- Save checkpoints after every phase completion
- Human review is recommended at phase boundaries
- All numbers in the paper must trace to actual experiment logs
- Re-run downstream phases if upstream changes
Related Skills
- Upstream: all other skills (this is the orchestrator)
- Downstream: [paper-compilation](../paper-compilation/), [self-review](../self-review/)
- See also: [research-planning](../research-planning/)
31 skills for Claude Code covering the full academic research paper lifecycle — from literature search to slide generation — plus GitHub repository analysis for research topics. Extracted from 17 GitHub repos studying LLM-agent-driven research automation.
Other skills on agent-research-skills.
- /algorithm-design
Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments, Mermaid class/sequence diagrams, and ensure consistency between pseudocode and implementation. Use when formalizing methods for a paper.
Open skill - /atomic-decomposition
Decompose research ideas into atomic, self-contained concepts with bidirectional math-code mapping. For each concept, extract the math formula from papers and find code implementations. Use for complex system papers requiring formal grounding.
Open skill - /backward-traceability
Make every number in the final PDF traceable to the exact code line that produced it. Uses \hypertarget/\hyperlink LaTeX commands and \num{formula} evaluated at compile time. Use for reproducibility and data integrity verification.
Open skill - /citation-management
Manage BibTeX citations for LaTeX papers. Harvest missing citations from a draft using Semantic Scholar, validate cite keys against .bib files, deduplicate entries, and format bibliography. Use when working with references, BibTeX, or citations.
Open skill - /code-debugging
Debug experiment code with structured error analysis. Categorize errors, apply targeted fixes with retry logic, and use reflection to prevent recurring issues. Use when experiment code fails or produces incorrect results.
Open skill - /data-analysis
Generate statistical analysis code with 4-round review. Select appropriate statistical tests, interpret results, and produce analysis reports with p-values, effect sizes, and confidence intervals. Use when analyzing experimental data for a paper.
Open skill

