Skip to content
Skills Library
AI & agents · Writing

model-doc

/model-doc

Drafts a model card in Markdown from a metrics JSON file - model details, intended and out-of-scope use, training and evaluation data, metrics checked against thresholds, performance by segment with gaps flagged, limitations - and ends with a review checklist of everything missing. Use when someone needs model documentation for a review, a model risk submission or a release, or asks whether a model's documentation is complete.

Licence
MIT
Last repository change
02.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/model_doc.py

What it does and when to use it

Drafts a model card in Markdown from a metrics JSON file - model details, intended and out-of-scope use, training and evaluation data, metrics checked against thresholds, performance by segment with gaps flagged, limitations - and ends with a review checklist of everything missing. Use when someone needs model documentation for a review, a model risk submission or a release, or asks whether a model's documentation is complete.

Original author description

Drafts a model card in Markdown from a metrics JSON file - model details, intended and out-of-scope use, training and evaluation data, metrics checked against thresholds, performance by segment with gaps flagged, limitations - and ends with a review checklist of everything missing. Use when someone needs model documentation for a review, a model risk submission or a release, or asks whether a model's documentation is complete.

How it works

  1. Input
  2. How to use the result
Original SKILL.md headings · 24 lines, 173 words
SKILL.md preview
---
name: model-doc
description: Drafts a model card in Markdown from a metrics JSON file - model details, intended and out-of-scope use, training and evaluation data, metrics checked against thresholds, performance by segment with gaps flagged, limitations - and ends with a review checklist of everything missing. Use when someone needs model documentation for a review, a model risk submission or a release, or asks whether a model's documentation is complete.
license: MIT
compatibility: Needs Python 3.11+ with the enterprise-data-skills package installed. Runs offline.
metadata:
  version: "0.1.0"
  author: Suman Mukherjee
---

# Model documentation

```bash
python scripts/model_doc.py metrics.json --out MODEL_CARD.md
```

Without `--out` the card is printed. `--strict` exits with code 1 when required sections are missing, a metric fails its threshold, or two segments differ by more than `--max-gap` (default 0.05) on any metric.

## Input

A JSON object. Every key is optional, and whatever is missing appears in the card as "Not provided" and in the review checklist. See [the example](references/metrics-format.md) for the full shape:

- `model`: `name`, `version`, `owner`, `task`, `algorithm`, `description`
- `intended_use`: `primary`, `out_of_scope` (list)
- `training_data`, `evaluation_data`: any key/value pairs, ideally `source`, `period`, `rows`
- `metrics`: name to number; `thresholds`: name to `{"min": x}` and/or `{"max": y}`
- `slices`: list of `{"name", "rows", "metrics": {...}}`
- `limitations`, `ethical_considerations`: lists of strings

## How to use the result

The card is a draft. Don't fill gaps with guesses: ask the model owner for anything in the checklist. When you summarise the card, lead with failed thresholds and segment gaps, because those are what a reviewer will ask about first.
Files in this package (3)
  • SKILL.md 2 KB
  • references/metrics-format.md 1 KB
  • scripts/model_doc.py 1 KB

Versions

The database has no other skills named model-doc.

Database snapshot: 13.11.2026 · package version 7d4808edca04 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100model-card-writing
    Write a model card that documents model details, intended and out-of-scope uses, training and evaluation data, disaggregated performance metrics, limitations, ethical considerations, and maintenance, with every number traceable to an evaluation run. Use when releasing, handing…
  • 100model-card-writer
    Produces a complete model card - intended use, training data provenance, evaluation results with slices, limitations, and usage guidance - for any model shared beyond its team or affecting people. Use when someone asks "write a model card", "document this model before release",…
  • 9012-ai-model-card
    Use when a production AI feature needs a version-specific model card covering purpose, data, evaluation, limitations, bias, intended use, prohibited use and operational pins; use AI architecture for system design and evaluation artefacts as evidence inputs.
  • 100model-evaluation-metrics
    Build model evaluation metrics operations. Auto-activating skill for ML Training. Triggers on: model evaluation metrics, model evaluation metrics Part of the ML Training skill category. Use when working with model evaluation metrics functionality. Trigger with phrases like…
  • 100authoring-model-cards
    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…
  • 100validate
    Evaluate a frozen model and decision system against intended-use evidence and guardrails. Use for independent quality, uncertainty, slice, interpretation, fairness, robustness, or readiness checks; model selection belongs to train.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.