From devteam
Orchestrates writing and execution of unit, integration, and E2E tests across projects using language-specific test writers and verification agents. Analyzes coverage gaps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devteam:devteam-testThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Current session: !`source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_current_session 2>/dev/null || echo "No active session"`
Current session: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_current_session 2>/dev/null || echo "No active session"
Active sprint: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "active_sprint" 2>/dev/null || echo "None"
Failure count: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "consecutive_failures" 2>/dev/null || echo "0"
Command: /devteam:test [target] [options]
Coordinate test writing and execution across the project. Launches the Test Coordinator to orchestrate language-specific test writers and verification agents.
# Write tests for current task
/devteam:test
# Write tests for specific files
/devteam:test "src/api/auth.ts"
# Write specific test types
/devteam:test --type unit
/devteam:test --type integration
/devteam:test --type e2e
# Write tests for a scope
/devteam:test --scope "src/services/"
# Run existing tests and fill coverage gaps
/devteam:test --coverage
/devteam:test --coverage --threshold 80
# Cost-optimized
/devteam:test --eco
| Option | Description |
|---|---|
--type <type> | Test type: unit, integration, e2e, all |
--scope <path> | Limit to specific files/directories |
--coverage | Analyze coverage and fill gaps |
--threshold <pct> | Coverage threshold percentage (default: 80) |
--eco | Cost-optimized execution |
source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/events.sh"
SESSION_ID=$(start_session "/devteam:test $*" "test")
log_session_started "/devteam:test $*" "test"
Delegate to the quality:test-coordinator agent, which will:
const result = await Task({
subagent_type: "quality:test-coordinator",
prompt: `Test coordination request:
Target: ${target || 'current task files'}
Type: ${type || 'all'}
Scope: ${scope || 'auto-detect'}
Coverage mode: ${coverageMode}
Threshold: ${threshold || 80}
Coordinate test writers to produce:
1. Unit tests for individual functions/methods
2. Integration tests for component interactions
3. E2E tests for critical user flows
4. Edge case and error handling tests
5. Coverage report and gap analysis`
})
log_session_ended('completed', 'Test writing complete')
end_session('completed', 'Success')
/devteam:review - Code review before testing/devteam:implement - Implement features to test/devteam:status - Check test progressnpx claudepluginhub michael-harris/devteam --plugin devteamCreates unit and integration tests by analyzing the codebase, auto-detecting the test framework, and generating tests that follow project conventions. Use when writing new tests or updating tests after implementation.
Generates comprehensive test suites (unit, integration with testcontainers/docker-compose, Playwright E2E) for existing code, analyzes coverage gaps, spawns parallel generation agents per tier, runs tests, and heals failures.
Generates tests by analyzing code paths, covering edge cases, and validating coverage targets. Use when creating tests for new features or improving coverage.