Skip to main content

workflow-test-fix

Unified test-fix pipeline combining test generation (session, context, analysis, task gen) with iterative test-cycle execution (adaptive strategy, progressive testing, CLI fallback). Triggers on "workflow-test-fix", "test fix workflow".

Quellinformationen

Repository
catlog22/Claude-Code-Workflow
Letzte Quellaktivitรคt
1. April 2026 um 13:34
Erkannte Sprache von SKILL.md
Englisch
Sterne
2.128
Forks
166

Installationsoptionen

StandardmรครŸig ist der Prompt ausgewรคhlt, der zuerst die Quelle prรผft. Sie kรถnnen zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prรผfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich fรผr eine Installation entscheiden.

Datei-Explorer
6 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen ยท Schreibgeschรผtzte Vorschau
name
workflow-test-fix
description
Unified test-fix pipeline combining test generation (session, context, analysis, task gen) with iterative test-cycle execution (adaptive strategy, progressive testing, CLI fallback). Triggers on "workflow-test-fix", "test fix workflow".
allowed-tools
Skill, Agent, AskUserQuestion, TaskCreate, TaskUpdate, TaskList, Read, Write, Edit, Bash, Glob, Grep
<purpose> Unified test-fix orchestrator that combines **test planning generation** (Phase 1-4) with **iterative test-cycle execution** (Phase 5) into a single end-to-end pipeline. Creates test sessions with progressive L0-L3 test layers, generates test tasks, then executes them with adaptive fix cycles until pass rate >= 95% or max iterations reached. Triggered via skill name routing for full pipeline or execute-only modes. </purpose> <process> ## 1. Architecture Overview ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Workflow Test Fix Orchestrator (SKILL.md) โ”‚ โ”‚ โ†’ Pure coordinator: Route entry point, track progress, pass context โ”‚ โ”‚ โ†’ Five phases: Session โ†’ Context โ†’ Analysis โ†’ TaskGen โ†’ Execution โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ†“ โ†“ โ†“ โ†“ โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Phase 1 โ”‚โ”‚ Phase 2 โ”‚โ”‚ Phase 3 โ”‚โ”‚ Phase 4 โ”‚ โ”‚ Phase 5 โ”‚ โ”‚ Session โ”‚โ”‚ Context โ”‚โ”‚ Analysis โ”‚โ”‚ Task Gen โ”‚ โ”‚ Test Cycle โ”‚ โ”‚ Start โ”‚โ”‚ Gather โ”‚โ”‚ Enhanced โ”‚โ”‚ Generate โ”‚ โ”‚ Execute โ”‚ โ”‚ โ”‚โ”‚ โ”‚โ”‚ โ”‚โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ Input โ”‚โ”‚ Coverage โ”‚โ”‚ Gemini โ”‚โ”‚ IMPL_PLANโ”‚ โ”‚ 1. Discoveryโ”‚ โ”‚ Detect + โ”‚โ”‚ or Code โ”‚โ”‚ L0-L3 โ”‚โ”‚ IMPL-* โ”‚ โ”‚ 2. Execute โ”‚ โ”‚ Session โ”‚โ”‚ Scan โ”‚โ”‚ AI Issue โ”‚โ”‚ TODO_LISTโ”‚ โ”‚ 3. Fix Loop โ”‚ โ”‚ Create โ”‚โ”‚ โ”‚โ”‚ โ”‚โ”‚ โ”‚ โ”‚ 4. Complete โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ†‘ โ”‚testSessionId โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ†’โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜contextPathโ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ†’โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜AnalysisResโ”‚ โ”‚ โ””โ”€โ”€โ†’โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ testSessionId โ”‚ โ””โ”€โ”€โ†’โ”€โ”€(Summary)โ”€โ”€โ†’โ”˜ Task Pipeline (generated in Phase 4, executed in Phase 5): โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ IMPL-001 โ”‚โ”€โ”€โ†’โ”‚ IMPL-001.3 โ”‚โ”€โ”€โ†’โ”‚ IMPL-001.5 โ”‚โ”€โ”€โ†’โ”‚ IMPL-002 โ”‚ โ”‚ Test Gen โ”‚ โ”‚ Code Validate โ”‚ โ”‚ Quality Gate โ”‚ โ”‚ Test & Fix โ”‚ โ”‚ L1-L3 โ”‚ โ”‚ L0 + AI Issues โ”‚ โ”‚ Coverage 80%+ โ”‚ โ”‚ Max N iter โ”‚ โ”‚@code-developerโ”‚ โ”‚ @test-fix-agent โ”‚ โ”‚ @test-fix-agent โ”‚ โ”‚@test-fix-agentโ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` ## 2. Key Design Principles 1. **Unified Pipeline**: Generation and execution are one continuous workflow - no manual handoff 2. **Pure Orchestrator**: SKILL.md coordinates only - delegates all execution detail to phase files 3. **Auto-Continue**: Phase 1โ†’2โ†’3โ†’4โ†’(Summary)โ†’5 automatically 4. **Task Attachment/Collapse**: Sub-tasks attached during phase execution, collapsed after completion 5. **Progressive Phase Loading**: Phase docs read **only** when that phase executes, not upfront 6. **Adaptive Strategy**: Fix loop auto-selects strategy (conservative/aggressive/surgical) based on iteration context 7. **Quality Gate**: Pass rate >= 95% (criticality-aware) terminates the fix loop 8. **Phase File Hygiene**: Phase files reference `workflowPreferences.*` for preferences, no CLI flag parsing ## 3. Usage Full pipeline and execute-only modes are triggered by skill name routing (see Mode Detection). Workflow preferences (auto mode) are collected interactively via AskUserQuestion before dispatching to phases. **Full pipeline** (workflow-test-fix): Task description or session ID as arguments โ†’ interactive preference collection โ†’ generate + execute pipeline **Execute only** (workflow-test-fix): Auto-discovers active session โ†’ interactive preference collection โ†’ execution loop ## 4. Interactive Preference Collection Before dispatching to phase execution, collect workflow preferences via AskUserQuestion: ```javascript // โ˜… ็ปŸไธ€ auto mode ๆฃ€ๆต‹๏ผš-y/--yes ไปŽ $ARGUMENTS ๆˆ– ccw ไผ ๆ’ญ const autoYes = /\b(-y|--yes)\b/.test($ARGUMENTS) if (autoYes) { // ่‡ชๅŠจๆจกๅผ๏ผš่ทณ่ฟ‡ๆ‰€ๆœ‰่ฏข้—ฎ๏ผŒไฝฟ็”จ้ป˜่ฎคๅ€ผ workflowPreferences = { autoYes: true } } else { const prefResponse = AskUserQuestion({ questions: [ { question: "ๆ˜ฏๅฆ่ทณ่ฟ‡ๆ‰€ๆœ‰็กฎ่ฎคๆญฅ้ชค๏ผˆ่‡ชๅŠจๆจกๅผ๏ผ‰๏ผŸ", header: "Auto Mode", multiSelect: false, options: [ { label: "Interactive (Recommended)", description: "ไบคไบ’ๆจกๅผ๏ผŒๅŒ…ๅซ็กฎ่ฎคๆญฅ้ชค" }, { label: "Auto", description: "่ทณ่ฟ‡ๆ‰€ๆœ‰็กฎ่ฎค๏ผŒ่‡ชๅŠจๆ‰ง่กŒ" } ] } ] }) workflowPreferences = { autoYes: prefResponse.autoMode === 'Auto' } } ``` **workflowPreferences** is passed to phase execution as context variable, referenced as `workflowPreferences.autoYes` within phases. ## 5. Compact Recovery (Phase Persistence) Multi-phase test-fix pipeline (Phase 1-5) spans long conversations, especially Phase 5 fix loops. Uses **ๅŒ้‡ไฟ้™ฉ**: TodoWrite ่ทŸ่ธช active phase ไฟๆŠคๅ…ถไธ่ขซๅŽ‹็ผฉ๏ผŒsentinel ไฝœไธบๅ…œๅบ•ใ€‚ > **โš ๏ธ COMPACT DIRECTIVE**: Context compression MUST check TodoWrite phase status. > The phase currently marked `in_progress` is the active execution phase โ€” preserve its FULL content. > Only compress phases marked `completed` or `pending`. ## 6. Execution Flow ``` Entry Point Detection: โ”œโ”€ /workflow-test-fix โ†’ Full Pipeline (Phase 1โ†’2โ†’3โ†’4โ†’Summaryโ†’5) โ””โ”€ /workflow-test-fix โ†’ Execution Only (Phase 5) Phase 1: Session Start (session-start) โ””โ”€ Read("phases/01-session-start.md") โ”œโ”€ Step 1.0: Detect input mode (session | prompt) โ”œโ”€ Step 1.1: Create test session โ†’ testSessionId โ””โ”€ Output: testSessionId, MODE Phase 2: Test Context Gather (test-context-gather) โ””โ”€ Read("phases/02-test-context-gather.md") โ”œโ”€ Step 1.2: Gather test context โ†’ contextPath โ””โ”€ Output: contextPath Phase 3: Test Concept Enhanced (test-concept-enhanced) โ””โ”€ Read("phases/03-test-concept-enhanced.md") โ”œโ”€ Step 1.3: Test analysis (Gemini) โ†’ TEST_ANALYSIS_RESULTS.md โ””โ”€ Output: TEST_ANALYSIS_RESULTS.md Phase 4: Test Task Generate (test-task-generate) โ””โ”€ Read("phases/04-test-task-generate.md") โ”œโ”€ Step 1.4: Generate test tasks โ†’ IMPL_PLAN.md, IMPL-*.json, TODO_LIST.md โ””โ”€ Output: testSessionId, 4+ task JSONs Summary Output (inline after Phase 4): โ””โ”€ Display summary, auto-continue to Phase 5 Phase 5: Test Cycle Execution (test-cycle-execute) โ””โ”€ Read("phases/05-test-cycle-execute.md") โ”œโ”€ Step 2.1: Discovery (load session, tasks, iteration state) โ”œโ”€ Step 2.2: Execute initial tasks (IMPL-001 โ†’ 001.3 โ†’ 001.5 โ†’ 002) โ”œโ”€ Step 2.3: Fix loop (if pass_rate < 95%) โ”‚ โ”œโ”€ Select strategy: conservative/aggressive/surgical โ”‚ โ”œโ”€ Generate fix task via @cli-planning-agent โ”‚ โ”œโ”€ Execute fix via @test-fix-agent โ”‚ โ””โ”€ Re-test โ†’ loop or exit โ””โ”€ Step 2.4: Completion (summary, session archive) โ””โ”€ Output: final pass_rate, summary ``` **Phase Reference Documents** (read on-demand when phase executes): | Phase | Document | Purpose | Compact | |-------|----------|---------|---------| | 1 | phases/01-session-start.md | Detect input mode, create test session | TodoWrite ้ฉฑๅŠจ | | 2 | phases/02-test-context-gather.md | Gather test context (coverage/codebase) | TodoWrite ้ฉฑๅŠจ | | 3 | phases/03-test-concept-enhanced.md | Gemini analysis, L0-L3 test requirements | TodoWrite ้ฉฑๅŠจ | | 4 | phases/04-test-task-generate.md | Generate task JSONs and IMPL_PLAN.md | TodoWrite ้ฉฑๅŠจ | | 5 | phases/05-test-cycle-execute.md | Execute tasks, iterative fix cycles, completion | TodoWrite ้ฉฑๅŠจ + ๐Ÿ”„ sentinel | **Compact Rules**: 1. **TodoWrite `in_progress`** โ†’ ไฟ็•™ๅฎŒๆ•ดๅ†…ๅฎน๏ผŒ็ฆๆญขๅŽ‹็ผฉ 2. **TodoWrite `completed`** โ†’ ๅฏๅŽ‹็ผฉไธบๆ‘˜่ฆ 3. **๐Ÿ”„ sentinel fallback** โ†’ Phase 5 ๅŒ…ๅซ compact sentinel๏ผ›่‹ฅ compact ๅŽไป…ๅญ˜ sentinel ่€Œๆ— ๅฎŒๆ•ด Step ๅ่ฎฎ๏ผŒๅฟ…้กป็ซ‹ๅณ `Read("phases/05-test-cycle-execute.md")` ๆขๅค ## 7. Core Rules 1. **Start Immediately**: First action is TaskCreate initialization, second action is Phase 1 (or Phase 5 for execute-only entry) 2. **No Preliminary Analysis**: Do not read files or gather context before starting the phase 3. **Parse Every Output**: Extract required data from each step output for next step 4. **Auto-Continue**: Phase 1โ†’2โ†’3โ†’4โ†’(Summary)โ†’5 automatically (for full pipeline entry) 5. **Track Progress**: Update TaskCreate/TaskUpdate dynamically with task attachment/collapse pattern 6. **Task Attachment Model**: Sub-tasks **attached** during phase, **collapsed** after completion 7. **DO NOT STOP**: Continuous workflow until quality gate met or max iterations reached 8. **Progressive Loading**: Read phase doc ONLY when that phase is about to execute 9. **Entry Point Routing**: `workflow-test-fix` skill โ†’ Phase 1-5; `workflow-test-fix` skill โ†’ Phase 5 only ## 8. Input Processing ### test-fix-gen Entry (Full Pipeline) ``` User input โ†’ Detect type: โ”œโ”€ Starts with "WFS-" โ†’ MODE=session, sourceSessionId=input โ”œโ”€ Ends with ".md" โ†’ MODE=prompt, description=Read(input) โ””โ”€ Otherwise โ†’ MODE=prompt, description=input ``` ### test-cycle-execute Entry (Phase 5 Only) ``` Arguments โ†’ Parse flags: โ”œโ”€ --resume-session="WFS-xxx" โ†’ sessionId=WFS-xxx โ”œโ”€ --max-iterations=N โ†’ maxIterations=N (default: 10) โ””โ”€ (no args) โ†’ auto-discover active test session ``` ## 9. Data Flow ``` User Input (session ID | description | file path) โ†“ [Detect Mode: session | prompt] โ†“ Phase 1: Session Start โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ 1.0+1.1: session:start โ†’ testSessionId, MODE โ†“ Phase 2: Test Context Gather โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ 1.2: test-context-gather/context-gather โ†’ contextPath โ†“ Phase 3: Test Concept Enhanced โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ 1.3: test-concept-enhanced โ†’ TEST_ANALYSIS_RESULTS.md โ†“ Phase 4: Test Task Generate โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ 1.4: test-task-generate โ†’ IMPL_PLAN.md, IMPL-*.json, TODO_LIST.md โ†“ Summary Output (inline) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ Display summary with next step โ†“ Phase 5: Test Cycle Execution โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ†“ 2.1: Load session + tasks + iteration state โ†“ 2.2: Execute IMPL-001 โ†’ 001.3 โ†’ 001.5 โ†’ 002 โ†“ 2.3: Fix loop (analyze โ†’ fix โ†’ retest) until pass_rate >= 95% โ†“ 2.4: Completion โ†’ summary โ†’ session archive ``` ## 10. Summary Output (after Phase 4) After Phase 4 completes, display the following summary before auto-continuing to Phase 5: ``` Test-fix workflow created successfully! Input: [original input] Mode: [Session|Prompt] Test Session: [testSessionId] Tasks Created: - IMPL-001: Test Understanding & Generation (@code-developer) - IMPL-001.3: Code Validation Gate - AI Error Detection (@test-fix-agent) - IMPL-001.5: Test Quality Gate - Static Analysis & Coverage (@test-fix-agent) - IMPL-002: Test Execution & Fix Cycle (@test-fix-agent) Quality Thresholds: - Code Validation: Zero CRITICAL issues, zero compilation errors - Minimum Coverage: 80% line, 70% branch - Static Analysis: Zero critical anti-patterns - Max Fix Iterations: 5 Review artifacts: - Test plan: .workflow/[testSessionId]/IMPL_PLAN.md - Task list: .workflow/[testSessionId]/TODO_LIST.md - Analysis: .workflow/[testSessionId]/.process/TEST_ANALYSIS_RESULTS.md ``` **CRITICAL - Next Step**: Auto-continue to Phase 5: Test Cycle Execution. Pass `testSessionId` to Phase 5 for test execution pipeline. Do NOT wait for user confirmation โ€” the unified pipeline continues automatically. ## 11. Test Strategy Overview Progressive Test Layers (L0-L3): | Layer | Name | Focus | |-------|------|-------| | **L0** | Static Analysis | Compilation, imports, types, AI code issues | | **L1** | Unit Tests | Function/class behavior (happy/negative/edge cases) | | **L2** | Integration Tests | Component interactions, API contracts, failure modes | | **L3** | E2E Tests | User journeys, critical paths (optional) | **Quality Thresholds**: - Code Validation (IMPL-001.3): Zero CRITICAL issues, zero compilation errors - Minimum Coverage: 80% line, 70% branch - Static Analysis (IMPL-001.5): Zero critical anti-patterns - Pass Rate Gate: >= 95% (criticality-aware) or 100% - Max Fix Iterations: 10 (default, adjustable) ## 12. Strategy Engine (Phase 5) | Strategy | Trigger | Behavior | |----------|---------|----------| | **Conservative** | Iteration 1-2 (default) | Single targeted fix, full validation | | **Aggressive** | Pass rate >80% + similar failures | Batch fix related issues | | **Surgical** | Regression detected (pass rate drops >10%) | Minimal changes, rollback focus | Selection logic and CLI fallback chain (Gemini โ†’ Qwen โ†’ Codex) are detailed in Phase 5. ## 13. Agent Roles | Agent | Used In | Responsibility | |-------|---------|---------------| | **Orchestrator** | All phases | Route entry, track progress, pass context | | **@code-developer** | Phase 5 (IMPL-001) | Test generation (L1-L3) | | **@test-fix-agent** | Phase 5 | Test execution, code fixes, criticality assignment | | **@cli-planning-agent** | Phase 5 (fix loop) | CLI analysis, root cause extraction, fix task generation | ## 14. TodoWrite Pattern **Core Concept**: Dynamic task tracking with attachment/collapse for real-time visibility. > **Implementation Note**: Phase files use `TodoWrite` syntax to describe the conceptual tracking pattern. At runtime, these are implemented via `TaskCreate/TaskUpdate/TaskList` tools from the allowed-tools list. Map `TodoWrite` examples as follows: > - Initial list creation โ†’ `TaskCreate` for each item > - Status changes โ†’ `TaskUpdate({ taskId, status })` > - Sub-task attachment โ†’ `TaskCreate` + `TaskUpdate({ addBlockedBy })` > - Sub-task collapse โ†’ `TaskUpdate({ status: "completed" })` + `TaskUpdate({ status: "deleted" })` for collapsed sub-items ### Full Pipeline (Phase 1-5) ```json [ {"content": "Phase 1: Session Start", "status": "in_progress"}, {"content": "Phase 2: Test Context Gather", "status": "pending"}, {"content": "Phase 3: Test Analysis (Gemini)", "status": "pending"}, {"content": "Phase 4: Test Task Generate", "status": "pending"}, {"content": "Phase 5: Test Cycle Execution", "status": "pending"} ] ``` ### Phase 1-4 Collapsed โ†’ Phase 5 Active ```json [ {"content": "Phase 1: Session Start", "status": "completed"}, {"content": "Phase 2: Test Context Gather", "status": "completed"}, {"content": "Phase 3: Test Analysis (Gemini)", "status": "completed"}, {"content": "Phase 4: Test Task Generate", "status": "completed"}, {"content": "Phase 5: Test Cycle Execution", "status": "in_progress"}, {"content": " โ†’ Execute IMPL-001 [code-developer]", "status": "in_progress"}, {"content": " โ†’ Execute IMPL-001.3 [test-fix-agent]", "status": "pending"}, {"content": " โ†’ Execute IMPL-001.5 [test-fix-agent]", "status": "pending"}, {"content": " โ†’ Execute IMPL-002 [test-fix-agent]", "status": "pending"}, {"content": " โ†’ Fix Loop", "status": "pending"} ] ``` ### Fix Loop Iterations ```json [
Auf GitHub ansehen
Diese SKILL.md ist sehr gross, daher zeigt SkillsMP hier nur den ersten Abschnitt. Auf GitHub ansehen