refactor(skill): replace compact protection with TodoWrite-driven compact recovery

Redesign Pattern 9 from "forbid compression" to smart dual-layer approach:
- Layer 1: TodoWrite in_progress phase preserved by compact, completed phases compressible
- Layer 2: Compact sentinel in phase files as fallback re-read trigger

Applied to 6 workflow skills: skill-designer, lite-plan, multi-cli-plan, plan, tdd, test-fix
This commit is contained in:
catlog22
2026-02-27 11:13:50 +08:00
parent 3f25dbb11b
commit 07452e57b7
12 changed files with 219 additions and 79 deletions

View File

@@ -1,5 +1,10 @@
# Phase 5: TDD Task Generation
> **📌 COMPACT SENTINEL [Phase 5: TDD-Task-Generation]**
> This phase contains 3 execution steps (Step 5.1 — 5.3).
> If you can read this sentinel but cannot find the full Step protocol below, context has been compressed.
> Recovery: `Read("phases/05-tdd-task-generation.md")`
Generate TDD tasks with Red-Green-Refactor cycles via action-planning-agent.
## Objective

View File

@@ -1,5 +1,10 @@
# Phase 6: TDD Structure Validation & Plan Confirmation
> **📌 COMPACT SENTINEL [Phase 6: TDD-Structure-Validation]**
> This phase contains 4 execution steps (Step 6.1 — 6.4).
> If you can read this sentinel but cannot find the full Step protocol below, context has been compressed.
> Recovery: `Read("phases/06-tdd-structure-validation.md")`
Internal validation of TDD task structure and user decision gate for next steps.
## Objective