authoring-model-cards
Fungsinya
Skill ini menulis kartu model, yaitu dokumen sederhana yang menjelaskan model AI klinis, untuk apa model itu, seberapa baik performanya, dan di mana ia gagal. Skill ini untuk tim yang menerbitkan atau mengatur model klinis dan membutuhkan dokumentasi yang jujur.
Kapan dipakai
- βSaat Anda menerbitkan atau memperbarui model NER atau penghapusan identitas klinis dan membutuhkan kartu modelnya.
- βSaat Anda punya hasil evaluasi dan perlu mengubahnya menjadi penggunaan yang dimaksud, metrik, dan batasan.
- βSaat tinjauan tata kelola AI klinis atau risiko model meminta dokumentasi transparansi.
Link skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/authoring-model-cards/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTulis kartu model untuk model penghapusan identitas klinis kami memakai hasil evaluasi minggu lalu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca keluaran evaluasi, memetakan setiap hasil ke bagian kartu yang sesuai, lalu menulis penggunaan yang dimaksud, penggunaan di luar cakupan, dan batasan berdasarkan hasil tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Authoring Model Cards
A model card is the honest spec sheet for a model: what it's for, how well it works, where it breaks, and who it might fail. For clinical models this is governance-critical β an undocumented de-id model is one nobody can sign off on. This skill fills a model card directly from OpenMed eval outputs so the numbers are reproducible, not aspirational.
When to use this skill
- You're publishing or updating an OpenMed model and need its card.
- You have eval artifacts (
GateReport,fairness_report,error_report) and need to turn them into intended-use, metrics, and limitations sections. - A clinical AI governance / model-risk review needs a transparency document.
Run the evals first (see evaluating-with-leakage-gates,
benchmarking-clinical-ner, auditing-subgroup-fairness); this skill documents
their results β it does not generate the numbers.
Card sections (Mitchell et al., + clinical extensions)
See references/model-card-sections.md for the full section-to-source map. The
load-bearing sections for an OpenMed model:
- Model details β repo id, family, tier, format, params, milestone, license
(Apache-2.0). Pull from the
GateReportidentity fields. - Intended use β the clinical task and the deployment envelope.
- Out-of-scope / misuse β explicitly: not a medical device; not for autonomous clinical decisions; de-id is verified, not assumed.
- Metrics β entity-level P/R/F1 and, for de-id, residual leakage + per-label recall floors and the gate decision.
- Quantitative analysis (subgroups) β per-group leakage/recall from
fairness_report, including which groups lack data. - Limitations β error patterns from
error_report; calibration assumptions. - Caveats & disclaimer β the medical-device disclaimer.
Quick start β fill the card from eval outputs
from openmed.eval import (
run_suite, ReleaseGate, fairness_report, error_report,
)
report = run_suite("eval/gold/test.json", suite="golden",
model_name="OpenMed/Privacy-PII-Detection", device="cpu",
metadata={"family": "PII", "tier": "base",
"policy": "hipaa_safe_harbor"})
gate = ReleaseGate(milestone="v1.6", policy="hipaa_safe_harbor").evaluate(report)
fair = fairness_report("OpenMed/Privacy-PII-Detection", "golden")
errs = error_report("OpenMed/Privacy-PII-Detection", "eval/gold/test.json")
card = {
"model_details": {
"repo_id": gate.repo_id, "family": gate.family, "tier": gate.tier,
"format": gate.format, "license": "Apache-2.0",
},
"metrics": {
"exact_span_f1": report.metrics["exact_span_f1"]["f1"],
"residual_leakage_rate": gate.residual_leakage_rate,
"critical_leakage_count": gate.critical_leakage_count,
"per_label_recall": dict(gate.per_label_recall),
"release_decision": gate.decision, # RELEASABLE / QUARANTINED
},
"subgroup_analysis": fair.to_dict(), # per-group leakage/recall
"limitations": errs.to_dict()["confusion_matrix"],
}
# Render `card` into Markdown front matter + body (or the HF card template).
error_report and fairness_report carry no plaintext PHI (offsets + hashes),
so their output is safe to paste into a public card.
Workflow
- Gather artifacts. Gate report, fairness report, error report β all from a pinned model + synthetic eval set.
- Fill model details from the
GateReportidentity fields so the card,models.jsonl, and the README cannot drift (the gate'smanifest_coherenceandmodel_cardchecks enforce this). - Write intended use narrowly. Name the clinical task, language(s), and the deployment envelope. Over-broad intended-use is the most common card failure.
- State out-of-scope and the disclaimer plainly (see template below).
- Report metrics with their floors. For de-id, lead with leakage and the gate decision, not F1.
- Report subgroups honestly, including the documentation gap: if race/ ethnicity isn't available, say so rather than implying parity.
- List limitations from real errors, not boilerplate β cite the confusion matrix's worst cells.
Disclaimer block (paste & adapt)
This model assists clinical text processing and is not a medical device. It does not make autonomous clinical decisions. De-identification output must be independently verified before any data is shared; residu
Pertanyaan umum
Apakah skill ini menjalankan pengujian untuk mendapat angkanya?
Tidak. Skill mendokumentasikan hasil dari evaluasi yang sudah Anda jalankan.
Apakah kartu itu berisi penafian perangkat medis?
Ya. Kartu itu mencakup penafian yang menyatakan model tidak untuk keputusan klinis otonom.
Bagian apa saja yang dicakup?
Skill mencakup detail model, penggunaan yang dimaksud, penggunaan di luar cakupan, performa per kelompok, dan batasan, di antara bagian lainnya.
Detail
Deskripsi asli dari pembuat
Generate a model card for an OpenMed clinical NER or de-identification model documenting intended use, quantitative metrics, subgroup performance, limitations, and a medical-device disclaimer for clinical AI governance. Use when the user wants to write or update a model card, a README model section, or governance documentation, or to turn OpenMed eval outputs (release gate report, fairness_report, error_report) into the card's metrics and limitations sections. Trigger on \"model card\", \"intended use\", \"model documentation\", \"governance\", \"limitations section\", \"datasheet\", or \"FDA/
repo: maziyarpanahi/openmed
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14673
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
annotating-variants
5.8kMembantu agent Anda memperkirakan apa yang dilakukan varian genetik, mengubah nama HGVS menjadi posisi genom, dan menambahkan frekuensi populasi, dengan memakai anotator publik yang gratis.
ask-openmed
5.8kMembantu agent Anda memilih alur kerja OpenMed yang tepat untuk permintaan teks klinis, dimulai dengan pemeriksaan privasi setiap kali data pasien mungkin ada.
assembling-fhir-bundles
5.8kMengemas beberapa rekam kesehatan FHIR menjadi satu Bundle transaksi yang siap dikirim ke EHR, dengan referensi internal yang terhubung dengan benar.
auditing-deid-leakage
5.8kMemindai teks klinis yang sudah dihapus identitasnya untuk mencari pengenal yang tertinggal, seperti nomor SSN, nomor kartu, email, dan tanggal, dan memblokir rilis jika masih ada.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.