adding-an-audit-check

adding-an-audit-check is a skill for Claude Code from alipajand/agent-context-doctor. It costs 50 tokens per session (405 once invoked), scanned A, original, MIT.

A step-by-step skill for adding a new audit check to a tool that finds problems in agent instruction files. It covers the check's code, configuration, tests, real-repository trials, and documentation.

In plain words
What is it for?
Use it when adding detection for a new kind of problem, including its settings, suppression options, test cases, documentation, and trial runs.
Why use it?
It prevents a new check from being added only partially or from producing false positives without being tested and documented.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when adding detection for a new kind of problem, including its settings, suppression options, test cases, documentation, and trial runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alipajand/agent-context-doctor/adding-an-audit-check
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 alipajand/agent-context-doctor --skill adding-an-audit-check
Clone the repo
git clone --depth 1 https://github.com/alipajand/agent-context-doctor

Made for: Claude Code.

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 adding-an-audit-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/alipajand/agent-context-doctor/adding-an-audit-check/github.svg)](https://agentmods.dev/skills/alipajand/agent-context-doctor/adding-an-audit-check)
Your own site
<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.

agentmods 80×15 button for adding-an-audit-check

Your own site · 80×15
<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>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 405 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.00050 $0.00405
Opus 5.5 $0.00020 $0.00162
Sonnet 5.5 $0.00010 $0.00081
Haiku 4.5 $0.00005 $0.00040

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

Security

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.

.claude/skills/adding-an-audit-check/SKILL.md · 24 lines

What it actually says

Adding an audit check

  1. Write the check in src/audit/checks/<name>.ts as a pure function check<Name>(filePath: string, content: string): ContextIssue[]. Use getLineEvidence for evidence so it is sanitized, and give each issue a stable id, a category, a severity, a message, and a recommendation.
  2. Decide where it runs in src/audit/auditRepo.ts: every context file, only primary files (isPrimaryInstructionFile), or across files. Cross-file logic belongs in auditRepo.ts.
  3. Make it configurable: add the ID to VALID_CHECKS in src/config/schema.ts, to KNOWN_SUPPRESSION_CATEGORIES in src/audit/suppressions.ts, and an entry to CHECKS in src/audit/checkCatalog.ts (a test fails if the catalog and schema disagree).
  4. 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.
  5. Dogfood it: run pnpm dev audit /path/to/another/repo on real repositories and fix false positives before finishing.
  6. Document it: the checks table and disabledChecks list in README.md, the check list in docs/ROUTES.md, the table in docs/ARCHITECTURE.md, and an entry in CHANGELOG.md.
  7. Run /verify.
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. 17d ago First seen · 24 lines · 50 tokens per session scan A 13bacf0e98de

Subscribe to this mod's changes

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.

Related

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…

caliber-ai-org/ai-setup · 0 tokens

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.

basilisk-labs/agentplane · 49 tokens

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.

IvoryCanvas/QAMap · 68 tokens

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.

DominikTobureto/awesome-grok-build · 37 tokens

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…

RudderCode/Rudder · 101 tokens

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…

ItsHege/agents-md-doctor · 93 tokens