/agentic-tools:testfrom agentic-tools
Generates comprehensive test suites for existing code without modifying implementation. Analyzes coverage, prioritizes by risk, and validates tests pass.
Ships in agentic-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an orchestrator dispatching agents to analyze existing code and generate comprehensive test suites. Unlike /build (which writes tests alongside implementation), /test targets code that already exists but lacks coverage. You do not modify implementation — you only add tests.
Dispatch an Explore subagent to map test coverage:
Subagent: Task tool, subagent_type="Explore"
Prompt: Analyze the test coverage of this codebase.
1. Find all existing test files (*.test.ts, *.spec.ts, *.test.tsx, etc.)
2. For each source file, determine if it has a corresponding test file
3. For tested files, assess coverage depth:
- Does it test the happy path?
- Does it test error cases?
- Does it test edge cases (empty input, max values, concurrent access)?
- Does it test integration with dependencies?
4. Categorize each source file:
- UNTESTED: no test file exists
- SHALLOW: test file exists but only covers happy path
- ADEQUATE: covers happy path + error cases
- THOROUGH: covers happy path + errors + edge cases + integration
5. For untested/shallow files, assess risk:
- HIGH: auth, payments, data mutations, API routes, security
- MEDIUM: business logic, state management, data transformation
- LOW: UI components, utilities, constants
Return a prioritized list: highest-risk untested files first.
Based on the coverage analysis, create a test plan:
Dispatch one-shot workers to write tests. Each worker gets a subset of test files.
Subagent: Task tool, subagent_type="general-purpose"
Prompt: You are a senior test engineer writing tests for existing code.
You MUST NOT modify any implementation files. Only create/modify test files.
[contents of references/test-writer-prompt.md]
Files to test:
[TARGET_FILE_LIST]
Existing test patterns to follow:
[EXAMPLE_TEST_FROM_CODEBASE]
For each file, write tests covering:
1. Happy path — normal expected usage
2. Error cases — invalid input, missing data, service failures
3. Edge cases — empty arrays, null values, boundary conditions
4. Integration — verify correct interaction with dependencies
After writing each test file:
1. Run: npm test [test-file-path]
2. Verify all tests PASS against current implementation
3. If a test fails, the implementation is correct — fix your test
4. Commit: test(coverage): add tests for [module-name]
After all workers complete:
# Run full test suite
npm test
# Check for regressions (no previously passing tests should now fail)
# Run coverage report if available
npx vitest run --coverage
Test Coverage Delta:
Before: 42% (23/55 files tested)
After: 71% (39/55 files tested)
New test files: 16
New test cases: 147
High-risk coverage:
✓ auth/login.ts: 12 tests (was 0)
✓ api/payments/route.ts: 8 tests (was 0)
✓ lib/pipeline/summary.ts: 15 tests (was 3)
✗ api/webhooks/stripe/route.ts: skipped (untestable without refactor)
Remaining gaps:
- api/webhooks/stripe/route.ts: needs dependency injection refactor
- lib/legacy/parser.ts: complex coupling, recommend refactor first
Tests generated by this skill must meet:
it("returns 401 when auth token is expired") not it("test 3")What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR./captureTurn a failure — a bug, a bad output, a prod incident, a verdict FAIL — into a minimal, reproducible eval level added permanently to the suite, so the same failure can never silently return. Builds the eval flywheel. Trigger: capture this failure, add a regression eval, this bug came back, turn this into an eval, failure to level, lock in this fix, reproduce this failure./chain-riskCompute compounding-error risk for a multi-step or multi-agent pipeline — per-step success rate raised to step count — and show where cumulative reliability falls below target, so you know where to place gates and checkpoints. Trigger: chain risk, compounding error, how reliable is this pipeline, where do I add gates, reliability math, why does my agent fail over long runs, step count risk./constitutionPin a north-star constitution for a multi-agent system and protect the prompt layer from tampering — detect and block unauthorized system-prompt mutation and prompt-injection that tries to redirect downstream agents. Trigger: pin the constitution, north star, protect the system prompt, prompt integrity, stop prompt tampering, agent alignment guardrail, injected intent.