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,43 +0,0 @@
1
- # RT 元数据模板(单个 RT 的权威信息)
2
- # 路径建议:.aodw/templates/rt-meta-template.yaml
3
-
4
- id: RT-XXX # 由 RT-Manager 生成,例如 RT-001
5
- title: <在此填写简短标题> # 例如 "修复订单列表加载缓慢的问题"
6
-
7
- # RT 类型:用于分类与统计
8
- # 可选值:Feature | Bug | Enhancement | Refactor | Research | AODW
9
- type: Bug
10
-
11
- # 使用的 AODW Profile
12
- # 可选值:Spec-Full | Spec-Lite
13
- profile: Spec-Lite
14
-
15
- # 当前状态
16
- # 可选值:created | intakeing | decided | in-progress | reviewing | done
17
- status: created
18
-
19
- # 涉及的业务/技术模块标识,来自你的模块体系(例如 orders / users / auth 等)
20
- modules: []
21
-
22
- # 当前主要执行工具:cursor / claude / mixed / unknown
23
- tool: unknown
24
-
25
- # 负责人(可选,可以是人名、昵称或账号)
26
- owner: null
27
-
28
- # 时间字段(必须使用系统命令或 API 获取真实时间,禁止 AI 自行推断)
29
- # 获取方法:date -u +"%Y-%m-%dT%H:%M:%SZ" 或 new Date().toISOString()
30
- # 格式:ISO8601(如 2025-11-28T11:54:45Z 或 2025-11-28T19:54:45+08:00)
31
- created_at: <to-be-filled>
32
- updated_at: <to-be-filled>
33
- closed_at: null
34
-
35
- # 与外部系统(JIRA / GitHub Issues 等)的关联 ID
36
- external_ids:
37
- jira: null
38
- github: null
39
- other: null
40
-
41
- # 额外说明(可选,供人和 AI 阅读)
42
- notes: >
43
- 在这里简要描述本 RT 的背景、限制或特殊说明。
@@ -1,17 +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
- - 预期不应影响的功能:
@@ -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 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,6 +0,0 @@
1
- # Black 配置模板(TOML 片段)
2
- # 需要合并到 pyproject.toml 的 [tool.black] 部分
3
-
4
- [tool.black]
5
- line-length = 100
6
- target-version = ["py311"]
@@ -1,16 +0,0 @@
1
- repos:
2
- - repo: local
3
- hooks:
4
- - id: backend-ruff
5
- name: Backend Ruff Check
6
- entry: ruff check .
7
- language: system
8
- pass_filenames: false
9
- always_run: true
10
-
11
- - id: backend-black
12
- name: Backend Black Format
13
- entry: black .
14
- language: system
15
- pass_filenames: false
16
- always_run: true
@@ -1,23 +0,0 @@
1
- # Ruff 配置模板(TOML 片段)
2
- # 需要合并到 pyproject.toml 的 [tool.ruff] 部分
3
-
4
- [tool.ruff]
5
- line-length = 100
6
- target-version = "py311"
7
-
8
- [tool.ruff.lint]
9
- select = [
10
- "E", # 基本语法错误
11
- "F", # 未使用变量、导入等
12
- "I", # import 排序
13
- "PLR", # 复杂度 & 过长函数(核心)
14
- ]
15
- ignore = []
16
-
17
- # ✅ 重点拦截:
18
- # PLR0915 -> 函数语句过多(怪物函数)
19
- # PLR0912 -> 分支过多
20
- # PLR0911 -> return 过多
21
-
22
- [tool.ruff.lint.per-file-ignores]
23
- "__init__.py" = ["F401"]
@@ -1,113 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 2022,
6
- "sourceType": "module",
7
- "ecmaFeatures": {
8
- "jsx": true
9
- },
10
- "project": "./tsconfig.json"
11
- },
12
- "extends": [
13
- "eslint:recommended",
14
- "plugin:@typescript-eslint/recommended",
15
- "plugin:react/recommended",
16
- "plugin:react-hooks/recommended",
17
- "plugin:import/recommended",
18
- "plugin:import/typescript",
19
- "plugin:jsx-a11y/recommended",
20
- "prettier"
21
- ],
22
- "plugins": [
23
- "@typescript-eslint",
24
- "react",
25
- "react-hooks",
26
- "import",
27
- "jsx-a11y"
28
- ],
29
- "settings": {
30
- "react": {
31
- "version": "detect"
32
- },
33
- "import/resolver": {
34
- "typescript": {
35
- "alwaysTryTypes": true,
36
- "project": "./tsconfig.json"
37
- },
38
- "node": {
39
- "extensions": [".js", ".jsx", ".ts", ".tsx"]
40
- }
41
- }
42
- },
43
- "rules": {
44
- "max-lines": ["error", { "max": 300, "skipBlankLines": true, "skipComments": true }],
45
- "max-lines-per-function": ["error", { "max": 60, "skipBlankLines": true, "skipComments": true }],
46
- "complexity": ["error", 10],
47
- "import/order": [
48
- "error",
49
- {
50
- "groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
51
- "pathGroups": [
52
- {
53
- "pattern": "@app/**",
54
- "group": "internal",
55
- "position": "before"
56
- },
57
- {
58
- "pattern": "@pages/**",
59
- "group": "internal",
60
- "position": "before"
61
- },
62
- {
63
- "pattern": "@features/**",
64
- "group": "internal",
65
- "position": "before"
66
- },
67
- {
68
- "pattern": "@shared/**",
69
- "group": "internal",
70
- "position": "before"
71
- }
72
- ],
73
- "pathGroupsExcludedImportTypes": ["builtin"],
74
- "newlines-between": "always",
75
- "alphabetize": {
76
- "order": "asc",
77
- "caseInsensitive": true
78
- }
79
- }
80
- ],
81
- "no-restricted-imports": [
82
- "error",
83
- {
84
- "paths": [
85
- {
86
- "name": "@pages",
87
- "message": "pages 只能从 features / shared 引用,不能直接引用其他 pages"
88
- }
89
- ],
90
- "patterns": [
91
- {
92
- "group": ["@features/*/components", "@features/*/hooks", "@features/*/store"],
93
- "message": "features 不能直接引用其他 features 的内部实现,只能走公共入口"
94
- }
95
- ]
96
- }
97
- ]
98
- },
99
- "overrides": [
100
- {
101
- "files": ["src/pages/**/*.tsx", "src/pages/**/*.ts"],
102
- "rules": {
103
- "max-lines": ["error", { "max": 300, "skipBlankLines": true, "skipComments": true }]
104
- }
105
- },
106
- {
107
- "files": ["src/features/**/*.tsx", "src/features/**/*.ts", "src/shared/**/*.tsx", "src/shared/**/*.ts"],
108
- "rules": {
109
- "max-lines": ["error", { "max": 200, "skipBlankLines": true, "skipComments": true }]
110
- }
111
- }
112
- ]
113
- }
@@ -1,10 +0,0 @@
1
- {
2
- "semi": true,
3
- "trailingComma": "es5",
4
- "singleQuote": true,
5
- "printWidth": 100,
6
- "tabWidth": 2,
7
- "useTabs": false,
8
- "arrowParens": "avoid",
9
- "endOfLine": "lf"
10
- }
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "@app/*": ["src/app/*"],
6
- "@pages/*": ["src/pages/*"],
7
- "@features/*": ["src/features/*"],
8
- "@shared/*": ["src/shared/*"]
9
- }
10
- }
11
- }
@@ -1,51 +0,0 @@
1
- # AODW Workflow Guide (Level 2)
2
-
3
- 本文件为 AODW 的核心流程指令层,用于在触发任务时快速加载。
4
-
5
- ## 1. 核心流程(RT 生命周期)
6
-
7
- created → intakeing → decided → in-progress → reviewing → done
8
-
9
- 关键动作:
10
- - **Intake**:澄清范围、风险、模块影响,记录到 `intake.md`
11
- - **Decision**:选择 Spec-Full / Spec-Lite,并记录到 `decision.md`
12
- - **Plan**:先写 plan,获批后进入实现
13
-
14
- ## 2. Spec-Full vs Spec-Lite 决策
15
-
16
- 使用 Spec-Full:
17
- - 跨模块影响
18
- - 数据模型 / schema 变更
19
- - 外部 API 合约变更
20
- - 高风险或高复杂度变更
21
-
22
- 使用 Spec-Lite:
23
- - 局部改动
24
- - 单模块小修复
25
- - 无外部 API 合约变化
26
-
27
- ## 3. Gate 检查点
28
-
29
- - Gate 1:Intake 澄清完成
30
- - Gate 2:分支确认(必须在 feature 分支)
31
- - Gate 3:Plan 确认(未批准不得实现)
32
- - Gate 4:提交前确认(展示 diff 与 status)
33
- - Gate 5:完成确认(文档与测试齐备)
34
-
35
- ## 4. 加载策略(渐进式披露)
36
-
37
- 优先读取:
38
- 1. `.aodw/manifest.yaml`(规则索引)
39
- 2. 本文件(流程指令)
40
- 3. 必要规则文件(优先摘要 `*-summary.md`)
41
-
42
- 摘要策略:
43
- - 先读 `*-summary.md`
44
- - 需要细节再读完整文件
45
-
46
- ## 5. 关键文件入口
47
-
48
- - 规则索引:`.aodw/manifest.yaml`
49
- - RT 流程:`.aodw/02-workflow/rt-manager.md`
50
- - Spec-Full:`.aodw/02-workflow/spec-full-profile.md`
51
- - Spec-Lite:`.aodw/02-workflow/spec-lite-profile.md`
@@ -1,20 +0,0 @@
1
- # AODW Constitution Summary
2
-
3
- ## 核心理念
4
- - KISS:保持简单,避免过度设计
5
- - 第一性原理分析
6
- - 事实为本,允许纠错
7
- - 渐进式开发:构思 → 审核 → 执行
8
- - 中文交流为默认标准
9
-
10
- ## 关键规则
11
- - 输出与交互必须选项化并给出推荐理由
12
- - 文档与代码必须同步,不一致视为 Bug
13
- - 复杂任务必须维护 `task.md`(Spec-Full 必需)
14
-
15
- ## 架构层级
16
- - 交互层 / 编排层 / 执行层 / 知识层
17
-
18
- ## 统一要求
19
- - RT-ID、目录、分支命名必须规范
20
- - 关键文档需持续维护并保持一致
@@ -1,235 +0,0 @@
1
- # AODW 开发阶段分析
2
-
3
- ## 阶段总览
4
-
5
- AODW 将开发过程分为 7 个主要阶段,对应 RT 状态机:created → intaking → decided → in-progress → reviewing → done
6
-
7
- ---
8
-
9
- ## 阶段 1: Intake(立项)
10
-
11
- **状态转换**: created → intaking → decided
12
-
13
- **主要任务**:
14
- - 生成 RT-ID(RT-{seq})
15
- - 创建 RT 目录结构(RT/RT-XXX/)
16
- - 通过交互式提问收集需求信息
17
- - 记录原始描述、问题与答案
18
- - 初步判断需求类型(Feature/Bug/Enhancement/Refactor/Research)
19
-
20
- **阶段目标**: 明确需求范围、风险等级、影响模块估计,为 Profile 决策做准备
21
-
22
- **输出物**:
23
- - `RT/RT-XXX/meta.yaml`(RT 元数据)
24
- - `RT/RT-XXX/intake.md`(立项记录)
25
- - `RT/index.yaml`(全局索引更新)
26
-
27
- **协作方式**:
28
- - AI: 主动提出澄清问题,每个问题提供 2-5 个选项,给出推荐选项和理由
29
- - 用户: 选择推荐项或提供简短自定义答案(≤5 词),回答业务相关问题
30
-
31
- ---
32
-
33
- ## 阶段 2: Decision(决策)
34
-
35
- **状态转换**: intaking → decided
36
-
37
- **主要任务**:
38
- - 根据 Intake 信息判断复杂度
39
- - 选择 Spec-Full 或 Spec-Lite profile
40
- - 创建 feature 分支(feature/RT-XXX-{short-name})
41
- - 切换到 feature 分支并验证
42
-
43
- **阶段目标**: 确定开发模式,创建并切换到正确的 feature 分支
44
-
45
- **输出物**:
46
- - `RT/RT-XXX/decision.md`(决策记录,包含选择理由)
47
- - feature 分支(已创建并切换)
48
-
49
- **协作方式**:
50
- - AI: 分析复杂度,推荐 Profile(Full/Lite),解释推荐理由,创建分支
51
- - 用户: 确认推荐方案或显式切换 Profile,确认分支名
52
-
53
- **关键检查点**: 必须验证当前在 feature 分支上,严禁在 main/master 分支修改代码
54
-
55
- **CSF 审查(推荐)**: Decision 阶段完成后,建议执行 CSF 审查,验证 Profile 选择是否合理,目标与复杂度是否匹配。详见 `.aodw/01-core/csf-thinking-framework.md`
56
-
57
- ---
58
-
59
- ## 阶段 3: Analysis(分析)
60
-
61
- **状态转换**: decided → in-progress
62
-
63
- **主要任务**:
64
- - 影响分析:识别直接/间接影响的模块、文件、功能
65
- - 不变量检查:列出必须保持不变的行为、接口、约束
66
- - 风险评估:数据损坏、安全、性能、用户体验风险
67
-
68
- **阶段目标**: 明确变更边界和约束条件,避免破坏现有功能
69
-
70
- **输出物**:
71
- - `RT/RT-XXX/impact.md`(影响分析)
72
- - `RT/RT-XXX/invariants.md`(不变量清单)
73
-
74
- **协作方式**:
75
- - AI: 主导分析,自动识别影响范围,列出不变量
76
- - 用户: 确认关键约束,补充业务层面的不变量
77
-
78
- **触发条件**: 在修改代码前必须完成此阶段
79
-
80
- ---
81
-
82
- ## 阶段 4: Spec/Plan(规格/计划)
83
-
84
- **状态**: in-progress
85
-
86
- **主要任务**:
87
-
88
- **Spec-Full**:
89
- - 编写完整需求说明(spec.md):背景、目标、用户故事、功能/非功能需求、成功标准
90
- - 编写技术实现方案(plan.md):技术背景、方案概览、组件变更、代码结构与分层设计、数据流、风险缓解、分阶段计划
91
- - 编写数据模型文档(data-model.md,如涉及)
92
- - 编写契约文档(contracts/,如涉及)
93
- - 编写任务清单(tasks.md,按 User Story 和 Phase 拆分)
94
- - 编写质量检查清单(checklists/)
95
-
96
- **Spec-Lite**:
97
- - 编写精简需求说明(spec-lite.md):背景、目标、当前/期望行为、影响范围
98
- - 编写精简技术方案(plan-lite.md):修改点、方案描述、代码结构与分层设计、风险注意事项
99
-
100
- **阶段目标**: 明确"做什么"和"怎么做",确保方案符合编码规范
101
-
102
- **输出物**:
103
- - Spec-Full: `spec.md`, `plan.md`, `data-model.md`, `contracts/`, `tasks.md`, `checklists/`
104
- - Spec-Lite: `spec-lite.md`, `plan-lite.md`
105
-
106
- **协作方式**:
107
- - AI: 基于 Intake 信息自动生成文档,确保符合编码规范(前端/后端)
108
- - 用户: 审阅 spec/plan,从业务视角确认方案合理性,批准执行计划
109
-
110
- **关键检查点**: Plan 完成后必须暂停,展示摘要,询问"计划已就绪,是否批准执行?",严禁未获批准前开始修改代码
111
-
112
- **CSF 审查(必须)**: Plan 完成后,在进入"计划批准"节点前,**必须**执行 CSF 审查。审查重点:验证方案是否直接贡献于目标、分解是否 MECE、识别 CSF、检查端到端关键路径、评估技术方案合理性。详见 `.aodw/01-core/csf-thinking-framework.md`
113
-
114
- ---
115
-
116
- ## 阶段 5: Implementation(实现)
117
-
118
- **状态**: in-progress
119
-
120
- **主要任务**:
121
- - 开发准备(Dev Ready):
122
- - 检查工具已初始化(.aodw/tools-status.yaml)
123
- - 加载编码规范(前端/后端/通用)
124
- - 在 feature 分支上实现代码修改:
125
- - 遵守项目编码规范
126
- - 通过工具自动检查(ESLint/Ruff/Black)
127
- - 符合 plan.md 中设计的代码结构与分层
128
- - 开发结束前自检:
129
- - 运行 Lint 检查
130
- - 运行格式化检查
131
- - 验证文件大小和复杂度符合规范
132
- - 编写/更新测试文档(tests.md)
133
- - 更新变更日志(changelog.md)
134
- - 更新模块文档(如涉及)
135
-
136
- **阶段目标**: 实现功能,确保代码质量和规范符合性
137
-
138
- **输出物**:
139
- - 代码修改(在 feature 分支上)
140
- - `RT/RT-XXX/tests.md`(测试用例列表)
141
- - `RT/RT-XXX/changelog.md`(变更总结)
142
- - 模块 README 更新(如涉及)
143
-
144
- **协作方式**:
145
- - AI: 主导代码实现,自动运行检查工具,更新文档,维护 task.md(如需要)
146
- - 用户: 确认关键实现决策,验证功能是否符合预期
147
-
148
- **关键检查点**:
149
- - 每次写代码前必须验证当前在 feature 分支
150
- - 提交代码前必须展示 git status 和关键 diff,询问"修改已完成,是否提交?"
151
-
152
- ---
153
-
154
- ## 阶段 6: Verification(验证)
155
-
156
- **状态转换**: in-progress → reviewing
157
-
158
- **主要任务**:
159
- - 文档一致性检查:
160
- - spec/plan 是否完整记录了问题→方案→实现过程
161
- - impact/invariants/tests/changelog 是否完整
162
- - 数据模型/接口变更是否已更新相关文档
163
- - 模块文档是否已更新
164
- - RT 完整性检查:
165
- - 核心文档是否齐全
166
- - 过程文档是否在正确位置(RT/RT-XXX/docs/)
167
- - meta.yaml 与 index.yaml 是否一致
168
-
169
- **阶段目标**: 确保 RT 文档完整、一致,符合 AODW 规范
170
-
171
- **输出物**:
172
- - 验证结果报告
173
- - 修正后的文档(如发现不一致)
174
-
175
- **协作方式**:
176
- - AI: 自动执行一致性检查,发现不一致时主动修正或提示
177
- - 用户: 确认验证结果,必要时补充信息
178
-
179
- **CSF 审查(推荐)**: Verification 阶段应执行 CSF 审查,不仅检查文档一致性,还要检查目标达成度、验证端到端关键路径、评估多维决策合理性。详见 `.aodw/01-core/csf-thinking-framework.md`
180
-
181
- ---
182
-
183
- ## 阶段 7: Completion(完成)
184
-
185
- **状态转换**: reviewing → done
186
-
187
- **主要任务**:
188
- - 知识蒸馏(Knowledge Distillation):
189
- - 读取 modules-index.yaml,找到受影响的模块
190
- - 更新对应的模块文档(docs/modules/*.md)
191
- - 确认文档与代码一致
192
- - 提供完成脚本(AI 不得自动执行):
193
- - 确认在 feature 分支
194
- - 确认所有改动已提交
195
- - 切换到主分支并拉取最新代码
196
- - 合并 feature 分支(--no-ff)
197
- - 打标签(done-RT-XXX)
198
- - 推送代码和标签
199
- - 删除本地 feature 分支
200
- - 更新 RT 状态为 done
201
-
202
- **阶段目标**: 完成代码合并,更新全局状态,确保知识库同步
203
-
204
- **输出物**:
205
- - 合并后的代码(在主分支)
206
- - `done-RT-XXX` 标签
207
- - 更新的模块文档
208
- - `RT/RT-XXX/meta.yaml`(status: done, closed_at)
209
- - `RT/index.yaml`(状态更新)
210
-
211
- **协作方式**:
212
- - AI: 执行知识蒸馏,提供完整的手动命令脚本,更新 RT 状态
213
- - 用户: 验证代码质量,验证文档更新,手动执行合并和推送脚本,验证推送结果
214
-
215
- **关键规则**: AI 禁止自动执行合并、推送、删除分支操作,必须提供脚本由用户手动执行
216
-
217
- ---
218
-
219
- ## 状态机总览
220
-
221
- ```
222
- created → intaking → decided → in-progress → reviewing → done
223
- ↓ ↓ ↓ ↓ ↓ ↓
224
- Intake Intake Decision Analysis/ Verification Completion
225
- Spec/Plan/
226
- Implementation
227
- ```
228
-
229
- ## 关键原则
230
-
231
- 1. **分支管理**: 所有代码修改必须在 feature 分支上进行,严禁在 main/master 分支直接修改
232
- 2. **文档同步**: 文档必须与代码保持同步,文档与代码不一致视为 Bug
233
- 3. **选项化提问**: AI 所有关键问题应提供选项和推荐,用户只需选择
234
- 4. **主动推进**: AI 应主动推进流程,不等待具体命令
235
- 5. **工具无关**: 行为通过仓库文档约束,不依赖特定工具配置