Agent skill
test-running
Run tests according to repository guidelines. Use after linting passes, before staging changes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/test-running
SKILL.md
Test Running
Run all appropriate tests according to repository guidelines.
When to Use This Skill
Use this skill:
- After linting passes
- Before staging changes for commit
- After implementing a feature or bug fix
- When verifying existing functionality still works
Test Discovery
Run tests according to repository guidelines. Look for test commands in:
- Repository documentation (
README.md,AGENTS.md,CLAUDE.md, etc.) - Package configuration (
package.json,Makefile,pyproject.toml,Cargo.toml, etc.) - Standard test patterns for the project type
If no test guidelines are found or they are unclear, ask the user for clarification.
Common Test Commands
# JavaScript/TypeScript
npm test
yarn test
pnpm test
# Python
pytest
python -m pytest
make test
# Other
./bin/test-*
*test*
Testing Process
CRITICAL REQUIREMENT: 100% test success is MANDATORY.
For each test command found:
- Run it
- If ANY test failures occur, they MUST be fixed
- If issues can't be fixed immediately, stop and ask the user what to do next
- Only consider the task complete when ALL tests pass with 100% success rate OR the user explicitly gives permission to ignore certain failures
Important Notes
- "Issues" includes not only test failures, but also noise in test output such as warnings which could mask true failures
- Don't proceed until all tests pass or user explicitly allows deferral
- Document any failures clearly with file, test name, and error message
Output
Report results organized by:
- Passing tests: Summary of what passed
- Failing tests: Each failure with file, test name, and error
- Recommendations: What needs to be fixed
If all tests pass, simply confirm: "All tests passed."
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?