Advanced Evaluation
guanyang/open-agent-hub
This skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias mitigation, confidence scoring, and automated…
Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1.
$ npx skills add maziyarpanahi/openmed --skill evaluating-with-leakage-gates -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed evaluating-with-leakage-gates --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/evaluating-with-leakage-gates .claude/skills/evaluating-with-leakage-gates && 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 "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .claude/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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/evaluating-with-leakage-gatesType 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 evaluating-with-leakage-gates -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed evaluating-with-leakage-gates --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/evaluating-with-leakage-gates .agents/skills/evaluating-with-leakage-gates && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .agents/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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 evaluating-with-leakage-gates -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed evaluating-with-leakage-gates --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/evaluating-with-leakage-gates .cursor/skills/evaluating-with-leakage-gates && 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 "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .cursor/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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/evaluating-with-leakage-gates--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 evaluating-with-leakage-gates -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed evaluating-with-leakage-gates --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/evaluating-with-leakage-gates .gemini/skills/evaluating-with-leakage-gates && 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 "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .gemini/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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 evaluating-with-leakage-gatesInstalls 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 evaluating-with-leakage-gates -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/evaluating-with-leakage-gates .github/skills/evaluating-with-leakage-gates && 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 "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .github/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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 evaluating-with-leakage-gates -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 evaluating-with-leakage-gates --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/evaluating-with-leakage-gates .opencode/skills/evaluating-with-leakage-gates && 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 "evaluating-with-leakage-gates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/evaluating-with-leakage-gates into .opencode/skills/evaluating-with-leakage-gates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "evaluating-with-leakage-gates", 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.
evaluating-with-leakage-gatesEvaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1.
Evaluating With Leakage Gates is an agent skill from maziyarpanahi/openmed. Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1. Use when the user wants to run the OpenMed eval harness on a synthetic golden set, decide whether a de-id model is RELEASABLE or QUARANTINED, enforce direct-identifier recall floors, require zero critical leakage, fit calibration thresholds, or produce a signed gate report. Trigger on "release gate", "leakage", "is this model safe to…
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Performance reviews and LLM evaluation. The repository describes itself as: Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control. 2,200+ medical models, 35 model-backed PII languages, and Python, MLX, Android… The licence is Apache-2.0.
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.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
hhs.govcsrc.nist.govdoi.orgFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
API_KEYOPENMED_RELEASE_GATE_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Evaluating With Leakage Gates loads about 2k tokens when it runs. Until then it costs about 163 tokens; SKILL.md has 655 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). 655 words, ~2,033 tokens.
.claude/skills/evaluating-with-leakage-gates/SKILL.md (or your agent's skills folder).OpenMed's release gates answer one question: did any PHI leak? A de-id model
with a beautiful F1 can still leak a single SSN — and that one leak is a HIPAA
breach. So openmed.eval gates on residual leakage and per-label recall
floors, not on aggregate F1. The candidate is either RELEASABLE or
QUARANTINED; there is no partial credit.
critical_leakage == 0.thresholds.json) before the gate will pass.This is the flagship eval skill. For a pure NER scorecard see
benchmarking-clinical-ner; for CI wiring see gating-deid-leakage.
| Gate | Checks | Floor / rule |
|---|---|---|
| G1a | Direct & quasi identifiers (PERSON, EMAIL, PHONE, SSN, ID_NUM, DATE_OF_BIRTH, ...) | recall ≥ 0.990 (v1.6) / 0.995 (v2.0); strict-no-leak policies raise the floor |
| G1b | Structured secrets (API_KEY, ACCOUNT_NUMBER, CREDIT_CARD, IBAN) | recall ≥ 0.995 |
| G2 | Free-text names/locations/dates | recall ≥ 0.980 (v1.6) / 0.990 (v2.0) |
| G3 | Critical leakage (SSN, CREDIT_CARD, CVV, API_KEY, PIN, IBAN, ...) | count must be exactly 0 |
| G4 | Quantized recall delta vs fp parent | within INT8 / INT4 limits |
| G5 | Latency & RAM vs device tier budget | p50/p95/RAM under tier budget |
| G6 | p50/p95 latency documented | must be present and finite |
| G7 | Baseline regression | recall drop ≤ 0.002/label; leakage ≤ soft ceiling 0.005 and ≤ steward target; no leakage regression vs last-green |
| G8 | Span integrity | predicted spans validate (no overlaps/out-of-range) |
Constants live in openmed.eval.release_gates (G1A_V16_RECALL_FLOOR,
G1B_RECALL_FLOOR, G7_RECALL_DROP_LIMIT, RESIDUAL_LEAKAGE_SOFT_CEILING, ...).
Confirm them there rather than hardcoding — they move per milestone.
Run a candidate benchmark over a synthetic golden suite, then gate it:
from openmed.eval import run_suite, ReleaseGate, RELEASABLE
# 1) Produce a candidate BenchmarkReport from a SYNTHETIC fixtures file.
# Each fixture carries gold PHI spans; no real patient text is committed.
report = run_suite(
"eval/golden/phi_synthetic.json", # user-supplied synthetic fixtures
suite="golden",
model_name="OpenMed/Privacy-PII-Detection",
device="cpu",
metadata={
"family": "PII",
"tier": "base",
"policy": "hipaa_safe_harbor",
# calibration artifacts are required for mask/replace policies (see below)
"thresholds_path": "eval/artifacts/thresholds.json",
"calibration_report_path": "eval/artifacts/calibration_report.json",
},
)
# 2) Gate it. The gate reads the last-green baseline store read-only and
# returns a signed GateReport.
gate = ReleaseGate(milestone="v1.6", policy="hipaa_safe_harbor")
decision = gate.evaluate(report)
print(decision.decision) # "RELEASABLE" or "QUARANTINED"
for check in decision.gate_results:
if not check.passed:
print(check.gate, "->", check.reason, check.details)
assert decision.decision == RELEASABLE, "do not ship a quarantined model"CLI equivalent (fails closed, exit code 1 on quarantine):
python -m openmed.eval.release_gates \
--candidate eval/out/candidate_report.json \
--milestone v1.6 --policy hipaa_safe_harbor \
--output release-gate-report.jsonBuild a synthetic golden suite. Fixtures are JSON with text and
gold_spans (offsets + labels). Use building-gold-corpus to scaffold one.
Committed gold must be synthetic; DUA corpora (i2b2/n2c2) are eval-only and
never committed.
Fit calibration thresholds for any policy that masks or replaces:
from openmed.eval import write_calibration_artifacts
paths = write_calibration_artifacts(
calibration_samples, # held-out score/target samples
artifact_dir="eval/artifacts",
model_id="OpenMed/Privacy-PII-Detection",
suite="golden",
target_leakage=0.0, # leakage-first: drive leakage to 0
)
# writes thresholds.json + calibration_report.json the gate looks forThe gate's calibration_present check fails the build if these are missing
for a mask/replace policy.
Run the suite (run_suite / run_benchmark) to get a BenchmarkReport.
Evaluate with ReleaseGate(...).evaluate(report).
Read the per-gate results. Each GateCheck carries gate, passed,
reason, and details (e.g. which labels fell below the recall floor).
Fail closed. Treat anything other than RELEASABLE as a hard stop.
Audit subgroups with fairness_report (see auditing-subgroup-fairness)
so an aggregate pass doesn't hide an under-protected group.
building-with-openmed and the de-id pipeline: you evaluate the model
produced by openmed.deidentify / openmed.extract_pii.gating-deid-leakage: wrap ReleaseGate.evaluate(...) in a pytest/CLI
gate so CI fails closed on regression.authoring-model-cards: feed GateReport, fairness_report, and
error_report outputs into the model card's metrics and limitations sections.auditing-subgroup-fairness (fairness_report) and
benchmarking-clinical-ner (error_report).thresholds.json →
calibration_present fails → QUARANTINED.family, tier, format,
eval_set_hash, leakage_fixture_hash); manifest_coherence fails without it.OPENMED_RELEASE_GATE_KEY for a real
signing key; GateReport.verify(key) checks the repro hash and signature.openmed/eval/release_gates.py,
openmed/eval/harness.py, openmed/eval/calibrate.py.© 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
Just SKILL.md in skills/evaluating-with-leakage-gates of maziyarpanahi/openmed.
Open the folder on GitHubat commit 34d7b8c
Evaluating With Leakage Gates 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 |
|---|---|---|---|---|---|---|
| Evaluating With Leakage Gates this skillmaziyarpanahi/openmed | 5.5k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Advanced Evaluationguanyang/open-agent-hub | 977 | 2 repos | ~4.2k | Automated safety check: Pass | MIT | |
| Eval Harness Firstwshobson/agents | 40k | — | ~2k | Automated safety check: Pass | MIT | |
| Astreawarpfront/hipfire | 658 | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Rlt Perf OptThinkFlowLab/vllm-rlt | 149 | — | ~4.6k | Automated safety check: Pass | Apache-2.0 | |
| Vss Setup Behavior AnalyticsNVIDIA-AI-Blueprints/video-search-and-summarization | 1.9k | — | ~2.7k | Automated safety check: Pass | Apache-2.0 |
guanyang/open-agent-hub
This skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias mitigation, confidence scoring, and automated…
wshobson/agents
Build the evaluation harness that gates every fine-tuning run — golden sets, per-failure-mode graders, judge calibration, and base-model baselines.
warpfront/hipfire
A skill your agent uses for hipfire quant calibration, imatrix-driven experiments, KLD/PPL quality evaluation, k-map/format selection, MQ/HFQ/HFP/MFP tradeoff work, ParoQuant-style weight transform…
ThinkFlowLab/vllm-rlt
Analyze and optimize vllm-rlt inference performance using reproducible unprofiled benchmarks, paired ops-only/full profiles, source-level attribution, and correctness checks.
NVIDIA-AI-Blueprints/video-search-and-summarization
A skill your agent uses to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration).
amd/Quark
L3 recipe that runs quark.onnx.AutoSearchPro end-to-end on a user .onnx model: intake → preset selection (or custom search space) → calibration / eval data reader → standalone autosearch script…
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
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
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.
Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1. Evaluating With Leakage Gates is an agent skill from maziyarpanahi/openmed. Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1.
Evaluating With Leakage Gates fits situations like: the user wants to run the OpenMed eval harness on a synthetic golden set; decide whether a de-id model is RELEASABLE; enforce direct-identifier recall floors; require zero critical leakage.
Run `npx skills add maziyarpanahi/openmed --skill evaluating-with-leakage-gates -a claude-code`. Or copy the skill folder (skills/evaluating-with-leakage-gates in maziyarpanahi/openmed) into .claude/skills/evaluating-with-leakage-gates in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill evaluating-with-leakage-gates -a codex`. Or copy the skill folder (skills/evaluating-with-leakage-gates in maziyarpanahi/openmed) into .agents/skills/evaluating-with-leakage-gates 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 evaluating-with-leakage-gates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/evaluating-with-leakage-gates, .gemini/skills/evaluating-with-leakage-gates, .github/skills/evaluating-with-leakage-gates and .opencode/skills/evaluating-with-leakage-gates in your project.
Going by SKILL.md and its folder, Evaluating With Leakage Gates needs the command-line tools its instructions call (python) and credentials named API_KEY and OPENMED_RELEASE_GATE_KEY. Our summary lists: Python 3; A credential in API_KEY; A credential in OPENMED_RELEASE_GATE_KEY.
SKILL.md names 3 domains. As links in the text: hhs.gov, csrc.nist.gov and doi.org. 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.
Evaluating With Leakage Gates 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 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Evaluating With Leakage Gates: Advanced Evaluation (guanyang/open-agent-hub, 977 stars), Eval Harness First (wshobson/agents, 40k stars), Astrea (warpfront/hipfire, 658 stars) and Rlt Perf Opt (ThinkFlowLab/vllm-rlt, 149 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.