AgentSkillsCN

17th-test-analyzer

当用户询问测试覆盖率、测试是否充分,或测试是否覆盖了所有需求时,可使用此技能。 利用GPT-5.2-Codex对暂存的更改与任务规范进行分析,查找正常场景与边缘场景中的潜在缺口。 自动触发条件:“测试够不够?”“测试覆盖率”“边缘场景”“测试分析” 适用场景:测试缺口分析、覆盖率检查、PR提交前的测试审查。 不适用于:运行测试、编写测试、代码审查。

SKILL.md
--- frontmatter
name: 17th-test-analyzer
description: |
  Use this skill when user asks about test coverage, test sufficiency, or whether tests cover requirements.
  Analyzes staged changes against task spec using GPT-5.2-Codex to find gaps in happy cases and edge cases.
  Auto-triggers on: "테스트 충분해?", "test coverage", "edge case", "테스트 분석"
  Appropriate for: test gap analysis, coverage check, pre-PR test review.
  Not appropriate for: running tests, writing tests, code review.

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

InputeffortTask File
(none)highTASK.md
deepxhighTASK.md
TODO.mdhighTODO.md
TODO.md deepxhighTODO.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

Inputtask_fileeffort
(none)TASK.mdhigh
deepTASK.mdxhigh
TODO.mdTODO.mdhigh
TODO.md deepTODO.mdxhigh
PLAN.md deepPLAN.mdxhigh

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