From medsci-project
Generates Model Cards and Datasheets for medical-imaging models from user-supplied facts, with a completeness gate that flags unfilled fields.
How this skill is triggered — by the user, by Claude, or both
Slash command
/medsci-project:model-cardinheritThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill produces the **documentation an engineer-built medical-imaging model must carry**: a
references/datasheet_template.mdreferences/metric_dimensions.mdreferences/model_card_template.mdscripts/check_model_card_complete.pyscripts/check_model_card_complete_challenge/fixture/complete/DATASHEET.mdscripts/check_model_card_complete_challenge/fixture/complete/MODEL_CARD.mdscripts/check_model_card_complete_challenge/fixture/incomplete/MODEL_CARD.mdscripts/check_model_card_complete_challenge/problem.mdscripts/check_model_card_complete_challenge/verify.shskill.ymltests/test_model_card_complete.shThis skill produces the documentation an engineer-built medical-imaging model must carry: a
Model Card (intended use, out-of-scope use, training data, per-subgroup performance, caveats), a
Datasheet for its dataset (provenance, composition, collection, labelling, consent), and a
METRIC-informed data-quality pass. It fills the templates from facts the user supplies — it
never invents a number, a provenance detail, a consent status, or a licence — and ships a deterministic
gate that no required section is missing or left as an unfilled [NEEDS INPUT] placeholder.
It is the reporting seam of the model-engineering lane: after /model-validation audits the design
and /model-evaluation produces the numbers, this skill records them in a portable, auditable card that
/write-paper and /check-reporting consume. It mirrors /version-dataset structurally (generate +
deterministic verify).
/model-validation, /model-evaluation./version-dataset; tabular variable docs → /generate-codebook./check-reporting./model-scaffold.Gather, from the user / the model's developers: task + architecture + provenance + licence; intended use
and out-of-scope use; training and evaluation cohorts; the reference standard and inter-reader agreement;
overall and per-subgroup performance; data collection, consent, and de-identification. Anything not
supplied stays [NEEDS INPUT] — never guess.
Copy ${CLAUDE_SKILL_DIR}/references/model_card_template.md to MODEL_CARD.md and fill each section
from the facts. Keep the headings. Numbers come only from /model-evaluation / executed results.
Copy ${CLAUDE_SKILL_DIR}/references/datasheet_template.md to DATASHEET.md and fill the seven
question groups (Motivation, Composition, Collection, Preprocessing/Labeling, Uses, Distribution,
Maintenance).
Walk ${CLAUDE_SKILL_DIR}/references/metric_dimensions.md (completeness, correctness, consistency,
representativeness, timeliness, provenance, label provenance, fairness/coverage, leakage safety) and
record each finding in the Datasheet. Anything that affects the headline metric's validity is also a
/model-validation finding — cross-check there.
python3 ${CLAUDE_SKILL_DIR}/scripts/check_model_card_complete.py \
--card MODEL_CARD.md --datasheet DATASHEET.md --strict
MISSING_SECTION / EMPTY_REQUIRED_SECTION must be zero before the card ships.
Carry the card into /write-paper (the Methods / supplement reference it), /check-reporting
(CLAIM 2024 / TRIPOD+AI item audit of the manuscript), and /self-review.
/model-evaluation or the user's executed results; every provenance / consent / licence statement is
user-confirmed. Unknown → [NEEDS INPUT], which the gate flags./model-validation and the human's responsibility.scripts/check_model_card_complete.py — verifies every required Model Card / Datasheet section is
present and non-empty (stdlib, network-free). Reproducible challenge:
bash ${CLAUDE_SKILL_DIR}/scripts/check_model_card_complete_challenge/verify.sh.
Model Cards (Mitchell et al. 2019) and Datasheets (Gebru et al. 2021) are documentation standards,
not clinical reporting guidelines, so they live here as references/ templates (uncounted), not in
/check-reporting's counted checklist set — the same way appraisal_tools/METRICS.md is kept separate.
/check-reporting still owns the manuscript-level CLAIM 2024 / TRIPOD+AI item audit.
model-validation (audit design) + model-evaluation (metrics)
└─ model-card (this skill: Model Card + Datasheet + METRIC pass, completeness-gated)
└─ write-paper + check-reporting (manuscript) ; version-dataset (dataset bytes)
npx claudepluginhub aperivue/medsci-skills --plugin medsci-presentationGenerates Model Cards per Mitchell et al. and HuggingFace standards, covering intended use, limitations, training data provenance, ethical considerations, and regulatory alignment (EU AI Act, NIST AI RMF).
Generates standardized model cards in HuggingFace and NVIDIA Model Card++ formats for ML models, covering details, intended uses, training data, metrics, limitations, and ethics. Use when preparing models for deployment or handoff.
Audits clinical-validation study design for medical-imaging models (segmentation, classification, detection). Covers data leakage, split disjointness, metric selection, test-set sizing, and reporting guideline fit (CLAIM 2024, TRIPOD+AI).