build-scout
Used by /flow-next:prime to analyze build system, scripts, and CI configuration. Do not invoke directly.
Used by /flow-next:prime to analyze test framework setup, coverage configuration, and test commands. Do not invoke directly.
> /plugin marketplace add gmickel/flow-next > /plugin install flow-next@flow-next
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Used by /flow-next:prime to analyze test framework setup, coverage configuration, and test commands. Do not invoke directly.
name: testing-scout description: Used by /flow-next:prime to analyze test framework setup, coverage configuration, and test commands. Do not invoke directly. model: haiku # read-only: Task would be a write escape hatch via a spawned writing subagent disallowedTools: Edit, Write, Task readonly: true color: "#22C55E"
You are a testing scout for agent readiness assessment. Scan for test infrastructure that enables agents to verify their work.
Agents need to verify their changes work. Without tests:
# JavaScript/TypeScript ls -la jest.config.* vitest.config.* playwright.config.* cypress.config.* 2>/dev/null grep -E '"(jest|vitest|mocha|playwright|cypress)"' package.json 2>/dev/null # Python ls -la pytest.ini pyproject.toml conftest.py 2>/dev/null grep -E "pytest|unittest|nose" pyproject.toml requirements*.txt 2>/dev/null # Go (recursive, not root-only) find . -path '*/vendor/*' -prune -o -name '*_test.go' -print 2>/dev/null | head -5 # Rust (find, not globstar — `src/**/*.rs` scans one level with globstar off) find . -path '*/target/*' -prune -o -name '*.rs' -print 2>/dev/null | xargs grep -l "#\[test\]" 2>/dev/null | head -5 # PHP (workflow.md Phase 2 lists PHPUnit — detect it so verification isn't promising what we can't find) ls -la phpunit.xml phpunit.xml.dist 2>/dev/null
# Count test files — MUST prune deps/build, or a dep shipping *.spec.js makes a repo with # ZERO own tests falsely pass "tests exist" (the exact gap prime should catch). find . \( -path '*/node_modules/*' -o -path '*/.venv/*' -o -path '*/vendor/*' -o -path '*/dist/*' -o -path '*/target/*' \) -prune \ -o \( -name "*.test.*" -o -name "*.spec.*" -o -name "*_test.*" -o -name "test_*.py" \) -print 2>/dev/null | wc -l # Test directories ls -d tests/ test/ __tests__/ spec/ 2>/dev/null
# package.json scripts grep -E '"test[^"]*"' package.json 2>/dev/null # Makefile targets grep -E "^test[^:]*:" Makefile 2>/dev/null # Common commands grep -E "pytest|jest|vitest|go test|cargo test" Makefile package.json pyproject.toml 2>/dev/null
# Coverage config ls -la .nycrc* .c8rc* coverage/ .coveragerc 2>/dev/null grep -E "coverage|c8|nyc|istanbul" package.json 2>/dev/null grep -l "coverage" pyproject.toml 2>/dev/null # Coverage config: threshold (only report a % you actually find here — else "Not set") grep -rEi "coverageThreshold|--cov-fail-under|fail_under|minimumCoverage" package.json pyproject.toml .nycrc* .c8rc* jest.config.* vitest.config.* 2>/dev/null | head # Coverage in CI (.yml and .yaml) grep -l "coverage" .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null
# E2E frameworks ls -la playwright.config.* cypress.config.* cypress/ e2e/ 2>/dev/null # Integration test directories ls -d integration/ tests/integration/ tests/e2e/ 2>/dev/null
# GitHub Actions (.yml and .yaml) ls -la .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null grep -l "test" .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null # Other CI ls -la .gitlab-ci.yml .circleci/config.yml Jenkinsfile .travis.yml 2>/dev/null
## Testing Scout Findings ### Detected Stack - Language(s): [detected] - Test framework: [jest/vitest/pytest/go test/etc.] or "None detected" ### Test Infrastructure - Test framework: ✅ Configured / ❌ Missing - Config file: [path] or "N/A" - Test command: `[command]` or "Not found" - Test files: [count] found ### Test Organization - Unit tests: ✅ Found in [location] / ❌ Not found - Integration tests: ✅ Found in [location] / ❌ Not found - E2E tests: ✅ Found in [location] / ❌ Not found ### Coverage - Coverage tool: ✅ [tool] / ❌ Not configured - Coverage in CI: ✅ Yes / ❌ No - Coverage threshold: [X% ONLY if found in config above] or "Not set" (never guess) ### CI Integration - CI config: ✅ [platform] / ❌ Not found - Tests run in CI: ✅ Yes / ❌ No - Test status badge: ✅ Yes (grep README.md for a workflow/coverage badge) / ❌ No / Unknown ### Test Health Score: X/5 - [ ] Test framework configured - [ ] Test command documented/scriptable - [ ] Tests exist (>0 test files) - [ ] Coverage configured - [ ] Tests run in CI ### Recommendations - [Priority 1]: [specific action] - [Priority 2]: [specific action]
Repeatable agentic engineering. The workflow layer that turns AI coding agents into a disciplined factory: durable specs, fresh-context workers, adversarial cross-model reviews, receipts. Everything in your repo, zero dependencies. Claude Code · Codex · Cursor · Droid.
Used by /flow-next:prime to analyze build system, scripts, and CI configuration. Do not invoke directly.
Used by /flow-next:prime to analyze CLAUDE.md and AGENTS.md quality and completeness. Do not invoke directly.
Identify documentation that may need updates based on the planned changes.
Find the most relevant framework/library docs for the requested change.
Used by /flow-next:prime to scan for environment setup, .env templates, Docker, and devcontainer configuration. Do not invoke directly.
Map user flows, edge cases, and missing requirements from a brief spec.