Analyze test failures, debug failing tests, run tests with AI analysis, understand why tests fail, get help with build failures, analyze command output, debug command errors, or get AI-powered analysis of shell command failures using ATR.
/plugin marketplace add imyousuf/agentic-test-runner/plugin install atr-skills@atr-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill provides AI-powered analysis of command failures using ATR (Agentic Test Runner). When a command fails, ATR's AI agent automatically investigates the failure by reading files, running diagnostic commands, and providing actionable recommendations.
Use ATR analyze when:
Use direct commands when:
atr run --cmd "<command>"
Examples:
atr run --cmd "go test ./..."
atr run --cmd "npm test"
atr run --cmd "pytest tests/"
atr run --cmd "make build"
Provide context to help the AI agent focus its analysis:
atr run --cmd "<command>" --context "<context>"
Examples:
atr run --cmd "go test ./..." --context "Tests started failing after refactoring the auth module"
atr run --cmd "npm run build" --context "Added new dependency yesterday"
atr run --cmd "pytest" --context "Testing the new payment integration"
| Flag | Description |
|---|---|
--cmd <command> | Command to execute (required) |
--cwd <path> | Working directory |
--context <text> | Additional context for AI agent |
--model flash|pro | Model tier (flash=fast, pro=deep analysis) |
--python-venv <path> | Python virtual environment path |
--nvm-version <version> | Node.js version via nvm |
--no-auto-env | Disable automatic environment detection |
Specify where to run the command:
atr run --cmd "npm test" --cwd "/path/to/project"
ATR automatically detects and activates appropriate environments:
Python projects:
.venv, venv, or Poetry environmentsNode.js projects:
.nvmrc or package.json engine requirementsOverride automatic detection:
atr run --cmd "pytest" --python-venv /custom/path/.venv
atr run --cmd "npm test" --nvm-version 18
atr run --cmd "make" --no-auto-env
Use different models for different needs:
# Quick analysis (default)
atr run --cmd "make build" --model flash
# Deep analysis for complex issues
atr run --cmd "go test ./..." --model pro
When a command fails, the ATR agent:
Executing: go test ./...
Directory: /path/to/project
--- FAIL: TestUserAuth (0.05s)
auth_test.go:42: expected 200, got 401
Command failed (exit code: 1)
Analyzing failure with AI agent...
======================================================================
ANALYSIS RESULTS
======================================================================
Status: FAILURE
Summary:
TestUserAuth fails because the auth middleware expects a JWT token,
but the test doesn't provide one in the request headers.
Root Cause:
Line 38 in auth_test.go creates a request without Authorization header.
The auth middleware (middleware/auth.go:15) rejects it with 401.
Recommendations:
1. Add mock JWT token to test request
2. Or bypass auth middleware in test setup
3. Check if middleware was recently added to the route
Files Examined:
- auth_test.go
- middleware/auth.go
- routes/api.go
| Code | Meaning |
|---|---|
| 0 | Command passed |
| 1 | Command failed (analysis provided) |
| 2 | Configuration error |
Configure ATR in ~/.atr/config.yaml:
backend: gemini-api # or vertex-ai
model: flash # or pro
gemini:
api_key: "your-key"
# Or for Vertex AI:
vertex:
project: your-project
location: us-central1
Environment variables:
export GEMINI_API_KEY="your-key"
# Or
export GOOGLE_CLOUD_PROJECT="project-id"
atr test-cmd-env "<command>" to preview detectionCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.