anyone-can-architect 0.2.0 → 0.3.0

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 (124) hide show
  1. package/README.md +6 -4
  2. package/README.zh-CN.md +4 -2
  3. package/VERSION +1 -1
  4. package/axioms/README.md +1 -1
  5. package/axioms/writing.md +1 -1
  6. package/dist/antigravity/aca/SKILL.md +3 -2
  7. package/dist/antigravity/aca-design/SKILL.md +1 -1
  8. package/dist/antigravity/aca-implement/SKILL.md +90 -109
  9. package/dist/antigravity/aca-release/SKILL.md +4 -3
  10. package/dist/antigravity/aca-repo-audit/SKILL.md +11 -9
  11. package/dist/antigravity/aca-review/SKILL.md +114 -115
  12. package/dist/antigravity/aca-test/SKILL.md +110 -0
  13. package/dist/antigravity/aca-walkthrough/SKILL.md +1 -1
  14. package/dist/antigravity-cli/aca/SKILL.md +3 -2
  15. package/dist/antigravity-cli/aca-design/SKILL.md +1 -1
  16. package/dist/antigravity-cli/aca-implement/SKILL.md +90 -109
  17. package/dist/antigravity-cli/aca-release/SKILL.md +4 -3
  18. package/dist/antigravity-cli/aca-repo-audit/SKILL.md +11 -9
  19. package/dist/antigravity-cli/aca-review/SKILL.md +114 -115
  20. package/dist/antigravity-cli/aca-test/SKILL.md +110 -0
  21. package/dist/antigravity-cli/aca-walkthrough/SKILL.md +1 -1
  22. package/dist/codex/aca/SKILL.md +3 -2
  23. package/dist/codex/aca-design/SKILL.md +1 -1
  24. package/dist/codex/aca-implement/SKILL.md +90 -109
  25. package/dist/codex/aca-release/SKILL.md +4 -3
  26. package/dist/codex/aca-repo-audit/SKILL.md +11 -9
  27. package/dist/codex/aca-review/SKILL.md +114 -115
  28. package/dist/codex/aca-test/SKILL.md +110 -0
  29. package/dist/codex/aca-walkthrough/SKILL.md +1 -1
  30. package/dist/cursor/aca/SKILL.md +3 -2
  31. package/dist/cursor/aca-design/SKILL.md +1 -1
  32. package/dist/cursor/aca-implement/SKILL.md +90 -109
  33. package/dist/cursor/aca-release/SKILL.md +4 -3
  34. package/dist/cursor/aca-repo-audit/SKILL.md +11 -9
  35. package/dist/cursor/aca-review/SKILL.md +114 -115
  36. package/dist/cursor/aca-test/SKILL.md +111 -0
  37. package/dist/cursor/aca-walkthrough/SKILL.md +1 -1
  38. package/dist/grok/aca/SKILL.md +3 -2
  39. package/dist/grok/aca-design/SKILL.md +1 -1
  40. package/dist/grok/aca-implement/SKILL.md +90 -109
  41. package/dist/grok/aca-release/SKILL.md +4 -3
  42. package/dist/grok/aca-repo-audit/SKILL.md +11 -9
  43. package/dist/grok/aca-review/SKILL.md +114 -115
  44. package/dist/grok/aca-test/SKILL.md +110 -0
  45. package/dist/grok/aca-walkthrough/SKILL.md +1 -1
  46. package/doc-design/document-sets/module.md +6 -2
  47. package/doc-design/documents/class-design.md +7 -4
  48. package/doc-design/documents/integration-guide.md +7 -5
  49. package/doc-design/documents/release.md +5 -3
  50. package/meta-skills/aca/SKILL.md +3 -2
  51. package/meta-skills/aca/SKILL.md.tmpl +3 -2
  52. package/package.json +1 -1
  53. package/skills/aca-design/SKILL.md +1 -1
  54. package/skills/aca-implement/SKILL.md +90 -109
  55. package/skills/aca-implement/SKILL.md.tmpl +91 -110
  56. package/skills/aca-release/SKILL.md +4 -3
  57. package/skills/aca-release/SKILL.md.tmpl +4 -3
  58. package/skills/aca-repo-audit/SKILL.md +11 -9
  59. package/skills/aca-repo-audit/SKILL.md.tmpl +10 -8
  60. package/skills/aca-review/SKILL.md +114 -115
  61. package/skills/aca-review/SKILL.md.tmpl +115 -116
  62. package/skills/aca-test/SKILL.md +110 -0
  63. package/skills/aca-test/SKILL.md.tmpl +108 -0
  64. package/skills/aca-walkthrough/SKILL.md +1 -1
  65. package/zh-CN/axioms/README.md +1 -1
  66. package/zh-CN/axioms/writing.md +1 -1
  67. package/zh-CN/dist/antigravity/aca/SKILL.md +3 -2
  68. package/zh-CN/dist/antigravity/aca-design/SKILL.md +1 -1
  69. package/zh-CN/dist/antigravity/aca-implement/SKILL.md +89 -108
  70. package/zh-CN/dist/antigravity/aca-release/SKILL.md +62 -52
  71. package/zh-CN/dist/antigravity/aca-repo-audit/SKILL.md +37 -29
  72. package/zh-CN/dist/antigravity/aca-review/SKILL.md +112 -113
  73. package/zh-CN/dist/antigravity/aca-test/SKILL.md +110 -0
  74. package/zh-CN/dist/antigravity/aca-walkthrough/SKILL.md +1 -1
  75. package/zh-CN/dist/antigravity-cli/aca/SKILL.md +3 -2
  76. package/zh-CN/dist/antigravity-cli/aca-design/SKILL.md +1 -1
  77. package/zh-CN/dist/antigravity-cli/aca-implement/SKILL.md +89 -108
  78. package/zh-CN/dist/antigravity-cli/aca-release/SKILL.md +62 -52
  79. package/zh-CN/dist/antigravity-cli/aca-repo-audit/SKILL.md +37 -29
  80. package/zh-CN/dist/antigravity-cli/aca-review/SKILL.md +112 -113
  81. package/zh-CN/dist/antigravity-cli/aca-test/SKILL.md +110 -0
  82. package/zh-CN/dist/antigravity-cli/aca-walkthrough/SKILL.md +1 -1
  83. package/zh-CN/dist/codex/aca/SKILL.md +3 -2
  84. package/zh-CN/dist/codex/aca-design/SKILL.md +1 -1
  85. package/zh-CN/dist/codex/aca-implement/SKILL.md +89 -108
  86. package/zh-CN/dist/codex/aca-release/SKILL.md +62 -52
  87. package/zh-CN/dist/codex/aca-repo-audit/SKILL.md +37 -29
  88. package/zh-CN/dist/codex/aca-review/SKILL.md +112 -113
  89. package/zh-CN/dist/codex/aca-test/SKILL.md +110 -0
  90. package/zh-CN/dist/codex/aca-walkthrough/SKILL.md +1 -1
  91. package/zh-CN/dist/cursor/aca/SKILL.md +3 -2
  92. package/zh-CN/dist/cursor/aca-design/SKILL.md +1 -1
  93. package/zh-CN/dist/cursor/aca-implement/SKILL.md +89 -108
  94. package/zh-CN/dist/cursor/aca-release/SKILL.md +62 -52
  95. package/zh-CN/dist/cursor/aca-repo-audit/SKILL.md +37 -29
  96. package/zh-CN/dist/cursor/aca-review/SKILL.md +112 -113
  97. package/zh-CN/dist/cursor/aca-test/SKILL.md +111 -0
  98. package/zh-CN/dist/cursor/aca-walkthrough/SKILL.md +1 -1
  99. package/zh-CN/dist/grok/aca/SKILL.md +3 -2
  100. package/zh-CN/dist/grok/aca-design/SKILL.md +1 -1
  101. package/zh-CN/dist/grok/aca-implement/SKILL.md +89 -108
  102. package/zh-CN/dist/grok/aca-release/SKILL.md +62 -52
  103. package/zh-CN/dist/grok/aca-repo-audit/SKILL.md +37 -29
  104. package/zh-CN/dist/grok/aca-review/SKILL.md +112 -113
  105. package/zh-CN/dist/grok/aca-test/SKILL.md +110 -0
  106. package/zh-CN/dist/grok/aca-walkthrough/SKILL.md +1 -1
  107. package/zh-CN/doc-design/document-sets/module.md +6 -2
  108. package/zh-CN/doc-design/documents/class-design.md +7 -4
  109. package/zh-CN/doc-design/documents/integration-guide.md +7 -5
  110. package/zh-CN/doc-design/documents/release.md +5 -3
  111. package/zh-CN/meta-skills/aca/SKILL.md +3 -2
  112. package/zh-CN/meta-skills/aca/SKILL.md.tmpl +3 -2
  113. package/zh-CN/skills/aca-design/SKILL.md +1 -1
  114. package/zh-CN/skills/aca-implement/SKILL.md +89 -108
  115. package/zh-CN/skills/aca-implement/SKILL.md.tmpl +89 -108
  116. package/zh-CN/skills/aca-release/SKILL.md +62 -52
  117. package/zh-CN/skills/aca-release/SKILL.md.tmpl +62 -52
  118. package/zh-CN/skills/aca-repo-audit/SKILL.md +37 -29
  119. package/zh-CN/skills/aca-repo-audit/SKILL.md.tmpl +36 -28
  120. package/zh-CN/skills/aca-review/SKILL.md +112 -113
  121. package/zh-CN/skills/aca-review/SKILL.md.tmpl +111 -112
  122. package/zh-CN/skills/aca-test/SKILL.md +110 -0
  123. package/zh-CN/skills/aca-test/SKILL.md.tmpl +108 -0
  124. package/zh-CN/skills/aca-walkthrough/SKILL.md +1 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  <p align="center"><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a></p>
14
14
 
15
- <p align="center"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-8D6E63"> <img alt="Hosts" src="https://img.shields.io/badge/hosts-Claude%20Code%20%7C%20Codex%20%7C%20Cursor%20%7C%20Grok%20%7C%20Antigravity-E8912D"></p>
15
+ <p align="center"><a href="https://www.npmjs.com/package/anyone-can-architect"><img alt="npm version" src="https://img.shields.io/npm/v/anyone-can-architect?color=CB3837"></a> <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-8D6E63"> <img alt="Hosts" src="https://img.shields.io/badge/hosts-Claude%20Code%20%7C%20Codex%20%7C%20Cursor%20%7C%20Grok%20%7C%20Antigravity-E8912D"></p>
16
16
 
17
17
  ---
18
18
 
@@ -35,7 +35,8 @@ flowchart LR
35
35
  Brownfield --> Design
36
36
  Design --> Implement["/aca-implement<br>build code from the docs"]
37
37
  Implement --> Review["/aca-review<br>check against the design"]
38
- Review --> Release["/aca-release<br>merge and tag"]
38
+ Review --> Test["/aca-test<br>run minimal tests"]
39
+ Test --> Release["/aca-release<br>merge and tag"]
39
40
  ```
40
41
 
41
42
  ---
@@ -84,6 +85,7 @@ In Codex, type `$` instead of `/`, for example `$aca`
84
85
  | `/aca-walkthrough` | Walks you through the design docs in plain language and fixes issues on the spot |
85
86
  | `/aca-implement` | Builds the code and tests from the design docs |
86
87
  | `/aca-review` | Reviews the design docs or the code in the current scope |
88
+ | `/aca-test` | Selects and runs minimal tests based on the implementation or change blast radius |
87
89
  | `/aca-repo-audit` | Checks the whole repo for broken links, contradictions and drift between docs and code |
88
90
  | `/aca-release` | Merges the verified version into main and tags it |
89
91
  | `/aca-feedback` | Files a GitHub issue when a rule does not fit your project |
@@ -104,5 +106,5 @@ Run `bash tests/run-tests.sh` before opening a pull request
104
106
 
105
107
  ---
106
108
 
107
- > 📦 **Anyone Can Architect v0.2.0**
108
- > 🤝 Powered by [Anyone Can Architect](https://github.com/ruozi/anyone-can-architect) v0.2.0 · Repo-Type: `guideline`
109
+ > 📦 **Anyone Can Architect v0.3.0**
110
+ > 🤝 Powered by [Anyone Can Architect](https://github.com/ruozi/anyone-can-architect) v0.3.0 · Repo-Type: `guideline`
package/README.zh-CN.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  <p align="center"><a href="README.md">English</a> · <strong>简体中文</strong></p>
14
14
 
15
- <p align="center"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-8D6E63"> <img alt="Hosts" src="https://img.shields.io/badge/hosts-Claude%20Code%20%7C%20Codex%20%7C%20Cursor%20%7C%20Grok%20%7C%20Antigravity-E8912D"></p>
15
+ <p align="center"><a href="https://www.npmjs.com/package/anyone-can-architect"><img alt="npm version" src="https://img.shields.io/npm/v/anyone-can-architect?color=CB3837"></a> <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-8D6E63"> <img alt="Hosts" src="https://img.shields.io/badge/hosts-Claude%20Code%20%7C%20Codex%20%7C%20Cursor%20%7C%20Grok%20%7C%20Antigravity-E8912D"></p>
16
16
 
17
17
  ---
18
18
 
@@ -35,7 +35,8 @@ flowchart LR
35
35
  Brownfield --> Design
36
36
  Design --> Implement["/aca-implement<br>按文档构建代码"]
37
37
  Implement --> Review["/aca-review<br>对照设计审查"]
38
- Review --> Release["/aca-release<br>合并并打 Tag"]
38
+ Review --> Test["/aca-test<br>运行最小化测试"]
39
+ Test --> Release["/aca-release<br>合并并打 Tag"]
39
40
  ```
40
41
 
41
42
  ---
@@ -85,6 +86,7 @@ npx anyone-can-architect install --lang zh
85
86
  | `/aca-walkthrough` | 用业务语言带你走读设计文档,当场修正问题 |
86
87
  | `/aca-implement` | 按设计文档构建代码与测试 |
87
88
  | `/aca-review` | 审查当前范围的设计文档或代码 |
89
+ | `/aca-test` | 按实现或改动影响范围选取并运行最小化测试 |
88
90
  | `/aca-repo-audit` | 检查全仓的断链、矛盾及文档与代码的偏移 |
89
91
  | `/aca-release` | 将已验证的版本合入 main 并打 Tag |
90
92
  | `/aca-feedback` | 规则不适合你的项目时,提交 GitHub Issue |
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
package/axioms/README.md CHANGED
@@ -8,4 +8,4 @@
8
8
  | Writing | [writing.md](writing.md) | design "Doc Writing" chapter<br>walkthrough / review / repo-audit body<br>Top of each doc design | Doc structure, concepts and references, chapters and sections, lines and tables, characters — "how to write" |
9
9
  | Completeness (Boil the Ocean) | [boil-the-ocean.md](boil-the-ocean.md) | specify "Solution Design" chapter | If you can achieve 100%, do not settle for 80% |
10
10
 
11
- Skill-level axioms apply only to skills with design responsibilities, implement / release / feedback handle execution only and receive no injection
11
+ Skill-level axioms apply only to skills with design responsibilities, implement / test / release / feedback handle execution only and receive no injection
package/axioms/writing.md CHANGED
@@ -7,7 +7,7 @@
7
7
  - Present the whole first, then expand on the details, see the [Pyramid Principle](../SSOT.md#2-structure)
8
8
  - When stating a judgment, give the conclusion first, then the supporting evidence
9
9
  - Merge heading levels that add no information
10
- - Use numbered lists for items with a sequence or priority, and indent multiple attributes under each item
10
+ - Use numbered lists for items with a sequence or priority; when a step contains sub-items, start the step with a bold phrase stating its purpose and indent specific operations and conditional branches under it
11
11
  - Use tables only for content with multiple rows of the same structure, more than two attributes per row, and no sequence between rows
12
12
  - Write list items as complete sentences
13
13
  - When an item has branches, indent the branches under that item
@@ -43,8 +43,9 @@ flowchart TD
43
43
  | `/aca-specify` | Reason through new requirements or improve existing designs, then proceed to Design after confirming the solution |
44
44
  | `/aca-design` | Write and check design docs within the current scope, then determine the next scope or complete the overall closeout |
45
45
  | `/aca-walkthrough` | Walk through design docs in business language, confirm design decisions unit by unit, and correct identified issues on the spot after confirmation |
46
- | `/aca-review` | Determine the review subject and scope, review the design or check implementation compliance with the design, without modifying the docs or code under review |
47
- | `/aca-implement` | Plan the file structure based on the design, then implement and verify code and tests according to module dependencies |
46
+ | `/aca-review` | Determine the review subject and scope, statically review the design or code and test implementation, without modifying the docs or code under review or running code |
47
+ | `/aca-implement` | Plan the file structure based on the design, then write production code and test code according to module dependencies |
48
+ | `/aca-test` | Select and run minimal tests based on the current implementation scope or the design boundary crossed by changes, testing only without modifying files |
48
49
  | `/aca-repo-audit` | Check repository documentation and verify the implementation as needed, with read-only access and no changes |
49
50
  | `/aca-release` | Close out according to the repository release workflow, merge into main, and lock in an annotated Tag |
50
51
  | `/aca-feedback` | Collect deviations from governance rules and submit an Issue after explicit authorization |
@@ -22,7 +22,7 @@ Change only documentation, not code
22
22
  - Present the whole first, then expand on the details, see the [Pyramid Principle](~/.gemini/config/skills/aca/SSOT.md#2-structure)
23
23
  - When stating a judgment, give the conclusion first, then the supporting evidence
24
24
  - Merge heading levels that add no information
25
- - Use numbered lists for items with a sequence or priority, and indent multiple attributes under each item
25
+ - Use numbered lists for items with a sequence or priority; when a step contains sub-items, start the step with a bold phrase stating its purpose and indent specific operations and conditional branches under it
26
26
  - Use tables only for content with multiple rows of the same structure, more than two attributes per row, and no sequence between rows
27
27
  - Write list items as complete sentences
28
28
  - When an item has branches, indent the branches under that item
@@ -3,12 +3,11 @@ name: aca-implement
3
3
  description: |
4
4
  1. Set implementation goals and completion criteria based on the design
5
5
  2. Plan the responsibilities and structure of source code and test files based on module boundaries and internal design
6
- 3. Orchestrate implementation and verification tasks by module dependencies
6
+ 3. Orchestrate implementation tasks by module dependencies
7
7
  4. Create all directories and file placeholders according to the plan
8
- 5. Assign sub-agents by module dependencies, implement in parallel wherever possible, and run black-box and white-box tests
9
- 6. Commit the corresponding changes after each module passes verification
10
- 7. Integrate the commits of verified modules
11
- 8. Complete overall verification and check the completion criteria for the goal
8
+ 5. Assign sub-agents by module dependencies and write production code along with black-box and white-box test code in parallel wherever possible
9
+ 6. Commit the corresponding changes and integrate after each module is complete
10
+ 7. Check the completion criteria for the goal and hand off to review and testing
12
11
  Change only code and tests
13
12
  ---
14
13
  <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
@@ -16,22 +15,21 @@ description: |
16
15
 
17
16
  # aca-implement
18
17
 
19
- Implement code and tests according to the design docs for the current scope
20
- Change only code and tests, not design docs
18
+ Write production code and test code according to the design docs for the current scope
19
+ Change only code and tests, without modifying design docs or running tests
21
20
 
22
21
  ## 1 Principles
23
22
 
24
23
  1. **Goal-driven**
25
24
  Use confirmed delivery goals to determine the implementation scope and task priorities
26
- Use completion criteria and their verification evidence to determine whether the goals are met
25
+ Judge implementation completion by coverage of the design requirements
27
26
  2. **Dependency-driven parallelism**
28
27
  Use dependencies to determine the implementation order
29
- Run tasks in parallel wherever possible when their dependencies are satisfied and they have no shared resource conflicts
30
- 3. **Test-driven**
31
- Use external contracts and internal design to determine test expectations
32
- Drive implementation with tests and use both black-box and white-box tests to verify design requirements
33
- 4. **Scope constraints**
34
- Keep implementation and refactoring within the confirmed design scope
28
+ Advance tasks in parallel wherever possible when their dependencies are satisfied and they have no file conflicts
29
+ 3. **Code and tests in sync**
30
+ Write production code along with black-box and white-box test code in sync based on external contracts, internal design, and test design
31
+ 4. **Write only, no test execution**
32
+ Write or modify code and tests only during implementation, and hand off test execution to `/aca-test`
35
33
 
36
34
  ## 2 Workflow
37
35
 
@@ -41,14 +39,9 @@ flowchart TD
41
39
  Plan --> Prepare["Implementation Preparation · §4"]
42
40
  Prepare --> Implement["Implementation and Integration · §5"]
43
41
  Implement -- All remaining tasks are blocked and no tasks are in progress --> Report
44
- Implement --> Modules{All module tasks are complete and integrated}
42
+ Implement --> Modules{All module tasks for the current scope are complete and integrated}
45
43
  Modules -- No --> Implement
46
- Modules -- Yes --> Verify["Overall Verification · §6"]
47
- Verify --> Complete{All completion criteria for the current scope are verified as satisfied}
48
- Complete -- No, the design is clear and fixes are possible within the current scope --> Implement
49
- Complete -- No, remaining verification can continue --> Verify
50
- Complete -- No, remaining fixes or verification are blocked --> Report
51
- Complete -- Yes --> Report(["Output and Next Step · §7"])
44
+ Modules -- Yes --> Report(["Output and Next Step · §6"])
52
45
  ```
53
46
 
54
47
  ## 3 Goals and Task Orchestration
@@ -57,49 +50,53 @@ Read the design docs, project configuration, existing code, and tests for the cu
57
50
  Check the workspace state and recent commits to verify current implementation progress and existing changes
58
51
  Preserve existing changes outside the scope of this implementation
59
52
 
60
- 1. List deliverables and their completion criteria based on the confirmed design and implementation scope
61
- 2. Compare delivery requirements with existing code and tests, and list what to reuse, modify, add, or remove
62
- 3. List the tests to run for this implementation based on the black-box and white-box test designs
63
- Specify the environments and fixtures these tests require
64
- 4. List the modules involved in this implementation and their dependencies based on the design
65
- Modules include submodules at all levels: top-level modules come from architecture, and submodules come from the internal composition of their direct parent's class-design
66
- 5. Specify whether each test uses real dependencies or test doubles based on the test design
67
- Check the readiness of required dependencies
68
- 6. Plan the source code and test file structure based on module boundaries, internal design, and repository conventions
69
- List all source code and test directories and files within the current implementation scope
70
- 7. Specify each file's responsibilities, owning module, and dependencies
71
- Check whether each file has a single responsibility and whether responsibilities overlap
72
- Adjust file boundaries when responsibilities are not singular or overlap
73
- 8. Split implementation preparation, module implementation, integration, and overall verification into tasks
74
- Use modules in the design as the smallest units of implementation, verification, and commits
75
- When submodules exist, create separate tasks for each submodule and the parent's composition implementation, with the parent task depending on all its submodule tasks
76
- 9. Specify each task's dependencies, owner, and completion criteria
77
- 10. Use the goal or task management capabilities provided by the current AI Agent environment to maintain the overall goal and task progress
78
- Record each task's status: pending implementation, in progress, complete, or blocked
79
- Record verification evidence and the next action for each task
80
- When resuming a task, check task records, the workspace, and recent commits
81
- Update task status based on the findings and continue implementation
53
+ 1. **Specify deliverables and completion criteria**
54
+ - List deliverables and their completion criteria based on the confirmed design and implementation scope
55
+ 2. **Compile the code and test change list**
56
+ - Compare delivery requirements with existing code and tests, and list what to reuse, modify, add, or remove
57
+ 3. **Orchestrate the corresponding test scope**
58
+ - List the test cases and fixtures to write or update in this run based on the black-box and white-box test designs
59
+ - Record the units under test and test case scope corresponding to the current implementation scope for direct execution by `/aca-test`
60
+ 4. **Identify modules and dependencies**
61
+ - List the modules involved in this implementation and their dependencies based on the design
62
+ - Modules include submodules at all levels: top-level modules come from architecture, and submodules come from the internal composition of their direct parent's class-design
63
+ 5. **Plan the source code and test file structure**
64
+ - Plan the source code and test file structure based on module boundaries, internal design, and repository conventions
65
+ - List all source code and test directories and files within the current implementation scope
66
+ 6. **Check file responsibilities and boundaries**
67
+ - Specify each file's responsibilities, owning module, and dependencies
68
+ - Check whether each file has a single responsibility and whether responsibilities overlap
69
+ - Responsibilities are not singular or overlap: adjust file boundaries
70
+ 7. **Split module implementation and integration tasks**
71
+ - Split implementation preparation, module implementation, and integration into tasks
72
+ - Use modules in the design as the smallest units of implementation and commits
73
+ - When submodules exist, create separate tasks for each submodule and the parent's composition implementation, with the parent task depending on all its submodule tasks
74
+ - Specify each task's dependencies, owner, and completion criteria
75
+ 8. **Maintain task status and progress**
76
+ - Use the goal or task management capabilities provided by the current AI Agent environment to maintain the overall goal and task progress
77
+ - Record each task's status: pending implementation, in progress, complete, or blocked
78
+ - When resuming a task, check task records, the workspace, and recent commits, update task status, and continue implementation
82
79
 
83
80
  ## 4 Implementation Preparation
84
81
 
85
- 1. Add all missing source code and test directories and file placeholders for the current scope according to the plan
86
- Reuse existing files directly and create new files as empty files
87
- Delete files explicitly marked for removal in the plan only after verifying that they no longer serve a valid responsibility
88
- When a file's purpose, dependencies, or deletion scope cannot be confirmed, retain it and verify with the developer
89
- Start module implementation only after all file placeholders are in place
90
- 2. The main agent assigns separate workspaces to sub-agents
91
- Allocate test resources according to the test design to ensure parallel tasks do not interfere with each other
92
- Synchronize the prepared file structure to each workspace
93
- 3. Provide each sub-agent with the following task context
82
+ 1. **Create directories and file placeholders**
83
+ - Add all missing source code and test directories and file placeholders for the current scope according to the plan
84
+ - Reuse existing files directly and create new files as empty files
85
+ - Delete files explicitly marked for removal in the plan only after verifying that they no longer serve a valid responsibility
86
+ - File purpose, dependencies, or deletion scope cannot be confirmed: retain the file and verify with the developer
87
+ - Start module implementation only after all file placeholders are in place
88
+ 2. **Assign separate workspaces**
89
+ - The main agent assigns separate workspaces to sub-agents
90
+ - Synchronize the prepared file structure to each workspace
91
+ 3. **Dispatch task context to sub-agents**
94
92
  - The overall implementation goal, the functionality to complete for the current module, and the scope of changes
95
93
  - Links to relevant chapters covering the structural basis, interfaces, internal design, and test cases for the current module and its dependencies
96
94
  The structural basis for top-level modules is architecture, and the structural basis for submodules is the internal composition of the parent's class-design
97
95
  - The readiness of each dependency and the arrangements for real dependencies or test doubles in tests
98
96
  - The workspace path, starting commit, files permitted for modification, and applicable repository conventions
99
- - Test environments and fixtures, verification commands, and module completion criteria
100
- - Change only code and tests
97
+ - Modify only production code and test code, without modifying design docs or running tests
101
98
  - Follow the [Exception Handling](#52-exception-handling) requirements
102
- - Return changed files, commit records, verification commands and results, unverified items, and reasons for blockers
99
+ - Return changed files, commit records, corresponding test scope, and reasons for blockers
103
100
 
104
101
  When files owned by other tasks or shared files are involved, first ask the main agent to coordinate
105
102
 
@@ -107,63 +104,48 @@ Preserve existing changes outside the scope of this implementation
107
104
 
108
105
  ### 5.1 Implementation Loop
109
106
 
110
- 1. The main agent selects module tasks whose dependencies are satisfied
111
- Assign tasks that can run in parallel to sub-agents
112
- 2. Implement and verify each module according to the test design
113
- 1. Prepare and run tests
114
- Reuse, write, or update black-box and white-box tests for the module's current scope according to the design
115
- When new or changed design requirements are not yet implemented, confirm that the corresponding tests fail
116
- For refactoring that preserves behavior, first run the corresponding tests to establish a verification baseline
117
- 2. Complete and verify changes within the module's current scope according to the design
118
- Follow repository conventions for implementation details not specified by the design
119
- When the repository has no corresponding conventions, use the simplest implementation that meets the design
120
- When the design includes a Lark (Feishu) card mockup, implement it according to [Lark Card Mapping](~/.gemini/config/skills/aca/skills/references/lark-card-mapping.md)
121
- Run module tests and confirm that all pass
122
- 3. Refactor as needed and verify again
123
- After refactoring, rerun module tests and confirm that all pass
124
- When an unexpected test failure occurs and the design is clear, fix the code and rerun the affected tests
125
- 3. Check black-box and white-box test results and other completion criteria for the module's current scope
126
- Once all criteria are satisfied, stage and commit only the current task's changes
127
- 4. The main agent checks module commits and verification evidence
128
- Integrate the module's commits after confirming that it meets the completion criteria
129
- Run tests for affected modules and integration tests between modules on the integrated code
130
- 5. The main agent updates task status, verification evidence, and dependency readiness
131
- Record the reasons for blocked tasks and the conditions for resuming them
132
- Synchronize integrated dependency commits that have passed verification to module workspaces that require real dependencies
133
- If tasks remain that can be implemented, return to step 1
134
- If no tasks can be assigned and tasks are still in progress, wait for execution results
135
- After all module tasks are complete and integrated, proceed to [Overall Verification](#6-overall-verification)
136
- If all remaining tasks are blocked and no tasks are in progress, report the incomplete status according to [Output](#7-output)
107
+ 1. **Dispatch parallelizable module tasks**
108
+ - The main agent selects module tasks whose dependencies are satisfied and assigns tasks that can run in parallel to sub-agents
109
+ 2. **Write module production code and test code**
110
+ - Reuse, write, or update black-box and white-box test code and fixtures for the module's current scope according to the design
111
+ - Complete production code changes within the module's current scope according to the design
112
+ - Follow repository conventions for implementation details not specified by the design, or use the simplest implementation that meets the design when the repository has no corresponding convention
113
+ - When the design includes a Lark (Feishu) card mockup, implement it according to [Lark Card Mapping](~/.gemini/config/skills/aca/skills/references/lark-card-mapping.md)
114
+ - Organize code structure as needed to keep responsibilities singular and boundaries clear
115
+ 3. **Check module completion criteria and commit**
116
+ - Check that interface contracts, internal mechanisms, and black-box and white-box test code for the module's current scope are all written according to the design
117
+ - Stage and commit only the current task's changes
118
+ 4. **Integrate module commits**
119
+ - The main agent checks the file scope and completion status of module commits
120
+ - Integrate the module's commits after confirming that it meets the completion criteria
121
+ 5. **Update progress and advance**
122
+ - The main agent updates task status, implemented module scope, and dependency readiness
123
+ - Record the reasons for blocked tasks and the conditions for resuming them
124
+ - Synchronize integrated dependency commits to downstream module workspaces
125
+ - Tasks remain that can be implemented: return to step 1
126
+ - No tasks can be assigned and tasks are still in progress: wait for execution results
127
+ - All module tasks for the current scope are complete and integrated: proceed to [Output](#6-output)
128
+ - All remaining tasks are blocked and no tasks are in progress: report the incomplete status according to [Output](#6-output)
137
129
 
138
130
  ### 5.2 Exception Handling
139
131
 
140
- 1. When the design is missing, contains conflicts, or cannot be implemented, the agent executing the task pauses affected tasks
141
- Sub-agents report the issue and its scope of impact to the main agent
142
- The main agent verifies the issue and its scope of impact, then reports them to the developer
143
- When the solution needs additions or revisions, recommend using `/aca-specify`
144
- Continue unaffected independent tasks
145
- 2. When issues are found in other repositories, the main agent verifies them and reports the issues and their impact to the developer
146
- Do not modify other repositories without authorization
132
+ 1. **Handle missing or conflicting designs**
133
+ - When the design is missing, contains conflicts, or cannot be implemented, the agent executing the task pauses affected tasks
134
+ - Sub-agents report the issue and its scope of impact to the main agent
135
+ - The main agent verifies the issue and its scope of impact, then reports them to the developer
136
+ - When the solution needs additions or revisions, recommend using `/aca-specify`
137
+ - Continue unaffected independent tasks
138
+ 2. **Handle cross-repository issues**
139
+ - When issues are found in other repositories, the main agent verifies them and reports the issues and their impact to the developer
140
+ - Do not modify other repositories without authorization
147
141
 
148
- ## 6 Overall Verification
142
+ ## 6 Output
149
143
 
150
- After all module tasks are complete and integrated, the main agent performs overall verification for the current delivery scope
151
- Run module tests, integration tests, system tests, builds, and static checks according to the implementation plan
152
- Execute the test cases specified in the design and verify the runtime results of the subject under test
153
- Passing builds or static checks cannot replace behavioral test results
154
-
155
- When issues are found for which the design is clear and fixes are possible within the current scope, return to [Implementation and Integration](#5-implementation-and-integration)
156
- Rerun affected verification after fixes
157
- Check each completion criterion against the overall goal
158
- Update task records with verification results and unverified items
159
-
160
- ## 7 Output
161
-
162
- When all completion criteria for the current scope are verified as satisfied, mark the goal and tasks as complete
144
+ When all completion criteria for the current scope are satisfied, mark the goal and task status as complete
163
145
  If incomplete, report remaining work, reasons for blockers, and actions to resume
164
- After this implementation is complete, use `/aca-review` to review the implementation within this scope
165
- Provide Review with the overall goal, corresponding design, implementation scope, and comparison baseline
166
- Identify the commits and uncommitted changes under review, and provide verification results and evidence
146
+ After this implementation is complete, use `/aca-review` to run an implementation review on this scope
147
+ Provide Review and subsequent `/aca-test` with the overall goal, corresponding design, implementation scope, orchestrated test scope, and comparison baseline
148
+ Identify the commits and uncommitted changes under review
167
149
  Use the following format for the final report, filling in the title and results according to the actual status
168
150
 
169
151
  ```markdown
@@ -173,9 +155,8 @@ Use the following format for the final report, filling in the title and results
173
155
  | --- | --- |
174
156
  | Goal | <overall goal and completion criteria satisfaction> |
175
157
  | Scope | <implementation scope and module progress> |
176
- | Changes | <main implementation changes> |
177
- | Verification | <test execution, build, and static check results> |
178
- | Unverified | <unverified scope / none> |
158
+ | Changes | <main production code and test code changes> |
159
+ | Test scope | <units under test and test case scope orchestrated for /aca-test> |
179
160
  | Commits | <commit records / uncommitted> |
180
161
  | Blockers | <blockers and reasons / none> |
181
162
  | Recommendations | <extension recommendations / none> |
@@ -201,9 +201,9 @@ If execution cannot continue in Chapters 4 through 7, report completed facts, th
201
201
  Cross-check that the Anyone Can Architect footer matches the current Anyone Can Architect version, immediately follows the repository version line, and is the last line
202
202
  Cross-check that the final commit contains the complete design, implementation, and tests for this scope
203
203
  3. Complete final verification
204
- Complete the verification required by the repository release workflow on the final commit
204
+ Complete the verification required by the repository release workflow and the `/aca-test` test scope on the final commit
205
205
  Record verification results and the corresponding commit
206
- When reusing existing results, state which reuse conditions are met and the basis for their correspondence to the final commit
206
+ When reusing existing `/aca-test` or verification results, state which reuse conditions are met and the basis for their correspondence to the final commit
207
207
  If artifacts are involved, cross-check their traceability to this commit
208
208
  Verification artifacts cannot replace evidence of completed delivery
209
209
  4. Determine whether release locking is allowed
@@ -368,7 +368,8 @@ Select one immediately executable action based on the incomplete items
368
368
  | Execution conditions are missing | Meet the conditions, then check the status against [release preparation](#3-release-preparation) and resume |
369
369
  | The design solution still needs reasoning | `/aca-specify` Reason through the solution |
370
370
  | The revision solution is clear and only doc changes are needed | `/aca-design` Revise the docs |
371
- | Implementation issues | `/aca-implement` Fix and verify |
371
+ | Implementation issues | `/aca-implement` Fix code or tests |
372
+ | Tests or final verification incomplete | `/aca-test` Run verification, then resume the release |
372
373
  | Merge conflicts | Resolve and commit the conflicts, then rerun the [pre-merge audit](#43-pre-merge-audit) |
373
374
  | Push, cleanup, or announcement is still incomplete | Resume from the corresponding incomplete step |
374
375
  | Everything is complete and no follow-up items remain | Report that there are no pending tasks |
@@ -34,7 +34,7 @@ Use `/aca-review` when you need to judge whether business goals and design solut
34
34
  - Present the whole first, then expand on the details, see the [Pyramid Principle](~/.gemini/config/skills/aca/SSOT.md#2-structure)
35
35
  - When stating a judgment, give the conclusion first, then the supporting evidence
36
36
  - Merge heading levels that add no information
37
- - Use numbered lists for items with a sequence or priority, and indent multiple attributes under each item
37
+ - Use numbered lists for items with a sequence or priority; when a step contains sub-items, start the step with a bold phrase stating its purpose and indent specific operations and conditional branches under it
38
38
  - Use tables only for content with multiple rows of the same structure, more than two attributes per row, and no sequence between rows
39
39
  - Write list items as complete sentences
40
40
  - When an item has branches, indent the branches under that item
@@ -181,16 +181,17 @@ When an implementation audit is included, cross-check all design items in scope
181
181
 
182
182
  ### 5.2 Runtime Verification
183
183
 
184
- 1. Determine verification requirements
185
- Read the full test and build commands specified by the repository
184
+ 1. **Determine verification requirements**
185
+ Determine the test and build commands required for the current scope according to the boundary rules in `/aca-test` and the repository `release` doc
186
+ Run full tests and builds by default when the repository does not specify tiered verification
186
187
  Check the required environment, configuration, and fixtures
187
- 2. Run verification or reuse its results
188
- Reuse existing results if they cover the required verification and the content under review, tests, fixtures, configuration, dependency environment, and commands have not changed
188
+ 2. **Run verification or reuse its results**
189
+ Reuse existing `/aca-test` or build results if they cover the required scope and the commit under review, tests, fixtures, configuration, dependency environment, and commands have not changed
189
190
  State the original verification results and the basis for reuse in the report
190
- Run the corresponding verification in an isolated environment if the reuse conditions are not met
191
+ Run the required tests and builds in an isolated environment following the execution rules of `/aca-test` if the reuse conditions are not met
191
192
  Static reading cannot replace verification by execution
192
193
  Do not modify project source code, design docs, or commit history during verification
193
- 3. Record results and handle exceptions
194
+ 3. **Record results and handle exceptions**
194
195
  Record the results and supporting evidence when verification passes
195
196
  Verify diagnostics and record confirmed issues when verification fails
196
197
  Mark the corresponding verification as incomplete and explain why if the environment is unavailable or execution is not possible
@@ -223,7 +224,7 @@ When an implementation audit is included, cross-check all design items in scope
223
224
  | Incomplete | Pass conditions are not met, and no confirmed must fix items exist |
224
225
 
225
226
  Required checks include reading documentation, mechanical checks, and content checks in the current scope
226
- When an implementation audit is included, they also include all consistency cross-checks, full tests, and builds
227
+ When an implementation audit is included, they also include all consistency cross-checks and the tests and builds required for the current scope
227
228
  When both must fix items and incomplete checks exist, set the verdict to action required and list the incomplete items
228
229
  Optional trim does not affect a pass
229
230
 
@@ -273,7 +274,8 @@ Choose one immediately executable action based on the nature of the issues and t
273
274
  | Verification prerequisites are missing | Meet the prerequisites, then continue this audit through `/aca-repo-audit` |
274
275
  | The solution still needs reasoning | Use `/aca-specify` to reason through the solution |
275
276
  | The revised solution is clear and only docs need changes | Use `/aca-design` to revise the docs |
276
- | Implementation deviates | Use `/aca-implement` to fix and verify |
277
+ | Implementation deviates | `/aca-implement` Fix code or tests |
278
+ | Tests or builds incomplete | `/aca-test` Run verification |
277
279
  | Audit passes | Return to the caller and continue with the confirmed arrangements |
278
280
 
279
281
  Audit the affected scope again after the issues are corrected