AionUi 实施计划模板解析:基于 Constitution 门禁的多阶段 AI 功能规划工作流
【免费下载链接】AionUiOpen-source 24/7 Cowork app for OpenClaw, Hermes, Claude Code, Codex, OpenCode and 20+ more CLI Agent | Customize your assistants | Team them up|Star if you like it!项目地址: https://gitcode.com/GitHub_Trending/ai/AionUi
AionUi(AGENTS.md)是一个面向 Gemini CLI、Claude Code、Qwen Code 等 20+ CLI Agent 的统一桌面协作应用,其自身的研发也深度依赖 AI 协作工作流。本文以仓库 .specify/templates/plan-template.md 为骨架,完整拆解这套从功能规格(spec)到实施计划(plan)、再交接给任务生成(tasks)的多阶段规划管线:你会掌握
/plan命令的 9 步执行流、Constitution 门禁的双重检查时机、Technical Context 的字段契约、Phase 0/1 的输出物边界,以及如何用[P]并行标记与复杂度跟踪表控制 TDD 任务的规模与秩序。
一、模板在开发工作流中的定位
.specify/templates/plan-template.md是 AionUi 仓库内 AI 驱动功能开发工作流的核心编排文档,与其配套的还有三个模板与一份宪法文件:
| 文件 | 角色 |
|---|---|
| .specify/templates/spec-template.md | 定义"功能规格",回答 WHAT/WHY,产出[NEEDS CLARIFICATION]标记 |
| .specify/templates/plan-template.md | 定义"实施计划",是本篇主体,回答 HOW,由/plan命令产出 |
| .specify/templates/tasks-template.md | 定义"任务清单",由/tasks命令从 plan 派生 |
| .specify/templates/agent-file-template.md | 定义"Agent 上下文文件"(如CLAUDE.md、AGENTS.md)的增量维护格式 |
| .specify/memory/constitution.md | 项目宪法,作为所有规划决策的合规性判据 |
模板头部明确定义了输入与输出的契约:
Branch: [###-feature-name] | Date: [DATE] | Spec: [link] Input: Feature specification from /specs/[###-feature-name]/spec.md即:/plan命令的输入必须是已就绪的 feature spec(位于specs/[###-feature-name]/spec.md),若路径下找不到该文件,则直接报错ERROR "No feature spec at {path}",这是整个管线的第一道硬校验。
二、执行流程:/plan命令的九步编排
模板用一段可执行伪代码定义了/plan命令的完整执行流(对应 plan-template.md):
1. Load feature spec from Input path → If not found: ERROR "No feature spec at {path}" 2. Fill Technical Context (scan for NEEDS CLARIFICATION) → Detect Project Type from context (web=frontend+backend, mobile=app+api) → Set Structure Decision based on project type 3. Fill the Constitution Check section based on the content of the constitution document. 4. Evaluate Constitution Check section below → If violations exist: Document in Complexity Tracking → If no justification possible: ERROR "Simplify approach first" → Update Progress Tracking: Initial Constitution Check 5. Execute Phase 0 → research.md → If NEEDS CLARIFICATION remain: ERROR "Resolve unknowns" 6. Execute Phase 1 → contracts, contenteditable="false">【免费下载链接】AionUiOpen-source 24/7 Cowork app for OpenClaw, Hermes, Claude Code, Codex, OpenCode and 20+ more CLI Agent | Customize your assistants | Team them up|Star if you like it!
项目地址: https://gitcode.com/GitHub_Trending/ai/AionUi创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考