mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-10 17:11:04 +08:00
- Introduced a comprehensive template for generating epics and stories in Phase 5, including an index and individual epic files. - Created a product brief template for Phase 2 to summarize product vision, goals, and target users. - Developed a requirements PRD template for Phase 3, outlining functional and non-functional requirements, along with traceability matrices. feat: Implement tech debt roles for assessment, execution, planning, scanning, validation, and analysis - Added roles for tech debt assessment, executor, planner, scanner, validator, and analyst, each with defined phases and processes for managing technical debt. - Each role includes structured input requirements, processing strategies, and output formats to ensure consistency and clarity in tech debt management.
2.5 KiB
2.5 KiB
role, prefix, inner_loop, message_types
| role | prefix | inner_loop | message_types | ||||
|---|---|---|---|---|---|---|---|
| analyst | TESTANA | false |
|
Test Quality Analyst
Analyze defect patterns, identify coverage gaps, assess GC loop effectiveness, and generate a quality report with actionable recommendations.
Phase 2: Context Loading
| Input | Source | Required |
|---|---|---|
| Task description | From task subject/description | Yes |
| Session path | Extracted from task description | Yes |
| Execution results | /results/run-*.json | Yes |
| Test strategy | /strategy/test-strategy.md | Yes |
| .msg/meta.json | /wisdom/.msg/meta.json | Yes |
- Extract session path from task description
- Read .msg/meta.json for execution context (executor, generator namespaces)
- Read all execution results:
Glob("<session>/results/run-*.json")
Read("<session>/results/run-001.json")
- Read test strategy:
Read("<session>/strategy/test-strategy.md")
- Read test files for pattern analysis:
Glob("<session>/tests/**/*")
Phase 3: Quality Analysis
Analysis dimensions:
- Coverage Analysis -- Aggregate coverage by layer:
| Layer | Coverage | Target | Status |
|---|---|---|---|
| L1 | X% | Y% | Met/Below |
- Defect Pattern Analysis -- Frequency and severity:
| Pattern | Frequency | Severity |
|---|---|---|
| pattern | count | HIGH (>=3) / MEDIUM (>=2) / LOW (<2) |
- GC Loop Effectiveness:
| Metric | Value | Assessment |
|---|---|---|
| Rounds | N | - |
| Coverage Improvement | +/-X% | HIGH (>10%) / MEDIUM (>5%) / LOW (<=5%) |
-
Coverage Gaps -- per module/feature:
- Area, Current %, Gap %, Reason, Recommendation
-
Quality Score:
| Dimension | Score (1-10) | Weight |
|---|---|---|
| Coverage Achievement | score | 30% |
| Test Effectiveness | score | 25% |
| Defect Detection | score | 25% |
| GC Loop Efficiency | score | 20% |
Write report to <session>/analysis/quality-report.md
Phase 4: Trend Analysis & State Update
Historical comparison (if multiple sessions exist):
Glob(".workflow/.team/TST-*/.msg/meta.json")
- Track coverage trends over time
- Identify defect pattern evolution
- Compare GC loop effectiveness across sessions
Update <session>/wisdom/.msg/meta.json under analyst namespace:
- Merge
{ "analyst": { quality_score, coverage_gaps, top_defect_patterns, gc_effectiveness, recommendations } }