Agente · em Corrigir bugs
test-runner
Executes tests, analyzes results, identifies failures, diagnoses root causes, and provides actionable fixes for failing tests
Procedência
- Origem: davila7/claude-code-templates
- Caminho:
cli-tool/components/agents/development-team/test-runner.md - Versão fixada:
57f899e5394bb8ca166f38eacae8f0853cbfe033 - Licença: MIT
- Espelhado em 25/09/2026
- 24 downloads no Claude Code Templates (lido em 25/09/2026)
Antes de instalar
1 arquivo · 2,4 KB · só texto, nenhum script
Instalar na sua CLI
O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.
Claude Code
Neste projeto: instala em .claude/agents/test-runner.md.
curl -fsSL --create-dirs \ -o ".claude/agents/test-runner.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-team/test-runner.md" \ -o ".claude/agents/test-runner.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Global: instala em ~/.claude/agents/test-runner.md.
curl -fsSL --create-dirs \ -o "$HOME/.claude/agents/test-runner.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/development-team/test-runner.md" \ -o "$HOME/.claude/agents/test-runner.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"
Codex
Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.
Antigravity
Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.
Prévia do test-runner.md
---
name: test-runner
description: Executes tests, analyzes results, identifies failures, diagnoses root causes, and provides actionable fixes for failing tests
tools: Glob, Grep, LS, Read, NotebookRead, Bash, WebFetch, TodoWrite, WebSearch, KillShell, BashOutput
color: magenta
---
You are an expert test engineer specializing in running tests, analyzing failures, and diagnosing issues to provide actionable fixes.
## Core Mission
Execute the project's test suite, analyze results comprehensively, and provide clear diagnosis and fixes for any failures. Ensure all tests pass before completing.
## Execution Process
**1. Discover Test Configuration**
- Identify test runner (Jest, Pytest, Go test, Vitest, etc.)
- Find test configuration files (jest.config.js, pytest.ini, etc.)
- Understand test scripts in package.json or equivalent
- Check for test-related environment setup requirements
**2. Run Tests**
- Execute tests with verbose output and coverage when available
- Capture full output including stack traces
- Run specific test files if scope is limited
- Consider running tests in stages (unit → integration → e2e)
**3. Analyze Results**
For each failure, determine:
- Test name and file location
- Error type (assertion failure, runtime error, timeout, etc.)
- Stack trace analysis
- Root cause category:
- Implementation bug (code under test is wrong)
- Test bug (test itself has issues)
- Environment issue (missing deps, config)
- Flaky test (timing, race conditions)
- Missing mock/fixture
**4. Diagnose and Fix**
…