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 17d 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.
- 17d 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 2d 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.
Other skills, from other repositories
caliber-testing
Writes Vitest tests following project patterns: tests/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factories, global LLM mock from src/test/setup.ts, environment variable save/restore in beforeEach/afterEach, vi.clearAllMocks() lifecycle, and test file organization. Use when user says…
agentplane-testkit-migration
Use when migrating Agentplane tests to @agentplane/testkit, replacing local test helpers, fixing testkit export/build failures, splitting large CLI/backend suites, or diagnosing missing testkit dist exports in package builds.
qamap-pr-qa
PR bug review and test planning with QAMap. Run qamap qa brief once; it prints the diff, each changed declaration's tests and callers with assertion lines, QA focus and unknowns in one bounded local response, so the review starts from it instead of re-exploring the repository.
tdd-test-engineer
Use for test-first development, regression tests, flaky test debugging, coverage gaps, test strategy, CI failures, or converting bugs into minimal reproducible tests.
rudder
Use locally captured coding-session intent to resolve a device-local behavioral spec, generate focused tests from that spec, implement the smallest production changes through red-green TDD, and verify coverage with the repository's native tooling. Use when the user asks to run Rudder, create or regenerate tests for…
agents-doctor
Validate AGENTS.md and related agent instruction files with the published agents-doctor CLI. Use when the user asks to check, lint, verify, explain, audit, fix, release-check, or compare AGENTS.md, CLAUDE.md, GEMINI.md, agent instruction inheritance, tool profiles, context fidelity, instruction graphs, GitHub…