| name | finalize-manuscript |
| description | Comprehensive pre-submission and resubmission manuscript checklist for academic papers. Runs 20 parallel checks covering citations, display items, factual claims, writing quality, data/code availability, cover letters, and response to reviewers. Supports AJHG and Nature Genetics policies. Use when: user says 'finalize manuscript', 'check manuscript', 'pre-submission check', 'manuscript checklist', 'ready to submit', or when preparing a paper for journal submission or resubmission. |
| disable-model-invocation | true |
Finalize Manuscript
Run 20 parallel checks on a manuscript before journal submission or resubmission. Produce a structured report with findings tagged as ISSUE, WARNING, or SUGGESTION.
Phase 0: Setup & Conversion
Execute this phase before spawning check agents.
Step 1: Gather Information
Ask the user:
- Target journal: AJHG, Nature Genetics, or other
- Submission type: Initial submission or revision?
- Files: All manuscript files and their roles:
- Main text (required)
- Supplementary figures/tables
- Supplementary note
- Cover letter
- Response to reviewers (revision only)
Step 2: Convert Documents
Create working directory: $TMPDIR/manuscript-check/
IMPORTANT: Extract each docx to a separate media subdirectory to avoid filename collisions (pandoc names images sequentially as image1.png, image2.png, etc.):
pandoc main.docx -t markdown --extract-media=$TMPDIR/manuscript-check/media-main -o $TMPDIR/manuscript-check/main-text.md
pandoc supp_note.docx -t markdown --extract-media=$TMPDIR/manuscript-check/media-supp -o $TMPDIR/manuscript-check/supplementary-note.md
For .pdf files: inspect the document directly with the available PDF or file-reading tools.
For .xlsx files: do not convert up front; load only when a check requires them. However, extract supplementary table captions from the supplementary note during Phase 0 (see Step 3) since many checks need caption-level information without the actual data.
Organize converted files as:
$TMPDIR/manuscript-check/
├── main-text.md
├── supplementary-note.md # if applicable
├── response-to-reviewers.md # if revision
├── cover-letter.md # if applicable
├── structural-summary.md # written in Step 3
├── media-main/ # images from main text
├── media-supp/ # images from supplementary note
├── media-*/ # images from other docx files
└── report.md # created at end
If images extract as EMF/WMF, convert to PNG with LibreOffice:
libreoffice --headless --convert-to png image.emf
Step 3: Build Structural Summary
Read the converted main text and extract:
- Sections: All headings and subheadings (especially Methods subsections), with line number ranges in the markdown file
- Main display items: All main figures and tables with captions
- Supplementary display items: All supplementary figures and tables with captions (extract captions from supplementary note even if the actual data is in xlsx files)
- Extended data items: If applicable
- Author list: Authors, affiliations, corresponding author(s), emails
- Reference list: All cited references; note format (numbered vs. author-year)
- Preprints: Any cited preprints (bioRxiv, medRxiv, arXiv, SSRN, etc.)
Image-to-figure mapping: View each extracted image and cross-reference it with figure captions to build an explicit mapping table (e.g., "media-main/image4.png = Figure 4"). Include this mapping in the structural summary.
Line ranges: Record the line number ranges for key sections (e.g., "Results: lines 45-280, Methods: lines 281-520"). Subagents will use these to read the file in targeted chunks rather than attempting to load the entire file at once.
Write the structural summary to {workdir}/structural-summary.md. Subagent prompts should instruct agents to read this file rather than including the summary verbatim in each prompt. Keep the summary concise — aim for under 200 lines. Include: section line ranges, display item list with captions, image-to-figure mapping, author metadata, reference count and format, and preprint list.
Step 4: Assess Citation Formatting & Existence
Examine the converted reference list. If it appears garbled (pandoc artifacts, unreadable markup), ask the user whether to proceed with citation formatting and existence checks or skip them. "Garbled" means clearly unreadable, not a few formatting inconsistencies.
Context Management
- Always load into context: Main text, main figure images, supplementary figure images
- Load on demand: Supplementary tables (often large .xlsx), supplementary note
- For revisions: Also load response to reviewers
Dispatching Check Agents
After Phase 0, run the checks in parallel when Claude Code subagents are available. Use one independent worker subagent per check when practical; otherwise run checks sequentially or in small local batches. Each check prompt includes:
- The working directory path
- Instruction to read
{workdir}/structural-summary.md for document structure, section line ranges, and image-to-figure mapping
- The check instructions (from the descriptions below)
- The report format: tag each finding as
**ISSUE**, **WARNING**, or **SUGGESTION**
- Note that the main text file may be large (1000+ lines) — agents should use the line ranges from the structural summary to read targeted sections rather than attempting to read the entire file at once
Review Depth
| Category | Depth | Checks |
|---|
| Structural | standard review | 4, 5, 6, 7, 9, 10, 20 |
| Citations | standard review | 2, 3, 17 |
| Writing quality | deep review | 18, 19 |
| Metadata | standard review | 8, 15 |
| External verification | deep review | 1, 13, 14 |
| Revision-specific | standard review | 11, 12 |
| Interactive (deferred) | deep review | 16 |
Skip revision checks (11, 12) for initial submissions. Skip Check 15 if no cover letter. Check 16 (suggested reviewers) should still run for initial submissions even without a cover letter.
Check Descriptions
Include the relevant description verbatim in each subagent's prompt.
Check 1: Fact-Check Literature Claims (Deep Review)
Read the main text. For every factual statement about existing literature or software, verify it:
- Literature claims (e.g., "Smith et al. showed X"): Find and read the cited paper. Try multiple access strategies in order:
- If a DOI is available:
https://doi.org/DOI (often gives full text or abstract)
- PubMed Central full text:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMCID/ (free full text for many papers)
- PubMed search:
https://pubmed.ncbi.nlm.nih.gov/?term=QUERY (abstracts)
- Download PDF to
{workdir}/tmp/ and inspect locally
Note: Web access can be unreliable on PubMed pages. If one access method fails, try the next.
- Software claims (e.g., "Tool X implements algorithm Y"): Find the tool's repository or documentation and verify.
- Numerical claims (e.g., "X% of Y in [citation]"): Verify specific numbers against the source.
Do not report claims that couldn't be verified — only report claims that are demonstrably incorrect or significantly misleading.
Tag: ISSUE (incorrect), WARNING (potentially misleading).
Check 2: Citation Formatting & Existence (Reviewer)
Read the reference list. Check:
- Consistent format across all citations (author names, year, journal, volume, pages/DOI)
- In-text citation style is consistent (all numbered, or all author-year)
- No duplicate references
- No obvious formatting errors (missing fields, inconsistent punctuation)
- Every reference is a real, findable source rather than a hallucinated citation. For each reference, verify existence through DOI resolution, PubMed, Crossref, publisher pages, Google Scholar, or an equivalent authoritative index. Confirm that title, authors, year, journal/preprint server, and DOI/PMID/arXiv ID match the cited reference.
- Flag references that cannot be found after reasonable searches, or whose metadata appears stitched together from different papers.
If the reference list is garbled from pandoc conversion (unreadable markup, not just a few errors), report a single WARNING and stop — do not check individual citations.
Tag: ISSUE (hallucinated/unfindable references, materially incorrect metadata, formatting errors), WARNING (garbled list, minor metadata mismatch).
Check 3: Citation Completeness (Reviewer)
Read the main text. For every mention of a method, software tool, database, or dataset:
- First mention: Must be cited. Skip well-known concepts that don't need citation (e.g., "linear regression"). Specific implementations, tools, and datasets should be cited.
- Subsequent mentions: A recitation is appropriate when:
- It would not be clear without it what method/paper is being referred to
- The method/paper is highly important in context and a reader would likely want to look it up from that sentence
Exception: Discussion section need not recite figure panels already cited in Results.
Tag: ISSUE (missing first citation), SUGGESTION (recommended recitation).
Check 4: Display Items Cited in Order (Reviewer)
Read the main text. Extract every reference to main figures, main tables, supplementary figures, supplementary tables, and extended data figures.
Check:
- All cited: Every display item from the structural summary must be referenced by number in the running text (not counting its own caption). Supplementary items listed only in the supplementary note captions but never referenced from the main text are considered uncited.
- Cited in order: First citations appear in ascending numerical order, checked separately per category (main figures, supplementary figures, etc.)
Tag: ISSUE (uncited items), WARNING (out-of-order).
Check 5: Correct Figure/Table Cited (Reviewer)
Read the main text. For each citation of a supplementary figure or table, view the cited item (inspect the image or load the table) and verify its content matches the text context.
Example: If the text says "significant enrichment in immune pathways (Supplementary Table 3)", verify Supplementary Table 3 actually contains pathway enrichment results.
Tag: ISSUE (clear mismatch — wrong number cited).
Check 6: Main Figures Cite Supplementary Tables (Reviewer)
Read figure captions. For each main figure presenting numerical results graphically (bar charts, scatter plots, heatmaps with data), check that the caption cites a supplementary table with underlying numerical results.
Skip purely schematic, conceptual, or workflow figures.
Tag: WARNING (figure with numerical results but no supplementary table citation).
Check 7: Author Affiliations & Emails (Reviewer)
Read the front matter. Check:
- Every author has at least one affiliation
- At least one corresponding author is designated
- Every corresponding author has an email address
Tag: ISSUE (missing affiliations or emails).
Check 8: Data & Code Availability (Reviewer)
Read the main text and find the data/code availability section. Read references/journal-policies.md from the skill directory for the target journal's policy.
Check:
- Section exists
- Conforms to the journal's required format and content
- Accession numbers, DOIs, and repository URLs are present where required
- Code availability is addressed (not just data)
If the target journal is not AJHG or Nature Genetics, search the web for that journal's policy.
Tag: ISSUE (missing section or major non-compliance), WARNING (minor gaps), SUGGESTION (improvements).
Check 9: Acknowledgments & Funding (Reviewer)
Read the main text. Check:
- Acknowledgments section exists
- At least one funding source is mentioned (grant number, funding agency)
Tag: WARNING (missing acknowledgments), SUGGESTION (no funding mentioned).
Check 10: Methods & Supplementary Note Cross-References (Reviewer)
Read the main text. Find every reference to "Methods", "the Methods section", "see Methods", "Supplementary Note", etc.
Methods references:
- Methods subsections should correspond ~1:1 with the order they're cited from the main text
- For each reference, verify it's clear which methods subsection is being cited based on sentence context and subsection titles
- Flag ambiguous references (multiple subsections could match)
Supplementary Note references:
- Each reference should make clear which part of the supplementary note is meant
- If unclear from context and subsection titles, suggest citing a specific subsection
Read {workdir}/supplementary-note.md if it exists to check subsection titles.
Tag: WARNING (ambiguous references), SUGGESTION (add specific subsection citations).
Check 11: Response to Reviewers — Accuracy (Reviewer, revision only)
Read the response to reviewers and the main text. For each reviewer comment:
- Response exists: Every comment has a response
- Action described: Most responses describe what was changed; flag those that don't
- Quoted text accurate: Any text quoted from the manuscript must match the current manuscript (minor formatting differences around citations are acceptable)
- Page/line numbers correct: Verify any referenced page, line, or section numbers
- Figure/table references correct: Verify any referenced display items exist and match context
Tag: ISSUE (incorrect quotes or references), WARNING (missing responses or actions).
Check 12: Major Changes Described in Response (Reviewer, revision only)
Read the main text and response to reviewers. Identify major changes:
- Added or removed figures/tables
- Added or removed paragraphs
- New or changed scientific findings/conclusions
- Added or removed analyses
Check each is described somewhere in the response.
Not major (don't flag): clarity edits (even if touching many sentences), changes to acknowledgments/formatting, minor wording adjustments.
If a previous version is available, diff it. Otherwise, look for paragraphs that address topics no reviewer raised.
Tag: WARNING (major change not described in response).
Check 13: Recent Missed References (Deep Review)
Read the main text to understand the paper's topic and scope. Review the reference list.
Perform at least 5 different web searches using varied keyword combinations to find recent papers (last 1-2 years) that might be relevant but aren't cited. Focus on:
- Direct methodological predecessors or competitors
- Recent applications of the same methods to similar data
- Recent papers on the same biological question
- Papers from the same research groups on related topics
Search PubMed, Google Scholar, and bioRxiv.
Tag: SUGGESTION with title, authors, year, link, and brief relevance explanation for each.
Check 14: Preprints Now Published (Deep Review)
Read the reference list. Identify all cited preprints (bioRxiv, medRxiv, arXiv, SSRN, Research Square, etc.).
For each preprint:
- Search by title on PubMed and Google Scholar
- Search by first and last author names + keywords
- Determine if a peer-reviewed version has been published
Tag: SUGGESTION with published citation details and link.
Check 15: Cover Letter (Reviewer)
Read the cover letter (if none exists, report WARNING and stop).
Check:
- Letterhead: Appears to be on institutional letterhead or contains institutional header
- Signature: Signed (author name at end, possibly with title)
- Date: Dated with a reasonable (recent) date
- Resubmission: If revision, includes manuscript/tracking number
Tag: ISSUE (missing required elements), WARNING (no cover letter).
Check 16: Suggested Reviewers (Deep Review, interactive — deferred)
Run this after all other checks complete.
If this is an initial submission: read the cover letter (if one exists) and check for suggested reviewers. If the cover letter doesn't include suggested reviewers, or if no cover letter exists, ask the user: "The cover letter does not include suggested reviewers. Would you like me to suggest some based on the manuscript's citations?"
If yes:
- Identify key citations (most relevant to the paper's contribution)
- Find the senior/corresponding author of each
- Search for those authors' recent work to confirm active interest
- Exclude anyone whose primary affiliation matches a corresponding author's
- Present 4-6 suggestions with: name, affiliation, rationale, and a representative publication link
Tag: SUGGESTION with reviewer list.
Check 17: Unsupported Statements (Reviewer)
Read the main text. Look for statements that should be supported by a citation, figure, or table but aren't:
- Results paragraphs: Every results paragraph stating analysis outcomes should cite at least one display item
- Methods citing datasets: If a methods subsection mentions "we analyzed N traits" or similar, those traits should usually be listed in a supplementary table, cited there
- Factual claims: Statements about what is known or has been shown should cite a source
- Exception: Discussion need not recite figure panels already cited in Results
Tag: WARNING (results without display items), SUGGESTION (other unsupported statements).
Check 18: Spelling, Grammar & Writing Quality (Deep Review)
Read the full main text. Check for:
- Spelling errors a word processor wouldn't catch: "compliment"/"complement", "principle"/"principal", "effect"/"affect", field-specific terms
- Grammatical errors: Subject-verb agreement, dangling modifiers, incorrect prepositions
- Informal language: Colloquialisms, contractions, overly casual phrasing
- Writing quality variation: Identify paragraphs or sections where writing is noticeably weaker than the rest
Do not flag stylistic preferences or suggest rewrites. Only flag clear errors or notably weak writing.
Tag: ISSUE (clear errors), SUGGESTION (weak sections — identify the specific paragraph).
Check 19: Terminology Consistency (Deep Review)
Read the full main text and view all figure images and table captions.
Check:
- Consistent terms: Same concept always referred to by the same term; flag if two terms are used for one thing
- Text-figure consistency: Terms and abbreviations in figure labels/legends match the text
- Text-table consistency: Same for tables
- Capitalization consistency: Terms capitalized the same way throughout
Tag: WARNING (inconsistencies, with specific locations).
Check 20: Undefined Acronyms (Reviewer)
Read the main text. Find every acronym (2+ capital letters, possibly with numbers).
For each:
- Check if defined at first use (e.g., "genome-wide association study (GWAS)")
- Check if defined in figure captions where it first appears in a figure
- Use judgment for universally understood acronyms in the field (DNA, RNA, SNP, etc.)
Tag: WARNING (undefined acronyms, noting where they first appear).
Report Assembly
After all check agents complete, compile {workdir}/report.md:
# Manuscript Finalization Report
**Date:** {date}
**Target Journal:** {journal}
**Submission Type:** {initial/revision}
## Summary
- Issues: {count}
- Warnings: {count}
- Suggestions: {count}
## Issues (must fix)
[All ISSUE findings, grouped by check number and title]
## Warnings (should review)
[All WARNING findings, grouped by check number and title]
## Suggestions (consider)
[All SUGGESTION findings, grouped by check number and title]
## Checks Passed
[List of checks with no findings]
Deduplication: When compiling the report, if the same finding is reported by multiple checks (e.g., a misspelling caught by both Check 7 and Check 18, or a term inconsistency caught by both Check 19 and Check 20), include it only once under the most relevant check and note the cross-reference.
Present the report to the user.
Post-Check Interactive Phase
After presenting the report:
- Citation formatting and existence (Check 2): If references were garbled, ask how to handle
- Suggested reviewers (Check 16): If applicable, run this deferred check
- Batch other questions: Present any questions that arose during checks
- Follow-up: Offer to help fix identified issues