Install
openclaw skills install aidlcAI-Driven Development Life Cycle (AI-DLC) adaptive workflow for software development. Use when: starting a new project, new feature, bug fix, refactoring, migration, or any dev task. Chinese triggers: 新项目, 开始开发, 做个功能, 修复bug, 重构, 新需求, 新建项目. English triggers: start a project, new feature, AI-DLC, aidlc, inception, construction. Implements full AI-DLC methodology: workspace detection, adaptive requirements, user stories, workflow planning, design, code generation, and build/test.
openclaw skills install aidlcAI-DLC 是一种结构化但自适应的软件开发方法论,由 AI 主导流程、人审批把关。
流程适应工作,而不是反过来。 AI 根据请求复杂度、现有代码库状态和风险评估,智能决定需要执行哪些阶段。
用户请求 → INCEPTION → CONSTRUCTION → OPERATIONS → 完成
(计划) (构建) (运营)
开始工作流时,必须按此顺序加载规则文件:
references/common/welcome-message.md — 显示欢迎消息(新项目只执行一次)references/common/process-overview.md — 工作流概览图references/common/session-continuity.md — 会话恢复指引references/common/question-format-guide.md — 问题格式规范references/extensions/ 目录 — 加载所有扩展规则在创建任何文件之前,必须按 references/common/content-validation.md 验证内容。
禁止在聊天中直接提问。所有问题必须写入 .md 文件,使用 [Answer]: 标签格式,详见 references/common/question-format-guide.md。
所有用户输入必须原样记录到 aidlc-docs/audit.md(时间戳用 ISO 8601)。禁止总结或改写用户原话。
每个阶段完成后,必须等待用户明确批准才能进入下一阶段。使用标准两选项格式:
完成任何计划步骤后,必须立即在该交互中将步骤标记为 [x]。
aidlc-docs/aidlc-state.md
读取 references/inception/workspace-detection.md,按步骤执行。
aidlc-docs/aidlc-state.md读取 references/inception/reverse-engineering.md,按步骤执行。
读取 references/inception/requirements-analysis.md,按步骤执行。
深度级别:
Minimal — 简单请求,只记录意图
Standard — 正常复杂度,收集功能和 NFR
Comprehensive — 复杂高风险,详细需求 + 追溯性
始终创建 aidlc-docs/inception/requirements/requirement-verification-questions.md(除非需求极其清晰)
等待用户回答所有 [Answer]: 标签
分析答案中的矛盾/歧义,必要时创建追问文件
生成 aidlc-docs/inception/requirements/requirements.md
必须等待用户明确批准
读取 references/inception/user-stories.md,按步骤执行。
执行条件(满足任一即执行):
跳过条件:
分为两部分:
读取 references/inception/workflow-planning.md,按步骤执行。
aidlc-docs/inception/plans/execution-plan.md读取 references/inception/application-design.md,按步骤执行。
读取 references/inception/units-generation.md,按步骤执行。
对于每个工作单元,依次执行(跳过不适用的):
references/construction/functional-design.mdreferences/construction/nfr-requirements.mdreferences/construction/nfr-design.mdreferences/construction/infrastructure-design.mdreferences/construction/code-generation.md
每个阶段完成后用标准两选项消息请求批准。
读取 references/construction/build-and-test.md,按步骤执行。
build-and-test/ 目录下的构建说明、测试说明文件读取 references/operations/operations.md。当前为占位阶段,构建测试活动已在 CONSTRUCTION 完成。
<WORKSPACE-ROOT>/ # ⚠️ 应用代码放这里
├── [项目特定结构] # 按项目类型(见 code-generation.md)
│
├── aidlc-docs/ # 📄 文档放这里
│ ├── inception/
│ │ ├── plans/
│ │ ├── reverse-engineering/ # brownfield
│ │ ├── requirements/
│ │ ├── user-stories/
│ │ └── application-design/
│ ├── construction/
│ │ ├── plans/
│ │ ├── {unit-name}/
│ │ │ ├── functional-design/
│ │ │ ├── nfr-requirements/
│ │ │ ├── nfr-design/
│ │ │ ├── infrastructure-design/
│ │ │ └── code/ # markdown 摘要
│ │ └── build-and-test/
│ ├── operations/
│ ├── aidlc-state.md
│ └── audit.md
关键规则:
aidlc-docs/ 内)aidlc-docs/ 内audit.md,禁止覆盖读取 references/common/session-continuity.md:
aidlc-state.md,获取当前状态读取 references/inception/requirements-analysis.md(Minimal 深度):
对于 bug 修复,User Stories、NFR、Application Design 通常都跳过。
本 SKILL.md 提供了完整工作流概览。每个阶段的详细步骤、工件格式、问题模板和审批格式,请查阅对应参考文件:
| 阶段 | 参考文件 |
|---|---|
| 欢迎消息 | references/common/welcome-message.md |
| 工作流概览 | references/common/process-overview.md |
| 会话恢复 | references/common/session-continuity.md |
| 问题格式 | references/common/question-format-guide.md |
| 内容验证 | references/common/content-validation.md |
| 深度自适应 | references/common/depth-levels.md |
| ASCII 图规范 | references/common/ascii-diagram-standards.md |
| 过度自信预防 | references/common/overconfidence-prevention.md |
| 错误处理 | references/common/error-handling.md |
| 变更管理 | references/common/workflow-changes.md |
| 术语表 | references/common/terminology.md |
| 工作区检测 | references/inception/workspace-detection.md |
| 需求分析 | references/inception/requirements-analysis.md |
| 用户故事 | references/inception/user-stories.md |
| 工作流规划 | references/inception/workflow-planning.md |
| 应用设计 | references/inception/application-design.md |
| 单元生成 | references/inception/units-generation.md |
| 逆向工程 | references/inception/reverse-engineering.md |
| 代码生成 | references/construction/code-generation.md |
| 构建测试 | references/construction/build-and-test.md |
| NFR 需求 | references/construction/nfr-requirements.md |
| NFR 设计 | references/construction/nfr-design.md |
| 功能设计 | references/construction/functional-design.md |
| 基础设施设计 | references/construction/infrastructure-design.md |
| 运营 | references/operations/operations.md |
| 安全基线(扩展) | references/extensions/security/baseline/security-baseline.md |