Hugging Face Tokenizers
Orchestra-Research/AI-Research-SKILLs
Shows how to load, train and use fast Hugging Face tokenizers, with BPE, WordPiece and Unigram models, padding, truncation and alignment tracking.
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed authoring-model-cards --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/authoring-model-cards .claude/skills/authoring-model-cards && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .claude/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cardsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed authoring-model-cards --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/authoring-model-cards .agents/skills/authoring-model-cards && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .agents/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed authoring-model-cards --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/authoring-model-cards .cursor/skills/authoring-model-cards && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .cursor/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/authoring-model-cards--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed authoring-model-cards --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/authoring-model-cards .gemini/skills/authoring-model-cards && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .gemini/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed authoring-model-cardsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/authoring-model-cards .github/skills/authoring-model-cards && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .github/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed authoring-model-cards --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/authoring-model-cards .opencode/skills/authoring-model-cards && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "authoring-model-cards" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/authoring-model-cards into .opencode/skills/authoring-model-cards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "authoring-model-cards", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
authoring-model-cardsFills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
A model card here is built from evaluation artifacts rather than written from memory, so every number can be traced. The skill takes OpenMed's gate report, `fairness_report` and `error_report` and maps them to card sections: model details, intended use, out-of-scope use, metrics, subgroup analysis, limitations, and caveats that include a medical-device disclaimer.
Metrics cover entity-level precision, recall and F1 and, for de-identification, residual leakage with per-label recall floors and the gate decision. The fairness and error reports hold offsets and hashes instead of plaintext patient data, so their output is described as safe to paste into a public card. The evaluations must be run first with the companion skills; this one only documents their results. A reference file maps each section to its source.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 34d7b8c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
arxiv.orghuggingface.codoi.orgfda.govFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
OpenMed Model Card Writer loads about 1.8k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 162 tokens; SKILL.md has 634 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 34d7b8c, republished under its Apache-2.0 licence (© maziyarpanahi). 634 words, ~1,821 tokens.
.claude/skills/authoring-model-cards/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.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.
GateReport, fairness_report, error_report) and
need to turn them into intended-use, metrics, and limitations sections.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.
See references/model-card-sections.md for the full section-to-source map. The
load-bearing sections for an OpenMed model:
GateReport identity fields.fairness_report, including which groups lack data.error_report; calibration assumptions.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.
GateReport identity fields so the card,
models.jsonl, and the README cannot drift (the gate's manifest_coherence
and model_card checks enforce this).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; residual PHI risk is never zero. Validate on your own population before deployment.
evaluating-with-leakage-gates (GateReport),
benchmarking-clinical-ner (error_report), and auditing-subgroup-fairness
(fairness_report): these are the card's evidence.building-with-openmed / models.jsonl: keep card front matter
(license, task, languages) coherent with the manifest — the gate checks it.gating-deid-leakage: cite the green gate as the card's
release evidence.models.jsonl trip manifest_coherence.error_report; never
paste real patient strings as "qualitative examples".references/model-card-sections.md.© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/authoring-model-cards of maziyarpanahi/openmed.
Open the folder on GitHubat commit 34d7b8c
OpenMed Model Card Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| OpenMed Model Card Writer this skillmaziyarpanahi/openmed | 5.5k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Hugging Face TokenizersOrchestra-Research/AI-Research-SKILLs | 13k | 6 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Sentence Transformers EmbeddingsOrchestra-Research/AI-Research-SKILLs | 13k | 2 repos | ~1.6k | Automated safety check: Pass | MIT | |
| SentencePiece TokenizerOrchestra-Research/AI-Research-SKILLs | 13k | 2 repos | ~1.4k | Automated safety check: Notes | MIT | |
| Hugging Face Transformers Usagedavila7/claude-code-templates | 33k | 11 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Cohere V2 Pythonaiskillstore/marketplace | 433 | — | ~4.2k | Automated safety check: Pass | None |
Orchestra-Research/AI-Research-SKILLs
Shows how to load, train and use fast Hugging Face tokenizers, with BPE, WordPiece and Unigram models, padding, truncation and alignment tracking.
Orchestra-Research/AI-Research-SKILLs
Generates text embeddings locally with the sentence-transformers library for RAG, semantic search, clustering and similarity, with model picks for general, multilingual and legal text.
Orchestra-Research/AI-Research-SKILLs
Trains and uses SentencePiece tokenizers on raw text, with BPE or Unigram models, for multilingual and CJK projects that need a reproducible vocabulary.
davila7/claude-code-templates
Loads pre-trained Hugging Face Transformers models for text, vision and audio tasks, runs inference with pipelines and fine-tunes on custom datasets.
aiskillstore/marketplace
Master Cohere v2 Chat API with Python, specializing in entity extraction using JSON Schema mode for structured outputs.
deepgram/deepgram-python-sdk
Uses the Deepgram Python SDK's Read API to analyze text for sentiment, summaries, topics and intents with client.read.v1.text.analyze, from raw text or a hosted URL.
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
maziyarpanahi/openmed
Converts scanned faxes, images, CSV/TSV exports and C-CDA XML into clean text on-device, ready for OpenMed de-identification and named-entity recognition.
Works with
Categories
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations. A model card here is built from evaluation artifacts rather than written from memory, so every number can be traced. The skill takes OpenMed's gate report, `fairness_report` and `error_report` and maps them to card sections: model details, intended use, out-of-scope use, metrics, subgroup analysis, limitations, and caveats that include a medical-device disclaimer.
OpenMed Model Card Writer fits situations like: publishing or updating an OpenMed model that needs a card; turning eval artifacts into intended-use, metrics and limitations sections; preparing a transparency document for a clinical AI governance review.
Run `npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a claude-code`. Or copy the skill folder (skills/authoring-model-cards in maziyarpanahi/openmed) into .claude/skills/authoring-model-cards in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a codex`. Or copy the skill folder (skills/authoring-model-cards in maziyarpanahi/openmed) into .agents/skills/authoring-model-cards in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill authoring-model-cards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/authoring-model-cards, .gemini/skills/authoring-model-cards, .github/skills/authoring-model-cards and .opencode/skills/authoring-model-cards in your project.
SKILL.md names no scripts, command-line tools or credentials: OpenMed Model Card Writer is instructions for the agent only. Our summary lists: OpenMed evaluation outputs: a gate report, a fairness report and an error report; The `openmed.eval` Python package.
SKILL.md names 4 domains. As links in the text: arxiv.org, huggingface.co, doi.org and fda.gov. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
OpenMed Model Card Writer is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 647 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with OpenMed Model Card Writer: Hugging Face Tokenizers (Orchestra-Research/AI-Research-SKILLs, 13k stars), Sentence Transformers Embeddings (Orchestra-Research/AI-Research-SKILLs, 13k stars), SentencePiece Tokenizer (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Hugging Face Transformers Usage (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,506 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 11, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.