.codex/skills/cn-refactor-plan-governance/SKILL.md
维护并执行项目中文重构计划(docs/重构计划/*.md)的治理技能。用于计划编写、测试计划设计、状态推进、阶段验收和停止门禁。遇到“重构计划审核/推进/维护/收尾/验收/测试计划”请求时使用,强制计划包含 `- [ ]`/`- [x]` 状态,测试计划采用 TDD(先写失败测试、再最小实现、再重构),每项完成定义必须写明验证命令与通过标准,且仅在所有任务与验收标准全部通过后才允许停止。
npx skillsauth add basui01/agentflow cn-refactor-plan-governanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
./scripts/run_guard.ps1 -Cmd lint -Target <计划文件名> -RequireTDD -RequireVerifiableCompletion./scripts/run_guard.ps1 -Cmd report -Target <计划文件名> -RequireTDD -RequireVerifiableCompletion./scripts/run_guard.ps1 -Cmd gate -Target <计划文件名> -RequireTDD -RequireVerifiableCompletiongate 未通过,或计划中的验证命令/通过标准未满足时,继续推进计划项,禁止以“已完成”收尾。- [ ] 或 - [x]。执行状态总览测试策略(TDD) 或 测试计划(TDD)执行计划 或 Phase完成定义 或 DoD先写失败测试最小实现让测试转绿重构并回归验证验证命令:...通过标准:...[ ])或任一通过标准未满足时,不得输出“完成/停止/归档”结论。./references/重构计划模板.md[ ] 改为 [x][x] 项都要有实际证据支撑(测试/脚本/代码路径/命令输出)验证命令 是否已执行通过标准 是否逐条满足run_guard.ps1:在项目根目录调用 scripts/refactor_plan_guard.py,并可打开 -RequireTDD / -RequireVerifiableCompletion 严格门禁。重构计划模板.md:规定章节和 [ ] 清单格式。[ ] 数量gate 通过且计划里的验证命令/通过标准全部通过时,才允许输出“可停止/可收尾”。development
Multi-agent pipeline orchestrator that plans and dispatches parallel development tasks to worktree agents. Reads project context, configures task directories with PRDs and jsonl context files, and launches isolated coding agents. Use when multiple independent features need parallel development, orchestrating worktree agents, or managing multi-agent coding pipelines.
development
Captures executable contracts and coding knowledge into .trellis/spec/ documents after implementation, debugging, or design decisions. Enforces code-spec depth for infra and cross-layer changes with mandatory sections for signatures, contracts, validation matrices, and test points. Use when a feature is implemented, a bug is fixed, a design decision is made, a new pattern is discovered, or cross-layer contracts change.
development
Initializes an AI development session by reading workflow guides, developer identity, git status, active tasks, and project guidelines from .trellis/. Classifies incoming tasks and routes to brainstorm, direct edit, or task workflow. Use when beginning a new coding session, resuming work, starting a new task, or re-establishing project context.
development
Records completed work progress to .trellis/workspace/ journal files after human testing and commit. Captures session summaries, commit hashes, and updates developer index files for future session context. Use when a coding session is complete, after the human has committed code, or to persist session knowledge for future AI sessions.