MCPInstall
aperivue avatar

orchestrate

Use when the user describes a research goal without naming a skill, or the task spans several skills. Classifies the request, plans the order and routes to the right medsci-skills skill(s) instead of producing their output itself.

Installs
123
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/aperivue/medsci-skills --skill orchestrate
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads orchestrate automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Orchestrate Skill

Route research requests in the medsci-skills bundle to the right skill, or chain several skills in the correct order. You classify, plan and delegate: never produce a routed skill's output yourself — invoke the skill that owns it.


Available Skills

SkillDomainWhen to Route
search-litLiteratureFind papers, verify citations, build reference lists, check if a topic has been studied
design-studyMethodologyReview study design, identify leakage/bias, pick reporting guideline, validate analysis plan
intake-projectProject setupNew or messy project folder, "what is this project?", classify and scaffold
manage-projectProject mgmtScaffold directories, track progress, generate checklists and timelines
analyze-statsStatisticsGenerate R/Python code for diagnostic accuracy, demographics, meta-analysis stats, agreement, regression (logistic/linear), propensity score, repeated measures
make-figuresVisualizationROC curves, forest plots, flow diagrams (PRISMA/CONSORT/STARD), Kaplan-Meier, Bland-Altman, visual/graphical abstracts
meta-analysisSystematic reviewFull MA pipeline: protocol, search, screening, extraction, synthesis, PRISMA-DTA
write-paperWritingIMRAD manuscript drafting (8-phase pipeline), any section writing
self-reviewQualityPre-submission self-check with domain probes (Survival / SR-MA / Radiomics / Narrative); optional --panel for a high-stakes final QC pass
check-reportingComplianceAudit against 49 reporting guidelines and risk-of-bias tools
reviseRevisionParse reviewer comments, generate point-by-point response, track changes
grant-builderFundingStructure grant proposals: significance, innovation, approach, milestones
present-paperPresentationPrepare academic talks: analyze paper, draft scripts, inject slide notes, Q&A prep
publish-skillPackagingConvert a personal skill into an open-source distributable package
calc-sample-sizeStatisticsSample size calculation (17 tests including Cox EPV), power analysis, IRB justification text
find-journalSubmissionJournal recommendation based on abstract/scope matching, post-rejection re-targeting
add-journalJournal DBAdd a new journal to the profile database; extracts metadata from author guidelines
fulltext-retrievalLiteratureBatch download open-access PDFs by DOI using Unpaywall, PMC, OpenAlex APIs
deidentifyData safetyDe-identify clinical data containing PHI before any LLM processing. Standalone Python CLI (no LLM).
clean-dataDataData profiling, missing value flagging, outlier detection, cleaning code generation
generate-codebookDataGenerate a citable data dictionary/codebook from a dataset; flags coded variables as [NEEDS DICTIONARY]; feeds /define-variables
version-datasetDataContent-hash manifest of a dataset; verify drift (schema/rows/values) and diff versions; reproducibility lock
write-protocolProtocolIRB/ethics protocol drafting, 4 core sections + 6 skeleton sections with TODO markers
define-variablesOperationalizationLiterature-grounded variable definitions, cutoffs, DB-variable mappings; runs between /search-lit and /write-protocol for observational studies
verify-refsReference auditRead-only PubMed/CrossRef audit of manuscript references; first-author cross-check; sole writer of qc/reference_audit.json. Never modifies refs
manage-refsReference lifecycleCitekey validation, journal-CSL pandoc rendering, manuscript ↔ DOCX cross-reference QC, [N] ↔ [@key] marker conversion, Zotero CWYW field-code injection. Sole writer of manuscript_final.docx, qc/xref_audit.json
lit-syncReference syncZotero collection ↔ Better BibTeX manuscript/_src/refs.bib ↔ Obsidian literature notes. Sole writer of refs.bib (auto-export); upstream of manage-refs
obsidian-paper-vaultVault buildA folder of PDFs → templated Obsidian literature notes + atomic concept notes synthesized across them. Enters the same vault folders as lit-sync from the PDF side
humanizeQualityAI-pattern density sweep (<2.0/1000 words target); rewrites flagged passages while preserving technical accuracy. Phase 7.5 of write-paper
academic-aioVisibilityAI-search-engine optimization for medical AI papers (Perplexity, ChatGPT web, Elicit, Consensus, SciSpace, RAG tools). Opt-in checklist; never auto-applies edits
render-pdf-docDocument layoutNon-bibliography academic markdown → PDF (proposal, briefing, anchor doc, IRB cover, reference table), CJK-aware. Boundary opposite of manage-refs scripts/render_pandoc.sh
fill-protocolForm fillingInstitutional Word form filling (.doc/.docx) for IRB/ethics/grant templates; renders write-protocol content into the institutional template
fill-icmje-coiForm fillingBatch ICMJE COI Disclosure Form generation per author from a synthetic seed
sync-submissionSubmissionSSOT-to-submission drift audit; journal-specific submission manifest creation from canonical manuscript artifacts
peer-reviewReviewExternal manuscript peer review draft generation (journal-specific formatting). Use ONLY for reviewing other authors' work, never for self-review
review-paperWritingScaffold/draft a literature review (narrative / scoping PRISMA-ScR / systematic). Distinct from write-paper (original research) and meta-analysis (pooling)
polish-languageQualityAcademic-English consistency lint + non-native clarity polish (abbreviations, US/UK spelling, ranges, P/p case, units). Style-only; distinct from humanize (AI-tell removal) and check-reporting (guideline items)
author-strategyAnalysisPubMed author-profile analysis: study-type classification, trajectory-archetype, publication-strategy report from a name
batch-cohortAnalysisGenerate N analysis scripts from one validated methodology template × many exposure/outcome combinations (same method, swap variables) + summary matrix
replicate-studyAnalysisReplicate an existing cohort study's methodology on a different database: design extraction, variable-harmonization table, replication-difference report
cross-nationalAnalysisCross-national comparison study (KNHANES + NHANES + CHNS or parallel surveys): variable harmonization + parallel weighted analysis
ma-scoutSystematic reviewMeta-analysis topic discovery + feasibility (professor-first profile→gap, or topic-first question→gap→co-author) before a protocol exists
find-cohort-gapMethodologyResearch-gap discovery from a longitudinal cohort DB: profile strengths, match PI expertise, literature-saturation scan, ranked topic proposals
design-ai-benchmarkingMethodologyDesign/validity review for benchmarking AI systems against a human-expert reference panel (rubrics, calibration probes, panel construction, IRR targets) — before data collection
model-selectionModelingChoose the model for an imaging study: a paper-grounded architecture family (task + modality + data scale + imbalance → shortlist), then vet the concrete repo / checkpoint (licence, version pin, weight provenance; flags an evaluation arm on the benchmark the model was developed or tuned on)
imaging-dataModelingProfile an imaging dataset before any modelling decision (spacing/orientation, intensity domain, label integrity, foreground fraction, target volume) and gate it against the plan; then plan/audit DICOM/NIfTI intake, resampling, normalisation and augmentation with a preprocessing manifest + data-stage leakage gate before model-scaffold
model-scaffoldModelingGenerate a reproducible runnable PyTorch training repo (patient-level seed-locked split, task model, train/eval scripts, repro record) — between choosing an architecture and validating a trained model
radiomics-mlModelingProduce/audit a radiomics / tabular-ML study (imaging or clinical features → penalised logistic / SVM / RF / gradient-boosting / MLP → outcome) with a nested-CV / feature-stability / calibration / external-validation gate (no GPU)
model-assessmentValidationValidate/evaluate a trained imaging model: split-leakage gate + validation design (internal vs external, comparator, sizing); task-correct held-out metrics (Dice + boundary, AUROC + AUPRC with bootstrap CIs, FROC/mAP, calibration, subgroups) → per-case table; uncertainty/OOD/abstention for deployment claims; Grad-CAM/explainability sanity checks + localisation
mllm-evalEvaluationDesign/audit an evaluation harness for an LLM/MLLM clinical task (report generation, VQA, extraction/classification): adjudicated reference, clinical-efficacy metrics beyond BLEU/ROUGE, hallucination, contamination, prompt-sensitivity, reader study
model-cardDocumentationGenerate a Model Card + Datasheet + data-quality pass for an engineer-built imaging model from user-supplied facts, with a completeness gate
contributeSetupOffer a local edit (a journal profile, a fix) back as a pull request or issue without typing git; blocks on patient data in the diff and sends nothing until confirmed. Also files a false positive or a failed step
setup-medsciSetupRead-only runtime diagnostic (Python, R, Node, Claude Code, Git, Zotero, MCP servers): pass/fail table with the setup doc for each missing component

Classification Logic

Classify each request into one of these intents.

Single-skill requests (route directly)

Route to the skill whose Available Skills row matches: name it with a one-line reason, then invoke it. The rows below cover modes and flags, look-alike skills, and non-English phrasings:

User says something like...Route to
"I have a messy folder, help me organize"/intake-project
"Set up a new project" / "Create project scaffold"/manage-project init
"Review my manuscript before submission"/self-review
"Brutally / harshly check before submission" / "top-tier journal final check" / "multi-reviewer / panel review" / "review it from stats, clinical, and imaging angles" / "혹독하게 제출 전 점검"/self-review --panel --json
"Review someone else's manuscript" / "Journal club critique draft" / "외부 논문 리뷰 답변"/peer-review
"Which journal should I submit to?" / "Find a journal" / "I was rejected, where else?"/find-journal
"Sync submission" / "Retarget journal" / "Check SSOT drift"/sync-submission
"Add a journal profile" / "저널 프로필 추가"/add-journal
"Download PDFs" / "Get full texts" / "PDF 다운로드"/fulltext-retrieval
"Visual abstract 만들어줘" / "Graphical abstract" / "GA 생성"/make-figures
"De-identify my data" / "Remove PHI" / "비식별화" / "익명화" / "Anonymize patient data"/deidentify
"Write an IRB protocol" / "Draft ethics submission" / "Research protocol"/write-protocol
"Fill IRB protocol form" / "기관 양식 채워줘" / "심사면제 요청서 채움" / "동의면제 양식"/fill-protocol
"Define my variables" / "Justify cutoff" / "Phenotype definition" / "변수 정의 근거" / "ad-hoc 정의 피하기"/define-variables
"Write a case report" / "I have an interesting case"/write-paper (case-report mode)
"Generate a cover letter" / "Write cover letter for submission"/write-paper (Phase 8+, requires completed manuscript)
"Render manuscript to DOCX" / "Build final .docx" / "Cascade reformat references" / "Apply journal CSL" / "Re-render with Vancouver" / "회람용 docx" / "Zotero CWYW injection"/manage-refs
"Render proposal to PDF" / "Anchor doc PDF" / "한글 학술 PDF" / "Briefing handout PDF" / "IRB cover PDF" / "non-bib markdown → PDF"/render-pdf-doc
"Sync Zotero" / "Refresh refs.bib" / "Better BibTeX export" / "Zotero ↔ Obsidian 동기화" / "literature note 만들어줘"/lit-sync
"PDF를 Obsidian 노트로" / "논문 요약 노트 만들어줘" / "이 폴더의 PDF 정리해줘" / "build a paper vault" / "second brain" / "extract concepts from papers"/obsidian-paper-vault
"ICMJE COI 양식 일괄 생성" / "공저자 COI 폼 만들기" / "Disclosure form batch"/fill-icmje-coi
"AI search optimization" / "Perplexity-friendly abstract" / "RAG visibility" / "GEO checklist" / "Elicit/Consensus 노출"/academic-aio
"Remove AI patterns" / "AI 티 제거" / "humanize this section" / "GPT 흔적 지워줘"/humanize

Multi-skill workflows (plan then execute sequentially)

The Nodes column lists the decision forks to render in interactive mode (Dialogue Protocol below); N1–N11 are defined in ${CLAUDE_SKILL_DIR}/references/dialogue_nodes.md.

ScenarioSkill chainNodes
New project, no prior workintake-project -> search-lit -> design-study -> manage-project initN1, N2 (if user wants manuscript output), N3
Data ready, need a papermanage-project init -> analyze-stats -> make-figures -> write-paperN6 (PHI gate), N3, N4 (journal timing), N2
Draft exists, prepare for submissionself-review -> check-reporting -> verify-refs -> humanize -> academic-aio (opt-in --aio) -> manage-refs (DOCX build + xref QC --strict) -> manage-project checklistN4 (if not yet locked), N8 (only if self-review returns fatal)
Submission rendering & cascade reformatmanage-refs (Workflow A pandoc citeproc, or B Zotero CWYW) -> manage-refs scripts/check_xref.py --strict -> verify-refs -> sync-submission buildN10 (Workflow A vs B selection — see manage-refs SKILL.md decision tree)
Cascade rejection re-targetfind-journal (exclude rejected) -> manage-refs (re-render with new CSL) -> write-paper Phase 8+ (new cover letter) -> sync-submission build --journal {new}N4
Non-bibliography academic deliverable (proposal/briefing/anchor doc)write-protocol -> fill-protocol (institutional form available) ⫶ render-pdf-doc (markdown-only, no form)N11 (form available vs not)
Reference housekeeping cyclelit-sync (Zotero ↔ refs.bib auto-export) -> manage-refs scripts/check_citation_keys.py -> verify-refs --strict (first-author cross-check)—
ICMJE COI batch (multi-author submission)fill-icmje-coi (per-author docx generation from synthetic seed) -> manual circulation—
Medical-AI paper, AI-search visibility passself-review -> humanize -> academic-aio (title, abstract, summary box, README / CITATION.cff / HF card)N4, N9 (section entry for re-edit scope)
Reviewer comments receivedrevise -> analyze-stats (if new analyses needed) -> make-figures (if new figures needed)N1
Meta-analysis from scratchmeta-analysis (handles its own pipeline: protocol, then a stop until the registration is submitted or the user records a choice to proceed without it, then the search via search-lit and full texts via fulltext-retrieval; do not run either before it, since search-lit selects papers and extracts results)N2 (MA type), N5 (synthesis scope)
Grant writingsearch-lit -> grant-builderN2 (option 5)
Conference presentationpresent-paper (handles its own pipeline internally)N1
New study, need IRB protocolsearch-lit -> design-study -> calc-sample-size -> define-variables -> write-protocolN3, N2 (option 4 — protocol)
Observational cohort study (retro/screening/registry)intake-project -> design-study -> search-lit -> define-variables -> write-protocol -> analyze-stats -> write-paperN1, N2, N3
Data with PHI, need full pipelinedeidentify -> clean-data -> analyze-stats -> make-figures -> write-paperN6 (mandatory), N3, N4
Data ready, need cleaning firstclean-data -> analyze-stats -> make-figures -> write-paperN6, N3, N4
Full submission chainwrite-paper -> self-review -> check-reporting -> find-journal -> write-paper (Phase 8+ cover letter) -> manage-project checklistN4, N8 (if recovery triggered), N9 (on re-entry)
Post-rejection resubmissionfind-journal (exclude rejected journal) -> write-paper (Phase 8+ new cover letter)N4
Case report pipelinesearch-lit (similar cases) -> write-paper (case-report mode) -> self-review -> check-reporting (CARE) -> find-journalN2 (option 2), N4

Panel mode (/self-review --panel) is opt-in, never automatic. The chains above use single-pass self-review. Add --panel only when the user asks for a high-stakes final pass, because it spawns several reviewer agents plus an editor (several times the tokens); never enable it by default, including in --e2e. Never combine --panel with --fix: a panel diagnoses and prioritizes, and the fix loop is a separate pass.

Ambiguous requests (ask before routing)

If the intent is genuinely unclear, ask ONE clarifying question — never two in one turn. If you can make a reasonable inference, act on it and confirm; inside a pipeline, render the matching node instead of asking. Examples:

  • "Help with my paper" -> Ask: "Do you want to start writing, review an existing draft, or respond to reviewer comments?"
  • "What should I do next?" -> Check for project_state.json or STATUS.md in the working directory first. If found, read it and suggest the next logical step. If not found, ask what they're working on.

Workflow Execution — Dialogue Protocol (interactive default)

Without --e2e, a multi-skill chain runs one decision node per fork. Never replace a node with a plan list and "Shall I proceed?", because that silently commits the paper type, study design, target journal or recovery branch. Also pause at write-paper's built-in gates (outline approval, discussion planning).

Load ${CLAUDE_SKILL_DIR}/references/dialogue_nodes.md the first time the pipeline enters a decision fork in the current session; it holds each node's options, rendering template and autonomous default.

Per-fork execution sequence:

  1. Identify the node for the fork (Nodes column of the Multi-skill workflows table).
  2. Render it with the reference's §"Rendering Template": under ~15 lines, unlocks / locks / recovery_cost per option, autonomous default announced.
  3. Wait for a numeric choice or a control word. One node per turn — never stack two.
  4. Echo the lock in one line before invoking the skill ("Locking: CARE reporting guideline; abstract = structured 250w.").
  5. Invoke the downstream skill for the chosen option, then return to step 1 for the next fork.
  6. Adapt on skill output. If a result invalidates a prior lock (e.g., /self-review surfaces a Step 7.4a trigger), route to the recovery node (N8) instead of continuing the chain.

Control words. back re-enters the previous node. pause halts the pipeline and returns control to the user. skip is allowed only for a node whose locks scope is empty (rare) — otherwise explain why skipping is not available.


Full Pipeline Mode

When the user asks to "run the full pipeline" or similar, run the Standard Pipeline below.

--e2e Flag

Pre-flight Validation (run once at --e2e entry)

Before invoking any downstream skill in --e2e mode, run the following 4 checks. A failure on any one halts the pipeline. Write all four outcomes verbatim to manuscript/<id>/REPORT.md (see §"REPORT.md Generation") under Frozen / Version status + Source artifacts checked.

  1. STATUS / project_state: read STATUS.md or project_state.json in the working directory and confirm the current phase. If neither exists, halt with STATUS_MISSING unless the user passes --no-status.
  2. Frozen artifact: scan manuscript/<id>/v_*_package/. If the latest v_N carries a _FROZEN marker file or INDEX.md::frozen=true, this run is restricted to a v_(N+1)_package/ branch. Any attempt to write directly into v_N halts with FROZEN_VIOLATION.
  3. Required inputs: confirm input artifacts for the requested phase exist. Examples: Phase 4 figure requires analysis/_analysis_outputs.md; Phase 7 self-review requires manuscript/manuscript.md. Missing → halt with REQUIRED_INPUT_MISSING: <path>.
  4. Dependency miss: if the user requested phase k but a prior phase is incomplete, halt with DEPENDENCY_MISS: [Phase i, Phase j] by default. Only when the user explicitly passes --auto-extend may the orchestrator prepend the missing phases and continue.

--e2e Pipeline Behavior

When --e2e is passed (or the user says "end-to-end", "Arm A", or "fully autonomous"):

  1. Set --e2e mode ON.
  2. Pass --autonomous to /write-paper when invoking it.
  3. Pass --json to /self-review and /check-reporting when invoking them.
  4. Skip all orchestrator-level confirmations ("Shall I proceed?") and do NOT render any Dialogue Protocol nodes.
  5. For each node the pipeline would have rendered interactively, apply the node's default (from dialogue_nodes.md) and log the choice to qc/_pipeline_log.md as: [orchestrate] N{id}: defaulted to option {n} ({label}) — {autonomous_rationale}.
  6. DO still respect data-safety gates (PHI Safety Gate / node N6): if PHI status is unknown, HALT the autonomous run with a single prompt. After pre-flight passes, two things can interrupt autonomous mode: PHI, and registration on a systematic-review chain. /meta-analysis writes the protocol, then HALTs with REGISTRATION_PENDING before the search unless the project records a registration submission date or the user's own choice to proceed without one (its Phase 2 entry check). The orchestrator never submits a registration and never defaults past this halt: screening or extraction done before registration cannot be made prospective afterwards.
  7. Audit Recovery (node N8): auto-invoke the routed recovery skill. If the route itself fails validation twice, HALT with RECOVERY_HALT_HUMAN_DECISION in the log.
  8. AIO (academic-aio) is OFF by default in --e2e, because AI-search visibility is a pre-submission concern and running it on every autonomous iteration would waste tokens and invite silent rewrites that violate the skill's "never edit silently" contract. Enable it only when the user explicitly adds --aio (or the pipeline is preparing a preprint / GitHub README / HF card alongside submission). When enabled, schedule it after /humanize so the checklist anchors on QC-confirmed and human-readable text, and surface the PASS/PARTIAL/FAIL report to the user — never auto-apply its edits.
  9. After each skill completes, run post-skill validation (see below); once it passes, proceed to the next skill without asking.

Standard Pipeline: Data → Manuscript

  1. /analyze-stats → analysis/tables/*.csv, analysis/figures/*, analysis/_analysis_outputs.md, analysis/analyze.py
  2. /make-figures --study-type {type} → reads analysis/_analysis_outputs.md → analysis/figures/*.pdf, analysis/figures/*.png, analysis/figures/_figure_manifest.md
  3. /write-paper --autonomous (if --e2e) → reads analysis/ → manuscript/manuscript.md (DOCX rendering delegated to step 7)
    • Phase 7.4 internally calls /self-review --json --fix → qc/self_review.md
  4. /check-reporting → reads manuscript/manuscript.md → qc/reporting_checklist.md + qc/reporting_checklist.json (Part D JSON; called within write-paper Phase 7, but orchestrator verifies output)
  5. /verify-refs → reads manuscript/manuscript.md → qc/reference_audit.json (sole output; row-level status in records[])
  6. /self-review --json --fix → reads manuscript/manuscript.md → qc/self_review.md + auto-fix (called within write-paper Phase 7.4, but orchestrator verifies final output)
  7. /manage-refs (Workflow A pandoc citeproc, or B Zotero CWYW) → reads manuscript/manuscript.md + manuscript/_src/refs.bib → manuscript/manuscript_final.docx + qc/xref_audit.json. Submission gate: check_xref.py --strict must pass (no MISSING_DOCX / MISSING_BODY / MISMATCH).

Post-Skill Validation

After each skill completes, verify that expected output files exist, then pass the discovered file paths to the next skill as context. If validation fails, report the error and do NOT proceed to the next skill.

SkillExpected OutputsValidation
/analyze-statsAt least one file in analysis/tables/*.csv OR analysis/_analysis_outputs.mdCheck file existence and non-empty
/make-figuresanalysis/figures/_figure_manifest.md with at least 1 entryParse manifest, verify listed files exist
/write-papermanuscript/manuscript.md (required)Check file existence and non-empty. Do NOT require the DOCX here — manuscript_final.docx is rendered later by /manage-refs (step 7), so requiring it would halt an --e2e run before the DOCX exists
/check-reportingqc/reporting_checklist.md and qc/reporting_checklist.json (Part D JSON)Parse the JSON; halt naming the file if it is absent, unparseable, or lacks an integer missing. If missing > 0 or any action_items[].status == "MISSING", halt with REPORTING_ITEMS_MISSING (list each item) and do NOT proceed to step 7 — route the gaps to /write-paper Phase 7. An inline report that wrote no file does not pass
/verify-refsqc/reference_audit.json (sole output)Parse JSON; halt if submission_safe == false (i.e., FABRICATED / MISMATCH count > 0 OR duplicate_findings[] nonempty)
/self-reviewqc/self_review.md with the Phase 3c JSON block (--json)Parse the JSON block; halt naming the file if it is absent, unparseable, or lacks an integer fatal_count. If fatal_count > 0 or any issues[].severity == "fatal", do NOT proceed to step 7 — route to N8 (Audit Recovery). A REVISE verdict with no fatal issue is logged (score, verdict, counts) in qc/_pipeline_log.md and REPORT.md, not halted. Accept the optional consensus array and R1/R2/R3 attributions that --panel adds to issues (additive, backwards-compatible)
/manage-refsmanuscript/manuscript_final.docx, qc/xref_audit.jsonDOCX exists and non-empty; xref_audit.json has submission_safe: true (no P0 blocker rows)
/lit-syncmanuscript/_src/refs.bib (mtime updated), references/zotero_collection.jsonrefs.bib mtime newer than collection snapshot; refs_bib_refreshed: true in collection JSON

On validation failure:

  • Log the failure: which skill, which output was missing, any error messages.
  • In --e2e mode: report the error in qc/_pipeline_log.md and STOP. Do not proceed to the next skill. Output: "Pipeline halted at {skill}: {missing output}. Check the skill's output and re-run."
  • In interactive mode: report the error and ask the user how to proceed.

REPORT.md Generation

At the termination of every --e2e invocation — whether the pipeline completed, halted at pre-flight, or halted on post-skill validation — the Worker MUST write manuscript/<id>/REPORT.md using the template at ${CLAUDE_SKILL_DIR}/references/report_template.md.

  • Copy every section of the template verbatim. Never delete a section. Empty fields are filled with (none) or (unknown) — never omitted, never collapsed.
  • The §"Pipeline log" entry is a 5-line summary of qc/_pipeline_log.md (Dialogue node defaults applied, skill invocations, halt reason if any) — not a paste of the full log.
  • The §"Tier-3 Blocked Items" hook-vs-prompt-guard split is mandatory — see §"Tier-3 Worker Guard" below.
  • The §"Next safe command" line is the literal command the user can copy to resume the next phase. Do not editorialize.
  • REPORT.md is the single artifact the user reviews; every other QC output is linked from it.

Tier-3 Worker Guard

The following actions are permanently forbidden inside --e2e autonomous flow. On detection, the Worker halts the pipeline and records the attempt under REPORT.md §"Tier-3 Blocked Items" as tier3_pending: <command>. Hook-confirmed blocks and prompt-only blocks are listed separately so a future hook regression cannot silently re-open a prompt-only block.

Hook-confirmed (where a Tier-3 confirm hook is installed):

  • gws gmail +send / +reply
  • YouTube upload

Prompt / skill guard only (no hook coverage — Worker prompt enforces):

  • git push, gh pr create
  • MCP Gmail send, MCP Calendar send
  • MCP GitHub create-pr
  • /sync-submission build external publication paths
  • Phase 8 submission DOCX auto-build / journal submission
  • Senior mentor automatic email reply

git commit is allowed; a subsequent git push attempt halts. Circulation emails are saved as a Gmail Draft only — never sent.

Data Flow Contract

Read ${CLAUDE_SKILL_DIR}/references/data_flow_contract.md when chaining a skill and you need what it reads or writes (the Standard Pipeline above already names its own files).

Post-E2E: Journal Selection & Submission Prep

After the E2E pipeline completes (or when the user requests journal targeting), this workflow is available. It is NOT part of --e2e: it runs only on explicit user invocation, because it needs the user's journal selection.

  1. /find-journal → top 5 recommendations based on manuscript/manuscript.md abstract
  2. /verify-refs → block fabricated or mismatched references before packaging
  3. User selects a journal → create submission/{journal_short}/ directory
  4. /sync-submission build --journal {journal_short} → create or refresh the derived manuscript package from the canonical manuscript
  5. Generate inside submission/{journal_short}/:
    • cover_letter.md: via /write-paper Phase 8+
    • checklist.md: journal-specific submission checklist
    • manuscript_final.docx: re-rendered by /manage-refs for the target journal (if format differs)
  6. /self-review with the selected journal as the target → journal scope-aware final pass (not /peer-review, which reviews other authors' work only)

PHI Safety Gate

Before routing to any data-handling skill (clean-data, analyze-stats, make-figures), check if the data might contain PHI:

  1. For each CSV/Excel file the task will read that is not itself a *_deidentified.* output (a de-identified copy of one file says nothing about the others), ask: "Does the data contain patient identifiers (PHI)? (names, national ID / RRN, date of birth, contact details, etc.)"

    • If yes → Route to /deidentify first, then continue to the originally requested skill using the *_deidentified.* output file
    • If no, or the user confirms the data is already de-identified → Proceed directly
  2. De-identification is an INTERACTIVE process requiring the researcher's active participation. Warn: "De-identification requires the researcher's direct review. You must run the script in the terminal and verify each item."


Context Detection

Before routing, check for context clues in the working directory:

File foundImplies
project_state.jsonActive managed project -- read it to determine current phase
STATUS.mdProject with status tracking -- read current stage and blockers
PROJECT.mdProject identity exists -- use for context
CLAIMS.mdClaims-to-results map exists -- writing is underway
REVIEW_LOG.mdRevision cycle -- likely needs /revise
*.qmd or *.tex filesManuscript drafting in progress
*.bib filesReferences exist -- may need verification
PRISMA_*.md or QUADAS*.mdMeta-analysis or systematic review
Decision letter / reviewer PDFRoute to /revise
CSV/Excel data files without analysis scriptsRaw data may need cleaning -- suggest /clean-data first
*_deidentified.* or audit_log.csvSome data was de-identified -- skip the PHI Safety Gate only for the *_deidentified.* outputs themselves; run it on every other data file the task will read
protocol_draft.mdProtocol drafting in progress -- may need /write-protocol
sample_size_*.csv or sample_size_*.RSample size calculation done -- check if protocol or manuscript next

Guardrails

  • Never invent a skill. Only route to skills listed in the Available Skills table.
  • Respect existing state. If a project scaffold exists, do not re-initialize it.

FAQ

What does the orchestrate skill do?

Use when the user describes a research goal without naming a skill, or the task spans several skills. Classifies the request, plans the order and routes to the right medsci-skills skill(s) instead of producing their output itself.

How do I install orchestrate?

Run npx skills add https://github.com/aperivue/medsci-skills --skill orchestrate in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/orchestrate/ (personal) or .claude/skills/orchestrate/ (project).

Which AI agents can use orchestrate?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is orchestrate safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains orchestrate?

It is published by aperivue in aperivue/medsci-skills. It has 123 recorded installs.

More from aperivue/medsci-skills

View all →
aperivue avatar

check-reporting

aperivue/medsci-skills

Use when auditing a manuscript item by item against a reporting guideline or risk-of-bias tool. Covers 49 reporting guidelines and risk-of-bias tools (STROBE, CONSORT, STARD, TRIPOD+AI, PRISMA, QUADAS and more), marking each item PRESENT, PARTIAL or MISSING. Not a reviewer critique (/self-review).

Data & Databases180 installs
aperivue avatar

meta-analysis

aperivue/medsci-skills

Use when running a systematic review and meta-analysis, DTA or intervention. Covers PROSPERO protocol, search, screening, extraction, risk of bias (QUADAS-3, RoB 2, ROBINS-I), bivariate/HSROC or random-effects pooling, forest plots, heterogeneity and PRISMA reporting. Topic scouting is /ma-scout.

Data & Databases176 installs
aperivue avatar

make-figures

aperivue/medsci-skills

Use when a paper needs publication-ready figures or a visual abstract. Makes ROC, forest, calibration, Kaplan-Meier and Bland-Altman plots, CONSORT/STARD/PRISMA flow diagrams, confusion matrices, pipeline diagrams and journal visual abstracts, checking the journal's AI-image policy first.

Data & Databases155 installs
aperivue avatar

analyze-stats

aperivue/medsci-skills

Use when data needs statistical analysis. Runs reproducible Python/R code for Table 1, diagnostic accuracy, agreement, regression, survival, propensity score, survey-weighted and repeated-measures models, with publication tables. Sample size is /calc-sample-size; pooling studies is /meta-analysis.

Testing & QA154 installs
aperivue avatar

verify-refs

aperivue/medsci-skills

Use when checking whether a manuscript's references are real. Audits each citation against PubMed and CrossRef, flags fabricated or mismatched entries and writes qc/referenceaudit.json. Audit-only; never edits references or refs.bib. Citation-key checks are /manage-refs.

Security152 installs
aperivue avatar

search-lit

aperivue/medsci-skills

Use when finding papers or building a reference list. Searches PubMed, Semantic Scholar and bioRxiv/medRxiv, includes only references verified through an API, and generates BibTeX. Auditing an existing reference list is /verify-refs.

Backend & APIs151 installs

Popular productivity & automation skills

View category →
vercel-labs avatar

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.6M installs
open.feishu.cn avatar

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

open.feishu.cn avatar

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

open.feishu.cn avatar

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

open.feishu.cn avatar

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

open.feishu.cn avatar

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。