sanitize-check

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

A tool that checks whether lessons and assets may be reused or shared. It looks for personal information, commercial figures, licensed material, confidentiality concerns, and risks from combining facts.

In plain words
What is it for?
Use it after grouping lessons to mark items as held or as candidates for human review before external use.
Why use it?
It helps prevent sensitive or restricted content from being treated as safe by default.

Skill for Claude CodeCodex ✓ vendor

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

Good fit Use it after grouping lessons to mark items as held or as candidates for human review before external use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/cat-agent-skills/sanitize-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 sanitize-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 sanitize-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/sanitize-check/github.svg)](https://agentmods.dev/skills/microsoft/cat-agent-skills/sanitize-check)
Your own site
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/sanitize-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/sanitize-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 sanitize-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/sanitize-check"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/sanitize-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,788 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.00156 $0.01788
Opus 5.5 $0.00062 $0.00715
Sonnet 5.5 $0.00031 $0.00358
Haiku 4.5 $0.00016 $0.00179

Measured yesterday against content hash 02db86028058, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sanitize-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 yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/closeout_core.py, scripts/sanitize_check.py, scripts/steering_guard.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/engagement-closeout-knowledge-harvest/skills/sanitize-check/SKILL.md · 93 lines

How it starts

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

Sanitize Check (Govern)

Purpose

The sanitisation determination is the work: direct identifiers, personal data, commercial figures, licensed material, aggregation risk and confidence floor decide whether an item is held or becomes a release candidate for human review.

When to use

After lesson-cluster and before knowledge-record on every closeout harvest; also whenever a user asks "can we share this externally?" or "is this safe to reuse?".

When NOT to Use

  • Raw sources need assembly - use artifact-assemble.
  • Assets need reuse scoring or completeness checks - use asset-identify.
  • Decisions and retrospective evidence need clustering - use lesson-cluster.
  • The user asks for final prose, a handoff or publication - use knowledge-record for a draft only after Govern.

Inputs

lessons_clustered.json containing scored assets, lesson clusters, retrospective inputs and confidentiality terms.

Steps

  1. Run scripts/sanitize_check.py --input lessons_clustered.json --out governed.json.
  2. Quote sanitisation_report.findings[] verbatim, especially HOLD decisions.
  3. Lead with embedded-instruction and aggregation-risk holds; individually safe facts can combine into a client-identification incident.
  4. Pass only released_assets[] and rewritten lesson guidance to knowledge-record; held content stays named in the report but out of the reusable record body.
  5. If the engine exits non-zero (exit 2 prints sanitize_check: input error: ...; nothing written, including when an upstream output was edited), stop and report the error; never recreate or edit its verdict.

Tools

Run scripts/sanitize_check.py with the shell tool and read governed.json with the file-read tool. Never call email, Teams, SharePoint-write, publishing or knowledge-base actions.

Output

governed.json with sanitisation_report, released_assets, held_assets, governed lesson guidance and a stable knowledge_record object that contains no raw summary seeds. The engine copies every input key forward and adds (one item per array shown):

Read the full file on GitHub · 93 lines

Files

What ships with it

7 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. yesterday First seen · 93 lines · 156 tokens per session scan A 02db86028058

Subscribe to this mod's changes

sanitize-check is a skill published in the GitHub repository microsoft/cat-agent-skills (101 stars, last pushed yesterday), licensed MIT. It adds 156 tokens to every session and 1,788 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-07.

Related

sanitize-check compared with skills from other repositories

sanitize-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sanitize-checkmicrosoft/cat-agent-skillsSkill101yesterdayMITA156Claude Code, Codex
fto-triageanthropics/claude-for-legalSkill9.9kyesterdayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill9.9kyesterdayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill19ktodayMITA49Claude Code
regulatory-research-fallbackHKUDS/OpenSpaceSkill7.9k2d agoMITA20Claude Code, Codex
terms-of-servicegenspark-ai/genofficeSkill12ktodayApache-2.0A32Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.7k8d agoApache-2.0A57Claude Code, Codex