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.
npx skills add alipajand/agent-context-doctor --skill adding-an-audit-checkgit clone --depth 1 https://github.com/alipajand/agent-context-doctorWrote 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.
[](https://agentmods.dev/skills/alipajand/agent-context-doctor/adding-an-audit-check)<a href="https://agentmods.dev/skills/alipajand/agent-context-doctor/adding-an-audit-check"><img src="https://agentmods.dev/badge/skills/alipajand/agent-context-doctor/adding-an-audit-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.
<a href="https://agentmods.dev/skills/alipajand/agent-context-doctor/adding-an-audit-check"><img src="https://agentmods.dev/badge/skills/alipajand/agent-context-doctor/adding-an-audit-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.00405 |
| Opus 5.5 | $0.00020 | $0.00162 |
| Sonnet 5.5 | $0.00010 | $0.00081 |
| Haiku 4.5 | $0.00005 | $0.00040 |
Grade A, and why
adding-an-audit-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 2mo ago.
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.
What it actually says
Adding an audit check
- Write the check in
src/audit/checks/<name>.tsas a pure functioncheck<Name>(filePath: string, content: string): ContextIssue[]. UsegetLineEvidencefor evidence so it is sanitized, and give each issue a stableid, acategory, a severity, a message, and a recommendation. - Decide where it runs in
src/audit/auditRepo.ts: every context file, only primary files (isPrimaryInstructionFile), or across files. Cross-file logic belongs inauditRepo.ts. - Make it configurable: add the ID to
VALID_CHECKSinsrc/config/schema.ts, toKNOWN_SUPPRESSION_CATEGORIESinsrc/audit/suppressions.ts, and an entry toCHECKSinsrc/audit/checkCatalog.ts(a test fails if the catalog and schema disagree). - Test it in
tests/<name>.spec.ts: at least one match, one non-match, one edge case, and a negated or placeholder case if the check reads prose. - Dogfood it: run
pnpm dev audit /path/to/another/repoon real repositories and fix false positives before finishing. - Document it: the checks table and
disabledCheckslist inREADME.md, the check list indocs/ROUTES.md, the table indocs/ARCHITECTURE.md, and an entry inCHANGELOG.md. - Run
/verify.
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.
- 2mo ago First seen · 24 lines · 50 tokens per session scan A 13bacf0e98de
adding-an-audit-check is a skill published in the GitHub repository alipajand/agent-context-doctor (1 stars, last pushed 4d ago), licensed MIT. It adds 50 tokens to every session and 405 once invoked, about $0.0002 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-09-24.
adding-an-audit-check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| adding-an-audit-checkalipajand/agent-context-doctor | Skill | 1 | 4d ago | MIT | A | 50 | Claude Code |
| agents-doctorItsHege/agents-md-doctor | Skill | 2 | 2mo ago | MIT | A | 93 | Claude Code, Codex |
| elon-stackAccountZero/elon-stack | Skill | 5 | 3mo ago | none | A | 39 | Claude Code |
| ruleblastKpoiut/ruleblast | Skill | 19 | 3mo ago | Apache-2.0 | A | 53 | Claude Code, Codex |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| caliber-testingcaliber-ai-org/ai-setup | Skill | 1.3k | 2mo ago | MIT | A | 0 | Claude Code, Codex |
| adding-a-commandcaliber-ai-org/ai-setup | Skill | 1.3k | 2mo ago | MIT | A | 76 | Claude Code, Codex |