demos/reference_scripts/writing/SKILL.md
Medical/scientific paper writing workflow skill. Manages the full pipeline from literature search to submission-ready manuscript. Creates and manages a project directory with IMRAD-format section files, literature matrix, reference management, and quality checklists. Supports both English and Japanese papers. Triggers: 'write paper', 'paper-write', 'start manuscript', '論文を書く', '論文執筆', '論文プロジェクト', 'manuscript', 'research paper', '原稿作成'.
npx skillsauth add q734738781/CatMaster paper-writerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Full-pipeline academic paper writing assistant. From literature search to submission-ready manuscript.
This skill manages the entire paper writing workflow:
Literature Search → Outline → Tables/Figures → Draft → Humanize → References → Quality Review → Pre-Submission → [Revision] → [Post-Acceptance] → [Rejection → Resubmission]
Each paper is a project directory containing structured Markdown files for every section, a literature matrix, and quality checklists.
| Type | Structure | Reporting Guideline | Notes | |------|-----------|-------------------|-------| | Original Article | Full IMRAD | STROBE / CONSORT | Default | | Case Report | Intro / Case / Discussion | CARE | Separate templates | | Review Article | Thematic sections | - | Flexible structure | | Letter / Short Communication | Condensed IMRAD | Same as original | Word limit focus | | Systematic Review | PRISMA-compliant | PRISMA 2020 | With PRISMA checklist | | Study Protocol | SPIRIT-compliant | SPIRIT 2025 | For trial registration papers |
When the user invokes this skill, ask for:
If a target journal is specified, look up and document:
references/ai-disclosure.md.references/keywords-guide.md.templates/graphical-abstract.md.Use WebSearch to look up the journal's "Instructions for Authors" page.
Record all requirements in the README.md under a "Journal Requirements" section.
Based on paper type and study design, select the appropriate reporting guideline:
| Study Type | Guideline | Reference |
|-----------|-----------|-----------|
| Randomized Controlled Trial | CONSORT 2025 | references/reporting-guidelines-full.md |
| Observational study (cohort, case-control, cross-sectional) | STROBE | references/reporting-guidelines-full.md |
| Systematic review / meta-analysis | PRISMA 2020 | references/reporting-guidelines-full.md |
| Case report | CARE | references/reporting-guidelines-full.md |
| Diagnostic accuracy study | STARD 2015 | references/reporting-guidelines-full.md |
| Quality improvement study | SQUIRE 2.0 | references/reporting-guidelines-full.md |
| Study protocol (clinical trial) | SPIRIT 2025 | references/reporting-guidelines-full.md |
| Prediction model (incl. AI/ML) | TRIPOD+AI 2024 | references/reporting-guidelines-full.md |
| Animal research | ARRIVE 2.0 | references/reporting-guidelines-full.md |
| Health economics | CHEERS 2022 | references/reporting-guidelines-full.md |
Read ~/.claude/skills/paper-writer/references/reporting-guidelines.md (summary) or references/reporting-guidelines-full.md (comprehensive) and note the key checklist items for the selected guideline. These items will be checked throughout the writing process.
For Original Article / Review / Letter / Systematic Review:
{project-dir}/
├── README.md # Project dashboard (status, timeline, links)
│
├── 00_literature/ # Phase 1: Literature
│ ├── search-strategy.md # Search terms, databases, dates
│ ├── literature-matrix.md # Structured comparison table
│ └── key-papers/ # Notes on important papers (1 file per paper)
│
├── 01_outline.md # Phase 2: Paper skeleton
│
├── sections/ # Phase 3: Manuscript sections (writing order)
│ ├── 02_methods.md
│ ├── 03_results.md
│ ├── 04_introduction.md
│ ├── 05_discussion.md
│ ├── 06_conclusion.md
│ ├── 07_abstract.md
│ └── 08_title.md
│
├── tables/ # Tables (numbered: table1_baseline.md, ...)
├── figures/ # Figures + captions (fig1_caption.md, ...)
├── supplements/ # Supplementary materials
│ ├── supplementary-tables/ # e.g., tableS1_sensitivity.md
│ ├── supplementary-figures/ # e.g., figS1_subgroup.md
│ └── appendices/ # Additional methods, datasets, etc.
│
├── data/ # Research data (see templates/data-management.md)
│ ├── raw/ # Original data (READ-ONLY, gitignored)
│ ├── processed/ # Cleaned, de-identified data
│ ├── analysis/ # Statistical output, scripts
│ └── data-dictionary.md # Variable definitions
│
├── ethics/ # Ethics & regulatory
│ ├── irb-approval.md # IRB approval details, number, dates
│ ├── informed-consent.md # Consent process documentation
│ ├── protocol.md # Study protocol (SPIRIT if applicable)
│ └── registration.md # Trial/study registration (UMIN, ClinicalTrials.gov)
│
├── submissions/ # Submission history (1 subfolder per attempt)
│ └── v1_{journal}/ # e.g., v1_bmj/
│ ├── compiled-manuscript.md # Full compiled manuscript snapshot
│ ├── cover-letter.md # Cover letter
│ ├── title-page.md # Title page
│ ├── declarations.md # Ethics, COI, funding, AI disclosure
│ ├── highlights.md # Key points (if required)
│ ├── graphical-abstract.md # Graphical abstract (if required)
│ └── submission-log.md # Date, portal, manuscript #, status
│
├── revisions/ # Revision rounds (Phase 8)
│ └── r1/ # Round 1
│ ├── reviewer-comments.md # Original reviewer comments
│ ├── response-letter.md # Point-by-point response
│ ├── revision-cover-letter.md # Revision cover letter
│ ├── diff-summary.md # Changes made (section, line, change)
│ └── compiled-manuscript.md # Revised manuscript snapshot
│
├── coauthor-review/ # Co-author feedback tracking
│ ├── review-tracker.md # Who reviewed, when, status
│ └── feedback/ # Individual feedback files
│
├── correspondence/ # Editor & reviewer communication log
│ └── YYYY-MM-DD_{subject}.md # e.g., 2026-03-05_decision-letter.md
│
├── references/ # Reference management
│ └── 09_references.md # Formatted reference list
│
├── checklists/ # Quality control
│ ├── section-quality.md # Per-section quality scores
│ ├── submission-ready.md # Pre-submission checklist
│ ├── reporting-guideline.md # CONSORT/STROBE/etc. item tracking
│ ├── gate-state.md # Stage-gate iteration state
│ └── feedback-*.md # Auto-generated gate feedback
│
└── log/ # Decision & progress log
├── decisions.md # Key decisions with rationale
├── meetings.md # Meeting notes (co-authors, supervisor)
└── timeline.md # Milestone targets & actual dates
For Case Report:
{project-dir}/
├── README.md # Project dashboard
│
├── 00_literature/
│ ├── search-strategy.md
│ ├── literature-matrix.md
│ └── key-papers/
│
├── 01_outline.md
│
├── sections/
│ ├── 02_case.md # Case presentation (CARE structure)
│ ├── 03_introduction.md # Introduction (why reportable)
│ ├── 04_discussion.md
│ ├── 05_abstract.md # Abstract (CARE format)
│ └── 06_title.md # Title (must contain "case report")
│
├── tables/
├── figures/
├── supplements/
│ ├── supplementary-tables/
│ ├── supplementary-figures/
│ └── appendices/
│
├── data/
│ ├── raw/
│ ├── processed/
│ ├── analysis/
│ └── data-dictionary.md
│
├── ethics/
│ ├── irb-approval.md
│ ├── informed-consent.md # Patient consent for publication
│ └── patient-perspective.md # Patient's perspective (CARE item)
│
├── submissions/
│ └── v1_{journal}/
│ ├── compiled-manuscript.md
│ ├── cover-letter.md
│ ├── title-page.md
│ ├── declarations.md
│ └── submission-log.md
│
├── revisions/
│ └── r1/
│ ├── reviewer-comments.md
│ ├── response-letter.md
│ ├── diff-summary.md
│ └── compiled-manuscript.md
│
├── coauthor-review/
│ ├── review-tracker.md
│ └── feedback/
│
├── correspondence/
│ └── YYYY-MM-DD_{subject}.md
│
├── references/
│ └── 07_references.md
│
├── checklists/
│ ├── section-quality.md
│ ├── submission-ready.md
│ ├── reporting-guideline.md
│ ├── gate-state.md
│ └── feedback-*.md
│
└── log/
├── decisions.md
├── meetings.md
└── timeline.md
Read ~/.claude/skills/paper-writer/templates/project-init.md with the Read tool and use it to generate README.md. For Case Reports, use project-init-case.md instead.
File numbering follows the recommended writing order, not the reading order. This is intentional.
If the user has existing research data (clinical records, CSV files, statistical output, etc.):
data/raw/, data/processed/, data/analysis/ directories~/.claude/skills/paper-writer/templates/data-management.md for the full templatedata/raw/ — these files are READ-ONLY from this pointdata/raw/README.md documenting the data source, extraction date, and IRB informationdata/data-dictionary.md listing all variables with types, ranges, and labelsdata/processed/README.mdSecurity rules:
data/raw/*.csv, data/raw/*.xlsx etc. to .gitignore if the repository is sharedData flow: raw/ (never modify) → processed/ (clean, de-identify) → analysis/ (statistical output) → tables/ and figures/ (manuscript-ready)
If the user has quantitative data ready for analysis, Claude Code can execute Python scripts directly. Read ~/.claude/skills/paper-writer/templates/analysis-workflow.md for the full workflow.
Available analysis scripts:
| Script | Purpose | Key Output |
|--------|---------|------------|
| scripts/table1.py | Table 1 (baseline characteristics) | Markdown table with N, %, mean±SD, P values |
| scripts/analysis-template.py | Statistical analyses | Descriptive stats, t-test, logistic regression, survival |
| scripts/forest-plot.py | Forest plot (meta-analysis) | PNG + SVG |
Workflow:
data/processed/cohort_final.csv, check shape, dtypes, missing valuesscripts/table1.py to generate baseline characteristics table → tables/table1.mdAnalysis output directory: All results go to data/analysis/. Figures for the manuscript go to figures/.
Required Python packages: numpy, pandas, scipy, statsmodels, lifelines, matplotlib, seaborn
pip install numpy pandas scipy statsmodels lifelines matplotlib seaborn scikit-learn
Statistical reporting requirements (before writing Results):
See references/statistical-reporting-full.md for detailed SAMPL guidelines and templates/analysis-workflow.md for step-by-step commands.
Create 00_literature/search-strategy.md with:
How to search:
Use WebSearch with targeted queries:
"search terms" pediatric asthma pubmed"search terms" site:scholar.google.comIf WebSearch results are limited, use WebFetch on specific PubMed URLs:
https://pubmed.ncbi.nlm.nih.gov/?term=search+terms&sort=date
Important: WebSearch may not reliably return PubMed results with site: filtering. If results are poor, try broader searches and filter manually, or ask the user to provide key papers they already know.
Practical reality: AI-based literature search has significant limitations. The most reliable workflow is:
references/pubmed-query-builder.md to construct proper PubMed queriesreferences/citation-verification.md)Read ~/.claude/skills/paper-writer/templates/literature-matrix.md with the Read tool.
For each relevant paper found, extract and organize:
| Author (Year) | Design | N | Population | Key Finding | Limitation | Relevance | |----------------|--------|---|------------|-------------|------------|-----------|
Aim for 15-30 papers for an original article, 8-15 for a case report, 30-50 for a systematic review.
For the 3-5 most important papers, create individual notes in 00_literature/key-papers/ with:
Create 01_outline.md with the paper skeleton.
Read ~/.claude/skills/paper-writer/references/imrad-guide.md with the Read tool for the detailed IMRAD structure. For Case Reports, this guide does not apply directly — use the CARE structure instead.
The outline should specify:
Get user approval on outline before proceeding to drafting.
Read ~/.claude/skills/paper-writer/references/tables-figures-guide.md with the Read tool.
Tables and figures are the backbone of a paper — many reviewers look at the abstract, then the tables/figures, before reading the text. Design them before writing prose so the text can reference them naturally.
Based on the outline, determine:
references/tables-figures-guide.md)Create table files in tables/ directory:
table1_baseline.md — Baseline characteristics (standard format)table2_*.md — Additional tables as needed (regression results, outcomes, etc.)Rules:
Create caption files in figures/ directory:
fig1_caption.md — Often a flow diagram (CONSORT/PRISMA) or study designfig2_caption.md — Key result visualizationRules:
If the journal requires or encourages a graphical abstract, read ~/.claude/skills/paper-writer/templates/graphical-abstract.md and plan the visual summary.
Get user review on table/figure plan before proceeding to drafting.
The writing order is intentional and produces better papers. Follow it strictly.
Read ~/.claude/skills/paper-writer/templates/methods.md and ~/.claude/skills/paper-writer/templates/results.md with the Read tool.
Methods rules:
Results rules:
Write sections/02_methods.md and sections/03_results.md together, ensuring perfect correspondence. Cross-check: every subsection in Methods must map to a corresponding subsection in Results, and vice versa.
Workflow: Write Methods subsection 1 → Results subsection 1 → Methods subsection 2 → Results subsection 2 → ... This interleaving ensures 1:1 correspondence.
Read ~/.claude/skills/paper-writer/templates/introduction.md and ~/.claude/skills/paper-writer/templates/conclusion.md with the Read tool.
Why write Paragraph 3 first? The study objective (Introduction P3) and the conclusion must mirror each other. Writing them together guarantees alignment. Paragraphs 1-2 provide background that funnels toward the objective — they are easier to write once the objective is locked.
Introduction structure (3 paragraphs):
Conclusion rules:
Write the final paragraph of sections/04_introduction.md and sections/06_conclusion.md together to ensure they mirror each other.
Read ~/.claude/skills/paper-writer/templates/discussion.md with the Read tool.
Discussion structure:
00_literature/literature-matrix.md)
N+1. Limitations — read ~/.claude/skills/paper-writer/templates/limitations-guide.md for categories, templates, and bilingual examples
N+2. Clinical implications / future directionsDiscussion rules:
Now write paragraphs 1-2 of sections/04_introduction.md. The background should funnel toward the research question already written in paragraph 3.
Read ~/.claude/skills/paper-writer/templates/abstract.md with the Read tool.
Write sections/07_abstract.md as a structured abstract:
Check the journal-specific word limit captured in Phase 0. The Abstract must be consistent with the full text. Cross-check all numbers.
Write sections/08_title.md with 3-5 title candidates. Evaluate each against:
Get user approval on final title.
Read ~/.claude/skills/paper-writer/templates/case-report.md with the Read tool.
Write 02_case.md following the CARE structure:
Rules:
Read ~/.claude/skills/paper-writer/templates/discussion.md with the Read tool.
Write 04_discussion.md:
Keep it focused and shorter than in an Original Article.
Read ~/.claude/skills/paper-writer/templates/case-introduction.md with the Read tool.
Write 03_introduction.md:
Write the Introduction AFTER the Case section — you need to know the full case to justify its reporting.
Read ~/.claude/skills/paper-writer/templates/case-abstract.md with the Read tool.
Write 05_abstract.md using the CARE abstract structure:
Do NOT use Methods/Results structure for Case Report abstracts.
Write 06_title.md with 3-5 title candidates. For case reports:
Get user approval on final title.
Review articles synthesize existing literature on a topic. The structure is thematic rather than IMRAD.
Read ~/.claude/skills/paper-writer/templates/discussion.md for general writing guidance.
Organize the body into thematic sections based on the outline. Common structures:
Each section should:
Write the introduction:
Write the conclusion:
Write an unstructured abstract (unless journal requires structured format):
Write title candidates. For review articles:
Get user approval on final title.
Read ~/.claude/skills/paper-writer/templates/sr-outline.md with the Read tool for the complete PRISMA 2020-compliant template.
Systematic reviews follow a strict, pre-registered protocol. The template provides the full structure with PRISMA 2020 checklist item numbers.
The Methods section is the most critical part. Write it following PRISMA items P-5 through P-18:
Write Results following PRISMA items P-19 through P-23:
Write Discussion following PRISMA items P-25 through P-27:
Follow the same principles as Original Article but with SR-specific framing:
Get user approval on final title.
Letters and short communications follow a condensed IMRAD format. The key constraint is the word limit (typically 600-1500 words).
Write a single file covering all sections:
Rules:
Write a brief abstract (often 100-150 words, unstructured).
Short, direct titles work best. No need for elaborate structure.
Get user approval on final title.
Read ~/.claude/skills/paper-writer/references/humanizer-academic.md with the Read tool.
After drafting, run a humanization pass on every section to remove AI-generated writing patterns.
Read each section file and identify:
English papers — check for these 18 patterns:
Japanese papers (日本語) — 13パターン(A〜C)+ AIボキャブラリー一覧(D)をチェック:
A. 記号と表記(3パターン):
B. 文のリズム(3パターン):
C. 学術文特有の問題(7パターン):
D. AIボキャブラリー一覧: references/humanizer-academic.md の日本語セクションDを参照。C-4のパターン判定に使う語彙リスト。
Consult references/humanizer-academic.md for specific before/after examples. For each identified pattern:
English:
| Section | Priority Patterns | |---------|------------------| | Introduction | #1 Significance inflation, #5 Vague attributions, #7 AI vocabulary, #3 -ing analyses | | Methods | #16 Filler phrases, #8 Copula avoidance | | Results | #3 -ing analyses, #4 Promotional language | | Discussion | #17 Excessive hedging, #6 Formulaic challenges | | Conclusion | #18 Generic conclusions, #1 Significance inflation | | Abstract | ALL patterns (most visible section) |
日本語:
| セクション | 重点パターン | |-----------|-------------| | 緒言 | C-2 根拠なき評価語, B-2 接続詞過多 | | 方法 | C-6 受動態の過剰使用, C-3 抽象語 | | 結果 | B-1 同じ語尾, A-3 丸括弧多用 | | 考察 | C-1 保険が多い, C-4 AIボキャブラリー | | 結論 | C-2 根拠なき評価語, C-7 非学術的文体 | | 抄録 | 全パターン |
After humanization:
English:
日本語:
Read ~/.claude/skills/paper-writer/references/citation-guide.md with the Read tool.
Build references/09_references.md (or references/07_references.md for Case Reports):
WebSearch with the exact title. AI frequently fabricates plausible-sounding citations.Read ~/.claude/skills/paper-writer/references/section-checklist.md with the Read tool. For Case Reports, also check the CARE-specific items in templates/case-report.md.
Run the quality checklist against each section. Update checklists/section-quality.md with results.
Verification checklist:
Read ~/.claude/skills/paper-writer/templates/cover-letter.md and ~/.claude/skills/paper-writer/templates/submission-ready.md with the Read tool.
Create:
~/.claude/skills/paper-writer/templates/title-page.md for the template (running head, all authors with ORCID, affiliations, word counts, corresponding author, clinical trial registration)~/.claude/skills/paper-writer/templates/highlights.md and create the appropriate summary box for the target journal (JAMA Key Points, BMJ "What is known", Elsevier Highlights, Lay Summary, etc.)~/.claude/skills/paper-writer/templates/acknowledgments.md and draft (non-author contributions, AI tool disclosure, patient acknowledgment)~/.claude/skills/paper-writer/templates/declarations.md and complete (Ethics, COI using references/coi-detailed.md, Funding, Data Availability, AI Disclosure, CRediT)checklists/submission-ready.md using the template — fill in journal-specific limits from Phase 0submissions/v1_{journal}/compiled-manuscript.mdsubmissions/v1_{journal}/submission-log.md with submission date, portal, manuscript IDlog/timeline.mdFinal compilation order (reading order):
For Original Article:
Title → Abstract → Introduction → Methods → Results → Discussion → Conclusion → References
For Case Report:
Title → Abstract → Introduction → Case Presentation → Discussion → References
The compiled file should include all section content in sequence. Tables and Figures should be referenced but kept in their separate folders. All submission documents go into submissions/v1_{journal}/.
When the user receives reviewer comments (peer review, editorial decision letter):
Create revisions/r1/reviewer-comments.md:
Create revisions/r1/response-letter.md:
For each comment, use this format:
**Comment R1-1:** [Quote the reviewer's comment]
**Response:** [Your response]
**Changes made:** [Specific changes with page/line numbers, or explanation if no change]
Rules for response letters:
Read ~/.claude/skills/paper-writer/templates/proof-correction.md with the Read tool.
After acceptance, the corresponding author receives galley proofs. This is the LAST opportunity to correct errors.
When proofs arrive (typically 2-8 weeks after acceptance, turnaround: 24-72 hours):
Critical checks:
NOT allowed at proof stage:
Use the journal's proofing system (Proof Central, CATS, eProofing, or direct PDF return). For each correction: state page, column, line, and exact change.
After publication:
references/open-access-guide.mdreferences/clinical-trial-registration.mdRead ~/.claude/skills/paper-writer/references/desk-rejection-prevention.md and references/journal-reformatting.md with the Read tool.
| Decision | Action | |----------|--------| | Desk rejection (scope) | Reformat and submit to next journal immediately | | Desk rejection (quality) | Revise manuscript, then reformat and submit | | Peer review rejection | Read reviews carefully; major revision before next journal | | Reject with encouragement to resubmit | Treat as major revision; address all comments |
Use references/journal-reformatting.md checklist:
references/abstract-formats.mdreferences/word-count-limits.mdTrack submissions:
| Journal | Submitted | Decision | Turnaround | Next Action | |---------|-----------|----------|-----------|-------------| | [Journal 1] | YYYY-MM-DD | — | — | — |
Plan cascade: Reach journal → Target journal → Safety journal → Backup journal.
| Section | AI Role | |---------|---------| | Literature search | Search, organize, summarize — user validates relevance | | Methods | Draft based on user's data description — user verifies accuracy | | Results | Structure and format — user provides the actual data | | Case (Case Report) | Structure chronologically — user provides clinical details | | Introduction | Draft background from literature — user refines narrative | | Discussion | Suggest comparisons with literature — user controls interpretation | | Abstract | Generate from full text — user ensures accuracy | | References | Format and organize — user verifies completeness and authenticity |
WebSearch)Update README.md status after each phase. Use these status values:
Use the appropriate status tracker based on paper type:
Original Article:
| Phase | Status | Last Updated | |-------|--------|-------------| | Literature Search | Not Started | - | | Outline | Not Started | - | | Tables & Figures | Not Started | - | | Methods & Results | Not Started | - | | Introduction & Conclusion | Not Started | - | | Discussion | Not Started | - | | Abstract | Not Started | - | | Title & Keywords | Not Started | - | | Humanize | Not Started | - | | References | Not Started | - | | Declarations | Not Started | - | | Quality Review | Not Started | - | | Pre-Submission | Not Started | - |
Case Report:
| Phase | Status | Last Updated | |-------|--------|-------------| | Literature Search | Not Started | - | | Outline | Not Started | - | | Tables & Figures | Not Started | - | | Case Presentation | Not Started | - | | Discussion | Not Started | - | | Introduction | Not Started | - | | Abstract | Not Started | - | | Title & Keywords | Not Started | - | | Humanize | Not Started | - | | References | Not Started | - | | Declarations | Not Started | - | | Quality Review | Not Started | - | | Pre-Submission | Not Started | - |
Review Article:
| Phase | Status | Last Updated | |-------|--------|-------------| | Literature Search | Not Started | - | | Outline | Not Started | - | | Tables & Figures | Not Started | - | | Thematic Sections | Not Started | - | | Introduction | Not Started | - | | Conclusion & Future Directions | Not Started | - | | Abstract | Not Started | - | | Title & Keywords | Not Started | - | | Humanize | Not Started | - | | References | Not Started | - | | Declarations | Not Started | - | | Quality Review | Not Started | - | | Pre-Submission | Not Started | - |
Systematic Review:
| Phase | Status | Last Updated | |-------|--------|-------------| | Literature Search | Not Started | - | | Outline | Not Started | - | | Tables & Figures | Not Started | - | | Methods (PRISMA) | Not Started | - | | Results (PRISMA) | Not Started | - | | Discussion | Not Started | - | | Introduction | Not Started | - | | Abstract | Not Started | - | | Title & Keywords | Not Started | - | | Humanize | Not Started | - | | References | Not Started | - | | Declarations | Not Started | - | | Quality Review | Not Started | - | | Pre-Submission | Not Started | - |
Letter / Short Communication:
| Phase | Status | Last Updated | |-------|--------|-------------| | Literature Search | Not Started | - | | Outline | Not Started | - | | Tables & Figures | Not Started | - | | Condensed Draft | Not Started | - | | Abstract | Not Started | - | | Title & Keywords | Not Started | - | | Humanize | Not Started | - | | References | Not Started | - | | Quality Review | Not Started | - | | Pre-Submission | Not Started | - |
When the user invokes this skill on an existing project directory:
README.md to understand current status, paper type, target journal, and research questionChanging target journal: If the user wants to change the target journal:
Adding data or revisions: If the user has new data or reviewer feedback:
ユーザーが「チームで」「team mode」「並列で」と指示した場合、各フェーズを並列エージェントで実行し、大幅に高速化する。
| エージェント | 役割 | エージェント定義 | モデル |
|------------|------|----------------|--------|
| 文献検索 | DB別の並列論文検索 | ~/.claude/agents/paper-lit-searcher.md | sonnet |
| 表・図設計 | 表と図の並列設計 | ~/.claude/agents/paper-table-figure-planner.md | sonnet |
| セクション執筆 | 汎用セクション執筆 | ~/.claude/agents/paper-section-drafter.md | sonnet |
| ヒューマナイザー | AI文体パターン除去 | ~/.claude/agents/paper-humanizer.md | haiku |
| 参考文献 | 引用収集・検証 | ~/.claude/agents/paper-ref-builder.md | sonnet |
| セクションレビュー | セクション品質チェック | ~/.claude/agents/paper-section-reviewer.md | sonnet |
| 品質ゲート | 横断整合性の最終検証 | ~/.claude/agents/paper-quality-gate.md | opus |
ユーザーとの対話が必要なため、既存フローのまま実行する。
paper-lit-searcher を3つ並列でAgent toolから起動する:
3エージェント完了後、リードが結果をマージし 00_literature/literature-matrix.md を作成(重複除去)。
paper-table-figure-planner を2つ並列で起動:
tables/ に出力)figures/ に出力)paper-section-drafter を依存関係に基づいてラウンド実行する。
Original Article の場合:
Case Report の場合:
Systematic Review の場合:
paper-humanizer をセクション数分並列で起動:
references/humanizer-academic.md を参照paper-ref-builder を2段階で実行:
Round 1: paper-section-reviewer をセクション数分並列で起動
references/section-checklist.md に基づき評価Round 2: paper-quality-gate を1つ起動(opusモデル)
paper-section-drafter を4つ並列で起動:
templates/title-page.md 参照)templates/highlights.md 参照)templates/acknowledgments.md + templates/declarations.md 参照)templates/cover-letter.md 参照)完了後、scripts/compile-manuscript.sh で最終統合。
レビュアーコメントのパース・カテゴリ分けは逐次(ユーザー対話)。その後:
paper-section-drafter): Must Fix コメント対応paper-section-drafter): Should Fix コメント対応paper-section-drafter): 反論(Rebut)ドラフト作成完了後、修正セクションに Phase 4(ヒューマナイズ)と Phase 6(品質レビュー)を再実行。
イベント駆動(プルーフ到着、リジェクション通知)のため既存フローのまま。
| 場面 | 推奨モード | |------|-----------| | Original Article(多セクション) | チームモード | | Systematic Review(大量文献) | チームモード | | Case Report(少セクション) | 逐次モード | | Letter / Short Communication | 逐次モード | | 締め切りが迫っている場合 | チームモード |
チームモード時、各Phaseに品質ゲートを設ける。ゲートがFAILの場合、修正エージェントを自動再起動してPASSまでループする。最大3イテレーションでユーザーにエスカレーション。
Phase N 完了 → [ゲートエージェント] → PASS? → 次のPhaseへ
→ FAIL + iter<3 → FEEDBACK.md生成 → [修正エージェント(revision_mode)] → ゲートに戻る
→ FAIL + iter≥3 → ユーザーにエスカレーション(checklists/escalation-log.md)
| Phase | ゲート名 | PASS条件 | ゲート担当 | 修正担当 | |-------|---------|---------|-----------|---------| | 1 | 文献品質 | ≥10論文、全DOI/URLあり、捏造なし | paper-section-reviewer | paper-lit-searcher | | 2 | アウトライン | 全IMRAD存在、≥2引用マッピング | paper-section-reviewer | ユーザーに即エスカレ | | 2.5 | 表・図 | 全設計ファイル完備、ジャーナル制限内 | paper-section-reviewer | paper-table-figure-planner | | 3 | セクション | score≥80%、Must Fix=0 | paper-section-reviewer | paper-section-drafter | | 4 | ヒューマナイズ | 高優先AIパターン残存0 | paper-section-reviewer | paper-humanizer | | 5 | 参考文献 | 捏造0、孤立引用0 | paper-ref-builder(verifier) | paper-ref-builder(builder) | | 6 | 横断整合 | PASS or CONDITIONAL_PASS | paper-quality-gate(opus) | paper-section-drafter | | 7 | 投稿準備 | 全必須書類あり、語数制限内 | paper-section-reviewer | paper-section-drafter |
ゲートFAIL時、オーケストレーターが checklists/feedback-{phase}-{section}.md を生成する:
---
revision_mode: true
iteration: {N} of 3
section: {section_name}
source_file: {path/to/section_file.md}
gate_verdict: FAIL
---
## Must Fix
### Issue 1
- item: {チェックリスト項目名}
- location: {段落番号 or 行範囲}
- problem: {問題の1文記述}
- fix: {具体的な修正指示}
## Should Fix
### Issue 2
- item: {項目名}
- fix: {修正指示}
## Context (変更不可)
- reporting_guideline: {PRISMA等}
- journal: {ジャーナル名}
- language: {English/Japanese}
ゲートFAIL時、修正エージェントに以下を渡す:
revision_mode: true
feedback_file: {project_dir}/checklists/feedback-{phase}-{section}.md
source_file: {project_dir}/{section_file.md}
全修正エージェント(paper-section-drafter, paper-humanizer, paper-lit-searcher, paper-table-figure-planner)は revision_mode: true を受け取ると、フィードバックの Must Fix 項目のみを処理し、通常の初期ワークフローをスキップする。
checklists/gate-state.md でイテレーション回数を管理:
| Phase | Section | Iteration | Status | Last Run |
|-------|---------|-----------|--------|----------|
| phase3 | methods | 2 | IN_PROGRESS | 2026-03-05 |
| phase4 | intro | 0 | PASS | 2026-03-05 |
3イテレーション到達時:
checklists/escalation-log.md に未解決の Must Fix 一覧と説明を記録section-reviewer と quality-gate は出力ファイル冒頭にYAMLヘッダを付与する:
# section-reviewer
---
gate_verdict: PASS | FAIL
must_fix_count: {N}
score_percent: {N}
section: {name}
---
# quality-gate
---
gate_verdict: PASS | CONDITIONAL_PASS | FAIL
must_fix_count: {N}
affected_sections: [methods, results]
---
オーケストレーターはYAMLヘッダのみ読み取ってループ継続/終了を判定する。CONDITIONAL_PASS(Should Fixのみ残存)はPASS扱い。
一部のゲートは並列実行可能:
Abstract のゲートは全セクション PASS 後に実行(他セクションの数値に依存するため)。
references/imrad-guide.md - IMRAD structure and writing principlesreferences/section-checklist.md - per-section quality checklist (Original Article + Case Report)references/citation-guide.md - citation formatting and managementreferences/reporting-guidelines.md - CONSORT, STROBE, PRISMA, CARE summariesreferences/humanizer-academic.md - AI writing pattern detection (EN 18 + JP 13 patterns)templates/project-init.md - project README template (Original Article)templates/project-init-case.md - project README template (Case Report)templates/literature-matrix.md - literature comparison matrixtemplates/methods.md - Methods section writing guide (Original Article)templates/results.md - Results section writing guide (Original Article)templates/case-report.md - Case presentation writing guide (Case Report, CARE-compliant)templates/case-introduction.md - Case Report introduction guidetemplates/case-abstract.md - Case Report abstract guide (CARE format)templates/introduction.md - Introduction section writing guide (Original Article)templates/discussion.md - Discussion section writing guidetemplates/conclusion.md - Conclusion writing guidetemplates/abstract.md - Abstract writing guide (Original Article)templates/cover-letter.md - Cover letter templatetemplates/submission-ready.md - Pre-submission checklist templatetemplates/sr-outline.md - Systematic review outline (PRISMA 2020)templates/declarations.md - Declarations templates (Ethics, COI, Funding, AI, CRediT)templates/graphical-abstract.md - Graphical abstract design guidereferences/ai-disclosure.md - AI tool disclosure guide (ICMJE 2023)references/tables-figures-guide.md - Tables and figures creation guidereferences/keywords-guide.md - Keywords and MeSH term selection guidereferences/supplementary-materials.md - Supplementary materials strategy guidereferences/citation-verification.md - Citation authenticity verification guidereferences/pubmed-query-builder.md - PubMed search query construction guidetemplates/title-page.md - Title page template (running head, ORCID, affiliations)templates/highlights.md - Key Points / Highlights / Summary boxes (JAMA, BMJ, Elsevier, etc.)templates/limitations-guide.md - Limitations section writing guide with templatestemplates/acknowledgments.md - Acknowledgments template (AI tools, medical writing)templates/proof-correction.md - Post-acceptance proof correction guidereferences/submission-portals.md - Submission portal guide (ScholarOne, Editorial Manager, etc.)references/open-access-guide.md - Open Access models, APCs, preprints, funder mandatesreferences/clinical-trial-registration.md - Clinical trial registration guide (ClinicalTrials.gov, UMIN-CTR, jRCT)references/abstract-formats.md - Journal-specific abstract formats (JAMA, NEJM, Lancet, BMJ, etc.)references/word-count-limits.md - Word count limits by journal and paper typereferences/coi-detailed.md - Detailed COI categories, CRediT taxonomy, ORCID guidereferences/desk-rejection-prevention.md - Desk rejection prevention and journal selectionreferences/journal-reformatting.md - Quick reformatting guide after rejectionreferences/statistical-reporting-full.md - Extended SAMPL statistical reporting guidereferences/reporting-guidelines-full.md - Comprehensive reporting guidelines (20+ guidelines with checklists)references/master-reference-list.md - Master reference list with URLs (all resources)templates/data-management.md - Data management template (raw/processed/analysis, data dictionary, de-identification)templates/analysis-workflow.md - Data analysis workflow guide (Table 1, regression, survival, figures)scripts/table1.py - Table 1 generator (auto-detect variable types, normality test, group comparison)scripts/analysis-template.py - Statistical analysis template (descriptive, t-test, logistic, survival)testing
Draft, audit, or revise point-by-point reviewer response letters for Nature-family manuscript revisions. Use when the user provides reviewer comments, editor decision letters, revision notes, response drafts, or asks how to respond to major/minor revision requests, rebuttal letters, response to reviewers, peer-review reports, 审稿意见回复, 逐点回复, 修回信, 大修回复, 小修回复, or 如何回复 reviewer.
development
Build full-text bilingual, figure-aware, source-grounded Markdown reading files for journal or conference papers from PDF, DOI, arXiv, publisher HTML, or pasted text. Use whenever the user asks to translate an entire paper, make a complete markdown reader, preserve figure or table placement near the relevant prose, or keep exact source anchors for every block. Do not use this for summaries, bullet-keyword notes, or citation-only tasks.
testing
Polish, restructure, or translate academic prose into Nature-leaning English using the paper-architecture and writing-strategy principles from Scientific English Writing & Communication, with phrase-level support from Academic Phrasebank. Use whenever the user asks to polish a manuscript paragraph, abstract, introduction, results, discussion, conclusion, title, methods section, or Chinese academic draft for publication-quality English.
tools
Build a complete but efficient Nature-style Chinese PPTX presentation from a scientific paper, preprint, PDF, article text, abstract, figure legends, or reading notes. Use this skill whenever the user asks to make slides/PPT/PPTX for journal club, group meeting, paper sharing, thesis seminar, lab meeting, department report, or academic presentation from a research paper, not only medical papers. It identifies the paper type and argument, selects only the figures needed for the story, writes Chinese slide content and speaker notes, creates the actual .pptx deck, and performs lightweight verification with cross-platform Python tooling by default.