Agent skill
test
Run tests, analyze results, and produce a structured verdict
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/test-daemn256-workspace-repo-templ-2
SKILL.md
Test
Uses Test persona. Take test execution output, parse it into structured results, produce a clear verdict, and recommend next actions.
Prerequisites: Test output provided (pasted or from execution)
Phase 1: Parse Output
Extract Structured Data
- Identify the test framework from output format
- Extract total, passed, failed, skipped counts
- For failures, extract:
- Test name
- File and line location
- Error message
Output
## Context Anchors
- **Phase:** 1 — Parse Output
- **Framework:** <detected framework>
## Execution Summary
| Metric | Count |
| ------- | ----- |
| Total | <N> |
| Passed | <N> |
| Failed | <N> |
| Skipped | <N> |
## Next Step
Continue to verdict.
**Approval Required:** No
Phase 2: Produce Verdict
Classify and Analyze
- Apply verdict criteria:
| Verdict | Criteria |
|---|---|
| PASS | All tests pass, no critical warnings |
| PARTIAL | Tests pass but with skipped tests or warnings |
| FAIL | One or more test failures |
- For failures, analyze likely cause
- Suggest remediation approach
Failure Analysis
For each failure:
- Identify the failing test name
- Extract the error message
- Note the file and line if available
- Analyze likely cause based on error type
- Suggest remediation approach
Common Failure Patterns
| Pattern | Likely Cause |
|---|---|
| Assertion failed | Logic error or incorrect expectation |
| Null reference | Missing setup or unexpected null |
| Timeout | Async issue or infinite loop |
| Connection refused | External dependency unavailable |
| Not found | Missing file, resource, or configuration |
Output
## Context Anchors
- **Issue:** #<number> (if applicable)
- **Test suite:** <name>
## Execution Summary
| Metric | Count |
| ------- | ----- |
| Total | <N> |
| Passed | <N> |
| Failed | <N> |
| Skipped | <N> |
## Verdict: <PASS | PARTIAL | FAIL>
<one paragraph summary>
## Failure Details (if any)
| Test | Location | Error | Likely Cause |
| ------ | ----------- | --------- | ------------ |
| <name> | <file:line> | <message> | <analysis> |
## Recommendations
- <next step 1>
- <next step 2>
## Next Step
<action based on verdict>
**Approval Required:** No
⛔ CHECKPOINT
STOP. Verify the verdict matches actual test output before reporting.
Critical: Never trust exit code alone. Parse and report actual counts.
Phase 3: TDD Workflow
Write Tests First
- Read the ticket and implementation plan to understand what is being built
- Write failing tests that define the expected behavior
- Confirm tests fail for the right reason (not setup errors)
- Hand off to Implementer — tests define the contract
- Resume after implementation to verify tests pass
Phase 4: Coverage Analysis
Assess Test Coverage
- Run the coverage tool specified in
workspace.config.yaml - Identify untested paths — not just line coverage, but branch and error coverage
- Flag high-risk untested areas (auth, validation, data transforms)
- Report coverage delta if a baseline exists
Error Handling
| Error | Recovery |
|---|---|
| Unparseable output | Report what was understood, flag unknown sections |
| Mixed framework output | Process each framework section separately |
| No test output provided | Ask user to run tests and paste output |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?