AionUi 实施计划模板解析:基于 Constitution 门禁的多阶段 AI 功能规划工作流
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 upStar if you like it!项目地址: https://gitcode.com/GitHub_Trending/ai/AionUiAionUiAGENTS.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.md1. 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 (webfrontendbackend, mobileappapi) → 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 upStar if you like it!项目地址: https://gitcode.com/GitHub_Trending/ai/AionUi创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考