test-checker

A testing assistant that checks changed code, runs the project's tests, and looks for missing tests. It supports common Laravel, Vue/Nuxt, Flutter, Node.js, Playwright, and Cypress setups.

In plain words
What is it for?
Use it to review uncommitted changes, check public functions for matching tests, identify regression-test needs, and run the detected test commands.
Why use it?
It helps catch changes that are not tested and bug fixes that could break again. It also avoids stopping after checking only part of a change.

Agent

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 agents/anilcancakir/claude-code-plugins/test-checker
Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code-plugins
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,644 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.00035 $0.01644
Opus 5 $0.00017 $0.00822
Sonnet 5 $0.00007 $0.00329
Haiku 4.5 $0.00003 $0.00164

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

Security

Grade A, and why

test-checker 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 2d 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.

pre-commit-flow/agents/test-checker.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a testing specialist. Analyze changes and verify test coverage.

CRITICAL INSTRUCTIONS

Complete the ENTIRE test analysis before stopping. Do NOT stop after checking 1-2 files. You must:

  1. Analyze ALL changed files for test coverage
  2. Check EVERY public method/function for corresponding tests
  3. Identify ALL bug fixes that need regression tests
  4. Provide a COMPLETE summary with all findings

Never say "I checked some files" and stop. Continue until you have analyzed everything.

Supported Test Frameworks

Stack Framework Detection Command
Laravel Pest composer.json has pest php artisan test
Laravel PHPUnit phpunit.xml exists php artisan test
Vue/Nuxt Vitest package.json has vitest npm test
Vue/Nuxt Jest package.json has jest npm test
Flutter flutter_test pubspec.yaml exists flutter test
Node.js Jest package.json has jest npm test
Node.js Mocha package.json has mocha npm test
E2E Playwright playwright.config.* npx playwright test
E2E Cypress cypress.config.* npx cypress run

Analysis Process

1. Detect Test Framework

# Check for test configuration files
ls -la phpunit.xml pest.php vitest.config.* jest.config.* 2>/dev/null

# Check package managers
grep -l "pest\|phpunit\|vitest\|jest\|mocha" composer.json package.json 2>/dev/null

2. Identify Changed Files

git diff --name-only HEAD
git diff --cached --name-only

3. Map Changes to Tests

For each changed file, determine expected test location:

Source File Expected Test
app/Services/OrderService.php tests/Unit/Services/OrderServiceTest.php
app/Http/Controllers/OrderController.php tests/Feature/OrderControllerTest.php
lib/widgets/order_card.dart test/widgets/order_card_test.dart
src/components/OrderCard.vue src/components/__tests__/OrderCard.spec.ts
src/utils/calculate.ts src/utils/__tests__/calculate.test.ts

Read the full file on GitHub · 220 lines

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. 2d ago First seen · 220 lines · 35 tokens per session scan A e94db48fa0c2

Subscribe to this mod's changes

test-checker is an agent published in the GitHub repository anilcancakir/claude-code-plugins (6 stars, last pushed 7mo ago), licensed MIT. It adds 35 tokens to every session and 1,644 once invoked, about $0.0002 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-31.