aodw-skill 0.7.13 → 0.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/.aodw-next/01-core/ai-interaction-rules-summary.md +37 -0
  2. package/.aodw-next/01-core/ai-interaction-rules.md +20 -6
  3. package/.aodw-next/01-core/ai-knowledge-rules-summary.md +25 -0
  4. package/.aodw-next/01-core/ai-knowledge-rules.md +19 -21
  5. package/.aodw-next/01-core/ai-project-overview-rules.md +11 -11
  6. package/.aodw-next/01-core/aodw-constitution.md +7 -414
  7. package/.aodw-next/01-core/csf-thinking-framework.md +14 -14
  8. package/.aodw-next/01-core/git-discipline-summary.md +36 -0
  9. package/.aodw-next/01-core/git-discipline.md +129 -73
  10. package/.aodw-next/01-core/module-doc-rules.md +2 -2
  11. package/.aodw-next/02-workflow/rt-id-generation-rules.md +16 -259
  12. package/.aodw-next/02-workflow/rt-manager-summary.md +1 -1
  13. package/.aodw-next/02-workflow/rt-manager.md +73 -344
  14. package/.aodw-next/02-workflow/spec-full-profile.md +149 -307
  15. package/.aodw-next/02-workflow/spec-lite-profile.md +170 -253
  16. package/.aodw-next/02-workflow/ui-workflow-rules-summary.md +39 -0
  17. package/.aodw-next/02-workflow/ui-workflow-rules.md +57 -292
  18. package/.aodw-next/03-standards/ai-coding-rules-common.md +1 -1
  19. package/.aodw-next/03-standards/ai-coding-rules.md +91 -25
  20. package/.aodw-next/03-standards/stacks/java-springboot/ai-coding-rules-backend.md +9 -9
  21. package/.aodw-next/03-standards/stacks/python-fastapi/ai-coding-rules-backend.md +13 -13
  22. package/.aodw-next/03-standards/stacks/react-typescript/ai-coding-rules-frontend.md +10 -10
  23. package/.aodw-next/03-standards/stacks/rust-axum/ai-coding-rules-backend.md +4 -4
  24. package/.aodw-next/03-standards/stacks/vue2/ai-coding-rules-frontend.md +9 -9
  25. package/.aodw-next/04-auditors/aodw-development-auditor-rules.md +15 -10
  26. package/.aodw-next/04-auditors/aodw-full-auditor-rules.md +14 -14
  27. package/.aodw-next/04-auditors/aodw-requirement-auditor-rules.md +130 -338
  28. package/.aodw-next/05-tooling/ai-tools-init-rules.md +74 -367
  29. package/.aodw-next/06-project/README.md +16 -0
  30. package/.aodw-next/07-optimization/token-usage-analysis.md +2 -2
  31. package/.aodw-next/README.md +53 -20
  32. package/.aodw-next/SKILL.md +32 -0
  33. package/.aodw-next/config.yaml +2 -2
  34. package/.aodw-next/manifest.yaml +64 -57
  35. package/.aodw-next/project.yaml +1 -0
  36. package/.aodw-next/templates/TEMPLATE-APPLICATION-GUIDE.md +21 -157
  37. package/.aodw-next/templates/ai-overview.template.md +72 -0
  38. package/.aodw-next/templates/aodw-kernel-loader-template.md +19 -19
  39. package/.aodw-next/templates/checklists/coding-standards-template.md +24 -4
  40. package/.aodw-next/templates/modules-index.template.yaml +13 -0
  41. package/.aodw-next/templates/plan-lite-template.md +9 -0
  42. package/.aodw-next/templates/rt-intake-template.md +2 -2
  43. package/.aodw-next/templates/rt-meta-template.yaml +2 -2
  44. package/.aodw-next/templates/spec-lite-template.md +9 -0
  45. package/.aodw-next/templates/tools-config/README.md +1 -1
  46. package/.aodw-next/templates/tools-config/backend/clippy.config.template.toml +5 -0
  47. package/.aodw-next/templates/tools-config/backend/rustfmt.config.template.toml +4 -0
  48. package/.aodw-next/tools-status.yaml +51 -0
  49. package/AODW_Adapters/antigravity/.agent/rules/aodw-next.md +2 -2
  50. package/AODW_Adapters/claude/CLAUDE.md +2 -2
  51. package/AODW_Adapters/cursor/.cursor/rules/aodw-next.mdc +2 -2
  52. package/AODW_Adapters/gemini/.agent/rules/aodw-next.md +2 -2
  53. package/AODW_Adapters/gemini/GEMINI.md +6 -5
  54. package/AODW_Adapters/general/AGENTS.md +2 -2
  55. package/README.md +62 -45
  56. package/bin/aodw.js +44 -16
  57. package/bin/commands/init-overview.js +3 -3
  58. package/bin/commands/init-tools.js +34 -51
  59. package/bin/utils/config.js +1 -1
  60. package/package.json +1 -1
  61. package/.aodw-next/.aodw-next/01-core/ai-interaction-rules.md +0 -218
  62. package/.aodw-next/.aodw-next/01-core/ai-knowledge-rules.md +0 -302
  63. package/.aodw-next/.aodw-next/01-core/ai-project-overview-rules.md +0 -284
  64. package/.aodw-next/.aodw-next/01-core/aodw-constitution-summary.md +0 -20
  65. package/.aodw-next/.aodw-next/01-core/aodw-constitution.md +0 -419
  66. package/.aodw-next/.aodw-next/01-core/csf-thinking-framework.md +0 -373
  67. package/.aodw-next/.aodw-next/01-core/git-discipline.md +0 -226
  68. package/.aodw-next/.aodw-next/01-core/module-doc-rules.md +0 -90
  69. package/.aodw-next/.aodw-next/02-workflow/aodw-development-stages.md +0 -235
  70. package/.aodw-next/.aodw-next/02-workflow/rt-id-generation-rules.md +0 -267
  71. package/.aodw-next/.aodw-next/02-workflow/rt-manager-summary.md +0 -15
  72. package/.aodw-next/.aodw-next/02-workflow/rt-manager.md +0 -399
  73. package/.aodw-next/.aodw-next/02-workflow/spec-full-profile-summary.md +0 -13
  74. package/.aodw-next/.aodw-next/02-workflow/spec-full-profile.md +0 -391
  75. package/.aodw-next/.aodw-next/02-workflow/spec-lite-profile.md +0 -313
  76. package/.aodw-next/.aodw-next/02-workflow/ui-workflow-rules.md +0 -334
  77. package/.aodw-next/.aodw-next/03-standards/ai-coding-rules-common.md +0 -89
  78. package/.aodw-next/.aodw-next/03-standards/ai-coding-rules.md +0 -370
  79. package/.aodw-next/.aodw-next/03-standards/stacks/java-springboot/ai-coding-rules-backend.md +0 -231
  80. package/.aodw-next/.aodw-next/03-standards/stacks/python-fastapi/ai-coding-rules-backend.md +0 -612
  81. package/.aodw-next/.aodw-next/03-standards/stacks/react-typescript/ai-coding-rules-frontend.md +0 -291
  82. package/.aodw-next/.aodw-next/03-standards/stacks/rust-axum/ai-coding-rules-backend.md +0 -134
  83. package/.aodw-next/.aodw-next/03-standards/stacks/vue2/ai-coding-rules-frontend.md +0 -220
  84. package/.aodw-next/.aodw-next/03-standards/ui-kit/ui-kit.md +0 -163
  85. package/.aodw-next/.aodw-next/04-auditors/aodw-development-auditor-rules.md +0 -470
  86. package/.aodw-next/.aodw-next/04-auditors/aodw-full-auditor-rules.md +0 -365
  87. package/.aodw-next/.aodw-next/04-auditors/aodw-requirement-auditor-rules.md +0 -408
  88. package/.aodw-next/.aodw-next/05-tooling/ai-tools-init-rules.md +0 -676
  89. package/.aodw-next/.aodw-next/06-project/ai-overview.md +0 -116
  90. package/.aodw-next/.aodw-next/06-project/modules-index.yaml +0 -11
  91. package/.aodw-next/.aodw-next/07-optimization/token-usage-analysis.md +0 -253
  92. package/.aodw-next/.aodw-next/README.md +0 -26
  93. package/.aodw-next/.aodw-next/RELEASE-CHECKLIST.md +0 -144
  94. package/.aodw-next/.aodw-next/config.yaml +0 -2
  95. package/.aodw-next/.aodw-next/manifest.yaml +0 -98
  96. package/.aodw-next/.aodw-next/templates/SOURCE-TO-DISTRIBUTION-GUIDE.md +0 -276
  97. package/.aodw-next/.aodw-next/templates/TEMPLATE-APPLICATION-GUIDE.md +0 -246
  98. package/.aodw-next/.aodw-next/templates/aodw-kernel-loader-template.md +0 -70
  99. package/.aodw-next/.aodw-next/templates/audit-report-template.md +0 -232
  100. package/.aodw-next/.aodw-next/templates/changelog-template.md +0 -16
  101. package/.aodw-next/.aodw-next/templates/checklists/coding-standards-template.md +0 -110
  102. package/.aodw-next/.aodw-next/templates/csf-review-template.md +0 -201
  103. package/.aodw-next/.aodw-next/templates/impact-template.md +0 -17
  104. package/.aodw-next/.aodw-next/templates/invariants-template.md +0 -12
  105. package/.aodw-next/.aodw-next/templates/module-readme-template.md +0 -39
  106. package/.aodw-next/.aodw-next/templates/plan-lite-template.md +0 -11
  107. package/.aodw-next/.aodw-next/templates/rt-decision-template.md +0 -13
  108. package/.aodw-next/.aodw-next/templates/rt-intake-template.md +0 -33
  109. package/.aodw-next/.aodw-next/templates/rt-meta-template.yaml +0 -43
  110. package/.aodw-next/.aodw-next/templates/spec-lite-template.md +0 -17
  111. package/.aodw-next/.aodw-next/templates/tests-template.md +0 -13
  112. package/.aodw-next/.aodw-next/templates/tools-config/README.md +0 -112
  113. package/.aodw-next/.aodw-next/templates/tools-config/backend/black.config.template.toml +0 -6
  114. package/.aodw-next/.aodw-next/templates/tools-config/backend/pre-commit.config.template.yaml +0 -16
  115. package/.aodw-next/.aodw-next/templates/tools-config/backend/ruff.config.template.toml +0 -23
  116. package/.aodw-next/.aodw-next/templates/tools-config/frontend/eslint.config.template.json +0 -113
  117. package/.aodw-next/.aodw-next/templates/tools-config/frontend/prettier.config.template.json +0 -10
  118. package/.aodw-next/.aodw-next/templates/tools-config/frontend/tsconfig.paths.template.json +0 -11
  119. package/.aodw-next/.aodw-next/workflow-guide.md +0 -51
  120. package/.aodw-next/01-core/aodw-constitution-summary.md +0 -20
  121. package/.aodw-next/02-workflow/aodw-development-stages.md +0 -235
  122. package/.aodw-next/02-workflow/spec-full-profile-summary.md +0 -13
  123. package/.aodw-next/06-project/ai-overview.md +0 -116
  124. package/.aodw-next/06-project/modules-index.yaml +0 -11
  125. package/.aodw-next/RELEASE-CHECKLIST.md +0 -144
  126. package/.aodw-next/templates/SOURCE-TO-DISTRIBUTION-GUIDE.md +0 -276
  127. package/.aodw-next/workflow-guide.md +0 -51
@@ -1,26 +1,59 @@
1
- # AODW 快速指南
1
+ # AODW — AI 编排开发工作流
2
2
 
3
- 面向从零启动的新项目,说明这套 AI-Orchestrated Development Workflow 的组成与最小操作步骤。
3
+ ## 规则文件索引
4
4
 
5
- ## 1. 目录与组成
6
- - `.aodw/`:核心规则(宪法、AI 行为、知识维护、交互、模块文档、Spec Full/Lite Profile、RT Manager、模板)以及 `.aodw/aodw_governance/` 治理与版本记录。
7
- - `.cursor/`:运行时规则(`aodw_all.mdc` 等)供 Cursor/Claude/Codex 等加载。
8
- - `RT/index.yaml`:RT 全局索引;每个 RT 放在 `RT/RT-XXX/`。
5
+ 详细索引见 `manifest.yaml`。分层概览:
9
6
 
10
- ## 2. 初始化新仓库
11
- 1) 直接把上述目录/文件拷贝到仓库根目录。
12
- 2) 在 `.aodw/06-project/modules-index.yaml` 登记实际模块;为每个模块用 `.aodw/templates/module-readme-template.md` 生成 README(建议放 `docs/modules/<name>.md`),写明职责/映射/不变量/历史。
13
- 3) 创建 `RT/RT-001/`(Spec-Full):复制 `.aodw/templates/rt-meta-template.yaml` `meta.yaml`,初始化 intake/decision/spec/plan/impact/invariants/tests/changelog,记录"启用 AODW"的决策;在 `RT/index.yaml` 登记并更新 `last_updated_at`(必须使用系统命令或 API 获取真实时间)。
14
- 4) 确认团队约定:分支前缀 `feature|bugfix|refactor/RT-XXX-short-name`,提交信息包含 `Refs: RT-XXX`。
7
+ ### 01-core(核心规范)
8
+ - `aodw-constitution.md` — 最高行为准则
9
+ - `git-discipline.md` Git + Worktree + 确认门控
10
+ - `ai-interaction-rules.md` AI 提问与交互协议
11
+ - `ai-knowledge-rules.md` — 文档系统与知识同步
12
+ - `csf-thinking-framework.md` — CSF 决策思考框架
13
+ - `module-doc-rules.md` — 模块文档编写规范
15
14
 
16
- > 可选:`.aodw/init.md` 中有面向 AI 工具的一键指令提示词,可直接粘贴给 Cursor/Claude/Codex 执行初始化。
15
+ ### 02-workflow(工作流)
16
+ - `rt-manager.md` — RT 完整生命周期管理
17
+ - `spec-full-profile.md` — Spec-Full 执行规范(复杂变更)
18
+ - `spec-lite-profile.md` — Spec-Lite 执行规范(简单变更)
19
+ - `ui-workflow-rules.md` — UI 专项开发流程
20
+ - `rt-id-generation-rules.md` — RT ID 本地生成规则
17
21
 
18
- ## 3. 日常使用流程(简)
19
- 1) 有需求/bug/改进时,让 AI 依 `/.aodw/01-core/ai-interaction-rules.md` 提问并创建/挂接 RT(Spec-Lite vs Spec-Full 依规则判定)。
20
- 2) 为该 RT 填充必要文件(meta/intake/decision/spec(-lite)/plan(-lite)/impact/invariants/tests/changelog),并同步 `RT/index.yaml`。
21
- 3) 按 `.aodw/03-standards/ai-coding-rules.md`、`.aodw/01-core/ai-knowledge-rules.md` 开发:小步提交、保持文档与代码一致、更新模块 README。
22
- 4) 完成前做一致性检查(meta/index、spec/plan/impact/tests、模块 README、不变量),确认后合并并更新 RT 状态。
22
+ ### 03-standards(编码规范)
23
+ - `ai-coding-rules.md` 通用编码规范
24
+ - `ai-coding-rules-common.md` — 通用规范补充
25
+ - `stacks/` 技术栈专项规范(按需加载)
23
26
 
24
- ## 4. 给 AI 工具的加载方式
25
- - Cursor/Claude/Codex:确保可读取 `.cursor/aodw_all.mdc` `.aodw/`(含 `.aodw/aodw_governance/`)、`RT/`。
26
- - 如需显式提示,参考 `.aodw/init.md` 的指令,让 AI 自动完成初始化和首个 RT-CORE 创建。
27
+ ### 04-auditors(审计器)
28
+ - `aodw-requirement-auditor-rules.md` 需求审计
29
+ - `aodw-development-auditor-rules.md` 开发审计
30
+ - `aodw-full-auditor-rules.md` — 完整审计规则集
31
+
32
+ ### 05-tooling(工具配置)
33
+ - `ai-tools-init-rules.md` — 开发工具初始化
34
+
35
+ ### 06-project(项目特化层 — 每个项目单独配置)
36
+ - `ai-overview.md` — 项目技术栈与架构概览 ⚠️
37
+ - `modules-index.yaml` — 项目模块索引 ⚠️
38
+
39
+ ### templates(文档模板)
40
+ RT 生命周期各阶段文档的标准模板。
41
+
42
+ ---
43
+
44
+ ## 新项目安装
45
+
46
+ 1. 将 `.aodw-next/` 目录复制到新项目根目录
47
+ 2. 重写项目特化文件:
48
+ - `06-project/ai-overview.md` — 填写技术栈、架构、模块结构
49
+ - `06-project/modules-index.yaml` — 填写模块列表
50
+ 3. 在项目的 AI 配置文件中添加引用(如 CLAUDE.md)
51
+
52
+ ---
53
+
54
+ ## 版本信息
55
+
56
+ - AODW 版本:0.5.1
57
+ - Spec-Full Profile:v2.0(Skill 化)
58
+ - Spec-Lite Profile:v2.0(Skill 化)
59
+ - git-discipline:v2.0(Worktree + 确认门控)
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: aodw
3
+ description: AODW (AI-Orchestrated Development Workflow) — 完整的 AI 协作开发工作流体系。当用户涉及以下任意场景时必须加载本 skill:新建 RT / 需求 / 功能 / 任务、立项、分支管理、worktree 创建与清理、Spec-Full / Spec-Lite 开发流程、代码提交与合并、RT 审查与完成、AODW 规范检查。关键触发词:RT、立项、新需求、开发任务、feature 分支、worktree、spec、intake、决策、实现、验收。本 skill 管理从立项到合并的完整开发生命周期。
4
+ ---
5
+
6
+ # AODW — AI 编排开发工作流 (v0.5.1)
7
+
8
+ 用 **RT(Request Ticket)** 追踪每个开发任务,通过文档驱动、分支隔离、Gate 检查点和确认门控执行。
9
+
10
+ ## 加载顺序(渐进式披露,优先读 summary)
11
+
12
+ 1. **总是加载**:`01-core/aodw-constitution-summary.md`(最高行为准则)
13
+ 2. **按场景追加**(优先读 `*-summary.md`,需要细节时再读完整版):
14
+
15
+ | 场景 | 追加加载 |
16
+ |------|---------|
17
+ | 立项 / 创建 RT | `rt-manager-summary.md` + `ai-interaction-rules-summary.md` + `rt-id-generation-rules.md` |
18
+ | Spec-Lite 执行 | `spec-lite-profile-summary.md` + `git-discipline-summary.md` |
19
+ | Spec-Full 执行 | `spec-full-profile-summary.md` + `ai-coding-rules.md`(按技术栈) |
20
+ | Git 操作 / 合并 | `git-discipline.md`(完整版) |
21
+ | 审计 | `04-auditors/aodw-requirement-auditor-rules.md` |
22
+ | 知识同步 | `ai-knowledge-rules-summary.md` |
23
+
24
+ ## 核心概念
25
+
26
+ - **RT 生命周期**:`created → intaking → decided → in-progress → reviewing → done`
27
+ - **一个 RT = 一个 Worktree = 一个 Feature 分支**(`feature/RT-XXX-name`)
28
+ - **Spec-Full**:跨模块/数据模型/API 变更/高风险 → 完整 spec+plan+审计
29
+ - **Spec-Lite**:单模块/bug 修复/低风险 → 单文件 `rt-lite.md`
30
+ - **确认门控**:commit/merge/push/worktree 操作前必须向用户确认
31
+ - **规则索引**:详见 `manifest.yaml`
32
+ - **新项目安装**:详见 `README.md`
@@ -1,2 +1,2 @@
1
- mode: collaborative
2
- server_url: http://114.67.218.31:2005
1
+ mode: independent
2
+ # RT-ID 政策:统一使用本地生成,不再依赖远程分配服务
@@ -1,98 +1,105 @@
1
1
  # AODW Manifest (Level 1 metadata)
2
- version: 0.4.6
3
- last_updated_at: 2026-01-01T22:11:47+08:00
2
+ version: 0.5.1
3
+ last_updated_at: 2026-04-19T10:55:00+08:00
4
4
  summary_preferred: true
5
5
 
6
6
  rules:
7
7
  - id: aodw-constitution
8
8
  name: AODW Constitution
9
9
  description: Kernel principles and universal standards for AODW.
10
- path: .aodw/01-core/aodw-constitution.md
11
- summary_path: .aodw/01-core/aodw-constitution-summary.md
12
- size_kb: 16.2
13
- priority: critical
14
- tags: [core, always-load]
15
- load_when: [always]
10
+ path: 01-core/aodw-constitution.md
16
11
 
17
12
  - id: ai-interaction-rules
18
13
  name: AI Interaction Rules
19
14
  description: Standard question/answer protocol and interaction constraints.
20
- path: .aodw/01-core/ai-interaction-rules.md
21
- size_kb: 7.7
22
- priority: high
23
- tags: [interaction, ui, questions]
24
- load_when: [intake, decision, clarify]
15
+ path: 01-core/ai-interaction-rules.md
25
16
 
26
17
  - id: ai-knowledge-rules
27
18
  name: AI Knowledge Rules
28
19
  description: Documentation system, modules index, and knowledge sync rules.
29
- path: .aodw/01-core/ai-knowledge-rules.md
30
- size_kb: 9.5
31
- priority: high
32
- tags: [knowledge, docs]
33
- load_when: [design, implementation, review]
20
+ path: 01-core/ai-knowledge-rules.md
34
21
 
35
22
  - id: git-discipline
36
23
  name: Git Discipline
37
- description: Branching, commits, and completion rules.
38
- path: .aodw/01-core/git-discipline.md
39
- size_kb: 6.7
40
- priority: high
41
- tags: [git, workflow]
42
- load_when: [implementation, review, completion]
24
+ description: Branching, commits, worktree management, and confirm-gated execution rules.
25
+ path: 01-core/git-discipline.md
43
26
 
44
27
  - id: rt-manager
45
28
  name: RT Manager
46
29
  description: RT lifecycle, branch rules, and mandatory checks.
47
- path: .aodw/02-workflow/rt-manager.md
48
- summary_path: .aodw/02-workflow/rt-manager-summary.md
49
- size_kb: 14.7
50
- priority: critical
51
- tags: [workflow, rt]
52
- load_when: [create-rt, manage-rt]
30
+ path: 02-workflow/rt-manager.md
53
31
 
54
32
  - id: spec-full-profile
55
33
  name: Spec-Full Profile
56
34
  description: Full specification workflow for complex changes.
57
- path: .aodw/02-workflow/spec-full-profile.md
58
- summary_path: .aodw/02-workflow/spec-full-profile-summary.md
59
- size_kb: 13.7
60
- priority: high
61
- tags: [profile, spec-full]
62
- load_when: [spec-full]
35
+ path: 02-workflow/spec-full-profile.md
63
36
 
64
37
  - id: spec-lite-profile
65
38
  name: Spec-Lite Profile
66
39
  description: Lightweight workflow for low-risk changes.
67
- path: .aodw/02-workflow/spec-lite-profile.md
68
- size_kb: 10.3
69
- priority: medium
70
- tags: [profile, spec-lite]
71
- load_when: [spec-lite]
40
+ path: 02-workflow/spec-lite-profile.md
72
41
 
73
42
  - id: ui-workflow-rules
74
43
  name: UI Workflow Rules
75
44
  description: UI-specific process requirements and gates.
76
- path: .aodw/02-workflow/ui-workflow-rules.md
77
- size_kb: 13.0
78
- priority: medium
79
- tags: [ui, workflow]
80
- load_when: [ui-task]
45
+ path: 02-workflow/ui-workflow-rules.md
81
46
 
82
47
  - id: ai-coding-rules
83
48
  name: AI Coding Rules
84
49
  description: General coding standards and style constraints.
85
- path: .aodw/03-standards/ai-coding-rules.md
86
- size_kb: 11.2
87
- priority: medium
88
- tags: [coding, standards]
89
- load_when: [implementation]
50
+ path: 03-standards/ai-coding-rules.md
90
51
 
91
- - id: requirement-auditor
52
+ - id: aodw-requirement-auditor
92
53
  name: Requirement Auditor Rules
93
54
  description: Spec-Full requirement audit rules and outputs.
94
- path: .aodw/04-auditors/aodw-requirement-auditor-rules.md
95
- size_kb: 17.0
96
- priority: high
97
- tags: [audit, requirements]
98
- load_when: [spec-full, audit]
55
+ path: 04-auditors/aodw-requirement-auditor-rules.md
56
+
57
+ - id: aodw-development-auditor
58
+ name: Development Auditor Rules
59
+ description: Implementation-phase audit rules covering code quality and spec compliance.
60
+ path: 04-auditors/aodw-development-auditor-rules.md
61
+
62
+ - id: aodw-full-auditor
63
+ name: Full Auditor Rules
64
+ description: Complete auditor rule set combining requirement and development audits.
65
+ path: 04-auditors/aodw-full-auditor-rules.md
66
+
67
+ - id: csf-thinking-framework
68
+ name: CSF Thinking Framework
69
+ description: Structured thinking framework for decision-making during spec and design phases.
70
+ path: 01-core/csf-thinking-framework.md
71
+
72
+ - id: module-doc-rules
73
+ name: Module Documentation Rules
74
+ description: Rules for writing and maintaining module-level documentation.
75
+ path: 01-core/module-doc-rules.md
76
+
77
+ - id: ai-project-overview-rules
78
+ name: AI Project Overview Rules
79
+ description: Rules for initializing and maintaining project overview file.
80
+ path: 01-core/ai-project-overview-rules.md
81
+
82
+ - id: rt-id-generation-rules
83
+ name: RT ID Generation Rules
84
+ description: Rules for generating and managing RT sequence IDs locally.
85
+ path: 02-workflow/rt-id-generation-rules.md
86
+
87
+ - id: ai-tools-init-rules
88
+ name: AI Tools Init Rules
89
+ description: Rules for initializing and verifying development tooling (ESLint, Prettier, Ruff, Black, etc.).
90
+ path: 05-tooling/ai-tools-init-rules.md
91
+
92
+ - id: ai-coding-rules-common
93
+ name: AI Coding Rules Common
94
+ description: Common coding standards shared across all tech stacks (file size, complexity, naming).
95
+ path: 03-standards/ai-coding-rules-common.md
96
+
97
+ - id: project-ai-overview
98
+ name: Project AI Overview
99
+ description: Current project tech stack, architecture, and module overview. Project-specific — must be rewritten for each project.
100
+ path: templates/ai-overview.template.md
101
+
102
+ - id: project-modules-index
103
+ name: Project Modules Index
104
+ description: Index of all modules in current project. Project-specific — updated after each RT completion (knowledge distillation).
105
+ path: templates/modules-index.template.yaml
@@ -0,0 +1 @@
1
+ project_name: VoiceX
@@ -2,11 +2,11 @@
2
2
 
3
3
  ## 1. 模板机制概述
4
4
 
5
- AODW 使用**统一模板机制**来生成各个平台的适配器文件,确保所有平台的内容保持一致。
5
+ AODW Next 使用**统一模板机制**来生成各个平台的适配器文件,确保所有平台的内容保持一致。
6
6
 
7
7
  ### 1.1 模板位置
8
8
 
9
- **源模板**:`.aodw/templates/aodw-kernel-loader-template.md`
9
+ **源模板**:`.aodw-next/templates/aodw-kernel-loader-template.md`
10
10
 
11
11
  这个模板包含所有平台的通用内容,使用占位符标记平台差异:
12
12
  - `{{REF_PREFIX}}` - 引用前缀(Cursor: `@`,其他: 空)
@@ -14,27 +14,21 @@ AODW 使用**统一模板机制**来生成各个平台的适配器文件,确
14
14
  ### 1.2 适配器文件位置
15
15
 
16
16
  **生成的适配器文件**(在源仓库中):
17
- - `templates/AODW_Adapters/antigravity/.agent/rules/aodw.md`
18
- - `templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc`
17
+ - `templates/AODW_Adapters/antigravity/.agent/rules/aodw-next.md`
18
+ - `templates/AODW_Adapters/cursor/.cursor/rules/aodw-next.mdc`
19
19
  - `templates/AODW_Adapters/claude/CLAUDE.md`
20
- - `templates/AODW_Adapters/gemini/.agent/rules/aodw.md`
20
+ - `templates/AODW_Adapters/gemini/.agent/rules/aodw-next.md`
21
21
  - `templates/AODW_Adapters/general/AGENTS.md`
22
22
 
23
- **注意**:这些文件是**回退方案**,用于向后兼容。CLI 安装时会优先使用模板直接生成。
23
+ **注意**:适配器文件在用户项目中安装到对应位置。
24
24
 
25
25
  ---
26
26
 
27
27
  ## 2. 模板处理流程
28
28
 
29
- ### 2.1 开发阶段(源仓库)
29
+ ### 2.1 安装阶段(用户项目)
30
30
 
31
- 1. **修改模板**:编辑 `.aodw/templates/aodw-kernel-loader-template.md`
32
- 2. **更新适配器**:运行 `node cli/bin/update-adapters-from-template.js`
33
- 3. **提交更改**:提交模板和生成的适配器文件
34
-
35
- ### 2.2 安装阶段(用户项目)
36
-
37
- 1. **CLI 检测模板**:检查 `.aodw/templates/aodw-kernel-loader-template.md` 是否存在
31
+ 1. **CLI 检测模板**:检查 `.aodw-next/templates/aodw-kernel-loader-template.md` 是否存在
38
32
  2. **使用 Processor**:根据平台选择对应的 Processor
39
33
  3. **生成适配器文件**:在用户项目中生成适配器文件
40
34
 
@@ -47,56 +41,19 @@ AODW 使用**统一模板机制**来生成各个平台的适配器文件,确
47
41
 
48
42
  ---
49
43
 
50
- ## 3. 如何更新模板
51
-
52
- ### 3.1 修改模板文件
53
-
54
- 编辑 `.aodw/templates/aodw-kernel-loader-template.md`,例如:
55
-
56
- ```markdown
57
- | **执行需求审计** | {{REF_PREFIX}}.aodw/04-auditors/aodw-requirement-auditor-rules.md | ... |
58
- ```
59
-
60
- ### 3.2 更新适配器文件
61
-
62
- 运行更新脚本:
63
-
64
- ```bash
65
- node cli/bin/update-adapters-from-template.js
66
- ```
67
-
68
- 这个脚本会:
69
- 1. 读取模板文件
70
- 2. 使用各个 Processor 处理模板
71
- 3. 生成各个平台的适配器文件到 `templates/AODW_Adapters/`
72
-
73
- ### 3.3 验证更新
74
-
75
- 检查生成的适配器文件:
76
-
77
- ```bash
78
- # Antigravity(应该没有 {{REF_PREFIX}})
79
- cat templates/AODW_Adapters/antigravity/.agent/rules/aodw.md | grep "执行需求审计"
80
-
81
- # Cursor(应该有 @)
82
- cat templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc | grep "执行需求审计"
83
- ```
84
-
85
- ---
86
-
87
- ## 4. Processor 说明
44
+ ## 3. Processor 说明
88
45
 
89
- ### 4.1 AntigravityProcessor
46
+ ### 3.1 AntigravityProcessor
90
47
 
91
48
  **处理**:
92
49
  - 替换 `{{REF_PREFIX}}` 为空字符串
93
50
  - 注入 `trigger: always_on` frontmatter(仅对 kernel loader)
94
51
 
95
52
  **输出**:
96
- - 文件:`templates/AODW_Adapters/antigravity/.agent/rules/aodw.md`
53
+ - 文件:`templates/AODW_Adapters/antigravity/.agent/rules/aodw-next.md`
97
54
  - 格式:Markdown with frontmatter
98
55
 
99
- ### 4.2 CursorProcessor
56
+ ### 3.2 CursorProcessor
100
57
 
101
58
  **处理**:
102
59
  - 替换 `{{REF_PREFIX}}` 为 `@`
@@ -104,10 +61,10 @@ cat templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc | grep "执行需求
104
61
  - 文件扩展名改为 `.mdc`
105
62
 
106
63
  **输出**:
107
- - 文件:`templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc`
64
+ - 文件:`templates/AODW_Adapters/cursor/.cursor/rules/aodw-next.mdc`
108
65
  - 格式:Markdown with Cursor-specific frontmatter
109
66
 
110
- ### 4.3 ClaudeProcessor
67
+ ### 3.3 ClaudeProcessor
111
68
 
112
69
  **处理**:
113
70
  - 替换 `{{REF_PREFIX}}` 为空字符串
@@ -117,17 +74,17 @@ cat templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc | grep "执行需求
117
74
  - 文件:`templates/AODW_Adapters/claude/CLAUDE.md`
118
75
  - 格式:标准 Markdown
119
76
 
120
- ### 4.4 GeminiProcessor
77
+ ### 3.4 GeminiProcessor
121
78
 
122
79
  **处理**:
123
80
  - 替换 `{{REF_PREFIX}}` 为空字符串
124
81
  - 不注入 frontmatter
125
82
 
126
83
  **输出**:
127
- - 文件:`templates/AODW_Adapters/gemini/.agent/rules/aodw.md`
84
+ - 文件:`templates/AODW_Adapters/gemini/.agent/rules/aodw-next.md`
128
85
  - 格式:标准 Markdown
129
86
 
130
- ### 4.5 GeneralProcessor
87
+ ### 3.5 GeneralProcessor
131
88
 
132
89
  **处理**:
133
90
  - 替换 `{{REF_PREFIX}}` 为空字符串
@@ -139,108 +96,15 @@ cat templates/AODW_Adapters/cursor/.cursor/rules/aodw.mdc | grep "执行需求
139
96
 
140
97
  ---
141
98
 
142
- ## 5. CLI 安装流程
143
-
144
- ### 5.1 安装脚本逻辑
145
-
146
- ```javascript
147
- // 1. 检查模板是否存在
148
- if (fs.existsSync(SOURCE_TEMPLATE)) {
149
- // 2. 使用模板 + Processor 生成适配器文件
150
- await installFile(SOURCE_TEMPLATE, targetPath, Processor);
151
- } else {
152
- // 3. 回退到旧文件(向后兼容)
153
- await installFile(sourceAdapterFile, targetPath, Processor);
154
- }
155
- ```
156
-
157
- ### 5.2 安装路径
158
-
159
- **用户项目中的适配器文件**:
160
- - Antigravity: `.agent/rules/aodw.md`
161
- - Cursor: `.cursor/rules/aodw.mdc`
162
- - Claude: `.claude/CLAUDE.md`
163
- - Gemini: `.agent/rules/aodw.md`
164
- - General: `.aodw/AGENTS.md`
165
-
166
- ---
167
-
168
- ## 6. 最佳实践
169
-
170
- ### 6.1 修改模板后
171
-
172
- 1. ✅ **必须运行更新脚本**:`node cli/bin/update-adapters-from-template.js`
173
- 2. ✅ **验证生成的适配器文件**:检查各个平台的文件是否正确
174
- 3. ✅ **提交所有更改**:包括模板和生成的适配器文件
175
-
176
- ### 6.2 添加新平台
177
-
178
- 1. 创建新的 Processor(继承 `BaseProcessor`)
179
- 2. 在 `update-adapters-from-template.js` 中添加新平台的更新逻辑
180
- 3. 在 `cli/bin/aodw.js` 中添加新平台的安装逻辑
181
-
182
- ### 6.3 模板占位符
183
-
184
- **当前占位符**:
185
- - `{{REF_PREFIX}}` - 引用前缀
186
-
187
- **添加新占位符**:
188
- 1. 在模板中使用 `{{PLACEHOLDER_NAME}}`
189
- 2. 在各个 Processor 的 `transform` 方法中处理占位符
190
-
191
- ---
192
-
193
- ## 7. 故障排查
194
-
195
- ### 7.1 模板未应用
196
-
197
- **问题**:用户项目中的适配器文件还是旧内容
198
-
199
- **原因**:
200
- - 模板文件不存在(CLI 回退到旧文件)
201
- - Processor 处理失败
202
-
203
- **解决**:
204
- 1. 检查 `.aodw/templates/aodw-kernel-loader-template.md` 是否存在
205
- 2. 检查 Processor 是否正确处理占位符
206
- 3. 重新运行 `aodw init`
207
-
208
- ### 7.2 占位符未替换
209
-
210
- **问题**:生成的适配器文件中还有 `{{REF_PREFIX}}`
211
-
212
- **原因**:
213
- - Processor 的 `transform` 方法未正确处理占位符
214
-
215
- **解决**:
216
- 1. 检查 Processor 的 `transform` 方法
217
- 2. 确保使用 `replace` 方法替换占位符
218
-
219
- ### 7.3 Frontmatter 未注入
220
-
221
- **问题**:生成的适配器文件缺少 frontmatter
222
-
223
- **原因**:
224
- - Processor 的 `injectFrontmatter` 方法未正确调用
225
-
226
- **解决**:
227
- 1. 检查 Processor 的 `transform` 方法
228
- 2. 确保在适当的时候调用 `injectFrontmatter`
229
-
230
- ---
231
-
232
- ## 8. 相关文件
99
+ ## 4. 相关文件
233
100
 
234
- - **模板文件**:`.aodw/templates/aodw-kernel-loader-template.md`
235
- - **更新脚本**:`cli/bin/update-adapters-from-template.js`
101
+ - **模板文件**:`.aodw-next/templates/aodw-kernel-loader-template.md`
236
102
  - **Processor 实现**:`cli/bin/processors/index.js`
237
103
  - **CLI 安装脚本**:`cli/bin/aodw.js`
238
104
  - **适配器文件**:`templates/AODW_Adapters/`
239
105
 
240
106
  ---
241
107
 
242
- ## 9. 版本历史
108
+ ## 5. 版本历史
243
109
 
244
- - **v4.0.0**:引入统一模板机制
245
- - **v4.0.1**:添加审计官命令索引
246
- - **v4.0.2**:更新模板应用指南
110
+ - **v4.0.0**:AODW Next,统一使用 `.aodw-next` 目录
@@ -0,0 +1,72 @@
1
+ # AI System Overview
2
+ (本文件列出 AI 理解本系统所需的全局信息)
3
+
4
+ > ⚠️ **项目特化文件**:本文件描述当前项目的技术栈与架构,是 AODW skill 的项目层配置。
5
+ > 在新项目中安装 AODW 时,必须完整重写本文件。
6
+ >
7
+ > 说明:本文件是骨架模板,AI 可以在后续 RT 中逐步补全。
8
+ > 修改架构或模块职责时,AI 必须同步更新本文件。
9
+
10
+ ---
11
+
12
+ ## 1. 技术栈
13
+
14
+ <!-- AUTO-DETECTED: 以下内容由 AI 自动检测 -->
15
+ - **前端**:(待补充)
16
+ - **后端**:(待补充)
17
+ - **数据库**:(待补充)
18
+ - **消息系统**:(待补充)
19
+ - **缓存**:(待补充)
20
+ - **运维 / 部署**:(待补充)
21
+ - **其他**:(待补充)
22
+ <!-- END AUTO-DETECTED -->
23
+
24
+ ---
25
+
26
+ ## 2. 整体架构概览
27
+
28
+ <!-- AUTO-DETECTED: 以下内容由 AI 自动检测 -->
29
+ (待补充 - 建议包含架构图或架构描述)
30
+ <!-- END AUTO-DETECTED -->
31
+
32
+ ---
33
+
34
+ ## 3. 目录结构
35
+
36
+ <!-- AUTO-DETECTED: 以下内容由 AI 自动检测 -->
37
+ ```
38
+ (待补充 - 列出关键目录及其用途)
39
+ ```
40
+ <!-- END AUTO-DETECTED -->
41
+
42
+ ---
43
+
44
+ ## 4. 核心业务模块职责
45
+
46
+ <!-- AUTO-DETECTED: 以下内容由 AI 自动检测 -->
47
+ (待补充 - 列出核心模块及其职责)
48
+ <!-- END AUTO-DETECTED -->
49
+
50
+ ---
51
+
52
+ ## 5. 系统级 Invariants(不可破坏原则)
53
+
54
+ <!-- USER-ADDED: 以下内容由用户或 AI 引导添加 -->
55
+ (待补充 - 列出系统必须保持的不变条件)
56
+ <!-- END USER-ADDED -->
57
+
58
+ ---
59
+
60
+ ## 6. 模块 README 映射表
61
+
62
+ <!-- AUTO-DETECTED: 以下内容由 AI 自动生成 -->
63
+ (待补充 - 映射模块路径到对应的 README 文件)
64
+ <!-- END AUTO-DETECTED -->
65
+
66
+ ---
67
+
68
+ ## 7. 历史关键变更
69
+
70
+ <!-- USER-ADDED: 以下内容由用户或 AI 引导添加 -->
71
+ (待补充 - 记录架构或关键模块的历史变更)
72
+ <!-- END USER-ADDED -->