From code-testing-agent
Suggests targeted, meaningful tests for code based on actual behavior and intent. Use when the user asks to suggest tests, recommend tests, identify what to test, review testability, or find untested behavior — or says "what tests should I write", "test this code", "what would you test here", or "help me test this feature". Provides test suggestions with rationale and can write test files on request — does not run tests or perform code quality reviews.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-testing-agent:code-testing-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
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.
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.
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."
[test command] to verify.npx claudepluginhub shawn-sandy/agentics --plugin code-testing-agentGenerates tests for any file type with automatic framework detection, project convention matching, and type-specific routing (React, Vue, Python, Go, Rust, PHP, E2E).