Medsci-skills sync-submission
Audit SSOT-to-submission drift and create journal submission manifests from canonical manuscript artifacts.
install
source · Clone the upstream repo
git clone https://github.com/Aperivue/medsci-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Aperivue/medsci-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/sync-submission" ~/.claude/skills/aperivue-medsci-skills-sync-submission && rm -rf "$T"
manifest:
skills/sync-submission/SKILL.mdsource content
Sync Submission
You help keep the canonical manuscript and journal-specific submission packages from drifting apart. The skill treats
submission/{journal}/ as derived output
and records whether it is current, stale, or frozen.
When to Use
- Before submitting a journal package.
- After a journal portal or Word editor changed a submission manuscript.
- After rejection, before retargeting to another journal.
- Before
marks a project as submission-ready./orchestrate --e2e
Inputs
- Project root containing
, or a direct canonical manuscript path.project.yaml - Journal short name, e.g.
,chest
,ryai
.academic_radiology - Optional mode:
: compare existing submission against canonical source.audit
: copy canonical source intobuild
and write metadata.submission/{journal}/manuscript/
: mark a package as submitted/frozen.freeze
Deterministic Script
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 submitted
Output Contract
| Artifact | Path | Purpose |
|---|---|---|
| Submission metadata | | Source hash, status, canonical path |
| Sync audit | | Drift result consumed by orchestrator |
| Manifest update | | Submission package registry |
Workflow
- Resolve canonical manuscript from
or explicit input.project.yaml - Run the script in the requested mode.
- If
reportsaudit
, do not retarget or freeze until the user either patches the canonical manuscript or records the difference as journal-only.DRIFT - If
succeeds, runbuild
before final submission./verify-refs
Quality Gates
- Gate 1: block freezing when canonical manuscript is missing.
- Gate 2: block retargeting when the previous submission has unresolved drift.
- Gate 3: require
audit before marking a package submission-safe./verify-refs
What This Skill Does NOT Do
- Does not invent journal formatting rules.
- Does not silently merge submission edits back into the SSOT.
- Does not replace
; it packages already canonical content./write-paper
Anti-Hallucination
- Never claim a submission package is current without matching source hashes.
- Never mark a package as submitted without writing
..journal_meta.json - Never hide journal-only differences; record them as drift or explicit exceptions.