implement-plan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseimplement-plan — execute plan.md phase by phase, logic untouched
implement-plan — 逐阶段执行 plan.md,逻辑保持不变
Take the existing and implement its 5 phases, changing only the presentation while the 5 logic-freeze instructions hold. The transformation recipes live in (this folder).
plan.mdTRANSFORM.md读取现有的 并实施其中 5 个阶段。在 5 条 logic-freeze 指令的约束下,仅更改 presentation(呈现层),同时保持所有逻辑和 state 不变。转换配方位于本文件夹的 中。
plan.mdTRANSFORM.mdThe flow
执行流程
1. Load the plan and the contract. Read (required — if it's missing, stop and ask the user to run first). Extract the 5 logic-freeze instructions (Block B) and the 5 phases (Block C). Load for the recipes. The 5 logic-freeze instructions are the operating rule for every edit: state, hooks, handlers, and API/mutations are frozen; only the visual layer moves.
Done when: the contract and the 5 phases are loaded, and the frozen logic (from the audit's freeze matrix) is named as the boundary.
plan.md/plan-redesignTRANSFORM.md2. Run the phases in order (1 → 5). For each phase:
- Pick its target components from .
plan.md - Apply the transformations using the matching recipes (tokens, typography, spatial/bento, motion, responsive) for that phase's components.
TRANSFORM.md - Keep every change inside the visual layer and route all class concatenation through .
cn() - Verify the phase: the diff for the phase's components is presentation-only — no state, hook, handler, or API/mutation changed. Check against the phase's definition of done. Done when: all 5 phases are implemented and each phase's definition of done is met.
3. Final zero-regression pass. Re-check the whole app against the audit's logic-freeze matrix: every frozen hook, handler, and API call is intact; the build/typecheck passes; the visual upgrade is live across the refactored components. Report what changed (presentation) and confirm nothing logic-related moved.
Done when: all 5 phases are done and the final zero-regression verification passes — presentation upgraded, logic untouched.
1. 加载计划和契约。 读取 (必需——如果文件不存在,请停止并让用户先运行 )。提取 5 条 logic-freeze 指令(Block B)和 5 个阶段(Block C)。加载 以获取转换配方。这 5 条 logic-freeze 指令是每次编辑的操作规则:state、hooks、handlers 和 API/mutations 均被冻结;只有视觉层可以调整。
完成条件: 契约和 5 个阶段均已加载,并且已明确指出冻结逻辑(来自审计的冻结矩阵)的边界。
plan.md/plan-redesignTRANSFORM.md2. 按顺序运行各阶段(1 → 5)。 对于每个阶段:
- 从 中选择该阶段的目标组件。
plan.md - 使用 中匹配的配方,对该阶段的组件应用 tokens、typography、spatial/bento、motion 和 responsive 等转换。
TRANSFORM.md - 确保所有更改都仅限于视觉层,并通过 完成所有 class 拼接。
cn() - 验证该阶段: 该阶段组件的 diff 仅涉及 presentation——不得更改任何 state、hook、handler 或 API/mutation。对照该阶段的完成定义进行检查。 完成条件: 5 个阶段均已实施,并且每个阶段的完成定义均已满足。
3. 最终零回归检查。 根据审计的 logic-freeze 矩阵重新检查整个应用:所有被冻结的 hook、handler 和 API 调用均保持完整;build/typecheck 通过;视觉升级已在所有重构组件中生效。报告 presentation 方面的更改,并确认没有任何逻辑相关代码被移动。
完成条件: 5 个阶段均已完成,并且最终零回归验证通过——presentation 已升级,逻辑保持不变。