Test Analyzer
Analyze test coverage for staged changes against task specification using GPT-5.2-Codex.
Usage
code
/test-analyzer → Codex high, TASK.md (default) /test-analyzer deep → Codex xhigh, TASK.md /test-analyzer TODO.md → Codex high, TODO.md /test-analyzer TODO.md deep → Codex xhigh, TODO.md
Argument Parsing
Keywords (reserved):
- •
deep→ Use xhigh effort instead of high
Other arguments → Task spec file name
Parsing Logic
code
args = split(input)
task_file = "TASK.md"
effort = "high"
for arg in args:
if arg == "deep":
effort = "xhigh"
else:
task_file = arg
Result Mapping
| Input | effort | Task File |
|---|---|---|
| (none) | high | TASK.md |
deep | xhigh | TASK.md |
TODO.md | high | TODO.md |
TODO.md deep | xhigh | TODO.md |
Implementation
Invoke the 17th-test-analyzer subagent:
code
Task(
description="Analyze test coverage ({effort}, {task_file})",
subagent_type="17th-test-analyzer",
prompt="""
Analyze test coverage for staged changes.
Configuration:
- Task file: {task_file}
- Effort: {effort} (high or xhigh)
- Project root: {project_root}
""",
run_in_background=true
)
Auto-Trigger
When skill auto-triggers (no args), uses defaults:
- •Effort: high
- •Task file: TASK.md
Output
- •Report:
.kkachi/{branch_name}/completed/test-analyzer-{epoch_timestamp}.md - •Summary: X/Y requirements covered, Z gaps found
- •Recommendations: prioritized action items
Examples
| Input | task_file | effort |
|---|---|---|
| (none) | TASK.md | high |
deep | TASK.md | xhigh |
TODO.md | TODO.md | high |
TODO.md deep | TODO.md | xhigh |
PLAN.md deep | PLAN.md | xhigh |
Notes
- •Uses GPT-5.2-Codex for all analysis (no GLM)
- •Analyzes staged changes only
- •Supports Go, Python, Dart, TypeScript, JavaScript
- •Results verified before reporting
- •Ensure
.kkachi/is in.gitignore