aodw-skill 0.7.3
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.
- package/.aodw/01-core/ai-interaction-rules.md +218 -0
- package/.aodw/01-core/ai-knowledge-rules.md +302 -0
- package/.aodw/01-core/ai-project-overview-rules.md +284 -0
- package/.aodw/01-core/aodw-constitution-summary.md +20 -0
- package/.aodw/01-core/aodw-constitution.md +419 -0
- package/.aodw/01-core/csf-thinking-framework.md +373 -0
- package/.aodw/01-core/git-discipline.md +226 -0
- package/.aodw/01-core/module-doc-rules.md +90 -0
- package/.aodw/02-workflow/aodw-development-stages.md +235 -0
- package/.aodw/02-workflow/rt-id-generation-rules.md +267 -0
- package/.aodw/02-workflow/rt-manager-summary.md +15 -0
- package/.aodw/02-workflow/rt-manager.md +399 -0
- package/.aodw/02-workflow/spec-full-profile-summary.md +13 -0
- package/.aodw/02-workflow/spec-full-profile.md +391 -0
- package/.aodw/02-workflow/spec-lite-profile.md +313 -0
- package/.aodw/02-workflow/ui-workflow-rules.md +334 -0
- package/.aodw/03-standards/ai-coding-rules-common.md +89 -0
- package/.aodw/03-standards/ai-coding-rules.md +370 -0
- package/.aodw/03-standards/stacks/java-springboot/ai-coding-rules-backend.md +100 -0
- package/.aodw/03-standards/stacks/python-fastapi/ai-coding-rules-backend.md +612 -0
- package/.aodw/03-standards/stacks/react-typescript/ai-coding-rules-frontend.md +291 -0
- package/.aodw/03-standards/stacks/vue2/ai-coding-rules-frontend.md +97 -0
- package/.aodw/03-standards/ui-kit/ui-kit.md +163 -0
- package/.aodw/04-auditors/aodw-development-auditor-rules.md +470 -0
- package/.aodw/04-auditors/aodw-full-auditor-rules.md +365 -0
- package/.aodw/04-auditors/aodw-requirement-auditor-rules.md +408 -0
- package/.aodw/05-tooling/ai-tools-init-rules.md +465 -0
- package/.aodw/06-project/ai-overview.md +116 -0
- package/.aodw/06-project/modules-index.yaml +11 -0
- package/.aodw/07-optimization/token-usage-analysis.md +253 -0
- package/.aodw/README.md +26 -0
- package/.aodw/RELEASE-CHECKLIST.md +144 -0
- package/.aodw/config.yaml +2 -0
- package/.aodw/manifest.yaml +98 -0
- package/.aodw/templates/SOURCE-TO-DISTRIBUTION-GUIDE.md +276 -0
- package/.aodw/templates/TEMPLATE-APPLICATION-GUIDE.md +246 -0
- package/.aodw/templates/aodw-kernel-loader-template.md +70 -0
- package/.aodw/templates/audit-report-template.md +232 -0
- package/.aodw/templates/changelog-template.md +16 -0
- package/.aodw/templates/checklists/coding-standards-template.md +110 -0
- package/.aodw/templates/csf-review-template.md +201 -0
- package/.aodw/templates/impact-template.md +17 -0
- package/.aodw/templates/invariants-template.md +12 -0
- package/.aodw/templates/module-readme-template.md +39 -0
- package/.aodw/templates/plan-lite-template.md +11 -0
- package/.aodw/templates/rt-decision-template.md +13 -0
- package/.aodw/templates/rt-intake-template.md +33 -0
- package/.aodw/templates/rt-meta-template.yaml +43 -0
- package/.aodw/templates/spec-lite-template.md +17 -0
- package/.aodw/templates/tests-template.md +13 -0
- package/.aodw/templates/tools-config/README.md +80 -0
- package/.aodw/templates/tools-config/backend/black.config.template.toml +6 -0
- package/.aodw/templates/tools-config/backend/pre-commit.config.template.yaml +16 -0
- package/.aodw/templates/tools-config/backend/ruff.config.template.toml +23 -0
- package/.aodw/templates/tools-config/frontend/eslint.config.template.json +113 -0
- package/.aodw/templates/tools-config/frontend/prettier.config.template.json +10 -0
- package/.aodw/templates/tools-config/frontend/tsconfig.paths.template.json +11 -0
- package/.aodw/workflow-guide.md +51 -0
- package/AODW_Adapters/README.md +143 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-check.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-done.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-full.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-governance.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-impact.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-init.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-invariants.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-lite.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-module.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-new.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-open.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-pause.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-resume.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-tests.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw-upgrade.md +7 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/.agent/rules/aodw.md +35 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-check.md +16 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-done.md +16 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-full.md +14 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-governance.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-impact.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-init.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-invariants.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-lite.md +14 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-module.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-new.md +30 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-open.md +10 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-pause.md +12 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-resume.md +12 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-tests.md +13 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw-upgrade.md +12 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/antigravity/global_workflows/aodw.md +18 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/claude/CLAUDE.md +17 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-check.md +30 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-done.md +52 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-full.md +31 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-governance.md +34 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-impact.md +25 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-init.md +75 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-invariants.md +29 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-lite.md +23 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-module.md +24 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-new.md +70 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-open.md +19 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-pause.md +19 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-resume.md +20 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-tests.md +26 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw-upgrade.md +27 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/aodw.md +69 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/deploypromote.md +20 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/commands/featuretotester.md +32 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/feature_to_master_push_test_local.sh +390 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/promote_only.sh +210 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/deploy/rollback_prod.sh +99 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/cursor/.cursor/rules/aodw.mdc +26 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-check.md +29 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-done.md +52 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-full.md +30 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-governance.md +33 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-impact.md +24 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-init.md +75 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-invariants.md +28 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-lite.md +22 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-module.md +23 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-new.md +92 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-open.md +18 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-pause.md +18 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-resume.md +19 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-tests.md +25 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw-upgrade.md +26 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/.agent/rules/aodw.md +68 -0
- package/AODW_Adapters/_backup/v3.1.0-pre-refactor/gemini/GEMINI.md +17 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-analyze.md +15 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-complete.md +15 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-control.md +14 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-decide.md +16 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-governance.md +7 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-implement.md +16 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-init.md +7 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-intake.md +15 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-open.md +7 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-simplified.md +107 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/.agent/rules/aodw-verify.md +14 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-analyze.md +24 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-complete.md +23 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-control.md +21 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-decide.md +26 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-governance.md +13 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-implement.md +21 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-init.md +13 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-intake.md +28 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-open.md +10 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw-verify.md +20 -0
- package/AODW_Adapters/_backup/v4.0.0-simplified/antigravity/global_workflows/aodw.md +18 -0
- package/AODW_Adapters/antigravity/.agent/rules/aodw.md +74 -0
- package/AODW_Adapters/claude/CLAUDE.md +70 -0
- package/AODW_Adapters/cursor/.cursor/commands/README.md +37 -0
- package/AODW_Adapters/cursor/.cursor/rules/aodw.mdc +77 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-analyze.md +15 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-complete.md +15 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-control.md +14 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-decide.md +16 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-governance.md +33 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-implement.md +16 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-init.md +75 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-intake.md +15 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-open.md +18 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw-verify.md +14 -0
- package/AODW_Adapters/gemini/.agent/rules/aodw.md +70 -0
- package/AODW_Adapters/gemini/GEMINI.md +17 -0
- package/AODW_Adapters/general/.github/copilot-instructions.md +34 -0
- package/AODW_Adapters/general/AGENTS.md +70 -0
- package/README.md +118 -0
- package/bin/aodw.js +627 -0
- package/bin/commands/init-overview.js +801 -0
- package/bin/commands/init-tools.js +811 -0
- package/bin/commands/new.js +235 -0
- package/bin/commands/serve.js +79 -0
- package/bin/processors/index.js +109 -0
- package/bin/update-adapters-from-template.js +89 -0
- package/bin/utils/config.js +56 -0
- package/docs/README.md +26 -0
- package/docs/adapter-evaluation.md +55 -0
- package/docs/backend-guidelines.md +335 -0
- package/docs/frontend-guidelines.md +266 -0
- package/docs/installation-variants.md +88 -0
- package/docs/migration-guide-0.2.0.md +250 -0
- package/docs/platform-matrix.md +83 -0
- package/package.json +40 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# 创建新 RT
|
|
2
|
+
|
|
3
|
+
启动 AODW 工作流,创建新的 Runtime Task (RT)。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
- 自动检测需求类型(Feature/Bug/Enhancement/Refactor/Research)
|
|
7
|
+
- 通过交互协议采集需求信息
|
|
8
|
+
- 确定影响模块和风险级别
|
|
9
|
+
- 选择 Profile(Spec-Lite 或 Spec-Full)
|
|
10
|
+
- 生成 RT-ID 并创建 RT 目录结构和文档
|
|
11
|
+
- 更新 RT/index.yaml
|
|
12
|
+
|
|
13
|
+
## 使用场景
|
|
14
|
+
当用户提出新功能、Bug 修复、性能优化、重构或研究任务时使用。
|
|
15
|
+
|
|
16
|
+
## 操作步骤
|
|
17
|
+
|
|
18
|
+
### 1. 生成 RT-ID
|
|
19
|
+
|
|
20
|
+
**RT-ID 格式规则**:
|
|
21
|
+
- 标准 RT:`RT-{seq}`,其中 `{seq}` 为零填充数字(推荐至少 3 位,如 `RT-001`、`RT-002`)
|
|
22
|
+
- 特殊 RT(AODW 治理相关):`RT-CORE-{seq}`(如 `RT-CORE-001`)
|
|
23
|
+
|
|
24
|
+
**生成步骤**:
|
|
25
|
+
1. 读取 `RT/index.yaml`,找到所有现有 RT 的 ID
|
|
26
|
+
2. 提取所有序号(支持 `RT-001` 和 `RT-CORE-001` 格式)
|
|
27
|
+
3. 找到最大序号,新 RT 序号 = 最大序号 + 1
|
|
28
|
+
4. 生成 RT-ID:`RT-{seq}`(如 `RT-001`、`RT-002`)
|
|
29
|
+
5. 如果是 AODW 治理相关,使用 `RT-CORE-{seq}` 格式
|
|
30
|
+
|
|
31
|
+
**详细规则见**:`.aodw/id-branch-directory-rules.md` 和 `.aodw/rt-manager.md`
|
|
32
|
+
|
|
33
|
+
### 2. 创建目录
|
|
34
|
+
|
|
35
|
+
⚠️ **重要规则**:
|
|
36
|
+
- 目录名必须严格遵循 `RT-{seq}` 或 `RT-CORE-{seq}` 格式
|
|
37
|
+
- **禁止**在目录名中添加描述性文字(如 `RT-002-unidraft-mvp` 是错误的)
|
|
38
|
+
- 描述性信息应放在 `meta.yaml` 的 `title` 字段中,而不是目录名
|
|
39
|
+
|
|
40
|
+
**操作步骤**:
|
|
41
|
+
1. 创建目录:`RT/RT-{seq}/`(例如:`RT/RT-001/`)
|
|
42
|
+
2. 确保目录名与 RT-ID 完全一致
|
|
43
|
+
|
|
44
|
+
### 3. 创建文档
|
|
45
|
+
|
|
46
|
+
按照 AODW 规范创建所有必需文档:
|
|
47
|
+
- `meta.yaml`(必须填写 `id: RT-{seq}` 和 `title`,确保 `id` 与目录名一致)
|
|
48
|
+
- `intake.md`
|
|
49
|
+
- `decision.md`
|
|
50
|
+
- `spec.md` 或 `spec-lite.md`(根据 Profile 选择)
|
|
51
|
+
- `plan.md` 或 `plan-lite.md`(根据 Profile 选择)
|
|
52
|
+
- `impact.md`
|
|
53
|
+
- `invariants.md`
|
|
54
|
+
- `tests.md`
|
|
55
|
+
- `changelog.md`
|
|
56
|
+
|
|
57
|
+
### 4. 更新索引
|
|
58
|
+
|
|
59
|
+
在 `RT/index.yaml` 中:
|
|
60
|
+
1. 添加新 RT 条目(包含 id、title、type、profile、status 等)
|
|
61
|
+
2. 更新 `last_updated_at` 字段
|
|
62
|
+
|
|
63
|
+
## 注意事项
|
|
64
|
+
|
|
65
|
+
- **目录命名**:必须严格遵循 `RT-{seq}` 格式,不能添加任何描述性文字
|
|
66
|
+
- **ID 一致性**:`meta.yaml` 中的 `id` 字段必须与目录名完全一致
|
|
67
|
+
- **描述信息**:所有描述性信息(如功能名称)应放在 `meta.yaml` 的 `title` 字段中
|
|
68
|
+
- **规则参考**:详细规则见 `.aodw/id-branch-directory-rules.md`
|
|
69
|
+
|
|
70
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# 生成测试计划
|
|
2
|
+
|
|
3
|
+
为 RT 生成或更新测试计划文档。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
- 生成测试用例矩阵
|
|
7
|
+
- 定义输入用例和预期输出
|
|
8
|
+
- 标注回归测试点
|
|
9
|
+
- 添加异常/错误/边界场景测试
|
|
10
|
+
- 提供性能/安全验证策略(如需要)
|
|
11
|
+
- 更新 tests.md 文档
|
|
12
|
+
|
|
13
|
+
## Spec-Lite 测试
|
|
14
|
+
- 必需手动验证步骤
|
|
15
|
+
- tests.md 包括:最小步骤、预期结果、失败情况
|
|
16
|
+
|
|
17
|
+
## Spec-Full 测试
|
|
18
|
+
- 必需自动化测试建议
|
|
19
|
+
- tests.md 包括:测试矩阵、集成测试计划、回归测试列表、性能/安全检查
|
|
20
|
+
|
|
21
|
+
## 使用场景
|
|
22
|
+
- RT 创建时生成初始测试计划
|
|
23
|
+
- 实现过程中更新测试用例
|
|
24
|
+
- RT 完成前验证测试完整性
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 升级到 Spec-Full
|
|
2
|
+
|
|
3
|
+
将当前 RT 从 Spec-Lite 升级到 Spec-Full。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
- 检测是否需要升级的条件
|
|
7
|
+
- 询问用户确认升级
|
|
8
|
+
- 创建完整的 Full 文档
|
|
9
|
+
- 更新 meta.yaml 中的 profile
|
|
10
|
+
- 更新 RT/index.yaml
|
|
11
|
+
|
|
12
|
+
## 升级条件
|
|
13
|
+
当检测到以下任何情况时,必须升级:
|
|
14
|
+
- 更改影响多个模块
|
|
15
|
+
- 更改修改或引入不变量
|
|
16
|
+
- 更改影响数据库 schema 或数据模型
|
|
17
|
+
- 更改修改 API 契约
|
|
18
|
+
- 存在性能、并发或安全影响
|
|
19
|
+
- 用户明确要求更可靠的长期设计
|
|
20
|
+
|
|
21
|
+
## 文档转换
|
|
22
|
+
- spec-lite.md → spec.md
|
|
23
|
+
- plan-lite.md → plan.md
|
|
24
|
+
- 创建 impact.md、invariants.md(如果不存在)
|
|
25
|
+
- 更新 tests.md 为完整测试矩阵
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# AODW 主命令
|
|
2
|
+
|
|
3
|
+
AODW (AI-Orchestrated Development Workflow) 主入口,显示可用命令和快速帮助。
|
|
4
|
+
|
|
5
|
+
## 可用命令
|
|
6
|
+
|
|
7
|
+
### RT 管理
|
|
8
|
+
- `aodw-new` - 创建新 RT
|
|
9
|
+
- `aodw-open` - 打开 RT
|
|
10
|
+
- `aodw-done` - 完成 RT
|
|
11
|
+
- `aodw-check` - RT 一致性检查
|
|
12
|
+
|
|
13
|
+
### Profile 管理
|
|
14
|
+
- `aodw-lite` - 切换到 Spec-Lite 模式
|
|
15
|
+
- `aodw-full` - 切换到 Spec-Full 模式
|
|
16
|
+
- `aodw-upgrade` - 升级到 Spec-Full
|
|
17
|
+
|
|
18
|
+
### 文档管理
|
|
19
|
+
- `aodw-module` - 更新模块文档
|
|
20
|
+
- `aodw-impact` - 更新影响分析
|
|
21
|
+
- `aodw-invariants` - 检查不变量
|
|
22
|
+
- `aodw-tests` - 生成测试计划
|
|
23
|
+
|
|
24
|
+
### 流程控制
|
|
25
|
+
- `aodw-pause` - 暂停 AODW
|
|
26
|
+
- `aodw-resume` - 恢复 AODW
|
|
27
|
+
|
|
28
|
+
### 治理
|
|
29
|
+
- `aodw-governance` - AODW 治理检查
|
|
30
|
+
|
|
31
|
+
## 快速开始
|
|
32
|
+
|
|
33
|
+
1. **创建新 RT**:使用 `aodw-new` 创建新的 Runtime Task
|
|
34
|
+
2. **选择 Profile**:根据改动范围选择 Spec-Lite 或 Spec-Full
|
|
35
|
+
3. **完成工作**:实现功能并更新文档
|
|
36
|
+
4. **检查一致性**:使用 `aodw-check` 验证完整性
|
|
37
|
+
5. **标记完成**:使用 `aodw-done` 完成 RT
|
|
38
|
+
|
|
39
|
+
## 模式说明
|
|
40
|
+
|
|
41
|
+
### Spec-Lite
|
|
42
|
+
适用于局部化、小范围的改动:
|
|
43
|
+
- 单模块更改
|
|
44
|
+
- 不涉及数据模型/API 变更
|
|
45
|
+
- UI 层微调
|
|
46
|
+
- 内部实现优化
|
|
47
|
+
|
|
48
|
+
### Spec-Full
|
|
49
|
+
适用于复杂、跨模块的改动:
|
|
50
|
+
- 跨模块调整
|
|
51
|
+
- 数据模型更改
|
|
52
|
+
- API 契约演进
|
|
53
|
+
- 架构决策
|
|
54
|
+
- 性能/并发/安全影响
|
|
55
|
+
|
|
56
|
+
## 文档结构
|
|
57
|
+
|
|
58
|
+
每个 RT 包含:
|
|
59
|
+
- `meta.yaml` - RT 元数据(权威来源)
|
|
60
|
+
- `intake.md` - 需求采集
|
|
61
|
+
- `decision.md` - 核心决策
|
|
62
|
+
- `spec.md` / `spec-lite.md` - 行为规格
|
|
63
|
+
- `plan.md` / `plan-lite.md` - 实施计划
|
|
64
|
+
- `impact.md` - 影响分析
|
|
65
|
+
- `invariants.md` - 不变量
|
|
66
|
+
- `tests.md` - 测试计划
|
|
67
|
+
- `changelog.md` - 变更记录
|
|
68
|
+
|
|
69
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# deploy/promote
|
|
2
|
+
|
|
3
|
+
执行以下操作:
|
|
4
|
+
|
|
5
|
+
1. 在项目根目录下运行自动发布脚本 `.cursor/deploy/promote_only.sh`;
|
|
6
|
+
2. 该脚本会:
|
|
7
|
+
- 检查依赖(git/jq);
|
|
8
|
+
- 若首次运行则引导生成 `project-config.json`;
|
|
9
|
+
- 自动获取测试分支最新通过版本;
|
|
10
|
+
- 将其合并到生产分支;
|
|
11
|
+
- 自动生成生产标签(prod-YYYYMMDD-HHMM-SHA);
|
|
12
|
+
- 生成变更日志与可回滚标记;
|
|
13
|
+
- 发布完成后恢复到原开发分支。
|
|
14
|
+
3. 不会推送本地新提交到测试环境,不影响正在开发的功能。
|
|
15
|
+
|
|
16
|
+
请直接执行以下命令(无需再确认):
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
bash .cursor/deploy/promote_only.sh
|
|
20
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# feature/to-tester
|
|
2
|
+
|
|
3
|
+
执行以下操作:
|
|
4
|
+
|
|
5
|
+
1. 在项目根目录下运行功能分支合并脚本 `.cursor/deploy/feature_to_master_push_test_local.sh`;
|
|
6
|
+
2. 该脚本会:
|
|
7
|
+
- 检查依赖(git/jq);
|
|
8
|
+
- 若首次运行则引导生成 `project-config.json`;
|
|
9
|
+
- 自动识别当前功能分支;
|
|
10
|
+
- 暂存当前未提交的修改(如有);
|
|
11
|
+
- 更新本地主干分支(master/main);
|
|
12
|
+
- 将当前功能分支合并到本地主干;
|
|
13
|
+
- 推送主干到测试环境(server/master);
|
|
14
|
+
- 删除本地功能分支(可选,默认删除);
|
|
15
|
+
- 恢复暂存的修改(如有);
|
|
16
|
+
3. 只处理当前所在的功能分支,不影响其他本地功能分支;
|
|
17
|
+
4. **不会操作任何远端功能分支**。
|
|
18
|
+
|
|
19
|
+
## ⚠️ 重要规则
|
|
20
|
+
|
|
21
|
+
**功能分支管理原则**:
|
|
22
|
+
- **功能分支只在本地存在,禁止推送到远程**
|
|
23
|
+
- **禁止执行**:`git push origin feature/*` 或类似的推送操作
|
|
24
|
+
- **功能分支的代码通过合并到测试分支(mac-version)后推送到远程**
|
|
25
|
+
- **如果远程存在功能分支,应该删除它**(因为这是错误的操作导致的)
|
|
26
|
+
|
|
27
|
+
请直接执行以下命令(无需再确认):
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
bash .cursor/deploy/feature_to_master_push_test_local.sh
|
|
31
|
+
```
|
|
32
|
+
|