Draft scientific research manuscripts from research data. Use when user wants to write a research paper, has a project folder with papers, data, figures, and a GitHub repository link. Orchestrates context-ingestion, scoping, literature-review, code-analyzer, results-interpreter, synthesis, and assembler sub-skills.
Orchestrates drafting scientific manuscripts from research data, code, and literature. Triggers when you request to write a paper and provide a project folder with papers, data, figures, and a GitHub repository.
/plugin marketplace add sxg/science/plugin install writer@scienceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Orchestrates the creation of scientific manuscript drafts through a structured, note-generating workflow.
This skill NEVER makes assumptions about user data without explicit confirmation.
When encountering ambiguity in data, code, or figures:
It is better to ask too many questions than to misinterpret the user's research. Every clarification is logged in the relevant notes files for transparency.
This skill employs specialist agents for domain expertise:
| Agent | Role | Invoked During |
|---|---|---|
| Statistical Reviewer | Statistical accuracy review | Methods, Results |
| Academic Reviewer | Publication readiness review | Before Assembly |
The statistical reviewer (agents/statistical-reviewer.md) ensures:
No statistical claims are published without statistical reviewer sign-off.
The academic reviewer (agents/academic-reviewer.md) acts as a skeptical peer reviewer:
No manuscript proceeds to final assembly without academic reviewer approval.
User must organize their project folder as follows:
project/
├── papers/ # PDF files of relevant literature
│ ├── smith-2023.pdf
│ ├── jones-2022.pdf
│ └── ...
├── data/ # Raw data outputs (CSV, Excel)
│ ├── results.csv
│ ├── demographics.csv
│ └── ...
├── figures/ # Generated figures (PNG, JPG, SVG)
│ ├── figure1.png
│ ├── figure2.png
│ └── ...
├── ethics/ # OPTIONAL - Ethics/governance documents (.pdf, .docx, .md)
│ ├── protocol.pdf # Approved protocol (IRB, IACUC, ethics committee, etc.)
│ └── amendments/ # Optional protocol amendments
└── config.md # Project configuration (see template below)
If provided, ethics/governance documents enable:
Supports: IRB protocols, IACUC approvals, ethics committee decisions, data governance agreements.
Supported formats: PDF, Word (.docx), Markdown (.md)
# Project Configuration
## GitHub Repository
url: https://github.com/username/repo-name
branch: main
access: private # or public
## Constraints
word_limit: 3500
target_journal: [Target Journal]
citation_style: AMA
## Additional Notes
[Any other context for the manuscript]
The skill generates intermediate notes and drafts:
project/
├── notes/
│ ├── papers/ # Condensed notes per PDF (via subagent)
│ │ ├── smith-2023.md
│ │ └── jones-2022.md
│ ├── papers-library/ # ALL PDFs stored centrally
│ │ ├── smith-2023.pdf
│ │ └── jones-2022.pdf
│ ├── bibliography.md # Master bibliography with citations/links
│ ├── literature-synthesis.md # Aggregated themes and findings
│ ├── code-analysis.md # GitHub repo analysis
│ ├── data-analysis.md # Data/figures interpretation
│ ├── ethics-summary.md # Ethics document extraction (if ethics/ provided)
│ ├── ethics-scope-comparison.md # Ethics vs actual scope (if ethics/ provided)
│ ├── statistical-review.md # Statistical reviewer sign-off report
│ └── reviewer-feedback.md # Academic reviewer feedback
├── drafts/
│ ├── introduction.md
│ ├── methods.md
│ ├── results.md
│ ├── discussion.md
│ └── abstract.md
├── inventory.md # What's available in project
├── scope.md # Research question, findings, constraints
└── manuscript.md # Final assembled draft
[1. Context Ingestion] ─── skills/context-ingestion/SKILL.md
│ - Scan project folder structure
│ - Validate required folders exist
│ - Clone/analyze GitHub repository
│ - Extract ethics content → notes/ethics-summary.md (if ethics/ exists)
│ - Generate inventory.md
│
▼
[2. Scoping] ─── skills/scoping/SKILL.md
│ - Ask: research question
│ - Ask: key findings (cross-check with inventory)
│ - Ask: constraints (word limit, journal)
│ - ★ ETHICS SCOPE COMPARISON → Confirm discrepancies with user (if ethics docs exist)
│ - Generate scope.md, notes/ethics-scope-comparison.md
│
▼
[3. Literature Review] ─── skills/literature-review/SKILL.md
│ - ★ SUBAGENT PER PAPER → Prevents context overflow
│ - Process each PDF via isolated subagent → notes/papers/*.md
│ - Synthesize from condensed notes → notes/literature-synthesis.md
│ - Draft Introduction → drafts/introduction.md
│
▼
[4. Code Analysis] ─── skills/code-analyzer/SKILL.md
│ - Analyze GitHub repository
│ - Extract methodology → notes/code-analysis.md
│ - ★ STATISTICAL REVIEW → Validate methods
│ - Draft Methods → drafts/methods.md
│
▼
[5. Results Interpretation] ─── skills/results-interpreter/SKILL.md
│ - Analyze CSV data files
│ - Interpret figures
│ - Generate → notes/data-analysis.md
│ - ★ STATISTICAL REVIEW → Validate statistics
│ - Draft Results → drafts/results.md
│
▼
[6. Synthesis] ─── skills/synthesis/SKILL.md
│ - Read all notes/*.md
│ - Read drafts/introduction.md, methods.md, results.md
│ - Draft Discussion → drafts/discussion.md
│ - Draft Abstract → drafts/abstract.md
│
▼
[7. Academic Review] ─── agents/academic-reviewer.md
│ - Verify claims against citations
│ - Validate hypothesis and methods alignment
│ - ★ INDEPENDENTLY interpret results
│ - Compare to Discussion conclusions
│ - Generate → notes/reviewer-feedback.md
│ - Route issues to agents or user
│
▼
[8. Assembly] ─── skills/assembler/SKILL.md
- Confirm reviewer approval
- Combine all drafts
- Populate ethics statement from ethics docs (if available)
- Apply formatting constraints
- Generate → manuscript.md
The workflow supports multiple entry points:
| Command | Starts At | Use When |
|---|---|---|
/writer:draft | Step 1 | Full workflow from scratch |
/writer:literature | Step 3 | Scope exists, need lit review |
/writer:methods | Step 4 | Need to analyze code only |
/writer:results | Step 5 | Need to interpret data only |
/writer:synthesize | Step 6 | All drafts exist, need Discussion |
/writer:assemble | Step 7 | All sections drafted, need final doc |
Read skills/context-ingestion/SKILL.md and follow it to:
inventory.mdRead skills/scoping/SKILL.md and follow it to:
scope.mdRead skills/literature-review/SKILL.md and follow it to:
papers/ via isolated subagents → notes/papers/*.mdnotes/papers-library/*.pdfnotes/bibliography.mdnotes/literature-synthesis.mddrafts/introduction.mdRead skills/code-analyzer/SKILL.md and follow it to:
notes/code-analysis.md, drafts/methods.mdRead skills/results-interpreter/SKILL.md and follow it to:
data/figures/notes/data-analysis.md, drafts/results.mdRead skills/synthesis/SKILL.md and follow it to:
drafts/discussion.md, drafts/abstract.mdRead skills/assembler/SKILL.md and follow it to:
manuscript.mdreferences/section-guidelines.md - Writing conventions per sectionreferences/citation-format.md - Citation formatting stylesreferences/source-note-template.md - Template for paper notesUse when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.