audit-tests

audit-tests is a command for Claude Code from 0xUXDesign/ai-codebase-boilerplate. It costs 12 tokens per session (194 once invoked), scanned A, original, MIT.

A test-review command that sorts tests by how much real protection they provide, from critical behavior checks to redundant or outdated tests.

In plain words
What is it for?
Use it to inspect a test directory, classify every test, and decide which tests to keep, combine, or remove. It reports findings without changing files.
Why use it?
It helps reveal tests that only repeat other coverage, test code that no longer exists, or pass without checking meaningful results.

Command for Claude Code

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.

agentmods
npx agentmods add commands/0xuxdesign/ai-codebase-boilerplate/audit-tests
Clone the repo
git clone --depth 1 https://github.com/0xUXDesign/ai-codebase-boilerplate

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 audit-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/audit-tests.svg)](https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/audit-tests)
Your own site
<a href="https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/audit-tests"><img src="https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/audit-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.00194
Opus 5 $0.00006 $0.00097
Sonnet 5 $0.00002 $0.00039
Haiku 4.5 $0.00001 $0.00019

Measured 4d ago against content hash e341a96d7962, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit-tests 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 4d 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.

template/.claude/commands/audit-tests.md · 17 lines

What it actually says

For the specified directory (or all tests if none specified):

  1. List every test file and test count
  2. Classify each test as:
    • CRITICAL — tests a core business behavior, uses hardcoded expected values
    • USEFUL — tests a real edge case or integration boundary
    • REDUNDANT — duplicates coverage of another test
    • TAUTOLOGICAL — asserts only .toBeDefined(), .toBeTruthy(), or computes expected values from the same code it's testing
    • ORPHANED — tests code that no longer exists
    • OVER-MOCKED — mocks so much the test is self-referential
  3. Recommend: KEEP / CONSOLIDATE / DELETE for each
  4. REPORT ONLY — do NOT modify or delete any tests
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. 4d ago First seen · 17 lines · 12 tokens per session scan A e341a96d7962

Subscribe to this mod's changes

audit-tests is a command published in the GitHub repository 0xUXDesign/ai-codebase-boilerplate (11 stars, last pushed 5mo ago), licensed MIT. It adds 12 tokens to every session and 194 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other commands, from other repositories

go

You are the Project Kickstart agent. Your job is simple: find PRDs, validate them, and execute the full implementation pipeline.

samibs/skillfoundry · 0 tokens

feature

Role: Per-feature quality pipeline that takes a story or feature description from zero to a committed, documented, tested, and evaluated implementation. No stage is skipped. No commit happens without the evaluator's approval.

samibs/skillfoundry · 0 tokens

security-scanner

Security scanner specialized in detecting AI-generated code vulnerabilities using comprehensive anti-pattern databases. You are methodical, thorough, and uncompromising -- every vulnerability is documented, traced, and given a concrete fix.

samibs/skillfoundry · 0 tokens

swarm

You are the Swarm Coordination Manager: a disciplined parallel execution engine that decomposes work into independent units, dispatches them to isolated workers, monitors progress, detects conflicts, and aggregates results into a coherent whole. You turn serial bottlenecks into parallel throughput — safely.

samibs/skillfoundry · 0 tokens

devops

You are the DevOps Specialist -- the single authority on version control, CI/CD pipelines, platform operations (GitHub, Azure DevOps, GitLab), infrastructure, deployment, backup, and cleanup. If it touches git, pipelines, or production infrastructure, it's yours.

samibs/skillfoundry · 0 tokens

tester

You are an exacting senior software tester — a quality gatekeeper who assumes code fails until proven otherwise. You find the failure cases others miss, never accept vague assurances, and never let gaps in test coverage slide.

samibs/skillfoundry · 0 tokens