aodw-skill 0.7.18 → 0.7.22

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 (141) hide show
  1. package/.aodw-next/01-core/ai-project-overview-rules.md +5 -5
  2. package/.aodw-next/01-core/csf-thinking-framework.md +1 -1
  3. package/.aodw-next/02-workflow/rt-manager.md +22 -1
  4. package/.aodw-next/02-workflow/ui-workflow-rules.md +0 -3
  5. package/.aodw-next/05-tooling/ai-tools-init-rules.md +2 -2
  6. package/.aodw-next/README.md +0 -1
  7. package/.aodw-next/SKILL.md +5 -5
  8. package/.aodw-next/manifest.yaml +0 -5
  9. package/AODW_Adapters/README.md +24 -31
  10. package/README.md +10 -15
  11. package/bin/aodw.js +53 -123
  12. package/bin/processors/index.js +1 -35
  13. package/bin/update-adapters-from-template.js +1 -15
  14. package/package.json +4 -4
  15. package/.aodw-next/01-core/ai-interaction-rules-summary.md +0 -37
  16. package/.aodw-next/01-core/ai-knowledge-rules-summary.md +0 -25
  17. package/.aodw-next/01-core/git-discipline-summary.md +0 -36
  18. package/.aodw-next/02-workflow/rt-id-generation-rules.md +0 -24
  19. package/.aodw-next/02-workflow/rt-manager-summary.md +0 -15
  20. package/.aodw-next/02-workflow/ui-workflow-rules-summary.md +0 -39
  21. package/.aodw-next/03-standards/stacks/rust-axum/ai-coding-rules-backend.md +0 -134
  22. package/.aodw-next/06-project/README.md +0 -16
  23. package/.aodw-next/07-optimization/token-usage-analysis.md +0 -253
  24. package/.aodw-next/templates/TEMPLATE-APPLICATION-GUIDE.md +0 -110
  25. package/.aodw-next/templates/audit-report-template.md +0 -232
  26. package/.aodw-next/templates/changelog-template.md +0 -16
  27. package/.aodw-next/templates/checklists/coding-standards-template.md +0 -130
  28. package/.aodw-next/templates/csf-review-template.md +0 -201
  29. package/.aodw-next/templates/impact-template.md +0 -17
  30. package/.aodw-next/templates/invariants-template.md +0 -12
  31. package/.aodw-next/templates/plan-lite-template.md +0 -20
  32. package/.aodw-next/templates/rt-decision-template.md +0 -13
  33. package/.aodw-next/templates/rt-intake-template.md +0 -33
  34. package/.aodw-next/templates/spec-lite-template.md +0 -26
  35. package/.aodw-next/templates/tests-template.md +0 -13
  36. package/.aodw-next/templates/tools-config/README.md +0 -112
  37. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-check.md +0 -7
  38. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-done.md +0 -7
  39. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-full.md +0 -7
  40. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-governance.md +0 -7
  41. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-impact.md +0 -7
  42. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-init.md +0 -7
  43. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-invariants.md +0 -7
  44. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-lite.md +0 -7
  45. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-module.md +0 -7
  46. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-new.md +0 -7
  47. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-open.md +0 -7
  48. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-pause.md +0 -7
  49. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-resume.md +0 -7
  50. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-tests.md +0 -7
  51. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-upgrade.md +0 -7
  52. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw.md +0 -35
  53. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-check.md +0 -16
  54. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-done.md +0 -16
  55. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-full.md +0 -14
  56. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-governance.md +0 -13
  57. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-impact.md +0 -13
  58. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-init.md +0 -13
  59. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-invariants.md +0 -13
  60. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-lite.md +0 -14
  61. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-module.md +0 -13
  62. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-new.md +0 -30
  63. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-open.md +0 -10
  64. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-pause.md +0 -12
  65. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-resume.md +0 -12
  66. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-tests.md +0 -13
  67. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-upgrade.md +0 -12
  68. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw.md +0 -18
  69. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/claude/CLAUDE.md +0 -17
  70. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-check.md +0 -30
  71. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-done.md +0 -52
  72. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-full.md +0 -31
  73. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-governance.md +0 -34
  74. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-impact.md +0 -25
  75. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-init.md +0 -75
  76. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-invariants.md +0 -29
  77. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-lite.md +0 -23
  78. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-module.md +0 -24
  79. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-new.md +0 -70
  80. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-open.md +0 -19
  81. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-pause.md +0 -19
  82. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-resume.md +0 -20
  83. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-tests.md +0 -26
  84. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-upgrade.md +0 -27
  85. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw.md +0 -69
  86. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/deploypromote.md +0 -20
  87. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/featuretotester.md +0 -32
  88. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/feature_to_master_push_test_local.sh +0 -390
  89. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/promote_only.sh +0 -210
  90. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/rollback_prod.sh +0 -99
  91. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/rules/aodw.mdc +0 -26
  92. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-check.md +0 -29
  93. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-done.md +0 -52
  94. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-full.md +0 -30
  95. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-governance.md +0 -33
  96. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-impact.md +0 -24
  97. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-init.md +0 -75
  98. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-invariants.md +0 -28
  99. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-lite.md +0 -22
  100. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-module.md +0 -23
  101. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-new.md +0 -92
  102. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-open.md +0 -18
  103. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-pause.md +0 -18
  104. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-resume.md +0 -19
  105. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-tests.md +0 -25
  106. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-upgrade.md +0 -26
  107. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw.md +0 -68
  108. package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/GEMINI.md +0 -17
  109. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-analyze.md +0 -15
  110. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-complete.md +0 -15
  111. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-control.md +0 -14
  112. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-decide.md +0 -16
  113. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-governance.md +0 -7
  114. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-implement.md +0 -16
  115. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-init.md +0 -7
  116. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-intake.md +0 -15
  117. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-open.md +0 -7
  118. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-simplified.md +0 -107
  119. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-verify.md +0 -14
  120. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-analyze.md +0 -24
  121. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-complete.md +0 -23
  122. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-control.md +0 -21
  123. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-decide.md +0 -26
  124. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-governance.md +0 -13
  125. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-implement.md +0 -21
  126. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-init.md +0 -13
  127. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-intake.md +0 -28
  128. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-open.md +0 -10
  129. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-verify.md +0 -20
  130. package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw.md +0 -18
  131. package/AODW_Adapters/gemini/.agent/rules/aodw-next.md +0 -70
  132. package/AODW_Adapters/gemini/GEMINI.md +0 -18
  133. package/AODW_Adapters/general/.github/copilot-instructions.md +0 -34
  134. package/AODW_Adapters/general/AGENTS.md +0 -70
  135. package/docs/README.md +0 -26
  136. package/docs/adapter-evaluation.md +0 -55
  137. package/docs/backend-guidelines.md +0 -335
  138. package/docs/frontend-guidelines.md +0 -266
  139. package/docs/installation-variants.md +0 -88
  140. package/docs/migration-guide-0.2.0.md +0 -250
  141. package/docs/platform-matrix.md +0 -83
@@ -1,12 +0,0 @@
1
- # Invariants: RT-XXX - <short title>
2
-
3
- > 本文件列出在本次改动中必须保持不变的行为与约束。
4
-
5
- ## 1. 业务行为 Invariants
6
- - 不改变的业务规则:
7
-
8
- ## 2. 接口 Invariants
9
- - 不改变的 API 路径 / 请求 / 响应格式:
10
-
11
- ## 3. 技术结构 Invariants
12
- - 不允许破坏的工程结构约束(如不得跨层访问):
@@ -1,20 +0,0 @@
1
- # Plan-Lite: RT-XXX - <short title>
2
-
3
- ## 1. 修改点(Change Points)
4
- - 计划修改的文件 / 模块列表:
5
-
6
- ## 2. 方案描述(Solution Outline)
7
- - 拟采取的技术方案:
8
-
9
- ## 3. 风险与注意事项(Risks & Caveats)
10
- - 潜在风险:
11
- - 需要注意的边界情形:
12
-
13
- ## 4. 目标与验证(Goals & Verification)
14
- - 目标 1:<描述> → 验证方式:<测试/回归/手动步骤>
15
- - 目标 2:<描述> → 验证方式:<测试/回归/手动步骤>
16
-
17
- ## 5. 实施边界(Execution Boundaries)
18
- - 明确不做(Out of Scope):
19
- - 是否存在无关重构/额外功能引入风险:有 / 无
20
- - 若“有”,规避策略:
@@ -1,13 +0,0 @@
1
- # RT Decision - RT-XXX
2
-
3
- ## 1. 流程选择(Chosen Profile)
4
- - 选用:Spec-Full / Spec-Lite
5
- - AI 推荐理由:
6
- - 用户最终选择:
7
-
8
- ## 2. 备选方案(Alternatives)
9
- - 其他可行流程及未采用原因:
10
-
11
- ## 3. 分支与目录
12
- - 计划分支名:feature/RT-XXX-short-name
13
- - 目录:RT/RT-XXX/
@@ -1,33 +0,0 @@
1
- # RT Intake - RT-XXX
2
-
3
- ## 1. 原始描述(Raw Description)
4
- - 用户原话:
5
-
6
- ## 2. 类型与范围(Type & Scope)
7
- - 类型(Feature / Bug / Enhancement / Refactor / Research / Other):
8
- - 预估影响范围:
9
-
10
- ## 3. 初步模块猜测(Initial Modules)
11
- - 可能涉及的模块:
12
-
13
- ## 4. 风险评估(Initial Risk)
14
- - 低 / 中 / 高,简要理由:
15
-
16
- ## 5. AI 问题与用户回答摘要(Q&A Summary)
17
- - Q1: ...
18
- - 用户回答:
19
- - Q2: ...
20
- - 用户回答:
21
-
22
- ## 6. 相关技术约束 / 规范(可选)
23
- > **注意**:AI 根据需求内容判断是否涉及前端/后端开发,如涉及则填写本节。
24
-
25
- - **是否涉及前端开发**?
26
- - [ ] 是 → 参考 `.aodw-next/03-standards/stacks/react-typescript/ai-coding-rules-frontend.md`
27
- - [ ] 否
28
- - **是否涉及后端开发**?
29
- - [ ] 是 → 参考 `.aodw-next/03-standards/stacks/python-fastapi/ai-coding-rules-backend.md`
30
- - [ ] 否
31
- - **技术栈要求**(如已知):
32
- - 前端:[React / Vue / Angular 等]
33
- - 后端:[Python / Node.js / Go 等]
@@ -1,26 +0,0 @@
1
- # Spec-Lite: RT-XXX - <short title>
2
-
3
- ## 1. 背景(Context)
4
- - 当前存在的问题 / 需求:
5
-
6
- ## 2. 目标(Goal)
7
- - 希望达到的业务 / 用户效果:
8
-
9
- ## 3. 当前行为(Current Behavior)
10
- - 当前系统在相关场景下的行为:
11
-
12
- ## 4. 期望行为(Desired Behavior)
13
- - 修改后的预期行为:
14
-
15
- ## 5. 影响范围(Scope)
16
- - 涉及模块 / 文件:
17
- - 预期不应影响的功能:
18
-
19
- ## 6. 实现前对齐(Implementation Alignment)
20
- - 关键假设(输入/边界/依赖):
21
- - 歧义点与解释选项:
22
- - 解释 A:
23
- - 解释 B:
24
- - 推荐选项与理由:
25
- - 最小必要改动说明(为何不是更大方案):
26
- - 成功标准(可验证):
@@ -1,13 +0,0 @@
1
- # Tests: RT-XXX - <short title>
2
-
3
- ## 1. 新增测试用例(New Tests)
4
- - [ ] 描述用例 1(对应测试文件路径)
5
- - [ ] 描述用例 2
6
-
7
- ## 2. 回归测试(Regression)
8
- - [ ] 回归用例 1
9
- - [ ] 回归用例 2
10
-
11
- ## 3. 手动验证建议(Manual Checks)
12
- - [ ] 手动步骤 1
13
- - [ ] 手动步骤 2
@@ -1,112 +0,0 @@
1
- # 工具配置模板
2
-
3
- 本目录包含 AODW 规范要求的开发工具配置模板。
4
-
5
- ## 目录结构
6
-
7
- ```
8
- tools-config/
9
- ├── frontend/ # 前端工具配置模板
10
- │ ├── eslint.config.template.json
11
- │ ├── prettier.config.template.json
12
- │ └── tsconfig.paths.template.json
13
- ├── backend/ # 后端工具配置模板
14
- │ ├── ruff.config.template.toml # Python 代码质量检查
15
- │ ├── black.config.template.toml # Python 代码格式化
16
- │ ├── rustfmt.config.template.toml # Rust 代码格式化
17
- │ ├── clippy.config.template.toml # Rust 代码质量检查
18
- │ └── pre-commit.config.template.yaml # Git 提交前检查(通用)
19
- └── README.md
20
- ```
21
-
22
- ## 使用方式
23
-
24
- ### 方式 1:通过 CLI 命令
25
-
26
- ```bash
27
- aodw-skill init-tools
28
- ```
29
-
30
- CLI 会自动检测项目类型,并使用相应的模板生成配置文件。
31
-
32
- ### 方式 2:通过 AI 命令
33
-
34
- 在 AI 工具(Cursor/Claude 等)中说:
35
- - "初始化工具"
36
- - "设置开发工具"
37
- - "配置工具"
38
-
39
- AI 会引导您完成工具初始化和配置。
40
-
41
- ## 配置说明
42
-
43
- ### 前端配置
44
-
45
- #### ESLint 配置
46
- - 文件:`.eslintrc.json` 或 `eslint.config.js`
47
- - 模板:`frontend/eslint.config.template.json`
48
- - 包含:TypeScript、React、Hooks、Import、可访问性规则
49
- - 限制:文件大小、函数长度、复杂度
50
-
51
- #### Prettier 配置
52
- - 文件:`.prettierrc.json` 或 `prettier.config.js`
53
- - 模板:`frontend/prettier.config.template.json`
54
- - 包含:代码格式化规则
55
-
56
- #### TypeScript Path Alias
57
- - 文件:`tsconfig.json`
58
- - 模板:`frontend/tsconfig.paths.template.json`
59
- - 包含:路径别名配置(@app、@pages、@features、@shared)
60
-
61
- ### 后端配置
62
-
63
- #### Python 项目工具
64
-
65
- **Ruff 配置**:
66
- - 文件:`pyproject.toml`(合并到 `[tool.ruff]` 部分)
67
- - 模板:`backend/ruff.config.template.toml`
68
- - 包含:代码质量检查、复杂度限制
69
-
70
- **Black 配置**:
71
- - 文件:`pyproject.toml`(合并到 `[tool.black]` 部分)
72
- - 模板:`backend/black.config.template.toml`
73
- - 包含:代码格式化规则
74
-
75
- #### Rust 项目工具
76
-
77
- **rustfmt 配置**:
78
- - 文件:`rustfmt.toml`(项目根目录)
79
- - 模板:`backend/rustfmt.config.template.toml`
80
- - 包含:代码格式化规则(edition、max_width、imports 等)
81
-
82
- **clippy 配置**:
83
- - 文件:`clippy.toml`(项目根目录)或 `Cargo.toml` 的 `[lints.clippy]` 部分
84
- - 模板:`backend/clippy.config.template.toml`
85
- - 包含:代码质量检查、复杂度限制、零警告策略
86
-
87
- #### Java 项目工具
88
-
89
- **Checkstyle 配置**(推荐):
90
- - 文件:`checkstyle.xml`(项目根目录)
91
- - 模板:`backend/checkstyle.config.template.xml`(如果存在)
92
- - 包含:Java 代码风格检查规则
93
- - 配置方式:在 `pom.xml` 中添加 `maven-checkstyle-plugin`
94
-
95
- **Spotless 配置**(推荐):
96
- - 文件:`pom.xml` 中的 `spotless-maven-plugin` 配置
97
- - 模板:`backend/spotless.config.template.xml`(如果存在)
98
- - 包含:Java 代码格式化规则(Google Java Format)
99
- - 配置方式:在 `pom.xml` 中添加 `spotless-maven-plugin`
100
-
101
- #### 通用工具配置
102
-
103
- **pre-commit 配置**:
104
- - 文件:`.pre-commit-config.yaml`
105
- - 模板:`backend/pre-commit.config.template.yaml`
106
- - 包含:Git 提交前检查钩子(支持 Python、Rust、Java 等)
107
-
108
- ## 注意事项
109
-
110
- 1. **配置文件合并**:如果配置文件已存在,工具初始化会询问您是否合并配置
111
- 2. **模板更新**:模板更新不会自动应用到已有项目,需要重新运行工具初始化
112
- 3. **自定义配置**:您可以在工具初始化后手动调整配置,但建议保持核心规范不变
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # RT 一致性检查
5
-
6
- 当用户想要 **检查 RT 状态**、**验证一致性** 或 **运行检查** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-check`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 完成 RT
5
-
6
- 当用户想要 **完成 RT**、**关闭任务** 或 **标记为 Done** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-done`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 切换到 Spec-Full
5
-
6
- 当用户想要 **切换到 Spec-Full 模式** 或 **启用完整规范** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-full`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # AODW 治理检查
5
-
6
- 当用户想要 **检查治理状态** 或 **运行治理流程** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-governance`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 更新影响分析
5
-
6
- 当用户想要 **更新影响分析** 或 **分析改动影响** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-impact`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 初始化 AODW
5
-
6
- 当用户想要 **初始化 AODW** 或 **设置新项目** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-init`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 检查不变量
5
-
6
- 当用户想要 **检查不变量** 或 **验证系统约束** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-invariants`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 切换到 Spec-Lite
5
-
6
- 当用户想要 **切换到 Spec-Lite 模式** 或 **启用轻量规范** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-lite`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 更新模块文档
5
-
6
- 当用户想要 **更新模块文档** 或 **创建新模块** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-module`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 创建新 RT
5
-
6
- 当用户想要 **创建新 RT**、**开始新任务** 或 **启动 AODW 流程** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-new`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 打开 RT
5
-
6
- 当用户想要 **打开某个 RT** 或 **查看任务详情** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-open`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 暂停 AODW
5
-
6
- 当用户想要 **暂停 AODW** 或 **进入普通模式** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-pause`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 恢复 AODW
5
-
6
- 当用户想要 **恢复 AODW** 或 **重新进入工作流** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-resume`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 生成测试计划
5
-
6
- 当用户想要 **生成测试计划** 或 **更新测试文档** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-tests`。
@@ -1,7 +0,0 @@
1
- ---
2
- trigger: model_decision
3
- ---
4
- # 升级到 Spec-Full
5
-
6
- 当用户想要 **升级当前 RT** 或 **从 Lite 转为 Full** 时,请**不要**直接尝试操作。
7
- 你**必须**运行工作流 `/aodw-upgrade`。
@@ -1,35 +0,0 @@
1
- ---
2
- trigger: always_on
3
- ---
4
-
5
- # AODW Kernel Loader (Antigravity Adapter)
6
- # 版本: 3.1.0 (Reference Mode)
7
-
8
- 你是一个 **AODW (AI 编排开发工作流) 协作 Agent**。
9
-
10
- ## 1. 核心指令 (The Prime Directive)
11
- 你 **必须** 在开始任何任务前,优先读取并遵循以下 **Kernel (宪章)** 文件:
12
-
13
- - `.aodw/01-core/aodw-constitution.md`
14
-
15
- **注意**:
16
- - 该文件是你行为的最高准则。
17
- - 该文件包含了所有阶段的 **Context Loading Directives (上下文加载指令)**。
18
- - 你必须根据宪章的指示,在不同阶段(Intake/Manager/Coding/Knowledge)按需加载其他规则文件。
19
-
20
- ## 2. 兜底机制
21
- 如果你无法读取 `.aodw/01-core/aodw-constitution.md`,请立即停止并要求用户提供该文件。
22
-
23
- ---
24
-
25
- # AODW 主菜单
26
-
27
- > **简洁至上**:恪守KISS(Keep It Simple, Stupid)原则,崇尚简洁与可维护性,避免过度工程化与不必要的防御性设计。
28
- > **深度分析**:立足于第一性原理(First Principles Thinking)剖析问题,并善用工具以提升效率。
29
- > **事实为本**:以事实为最高准则。若有任何谬误,恳请坦率斧正,助我精进。
30
-
31
- > **语言要求**:所有回复、思考过程及任务清单,均须使用中文。
32
- > **固定指令**:`Implementation Plan, Task List and Thought in Chinese`
33
-
34
- 当用户想要 **查看帮助** 或 **了解 AODW 命令** 时,请**不要**直接尝试操作。
35
- 你**必须**运行工作流 `/aodw`。
@@ -1,16 +0,0 @@
1
- ---
2
- description: RT 一致性检查
3
- ---
4
-
5
- # RT 一致性检查
6
-
7
- 验证所有文档匹配且符合规范。
8
-
9
- ## 核心规则引用
10
- - `.aodw/01-core/ai-knowledge-rules.md` (文档完整性)
11
-
12
- ## 操作步骤
13
- 1. 检查 `RT/index.yaml` 中的所有 RT。
14
- 2. 验证每个 RT 的目录是否存在。
15
- 3. 验证必需文档是否存在。
16
- 4. 报告任何缺失或不一致。
@@ -1,16 +0,0 @@
1
- ---
2
- description: 完成并关闭 AODW 任务
3
- ---
4
-
5
- # 完成 RT
6
-
7
- 完成当前 RT 并更新状态。
8
-
9
- ## 核心规则引用
10
- - `.aodw/02-workflow/rt-manager.md` (完成标准)
11
-
12
- ## 操作步骤
13
- 1. 确认所有任务已完成。
14
- 2. 更新 `RT/RT-XXX/meta.yaml` 状态为 `done`。
15
- 3. 设置 `closed_at` 时间戳。
16
- 4. 更新 `RT/index.yaml` 状态。
@@ -1,14 +0,0 @@
1
- ---
2
- description: 切换到 Spec-Full 模式
3
- ---
4
-
5
- # 切换到 Spec-Full
6
-
7
- 适用于复杂、跨模块的改动。
8
-
9
- ## 核心规则引用
10
- - `.aodw/02-workflow/rt-manager.md` (Profile 定义)
11
-
12
- ## 操作步骤
13
- 1. 更新 `RT/RT-XXX/meta.yaml` 中的 `profile` 为 `Spec-Full`。
14
- 2. 确保创建所有 Spec-Full 必需文档 (`impact.md`, `invariants.md`, `tests.md`)。
@@ -1,13 +0,0 @@
1
- ---
2
- description: 检测 AODW 规则和流程中的问题
3
- ---
4
-
5
- # AODW 治理检查
6
-
7
- ## 核心规则引用
8
- - `.aodw/aodw-governance.md` (治理规则)
9
-
10
- ## 操作步骤
11
- 1. 检查所有核心规则文件是否存在且未被篡改。
12
- 2. 检查 `RT/index.yaml` 的完整性。
13
- 3. 提议修复或改进。
@@ -1,13 +0,0 @@
1
- ---
2
- description: 更新 RT 的 impact.md 文档
3
- ---
4
-
5
- # 更新影响分析
6
-
7
- ## 核心规则引用
8
- - `.aodw/02-workflow/rt-manager.md` (影响分析要求)
9
-
10
- ## 操作步骤
11
- 1. 打开 `RT/RT-XXX/impact.md`。
12
- 2. 分析当前改动对模块、API、数据库的影响。
13
- 3. 更新文档。
@@ -1,13 +0,0 @@
1
- ---
2
- description: AODW 初始化命令
3
- ---
4
-
5
- # 初始化 AODW
6
-
7
- ## 核心规则引用
8
- - `.aodw/01-core/ai-knowledge-rules.md` (目录结构)
9
-
10
- ## 操作步骤
11
- 1. 创建 `.aodw/` 目录。
12
- 2. 复制核心规则文件。
13
- 3. 创建 `RT/` 目录和 `RT/index.yaml`。
@@ -1,13 +0,0 @@
1
- ---
2
- description: 检查并验证 RT 不变量
3
- ---
4
-
5
- # 检查不变量
6
-
7
- ## 核心规则引用
8
- - `.aodw/01-core/ai-knowledge-rules.md` (不变量定义)
9
-
10
- ## 操作步骤
11
- 1. 打开 `RT/RT-XXX/invariants.md`。
12
- 2. 验证代码实现是否违反了任何不变量。
13
- 3. 如果有违反,修复代码或更新不变量(需慎重)。
@@ -1,14 +0,0 @@
1
- ---
2
- description: 切换到 Spec-Lite 模式
3
- ---
4
-
5
- # 切换到 Spec-Lite
6
-
7
- 适用于局部化、小范围的改动。
8
-
9
- ## 核心规则引用
10
- - `.aodw/02-workflow/rt-manager.md` (Profile 定义)
11
-
12
- ## 操作步骤
13
- 1. 更新 `RT/RT-XXX/meta.yaml` 中的 `profile` 为 `Spec-Lite`。
14
- 2. 确认仅需维护核心文档。
@@ -1,13 +0,0 @@
1
- ---
2
- description: 更新或创建模块文档
3
- ---
4
-
5
- # 更新模块文档
6
-
7
- ## 核心规则引用
8
- - `.aodw/01-core/module-doc-rules.md` (模块文档规范)
9
-
10
- ## 操作步骤
11
- 1. 确定目标模块。
12
- 2. 如果是新模块,创建 `README.md` 并包含 Frontmatter。
13
- 3. 如果是现有模块,更新 `README.md` 中的职责、依赖或变更记录。
@@ -1,30 +0,0 @@
1
- ---
2
- description: 创建新 RT,启动 AODW 工作流
3
- ---
4
-
5
- # 创建新 RT
6
-
7
- 启动 AODW 工作流,创建新的 Runtime Task (RT)。
8
-
9
- ## 核心规则引用
10
- 执行此任务前,请参考:
11
- - `.aodw/02-workflow/rt-manager.md` (RT 生命周期与命名规范)
12
- - `.aodw/id-branch-directory-rules.md` (ID 与目录规则)
13
-
14
- ## 操作步骤
15
-
16
- ### 1. 生成 RT-ID
17
- 1. 读取 `RT/index.yaml`,找到最大序号。
18
- 2. 生成新 ID `RT-{seq}` (如 `RT-001`)。
19
-
20
- ### 2. 创建目录
21
- 1. 创建目录 `RT/RT-{seq}/`。
22
- 2. **注意**:目录名必须严格匹配 ID。
23
-
24
- ### 3. 创建文档
25
- 1. 创建 `RT/RT-{seq}/meta.yaml`。
26
- 2. 创建核心文档:`intake.md`, `decision.md`, `spec.md`, `plan.md`, `impact.md`, `invariants.md`, `tests.md`, `changelog.md`。
27
-
28
- ### 4. 更新索引
29
- 1. 在 `RT/index.yaml` 中添加新条目。
30
- 2. 更新 `last_updated_at`。
@@ -1,10 +0,0 @@
1
- ---
2
- description: 打开并查看指定的 RT
3
- ---
4
-
5
- # 打开 RT
6
-
7
- ## 操作步骤
8
- 1. 询问用户要打开的 RT ID。
9
- 2. 读取该 RT 的 `meta.yaml` 和 `spec.md`。
10
- 3. 显示 RT 摘要。
@@ -1,12 +0,0 @@
1
- ---
2
- description: 暂停 AODW 工作流,切换到普通模式
3
- ---
4
-
5
- # 暂停 AODW
6
-
7
- ## 核心规则引用
8
- - `.aodw/01-core/aodw-constitution.md` (模式定义)
9
-
10
- ## 操作步骤
11
- 1. 停止强制执行 RT 流程。
12
- 2. 仅作为普通代码助手响应。
@@ -1,12 +0,0 @@
1
- ---
2
- description: 恢复 AODW 工作流
3
- ---
4
-
5
- # 恢复 AODW
6
-
7
- ## 核心规则引用
8
- - `.aodw/01-core/aodw-constitution.md` (模式定义)
9
-
10
- ## 操作步骤
11
- 1. 恢复强制执行 RT 流程。
12
- 2. 检查当前是否有未完成的 RT。
@@ -1,13 +0,0 @@
1
- ---
2
- description: 为 RT 生成或更新测试计划文档
3
- ---
4
-
5
- # 生成测试计划
6
-
7
- ## 核心规则引用
8
- - `.aodw/02-workflow/rt-manager.md` (测试要求)
9
-
10
- ## 操作步骤
11
- 1. 打开 `RT/RT-XXX/tests.md`。
12
- 2. 根据 `spec.md` 和 `plan.md` 生成测试用例。
13
- 3. 包含自动化测试命令和手动验证步骤。
@@ -1,12 +0,0 @@
1
- ---
2
- description: 将当前 RT 从 Spec-Lite 升级到 Spec-Full
3
- ---
4
-
5
- # 升级到 Spec-Full
6
-
7
- ## 核心规则引用
8
- - `.aodw/02-workflow/rt-manager.md` (升级流程)
9
-
10
- ## 操作步骤
11
- 1. 运行 `/aodw-full` 工作流。
12
- 2. 补充缺失的 Spec-Full 文档。
@@ -1,18 +0,0 @@
1
- ---
2
- description: AODW 主命令,显示可用命令和快速帮助
3
- ---
4
-
5
- # AODW 主菜单
6
-
7
- ## 功能
8
- 显示所有可用工作流命令。
9
-
10
- ## 命令列表
11
- - `/aodw-new`: 创建新 RT
12
- - `/aodw-check`: 检查一致性
13
- - `/aodw-done`: 完成 RT
14
- - `/aodw-full`: 切换到 Spec-Full
15
- - `/aodw-lite`: 切换到 Spec-Lite
16
- - `/aodw-open`: 打开 RT
17
- - `/aodw-pause`: 暂停 AODW
18
- - `/aodw-resume`: 恢复 AODW