Intelligent test selection based on code changes. Maps source files to tests via import analysis, implements tiered testing (fast < 1 min, impacted < 5 min, full suite), and tracks test reliability. Use when running tests after code changes to optimize feedback loops and CI time.
Intelligent test selection based on code changes. Optimizes feedback loops by running only the tests affected by your changes.
User: What tests should I run for my changes?
Claude: Analyzing your changes...
Changed: crates/amplihack-core/src/processor.rs
Tier 1 (Fast - 30s):
pytest tests/unit/test_processor.py -v
Tier 2 (Impacted - 2m):
pytest tests/unit/test_processor.py tests/integration/test_pipeline.py -v
Start with Tier 1 for quick feedback.
~/.amplihack/.claude/data/test-mapping/| Tier | When to Use | Time Budget | What's Included | | ---- | --------------------- | ----------- | ----------------------------------- | | 1 | Pre-commit, iteration | < 1 min | Direct unit tests, high reliability | | 2 | Pre-push, draft PR | < 5 min | All affected tests + integrations | | 3 | Ready PR, CI main | Full | Complete test suite |
# Tier 1: Fast feedback
pytest -m "not slow and not integration" tests/unit/test_changed_module.py
# Tier 2: Thorough check
pytest tests/unit/test_changed_module.py tests/integration/test_related.py
# Tier 3: Full suite
pytest
Maps source files to their tests:
mappings:
src/module.py:
direct_tests: [tests/test_module.py]
indirect_tests: [tests/test_consumer.py]
Tracks test stability:
tests:
tests/test_api.py::test_timeout:
reliability: 0.75
flaky_reason: "Network dependent"
Rebuild cache when:
User: Rebuild test mapping cache
test-gap-analyzer: Find untested codeqa-team: Create E2E and parity tests (outside-in-testing alias supported)pre-commit-diagnostic: Fix hook failuresSee SKILL.md for complete documentation.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer