claude-boris: Command for Claude Code

.claude/commands/test-and-fix.md

test-and-fix is a command for Claude Code from llcoolblaze/claude-boris. It costs 16 tokens per session (296 once invoked), scanned A, original, MIT.

A command set that runs tests, type checks, and lint checks, then fixes reported problems and repeats the checks. Type checks catch incorrect data types, while lint checks catch code-quality and style issues.

In plain words
What is it for?
Use it after code changes to run the verification suite, prioritize type errors and test failures, fix issues, and rerun checks until they pass.
Why use it?
It reduces the manual work of investigating failures and helps ensure fixes address the actual problem without weakening tests or checks.

Command for Claude Code

Written for Claude Code: dynamic context !`command`.

This is llcoolblaze/claude-boris's own configuration. It tells Claude Code how to work on claude-boris itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-boris configures →

Reuse

Borrowing it

Nothing to install: this file belongs to llcoolblaze/claude-boris. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/llcoolblaze/claude-boris/main/.claude/commands/test-and-fix.md
Clone the repo
git clone --depth 1 https://github.com/llcoolblaze/claude-boris

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 test-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/llcoolblaze/claude-boris/test-and-fix.svg)](https://agentmods.dev/commands/llcoolblaze/claude-boris/test-and-fix)
Your own site
<a href="https://agentmods.dev/commands/llcoolblaze/claude-boris/test-and-fix"><img src="https://agentmods.dev/badge/commands/llcoolblaze/claude-boris/test-and-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 296 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.00016 $0.00296
Opus 5 $0.00008 $0.00148
Sonnet 5 $0.00003 $0.00059
Haiku 4.5 $0.00002 $0.00030

Measured 8d ago against content hash 8331e7e627bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test-and-fix 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 8d 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/commands/test-and-fix.md · 53 lines

What it actually says

Running Verification Suite

!npm test 2>&1 || true !npm run typecheck 2>&1 || true !npm run lint 2>&1 || true


Analysis & Action

Based on the results above:

If All Checks Pass ✅

Report success:

  • Tests: X passing
  • Types: Clean
  • Lint: Clean

Suggest next steps: /commit-push-pr or /review-changes

If Any Checks Fail ❌

Priority Order:

  1. TypeScript errors - Fix first (blocks everything)
  2. Test failures - Fix next (correctness matters)
  3. Lint errors - Fix last (style issues)

Process:

  1. Analyze the specific failures
  2. Identify root cause (don't just fix symptoms)
  3. Make targeted fixes
  4. Re-run the failing checks
  5. Iterate until all pass

Guidelines:

  • Don't weaken tests to make them pass
  • Don't disable linting rules
  • Fix the actual problem, not the error message
  • If a test is genuinely wrong, fix the test with explanation

After each fix:

npm test
npm run typecheck
npm run lint

Continue iterating until all checks pass, then report final status.

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. 8d ago First seen · 53 lines · 16 tokens per session scan A 8331e7e627bd

Subscribe to this mod's changes

test-and-fix is a command published in the GitHub repository llcoolblaze/claude-boris (48 stars, last pushed 7mo ago), licensed MIT. It adds 16 tokens to every session and 296 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.