quality-gap-check

quality-gap-check is a skill for Claude Code, Codex from microsoft/cat-agent-skills. It costs 146 tokens per session (1,447 once invoked), scanned A, original, MIT.

A rules-based checker that compares a signed clinical encounter note with configured healthcare quality measures. Quality measures are defined checks used to assess whether documented care met a required standard.

In plain words
What is it for?
It checks which quality measures are open for an encounter and records or escalates requests to mark a measure as met.
Why use it?
It bases each result only on cited documentation and refuses attempts to change a measure's status without evidence. This makes gaps visible without treating undocumented care as completed.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit It checks which quality measures are open for an encounter and records or escalates requests to mark a measure as met.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/cat-agent-skills/quality-gap-check
About the project

microsoft/cat-agent-skills is a static website that catalogs reusable instruction sets and related packages for AI agents. People use it to search, filter, rate, and download skills for Cowork, Copilot Studio, and Scout, along with Copilot plugins and Scout automations. The catalogue entries are the skills, instructions, plugins, and settings displayed by the site.

microsoft/cat-agent-skills · 101 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/cat-agent-skills --skill quality-gap-check
Clone the repo
git clone --depth 1 https://github.com/microsoft/cat-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-gap-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/quality-gap-check/github.svg)](https://agentmods.dev/skills/microsoft/cat-agent-skills/quality-gap-check)
Your own site
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/quality-gap-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/quality-gap-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-gap-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/quality-gap-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/quality-gap-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00146 $0.01447
Opus 5.5 $0.00058 $0.00579
Sonnet 5.5 $0.00029 $0.00289
Haiku 4.5 $0.00015 $0.00145

Measured 2d ago against content hash 05ac1bc93e9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quality-gap-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (base/scripts/quality_gap_engine.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

submissions/clinical-documentation-companion/quality-gap-check/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quality Gap Check

Purpose

Produce the objective, ungameable quality-measure result for the encounter, with every status-change request refused and escalated by name.

When to use

After note-context, for every encounter with applicable quality measures, and for every request that asks for a measure status to change - directly ("mark this measure as met") or indirectly ("it was surely done, let it count"). A request to change a status is never a reason to skip this skill - it is exactly when to run it.

When NOT to Use

  • Claim evidence for a visit level or diagnosis code - use coding-rationale instead.
  • Drafting the handoff or patient documents - use handoff-draft or document-derive instead.
  • Extracting note facts - use note-context instead.
  • Editing measure definitions - config/quality-measures.json is customer-owned and is never edited by this skill.

Inputs

note_facts with citations; config/quality-measures.json; config/escalation-policy.json; requested_measure_status; request_text; the user's live message(s).

Steps

  1. Copy the contract to a working file (never edit the original) and append the user's message verbatim to messages - the engine scans it for override wording.
  2. Run the tool: python3 base/scripts/quality_gap_engine.py --question <working.json> --measures config/quality-measures.json --policy config/escalation-policy.json --out <out.json>. Never compute, estimate or adjust a status yourself.
  3. The engine marks a measure met only where its required_fact_key is true AND cited, and names the missing_fact (plus the note's own note_citation) for every gap.
  4. The engine detects override attempts from requested_measure_status, an uncited note_fact asserted true, or override wording in request_text/messages, refuses each and logs it with the requester's full words. detected_via says where the words came from: "messages" for the live chat message, "request_text" for the request field - one refusal per source, so a chat request is never hidden behind an earlier one. Negated or non-status wording ("don't mark anything as met", "mark it final") is not an override request. A request to report a met measure as a gap is refused too; the measure stays met.
  5. Check: if the user's message asks for a status change and override_attempts_refused is empty, do not report a clean result - state the refusal yourself, keep the engine-computed status unchanged (a gap stays a gap and a met measure stays met, in either direction), and escalate it to routees.override_refusal, quoting the words the engine missed (then report the missed wording so the vocabulary can be extended).
  6. Report only quality_gap_result (and the escalations that concern measures) verbatim, including every refusal; never restate a gap as met or omit one. Leave coding_rationale to coding-rationale.

Read the full file on GitHub · 77 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 77 lines · 146 tokens per session scan A 05ac1bc93e9d

Subscribe to this mod's changes

quality-gap-check is a skill published in the GitHub repository microsoft/cat-agent-skills (101 stars, last pushed yesterday), licensed MIT. It adds 146 tokens to every session and 1,447 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

quality-gap-check compared with skills from other repositories

quality-gap-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quality-gap-checkmicrosoft/cat-agent-skillsSkill101yesterdayMITA146Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill35kyesterdayApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill33ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.8ktodayApache-2.0A205Claude Code