/code-testing-agent:code-testing-agentfrom code-testing-agent
Suggests purpose-driven tests tied to actual behavior. Writes test files covering untested paths and behavior gaps in the codebase. Use when the user asks to suggest tests or find untested behavior.
Ships in code-testing-agent. 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.
Analyze code and suggest specific, purpose-driven tests tied to actual behavior. Strive to meet the project's coverage target, or maximize coverage when no target is defined.
Freedom level: Flexible — Follow these steps in order. Adapt depth to the code's complexity and the user's request.
Does not run the project's existing test suites — use running-tests; it does execute the test files it writes (Step 6a). Does not review code quality — use code-review-agent.
Use TodoWrite to create todos for Steps 1–6 (all status: "pending"). Mark
each status: "completed" as you finish.
Resolve the target code using this priority order. Load
references/input-resolution.md for detailed parsing heuristics.
git diff --name-only HEAD~1 (exclude test/config/lock
files); confirm with userReport: file(s) to analyze, function scope if any, full-file vs. scoped. Read each target file in full.
Search for design intent (stop at first match):
docs/plans/ — match by filename similarity to target code~/.claude/plans/ — same matching logicgit log --oneline -5 — commit messages describing intent// TODO, // PLAN:, // PURPOSE:, or JSDoc @description in the
target codeIf found: report
"Found plan: [path]. Using it to understand intended behavior." Extract goal,
key behaviors, edge cases, and acceptance criteria.
If not found: report
"No implementation plan found. Inferring intent from code and context."
Proceed to Step 3.
Load references/test-analysis-guide.md for detailed heuristics. Analyze:
Load references/test-infrastructure.md for config file locations and glob
patterns. Detect:
package.json, pytest.ini, Cargo.toml, CI
config, etc.*.test.*, *.spec.*, *_test.* near
the targetjest.config.*, pyproject.toml, .nycrc,
codecov.ymlReport:
"Detected: [framework]. Existing tests use [patterns]. Coverage target: [X]%."
Load references/output-guide.md for the full output template and suggestion
principles. Its closing Worked Example (parseDuration) shows the specificity
every suggestion should match.
For each suggestion provide: What (behavior), Why (blast radius if missing), How (approach + key assertions), Where (file path). Group by file; prioritize by blast radius.
Ask: "Would you like me to write the test file(s)? I will create [path(s)] with the tests above."
Writing files is not done — done means the files are written and the runner
has executed them. Run the framework command detected in Step 4 via Bash,
scoped to only the file(s) just written (e.g. [test command] [written-file]).
Interpret the runner's output:
Report:
"Wrote [N] test file(s). Ran [test command]: [X] passed, [Y] failed, [Z] errored." — include the runner's output, and flag each legitimately failing
test as a behavior-gap finding.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/reviewing-testsAudits tests for quality, coverage, and code alignment. Identifies gaps, redundant tests, and misaligned assertions. Use when the user asks to review, audit, or improve a test suite./running-testsDetects the test framework and runs scoped tests. Reports pass/fail results with output and identifies failing assertions. Use when the user asks to run tests, check if tests pass, or verify changes./tdd-fixFixes bugs via TDD with up to 10 red-green iterations. Writes a failing test then autonomously iterates until the bug is resolved. Use when the user asks to TDD-fix a bug or run a red-green cycle./tdd-loopImplements features via TDD with up to 20 red-green-refactor rounds. Writes failing tests first, then iterates until all pass. Use when the user asks to TDD a new feature or write tests first./verified-changeChanges working code under a local merge gate. Writes the test first, mutation-checks it, then loops until the gate is green. Use when the user asks to prove a change is merge-ready locally.npx claudepluginhub shawn-sandy/agentics-kit --plugin code-testing-agent2 plugins ship this exact skill · first indexed Aug 19, 2026