Nature-Style Scientific Figures
Yuan1z0825/nature-skills
Creates, revises, audits and exports manuscript-ready scientific figures in Python or R, and routes AI-generated graphical abstracts to a separate workflow.
A skill your agent uses when building, auditing or freezing a journal submission package from the canonical manuscript.
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Aperivue/medsci-skills sync-submission --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sync-submission .claude/skills/sync-submission && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .claude/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submissionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Aperivue/medsci-skills sync-submission --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/sync-submission .agents/skills/sync-submission && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .agents/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Aperivue/medsci-skills sync-submission --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/sync-submission .cursor/skills/sync-submission && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .cursor/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Aperivue/medsci-skills.git --path skills/sync-submission--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Aperivue/medsci-skills sync-submission --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/sync-submission .gemini/skills/sync-submission && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .gemini/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Aperivue/medsci-skills sync-submissionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/sync-submission .github/skills/sync-submission && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .github/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill sync-submission -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Aperivue/medsci-skills sync-submission --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/sync-submission .opencode/skills/sync-submission && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sync-submission" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/sync-submission into .opencode/skills/sync-submission/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-submission", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sync-submissionA skill your agent uses when building, auditing or freezing a journal submission package from the canonical manuscript.
Sync Submission is an agent skill from Aperivue/medsci-skills. Use when building, auditing or freezing a journal submission package from the canonical manuscript. Detects drift between the source and the per-journal submission copy, builds byte-preserving packages with manifests, and records current, stale or frozen status.
Its SKILL.md is about 7.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 105 other files, including scripts and reference files (for example `examples/build_synthetic_bundle.py`, `references/bundle_workflow.md` and `references/journal_availability_policy.json`).
It sits in Research & Science, covering Scientific writing. The repository describes itself as: Agent Skills for medical research — literature search, reporting-guideline & citation checks, statistics, publication figures, submission. Works with Claude Code, Codex, Cursor &… The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3b14ae2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 12 files in scripts/ (Python, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python3pythonpandocFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sync Submission loads about 7.7k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 3,437 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from Aperivue/medsci-skills at commit 3b14ae2, republished under its MIT licence (© Aperivue). 3,437 words, ~7,692 tokens.
.claude/skills/sync-submission/SKILL.md (or your agent's skills folder). This skill also uses 102 other files; get the full folder from GitHub.Keep the canonical manuscript and journal-specific submission packages from drifting apart.
Treat submission/{journal}/ as derived output and record whether it is current, stale, or frozen.
project.yaml, or a direct canonical manuscript path.chest, ryai, academic_radiology.audit: compare existing submission against canonical source.build: copy canonical source and optional declared final artifacts, preserving file bytes, and write metadata.freeze: freeze the chosen byte snapshot with its available check context (not submission approval).python "${CLAUDE_SKILL_DIR}/scripts/sync_submission.py" audit --project-root . --journal chest
python "${CLAUDE_SKILL_DIR}/scripts/sync_submission.py" build --project-root . --journal chest
python "${CLAUDE_SKILL_DIR}/scripts/sync_submission.py" freeze --project-root . --journal chest --status submittedFor double-blind journals, sweep author identifiers across all upload artifacts:
python "${CLAUDE_SKILL_DIR}/scripts/blind_sweep.py" \
--registry _shared/authors/author_registry.yaml \
--files submission/{journal}/supplementary/*.md submission/{journal}/cover_letter.md \
--backup-dir .cache/blind_sweep_backupThe registry is a project-local YAML mapping author identifiers (full names, native scripts, initials with/without periods, email, ORCID) to role labels (e.g., "Reviewer 1"); schema in scripts/author_registry_example.yaml. Never commit a populated registry to a public repository, because it lists the authors' identities — keep it next to the manuscript.
| Artifact | Path | Purpose |
|---|---|---|
| Submission metadata | submission/{journal}/.journal_meta.json | Source hash, status, canonical path |
| Sync audit | qc/submission_sync_{journal}.json | Drift result consumed by orchestrator |
| Manifest update | artifact_manifest.json | Submission package registry |
| Pre-flight gate | qc/preflight_gate_report.json | Aggregated halt-on-failure manifest (see "Pre-flight gate" below) |
| Supplement structure | qc/supplement_structure.json | Gate 14: index↔file 1:1, sub-section gaps, callout coverage |
For a complete bundle, run the existing renderers first, then build --bundle-spec bundle.json.
The declaration adds final Word/PDF, supplement, cover-letter, table/figure and notice files with
pinned render-input hashes and reuse-rights records. Copies preserve file bytes; content and visual
fidelity stay not_assessed until separately reviewed. Build refuses edited or frozen outputs and
destructive path collisions. Read bundle workflow for the schema,
a runnable synthetic example and the limits of each recorded check.
Run this once, right before freeze/submission:
python "${CLAUDE_SKILL_DIR}/scripts/preflight_gate.py" --project-root . --journal chest
# add --strict to also halt on the heuristic/conditional (P1) checks
# add --online to make fabricated / author-mismatched references halt (PubMed/CrossRef)
# add --double-blind to make the asset-anonymization scan haltIt shells out to the per-check scripts (reimplementing none), writes
qc/preflight_gate_report.json, and exits 0 clean, 1 halt (≥1 blocker), 2 gate config error
(e.g. a --require'd check could not run). A non-zero exit blocks the freeze.
check_placeholders.py), undefined [@key] citations (check_citation_keys.py), duplicate
references (verify_refs.py, offline-deterministic), a canonical-vs-submission hash mismatch
(sync_submission.py audit), and an internal-audit dump in a reviewer-facing file
(check_checklist_dump_leak.py).warn, halts only with --strict or --require ID: check_xref,
detect_copy_divergence, scope_drift_check, cover_letter_drift_check,
cross_document_n_check, check_cross_artifact_stale; check_asset_anonymization is P1 unless
--double-blind.skipped, never a blocker. A check that ran and failed — a traceback, an
unexpected exit code, or a "missing input" exit while its inputs are present (malformed
.journal_meta.json, an undecodable cover letter, a named --copy that does not exist, an
unreadable file in the N scan) — is recorded error: submission_safe is false and the gate
exits 2, with or without --strict.Do not read the report as approval. Its legacy submission_safe field means only "no configured
blocker/error"; readiness stays not_assessed; the optional bundle hash binding identifies the
package present during the run, not per-file visual inspection or every external check input. Run
audit again after preflight to expose current, stale or unbound evidence. Freeze records a byte
snapshot and its available check context; it does not run preflight or approve source fidelity or
reuse permissions.
Audit-dump leak check (P0). A /check-reporting or /self-review report is an internal working audit — auto-fix annotations, a raw JSON block (compliance_pct, fixable_by_ai, check_reporting_version), pipeline-log paths, "Action Items". It is not the official reporting checklist a journal expects and must never reach a reviewer, even when its filename looks official (e.g. STROBE_checklist_v4.pdf reused into a later package). scripts/check_checklist_dump_leak.py --dir submission/ scans every .md/.docx/.pdf in the package for these tokens; any hit is a P0 leak. The pre-flight runs it over the journal asset directory; confirm submission_safe: true before freeze. Writes qc/checklist_dump_leak.json.
Disclosure & availability check (standalone). Top medical-AI journals require, before review, an AI-use disclosure carrying four tokens (version + access channel + date/date-range + responsible party — the tool name only triggers the check) and Data/Code Availability statements. Run python3 ${CLAUDE_SKILL_DIR}/scripts/check_disclosure_availability.py --manuscript <file> --journal <stem> [--ai-study] [--require data_availability ...] [--strict] (reads references/journal_availability_policy.json). It blocks on a missing required statement or an AI disclosure that is present but missing a token / carrying a placeholder; "available on reasonable request" where the journal expects a repository is a P1 warning. Writes qc/disclosure_availability_report.json.
project.yaml or explicit input.audit reports DRIFT, do not retarget or freeze until the user either
patches the canonical manuscript or records the difference as journal-only.
Never silently merge submission edits back into the SSOT, and never hide a
journal-only difference — record it as drift or an explicit exception.build succeeds, run /verify-refs before final submission.freeze, which writes .journal_meta.json.Gate 0 (pre-flight, last step before freeze): run scripts/preflight_gate.py as in "Pre-flight gate" above; non-zero exit blocks the freeze. It orchestrates Gates 1–3, 5b, 5c, 5d, 8, 9, 11, 11b, the Phase 3b/3c checks, and the placeholder and citation-key checks; each gate also runs on its own.
Gate 1: block freezing when canonical manuscript is missing.
Gate 2: block retargeting when the previous submission has unresolved drift.
Gate 3: require /verify-refs audit before marking a package submission-safe. The pre-flight's offline references pass covers only duplicates and pagination placeholders; an online /verify-refs --strict against PubMed/CrossRef is the authoritative fabrication and author-name check.
Gate 4 (recursive docx walk): every docx stale-string audit must walk paragraphs + tables + nested-table cells recursively. document.paragraphs skips table cells, document.tables does not recurse, and paragraph.runs hides runs inside <w:hyperlink> — and figures, captions and reporting checklists often sit in 1×1 or nested tables. For run-level edits near hyperlinks or fields, inspect the paragraph XML, not .runs: a hidden inline element can look like an empty () and be "fixed" into a real defect.
Gate 5 (portal free-text fields): cover letter, data availability, acknowledgements, abstract and author contributions are often typed into the portal, outside any docx this skill audits. Before freeze, diff the portal's final review page against the manuscript body 1:1 and treat each field as its own drift target.
Gate 5c (portal-field markdown residue): portal paste-verbatim .txt fields (abstract.txt, keywords.txt, …) are cut from the markdown but never stripped of it, so a trailing ---, a **bold**, or a cm^2^ superscript publishes literally. The pre-flight runs scripts/check_portal_field_residue.py --dir portal_fields/ (P1, --strict-promotable); only .txt is scanned (a .md is meant to carry markdown). Its Minor char_expansion advisory flags ≥/≤, which ScholarOne expands to "{greater than or equal to}" (five words), inflating the word count — pre-substitute >=/<= (only ≥/≤; × and the en-dash paste cleanly).
Gate 5d (figure portal readiness): a figure bounces at the upload button for reasons decidable from the file on disk — byte size (JACC: Asia caps a figure at 25 MB) and extension (SNAPP accepts only .tiff/.jpeg/.eps, rejecting .png). The pre-flight runs scripts/figure_portal_readiness_check.py --figures-dir <dir> (P1) over submission/<journal>/figures (or ./figures), emitting FIGURE_OVERSIZE and — when the portal's formats are supplied, e.g. --figure-accept tiff --figure-accept jpeg --figure-accept eps — FIGURE_FORMAT_REJECTED. Fix by regenerating with /make-figures export_portal_tiff.py (LZW + RGBA→RGB flatten). No figures directory → skipped, never an error.
Gate 6 (double-blind journals): a clean manuscript blind does not imply a clean portal blind. Before freeze, export the portal's blinded review PDF — the authoritative drift detector — and grep for all author identifiers across the entire upload set: manuscript; supplementary materials (especially methodology logs, agreement metrics, amendment logs); cover letter (a separately uploaded file is reviewer-visible unless toggled "Don't show in review PDF"); registry/approval PDFs (PROSPERO, ClinicalTrials.gov, IRB); portal Letter-field text if a signature was pasted; response-to-reviewers in revision rounds. Cover both period and no-period initials (G.S. and GS), full names in roman + native scripts, institution names, ORCID IDs and submission email domains.
Gate 7 (text-only docx rebuilds): never use pandoc --reference-doc=manuscript.docx for response/cover/supplementary text-only docx, because the reference docx ships its embedded media (figure files) into the new docx, bloating it 50–100×. Use plain pandoc input.md -o output.docx. If such a file grows past 100 KB, unzip -l output.docx | grep word/media/ should come back empty.
Gate 5b (cover-letter free-text drift): before freeze — see Phase 4.
Gate 8 (cross-document N consistency): before freeze — see Phase 5.
Gate 9 (intra-manuscript scope drift): see Phase 6.
Gate 10 (v_(N+1) docx regeneration): when building from a frozen prior version — see Phase 7.
Gate 11 (multi-copy divergence): before freeze or circulation — see Phase 8.
Gate 11b (reframe / headline-change survivor scan): after a revision that reframes a claim class (e.g. retires "location-stratified benchmark" for "overall pooled") or changes a headline number, the old term/value often survives in an untouched paragraph, legend, the supplement or the response letter — even when the letter claims the change was applied "throughout". Pass the retired vocabulary and superseded values from the reframe diff to the cross-artifact gate, which scans the body and every aux artifact:
python3 "${CLAUDE_SKILL_DIR}/scripts/check_cross_artifact_stale.py" \
--manuscript manuscript.md --aux supplement/ --aux figures/legends.md --aux revision/response_to_reviewers.md \
--retired-term "location-stratified benchmark" --old-value 1.72A retired_framing_survivor / stale_old_value finding is a P1 stale claim-site. --aux takes files or folders: .docx sidecars are read, and figure scripts (.py/.R) are swept for stale literals only. An --aux that holds no readable file exits 2 instead of passing, and unreadable documents (.pdf, .pptx, …) are listed as not checked. For any wording or number change, also grep the OLD string across the entire SSOT tree, never a subset, and watch for substring near-misses — an exact grep for expertise-dependent patterns passes while expertise-dependent evaluation patterns stays stale.
Gate 12 (target-journal metadata drift): on build / retarget, compare the target the manuscript is written for — project.yaml target (and any in-manuscript header/footer "for submission to X" string) — against the journal the package is built for, and check the structural metadata the target dictates — abstract heading structure (4- vs 5-heading), body word limit, citation style (Vancouver / AMA), required elements (Highlights / Central Illustration / Key Points). A mismatch (e.g., a header still reading the previous journal after a cascade retarget, or a 4-heading abstract for a 5-heading target) is a target-restructure trigger — branch to v_(N+1) and sync every sidecar (cover letter, title page, ICMJE COI list) — not a silent build.
# header target vs project.yaml target
TGT=$(python3 -c "import yaml;print(yaml.safe_load(open('project.yaml')).get('target',''))" 2>/dev/null)
grep -niE 'for submission to|submitted to|prepared for' manuscript/manuscript.md # compare against "$TGT"Gate 13 (body word count vs journal cap — the revision-inflation trap): resolving reviewer majors adds words, so a revised body silently breaches the journal's limit. Before freeze and after every /revise pass, run scripts/check_wordcount_cap.py against the target journal profile's body cap. WORDCOUNT_OVER_CAP is a P0 (relocate methods/sensitivity detail to the Supplement); WORDCOUNT_NEAR_CAP (>0.95×) warns that the next pass will breach. The binding number is the rendered count (citeproc expands [@key] → "(Author Year)"), so prefer the built DOCX count with --rendered-words N; otherwise the script estimates it from the markdown body + inline-citation expansion.
python3 "${CLAUDE_SKILL_DIR}/scripts/check_wordcount_cap.py" \
--manuscript manuscript/manuscript.md \
--journal-profile "${CLAUDE_SKILL_DIR}/../find-journal/references/journal_profiles/<Journal>.md" \
--article-type "Original Article" --out qc/wordcount_cap.json --strict
# or, deterministic: --limit <the journal's body cap> (and --rendered-words N from the built DOCX when available)The profile cap is read only from a structured field: the body-limit column of an article-type
table (| Type | Body Word Limit | Abstract | ... |), or, when no table carries the type, a list
item that starts with it (- Original Article (4,000 words, ...)). Prose that merely mentions
the type (often an abstract limit) is never read; when no single number results, or the cell
holds more than one number, the script exits 2 and asks for --limit.
Gate 14 (supplement structure — the numbering lock): a supplement of S{N}_*.md sections plus an index, hand-concatenated into _combined.md, desynchronizes across revision rounds — an index row with no file, a file the index never lists, two files claiming the same S{N}, a sub-section gap after an insert (S6.3 then S6.5) — and "Supplementary Table S9" opens the wrong content. Before freeze, run scripts/assemble_supplement.py to validate index↔file 1:1, rebuild _combined.md in index order (reproducible rather than hand-maintained), and — with --manuscript — report body callouts with no section file (CALLOUT_WITHOUT_SECTION) and section files the body never cites (SECTION_UNCITED). The four structural kinds are P0 under --strict; coverage findings are advisory.
python3 "${CLAUDE_SKILL_DIR}/scripts/assemble_supplement.py" \
--dir submission/{journal}/supplementary --index 00_index.md \
--manuscript manuscript/manuscript.md \
--out submission/{journal}/supplementary/_combined.md \
--json qc/supplement_structure.json --strictOn some portals the box, not the manuscript, is what gets published. SNAPP says so at Author Contributions, Competing Interests, Data Availability and Acknowledgements: "This replaces any statement written within the manuscript and is the one that we will publish." A declaration that lives only in the manuscript then vanishes from the published record, and nothing warns you. Two that nearly did:
† title-page footnote. There is no equal-contribution
checkbox — unless "X and Y contributed equally to this work" is typed into the Author
Contributions box, the published paper has no co-first authors.Do not hand-compose the boxes. Generate them from the manuscript, then check:
SS="${CLAUDE_SKILL_DIR}/scripts"
# scaffold every replacing field straight from the manuscript (lifts the equal-contribution
# sentence in from the title page, which is the one place --emit cannot copy it from)
python3 "$SS/check_portal_mirror.py" --manuscript manuscript/manuscript.md \
--profile "<...>/journal_profiles/npj_Digital_Medicine.md" --emit portal_fields/
# then verify nothing was lost on the way to the box
python3 "$SS/check_portal_mirror.py" --manuscript manuscript/manuscript.md \
--portal-dir portal_fields/ --profile "<...>/npj_Digital_Medicine.md" \
--out qc/portal_mirror.json| Verdict | Fires when |
|---|---|
PORTAL_FIELD_NOT_MIRRORED | A sentence in a replacing manuscript section has no home in that field's paste artifact. |
PORTAL_FIELD_MISSING | The manuscript has the section, the journal replaces it, and no artifact exists — the field publishes empty or as the portal's auto-extraction guessed it. |
EQUAL_CONTRIBUTION_NOT_IN_PORTAL | The manuscript asserts equal / co-first contribution and the Author Contributions text does not. |
All three are major and exit 1; the pre-flight runs this as P1 (--strict-promotable).
Which fields replace is a journal fact, not a guess. It is read from the journal profile's
## Portal Mechanics block (Fields that REPLACE the manuscript: …). For a journal whose portal
contract was never recorded the check exits 2 and asserts nothing — record the block at first
submission rather than inventing a contract. Matching is graded through _quote_match.py, so a
sentence re-flowed while pasting is not reported as lost.
A contribution taxonomy is a published factual claim, but the work behind a term often leaves no repository artifact (a legitimate Conceptualization may live only in email). So the taxonomy is gated and corroboration is only a prompt.
python3 "${CLAUDE_SKILL_DIR}/scripts/check_credit_integrity.py" \
--manuscript manuscript/manuscript.md --out qc/credit_integrity.json| Verdict | Severity | Fires when |
|---|---|---|
CREDIT_TERM_INVALID | major | A term outside the official fourteen in a section that says CRediT — "Statistical analysis", "Manuscript writing", "Study design" read as CRediT and are not. The message names the intended term. |
CREDIT_INITIALS_UNRESOLVED | major | Initials matching no author, or two — the residue a byline edit leaves. |
CREDIT_AUTHOR_UNLISTED | major | A byline author with no contribution attributed (under ICMJE, an authorship question or a dropped clause). |
CREDIT_UNCORROBORATED | prompt | A term whose footprint is absent — Visualization on a paper with no figures, Software with no Code Availability statement, or (only with --contribution-record) a contributor absent from the record. |
Never gate author order or equal-contribution designation — they are negotiated, and negotiation is legitimate. Answer a corroboration prompt with an attestation; do not fail the build on an off-repo contribution. With fewer than two resolvable byline names the author/initials cross-check is skipped and says so; with no contributions section the script exits 2 and asserts nothing.
The cover letter's ## Article details block — body word count, abstract word count, reference
count, table/figure count — is a sidecar that goes stale when a manuscript branches v_N →
v_(N+1) (word-limit retarget, abstract restructure, late reference batch), and no docx-level
audit covers it. scripts/cover_letter_drift_check.py measures the manuscript and compares it
to the letter's numeric claims:
python "${CLAUDE_SKILL_DIR}/scripts/cover_letter_drift_check.py" \
--manuscript manuscript.md \
--cover-letter cover_letter.md \
--refs refs.bib \
--out qc/cover_letter_drift.jsonReference / table / figure counts must match exactly; abstract words tolerate ±5; body words tolerate 5%, narrowed to the headroom when the letter states the count against the cap ("3,998/4,000 words"). Resolve drift by regenerating the cover letter from the manuscript at v_(N+1) build time. The script never edits the cover letter, which stays a deliberate authored artifact.
Abstract, body prose, PROSPERO record, cover letter, supplementary extraction sheets, INDEX and
PRISMA flow caption all repeat the same k included / k excluded / N patients totals, and
any disagreement reads to reviewers as a data-integrity or late-edit failure.
scripts/cross_document_n_check.py extracts every "N <noun>" claim by category (patients, cases,
included, excluded, nodules, tumors, studies_total); a category with more than one distinct
integer value is a P0 drift. With --root it scans the manuscript, abstract, PROSPERO, root and
per-journal (submission/<journal>/) cover letters, supplement/ and supplementary/. A matched
file that cannot be read as UTF-8 is listed under unreadable_files (never files_scanned) and
the script exits 2, so incomplete coverage cannot read as a pass.
python "${CLAUDE_SKILL_DIR}/scripts/cross_document_n_check.py" \
--root . \
--out qc/cross_document_n.jsonWhen the project has frozen a 2_Data/FINAL_POOL_LOCK.yaml from /meta-analysis
Phase 3f.5, pass it as the authoritative anchor:
python "${CLAUDE_SKILL_DIR}/scripts/cross_document_n_check.py" \
--root . \
--pool-lock 2_Data/FINAL_POOL_LOCK.yaml \
--out qc/cross_document_n.jsonTreat submission_safe: false in qc/cross_document_n.json as a halt. Resolve drift by tracing
each location to its data artifact (extraction sheet, PRISMA cascade TSVs) and correcting the
document(s) that disagree with the locked count.
scripts/scope_drift_check.py detects two P0 patterns:
python "${CLAUDE_SKILL_DIR}/scripts/scope_drift_check.py" \
--manuscript manuscript.md \
--prospero prospero/prospero_v2.md \
--out qc/scope_drift.jsonResolution: either (a) propagate the anchor into Methods + Results as a primary report or (b) remove it from Limitations / Discussion. For synthesis-method drift, file a PROSPERO amendment and update Methods to match — both must agree before submission.
PROSPERO's public-record "Print/PDF" export renders only the current amendment; older versions are reachable only through the version-history dropdown. When citing PROSPERO version state, never rely on a single PDF export — save each published version's PDF independently and state in the cover letter/supplement which version anchors the methodology and which reflects a documentation-only erratum. For such an erratum (a narrative fact, no change to methods/eligibility/synthesis), prefer a single Revision-Note append over a new structured amendment.
When a v_(N+1) is built from a frozen v_N package (after a markdown body edit, reviewer round,
or cascade-rejection re-target), the v_(N+1) docx MUST differ from the v_N docx. The common
silent revert is a cp v_N/manuscript.docx v_(N+1)/manuscript.docx step that skips the pandoc /
Zotero CWYW regeneration: the markdown is edited, but the portal receives the frozen v_N docx.
Run the byte-identity assertion at the top of the v_(N+1) submission gate — even when the
upstream pipeline appears to have regenerated the docx:
python3 "${CLAUDE_SKILL_DIR}/scripts/verify_package_integrity.py" \
--assert-vN-docx-changed \
--vN-docx SUBMISSION/<journal>/v<N>/manuscript.docx \
--new-docx SUBMISSION/<journal>/v<N+1>/manuscript.docxIdentical MD5 → exit 1. Block submission until the regeneration step is fixed.
When a project hand-maintains several manuscript copies — manuscript.md (the working SSOT),
manuscript_circulation.md (co-author feedback), and submission/<journal>/manuscript.md
(portal) — SSOT edits routinely land in only some copies. Before freezing a package or sending a
circulation round, run the directional detector (SSOT → each copy):
python3 ${CLAUDE_SKILL_DIR}/scripts/detect_copy_divergence.py \
--ssot manuscript.md \
--copy manuscript_circulation.md \
--copy submission/<journal>/manuscript.md \
--out qc/copy_divergence.json --strictIt reports, per copy, the SSOT claims (numeric assertions — n = N, percentages, p,
OR/HR/RR, 95% CI — and section headings) that did not propagate. A STALE_COPY (DIVERGENT
overall) is a P0 blocker: re-propagate the claims, or — better — stop hand-maintaining
parallel copies and generate the circulation / submission variants from the single SSOT via a
build step (pandoc transform). Only a changed or absent number/heading registers, not wording.
A numeric claim present only in the copy (stale_in_copy, e.g. an old n = 118 left beside
the propagated n = 120) also makes the copy STALE_COPY; a copy-only heading (a circulation
cover note) is listed in copy_only but does not. A --copy path that does not exist exits 2.
Read ${CLAUDE_SKILL_DIR}/references/springer_em_packaging.md when a Springer Editorial Manager
journal offers only Manuscript / Figure / Table / Supplementary / LaTeX upload item types (no
Title Page or Cover Letter slot).
Every revision round asks for a marked manuscript: the revised paper with tracked changes against the version the reviewers saw.
The baseline is R0, not the previous round. The base of the diff is always the originally reviewed submission; only the target advances each round. An editor wants every change made since the version under review, so do not diff v7 against v8.
Word's Compare is the only safe producer — but it is scriptable. pandiff and LibreOffice --compare corrupt OOXML on real manuscripts (tables collapse, affiliation superscripts are lost); do not use them. Word for Mac exposes compare through AppleScript with author name, so the build needs no GUI pass and no post-hoc rewriting of w:author:
python3 "${CLAUDE_SKILL_DIR}/scripts/build_marked_manuscript.py" \
--original submission/{journal}/R0/manuscript.docx \
--revised submission/{journal}/R1/manuscript_clean.docx \
--out submission/{journal}/R1/manuscript_marked.docx \
--author "Submitting Author" --line-numbers(macOS + Word only. On any other platform, produce the marked file in Word by hand — then still run the gate below.)
"The marked file contains sentence X" passes even when Compare has dropped a paragraph, duplicated one, or split the revisions between two authors. Verify by construction — accepting every revision must reproduce the revised manuscript exactly, and rejecting every revision must reproduce the original:
python3 "${CLAUDE_SKILL_DIR}/scripts/check_marked_manuscript.py" \
--marked submission/{journal}/R1/manuscript_marked.docx \
--original submission/{journal}/R0/manuscript.docx \
--revised submission/{journal}/R1/manuscript_clean.docx \
--author "Submitting Author" --strictThe gate is move-aware: Word encodes relocated content as w:moveFrom / w:moveTo, not w:ins / w:del, and a verifier that knew only insert/delete would see a moved paragraph twice and call a good file corrupt. Read ${CLAUDE_SKILL_DIR}/references/marked_manuscript.md when the gate reports a verdict, before writing any other docx probe, or when the marked file is too large to upload.
© Aperivue, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 102 other files (scripts, references) in skills/sync-submission of Aperivue/medsci-skills.
Open the folder on GitHubat commit 3b14ae2
Sync Submission next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sync Submission this skillAperivue/medsci-skills | 331 | — | ~7.7k | Automated safety check: Pass | MIT | |
| Nature-Style Scientific FiguresYuan1z0825/nature-skills | 47k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Citation Verification GuideGalaxy-Dawn/claude-scholar | 5.7k | 2 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Citation ManagementK-Dense-AI/claude-scientific-writer | 2.4k | 2 repos | ~3.9k | Automated safety check: Notes | MIT | |
| Academic Paper Composerlishix520/academic-paper-skills | 1.4k | 2 repos | ~6.3k | Automated safety check: Pass | MIT | |
| Academic Paper Writing PipelineImbad0202/academic-research-skills | 51k | — | ~16k | Automated safety check: Pass | Custom licence |
Yuan1z0825/nature-skills
Creates, revises, audits and exports manuscript-ready scientific figures in Python or R, and routes AI-generated graphical abstracts to a separate workflow.
Galaxy-Dawn/claude-scholar
Reference guidance for checking every citation in academic writing against canonical sources such as DOI, arXiv, CrossRef and Semantic Scholar, to catch fake or wrong references.
K-Dense-AI/claude-scientific-writer
Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.
lishix520/academic-paper-skills
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript.
Imbad0202/academic-research-skills
Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.
davila7/claude-code-templates
Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.
Aperivue/medsci-skills
A skill your agent uses when turning a folder of research PDFs into Obsidian notes, even if Obsidian is not named.
Aperivue/medsci-skills
A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).
Aperivue/medsci-skills
A skill your agent uses when checking a radiology or medical AI study design before drafting or submission.
Aperivue/medsci-skills
A skill your agent uses when each author needs an ICMJE Conflict of Interest disclosure form (coidisclosure.docx) for submission.
Aperivue/medsci-skills
A skill your agent uses when an institutional Word form (.doc/.docx IRB protocol, ethics application, grant template) must be filled without breaking its styles, tables, fonts or page layout.
Aperivue/medsci-skills
A skill your agent uses when looking for research topics a longitudinal cohort database can answer (NHIS, UK Biobank, an institutional EMR or registry).
Categories
A skill your agent uses when building, auditing or freezing a journal submission package from the canonical manuscript. Sync Submission is an agent skill from Aperivue/medsci-skills. Use when building, auditing or freezing a journal submission package from the canonical manuscript.
Sync Submission fits situations like: freezing a journal submission package from the canonical manuscript; tasks that involve Scientific writing.
Run `npx skills add Aperivue/medsci-skills --skill sync-submission -a claude-code`. Or copy the skill folder (skills/sync-submission in Aperivue/medsci-skills) into .claude/skills/sync-submission in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Aperivue/medsci-skills --skill sync-submission -a codex`. Or copy the skill folder (skills/sync-submission in Aperivue/medsci-skills) into .agents/skills/sync-submission in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Aperivue/medsci-skills --skill sync-submission -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sync-submission, .gemini/skills/sync-submission, .github/skills/sync-submission and .opencode/skills/sync-submission in your project.
Going by SKILL.md and its folder, Sync Submission needs Python for the scripts in its folder and the command-line tools its instructions call (python3, python and pandoc). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Sync Submission is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 7.7k tokens (SKILL.md is roughly 31k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Sync Submission: Nature-Style Scientific Figures (Yuan1z0825/nature-skills, 47k stars), Citation Verification Guide (Galaxy-Dawn/claude-scholar, 5.7k stars), Citation Management (K-Dense-AI/claude-scientific-writer, 2.4k stars) and Academic Paper Composer (lishix520/academic-paper-skills, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Aperivue (a GitHub organization) maintains it in Aperivue/medsci-skills, which has 331 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on October 5, 2026.
Source: Aperivue/medsci-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.