Agent skill
test-executor
Executes tests, analyzes test results, checks test coverage, and provides comprehensive testing status overview. Primarily for Go projects. Activates after implementing/modifying code to verify correctness, or when explicitly requested to assess test suite health.
Install this agent skill to your Project
npx add-skill https://github.com/fubira/claude-code-settings/tree/main/skills/test-executor
SKILL.md
Test Executor Skill
Execute tests, analyze results, and report coverage. Primarily for Go projects.
Activation Triggers
- After code implementation/modification (automatic)
- "test coverage", explicit test requests (manual)
- Before commit or PR creation
Workflow
Phase 1: Determine Test Scope
- Identify target packages from project structure
- Check for Makefile or custom test commands
- Coverage threshold: follow project settings (default 80%)
Phase 2: Execute
# Tests + coverage
go test ./internal/... -coverprofile=coverage.out -covermode=atomic
go tool cover -func=coverage.out
# Benchmarks (on request only)
go test -bench=. -benchmem ./...
Phase 3: Report Results
## Test Results
### Summary
- Tests run: X
- Passed: Y ✅ / Failed: Z ❌
- Coverage: W% (threshold: N%)
- Verdict: [✅ All passing / ⚠️ Issues found / ❌ Critical failures]
### Package Coverage
[package-by-package breakdown]
### Issues
[items needing attention]
### Recommended Actions
[specific next steps]
Failure Analysis
- Identify root cause, not just surface-level error message
- Suggest specific fixes
- Recommend adding tests for the failure scenario
Edge Cases
- No tests found → suggest creating test files
- coverage.out generation failure → troubleshoot
- Flaky test → re-run to confirm
- Build error → distinguish compilation errors from test failures
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
refactoring-assistant
Assists with code refactoring by detecting code smells, suggesting improvements, and providing refactoring patterns. Activates when writing/editing code, explicitly requested refactoring, or when code quality issues are detected. Maintains awareness of core principles while providing detailed patterns and examples.
code-reviewer
Assists with code review by analyzing code changes for quality, best practices, security, and potential issues. Activates after implementing code features, bug fixes, or refactorings. Provides structured feedback with critical issues, suggestions, and positive highlights.
context-compactor
Analyzes and compacts context-affecting documents (project memory, CLAUDE.md, skill files) to reduce token usage and compaction frequency. Manual trigger only. Always requires user approval before making changes.
knowledge-manager
Manages a structured knowledge base of patterns, troubleshooting guides, best practices, and workflows. Activates when discovering reusable insights, solving technical problems, or establishing new standards. Records knowledge in categorized files for future reference without bloating global CLAUDE.md.
release-assistant
Automates and ensures reliable release workflows with automatic version bump based on commit history, mandatory lint/build/test execution before release, and safe tag creation and push.
git-commit-assistant
Assists with careful Git commits in any repository. Activates when committing changes, checking .gitignore, or generating commit messages. Ensures proper file exclusion (credentials, MCP configs, personal settings), identifies untracked files, and generates Conventional Commits messages with Japanese explanations.
Didn't find tool you were looking for?