anyone-can-architect 0.2.0 → 0.4.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 (146) hide show
  1. package/CONTEXT.md +2 -2
  2. package/README.md +6 -4
  3. package/README.zh-CN.md +4 -2
  4. package/SSOT.md +5 -0
  5. package/VERSION +1 -1
  6. package/axioms/README.md +1 -1
  7. package/axioms/writing.md +3 -1
  8. package/dist/antigravity/aca/SKILL.md +3 -2
  9. package/dist/antigravity/aca-design/SKILL.md +12 -6
  10. package/dist/antigravity/aca-implement/SKILL.md +102 -114
  11. package/dist/antigravity/aca-release/SKILL.md +13 -20
  12. package/dist/antigravity/aca-repo-audit/SKILL.md +13 -9
  13. package/dist/antigravity/aca-review/SKILL.md +146 -182
  14. package/dist/antigravity/aca-test/SKILL.md +112 -0
  15. package/dist/antigravity/aca-walkthrough/SKILL.md +18 -14
  16. package/dist/antigravity-cli/aca/SKILL.md +3 -2
  17. package/dist/antigravity-cli/aca-design/SKILL.md +12 -6
  18. package/dist/antigravity-cli/aca-implement/SKILL.md +102 -114
  19. package/dist/antigravity-cli/aca-release/SKILL.md +13 -20
  20. package/dist/antigravity-cli/aca-repo-audit/SKILL.md +13 -9
  21. package/dist/antigravity-cli/aca-review/SKILL.md +146 -182
  22. package/dist/antigravity-cli/aca-test/SKILL.md +112 -0
  23. package/dist/antigravity-cli/aca-walkthrough/SKILL.md +18 -14
  24. package/dist/codex/aca/SKILL.md +3 -2
  25. package/dist/codex/aca-design/SKILL.md +12 -6
  26. package/dist/codex/aca-implement/SKILL.md +102 -114
  27. package/dist/codex/aca-release/SKILL.md +13 -20
  28. package/dist/codex/aca-repo-audit/SKILL.md +13 -9
  29. package/dist/codex/aca-review/SKILL.md +146 -182
  30. package/dist/codex/aca-test/SKILL.md +112 -0
  31. package/dist/codex/aca-walkthrough/SKILL.md +18 -14
  32. package/dist/cursor/aca/SKILL.md +3 -2
  33. package/dist/cursor/aca-design/SKILL.md +12 -6
  34. package/dist/cursor/aca-implement/SKILL.md +102 -114
  35. package/dist/cursor/aca-release/SKILL.md +13 -20
  36. package/dist/cursor/aca-repo-audit/SKILL.md +13 -9
  37. package/dist/cursor/aca-review/SKILL.md +146 -182
  38. package/dist/cursor/aca-test/SKILL.md +113 -0
  39. package/dist/cursor/aca-walkthrough/SKILL.md +18 -14
  40. package/dist/grok/aca/SKILL.md +3 -2
  41. package/dist/grok/aca-design/SKILL.md +12 -6
  42. package/dist/grok/aca-implement/SKILL.md +102 -114
  43. package/dist/grok/aca-release/SKILL.md +13 -20
  44. package/dist/grok/aca-repo-audit/SKILL.md +13 -9
  45. package/dist/grok/aca-review/SKILL.md +146 -182
  46. package/dist/grok/aca-test/SKILL.md +112 -0
  47. package/dist/grok/aca-walkthrough/SKILL.md +18 -14
  48. package/doc-design/document-sets/module.md +6 -2
  49. package/doc-design/document-sets/ops-guide.md +25 -27
  50. package/doc-design/documents/class-design.md +7 -4
  51. package/doc-design/documents/instrumentation.md +3 -2
  52. package/doc-design/documents/integration-guide.md +7 -5
  53. package/doc-design/documents/interaction.md +516 -143
  54. package/doc-design/documents/interface.md +12 -7
  55. package/doc-design/documents/release.md +137 -105
  56. package/doc-design/patterns/interface.md +135 -14
  57. package/doc-design/repo-types/client-sdk.md +3 -3
  58. package/doc-design/repo-types/web-app.md +11 -5
  59. package/meta-skills/aca/SKILL.md +3 -2
  60. package/meta-skills/aca/SKILL.md.tmpl +3 -2
  61. package/package.json +1 -1
  62. package/skills/aca-design/SKILL.md +12 -6
  63. package/skills/aca-design/SKILL.md.tmpl +9 -5
  64. package/skills/aca-implement/SKILL.md +102 -114
  65. package/skills/aca-implement/SKILL.md.tmpl +103 -115
  66. package/skills/aca-release/SKILL.md +13 -20
  67. package/skills/aca-release/SKILL.md.tmpl +13 -20
  68. package/skills/aca-repo-audit/SKILL.md +13 -9
  69. package/skills/aca-repo-audit/SKILL.md.tmpl +10 -8
  70. package/skills/aca-review/SKILL.md +146 -182
  71. package/skills/aca-review/SKILL.md.tmpl +143 -181
  72. package/skills/aca-test/SKILL.md +112 -0
  73. package/skills/aca-test/SKILL.md.tmpl +110 -0
  74. package/skills/aca-walkthrough/SKILL.md +18 -14
  75. package/skills/aca-walkthrough/SKILL.md.tmpl +15 -13
  76. package/zh-CN/CONTEXT.md +2 -2
  77. package/zh-CN/SSOT.md +5 -0
  78. package/zh-CN/axioms/README.md +1 -1
  79. package/zh-CN/axioms/writing.md +3 -1
  80. package/zh-CN/dist/antigravity/aca/SKILL.md +3 -2
  81. package/zh-CN/dist/antigravity/aca-design/SKILL.md +12 -6
  82. package/zh-CN/dist/antigravity/aca-implement/SKILL.md +102 -114
  83. package/zh-CN/dist/antigravity/aca-release/SKILL.md +71 -69
  84. package/zh-CN/dist/antigravity/aca-repo-audit/SKILL.md +39 -29
  85. package/zh-CN/dist/antigravity/aca-review/SKILL.md +143 -179
  86. package/zh-CN/dist/antigravity/aca-test/SKILL.md +112 -0
  87. package/zh-CN/dist/antigravity/aca-walkthrough/SKILL.md +18 -14
  88. package/zh-CN/dist/antigravity-cli/aca/SKILL.md +3 -2
  89. package/zh-CN/dist/antigravity-cli/aca-design/SKILL.md +12 -6
  90. package/zh-CN/dist/antigravity-cli/aca-implement/SKILL.md +102 -114
  91. package/zh-CN/dist/antigravity-cli/aca-release/SKILL.md +71 -69
  92. package/zh-CN/dist/antigravity-cli/aca-repo-audit/SKILL.md +39 -29
  93. package/zh-CN/dist/antigravity-cli/aca-review/SKILL.md +143 -179
  94. package/zh-CN/dist/antigravity-cli/aca-test/SKILL.md +112 -0
  95. package/zh-CN/dist/antigravity-cli/aca-walkthrough/SKILL.md +18 -14
  96. package/zh-CN/dist/codex/aca/SKILL.md +3 -2
  97. package/zh-CN/dist/codex/aca-design/SKILL.md +12 -6
  98. package/zh-CN/dist/codex/aca-implement/SKILL.md +102 -114
  99. package/zh-CN/dist/codex/aca-release/SKILL.md +71 -69
  100. package/zh-CN/dist/codex/aca-repo-audit/SKILL.md +39 -29
  101. package/zh-CN/dist/codex/aca-review/SKILL.md +143 -179
  102. package/zh-CN/dist/codex/aca-test/SKILL.md +112 -0
  103. package/zh-CN/dist/codex/aca-walkthrough/SKILL.md +18 -14
  104. package/zh-CN/dist/cursor/aca/SKILL.md +3 -2
  105. package/zh-CN/dist/cursor/aca-design/SKILL.md +12 -6
  106. package/zh-CN/dist/cursor/aca-implement/SKILL.md +102 -114
  107. package/zh-CN/dist/cursor/aca-release/SKILL.md +71 -69
  108. package/zh-CN/dist/cursor/aca-repo-audit/SKILL.md +39 -29
  109. package/zh-CN/dist/cursor/aca-review/SKILL.md +143 -179
  110. package/zh-CN/dist/cursor/aca-test/SKILL.md +113 -0
  111. package/zh-CN/dist/cursor/aca-walkthrough/SKILL.md +18 -14
  112. package/zh-CN/dist/grok/aca/SKILL.md +3 -2
  113. package/zh-CN/dist/grok/aca-design/SKILL.md +12 -6
  114. package/zh-CN/dist/grok/aca-implement/SKILL.md +102 -114
  115. package/zh-CN/dist/grok/aca-release/SKILL.md +71 -69
  116. package/zh-CN/dist/grok/aca-repo-audit/SKILL.md +39 -29
  117. package/zh-CN/dist/grok/aca-review/SKILL.md +143 -179
  118. package/zh-CN/dist/grok/aca-test/SKILL.md +112 -0
  119. package/zh-CN/dist/grok/aca-walkthrough/SKILL.md +18 -14
  120. package/zh-CN/doc-design/document-sets/module.md +6 -2
  121. package/zh-CN/doc-design/document-sets/ops-guide.md +25 -27
  122. package/zh-CN/doc-design/documents/class-design.md +7 -4
  123. package/zh-CN/doc-design/documents/instrumentation.md +3 -2
  124. package/zh-CN/doc-design/documents/integration-guide.md +7 -5
  125. package/zh-CN/doc-design/documents/interaction.md +516 -143
  126. package/zh-CN/doc-design/documents/interface.md +12 -7
  127. package/zh-CN/doc-design/documents/release.md +138 -106
  128. package/zh-CN/doc-design/patterns/interface.md +135 -14
  129. package/zh-CN/doc-design/repo-types/client-sdk.md +3 -3
  130. package/zh-CN/doc-design/repo-types/web-app.md +11 -5
  131. package/zh-CN/meta-skills/aca/SKILL.md +3 -2
  132. package/zh-CN/meta-skills/aca/SKILL.md.tmpl +3 -2
  133. package/zh-CN/skills/aca-design/SKILL.md +12 -6
  134. package/zh-CN/skills/aca-design/SKILL.md.tmpl +9 -5
  135. package/zh-CN/skills/aca-implement/SKILL.md +102 -114
  136. package/zh-CN/skills/aca-implement/SKILL.md.tmpl +102 -114
  137. package/zh-CN/skills/aca-release/SKILL.md +71 -69
  138. package/zh-CN/skills/aca-release/SKILL.md.tmpl +71 -69
  139. package/zh-CN/skills/aca-repo-audit/SKILL.md +39 -29
  140. package/zh-CN/skills/aca-repo-audit/SKILL.md.tmpl +36 -28
  141. package/zh-CN/skills/aca-review/SKILL.md +143 -179
  142. package/zh-CN/skills/aca-review/SKILL.md.tmpl +140 -178
  143. package/zh-CN/skills/aca-test/SKILL.md +112 -0
  144. package/zh-CN/skills/aca-test/SKILL.md.tmpl +110 -0
  145. package/zh-CN/skills/aca-walkthrough/SKILL.md +18 -14
  146. package/zh-CN/skills/aca-walkthrough/SKILL.md.tmpl +15 -13
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: aca-test
3
+ description: Select and run minimal tests based on the current implementation or change blast radius, testing only without modifying files
4
+ ---
5
+ <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
6
+ <!-- Regenerate: bash scripts/build-skills.sh --host codex -->
7
+
8
+ # aca-test
9
+
10
+ Select and run the corresponding minimal tests based on the current implementation scope or the design boundary crossed by changes
11
+ Run tests and verification only, without modifying design docs, production code, or test code
12
+
13
+ ## 1 Principles
14
+
15
+ 1. **Blast-Radius Scoping**
16
+ Determine the minimal test scope from the contract boundaries and dependencies of the current implementation or changes
17
+ 2. **Test Only, No Edits**
18
+ Run tests and verify results only, without modifying design docs, production code, or test code
19
+ 3. **Evidence Binding**
20
+ Bind test results to the commit under test, test scope, and commands actually executed for direct reuse by downstream stages
21
+
22
+ ## 2 Workflow
23
+
24
+ ```mermaid
25
+ flowchart TD
26
+ Start([Receive test request]) --> Scope["Determine test scope · §3"]
27
+ Scope --> Reuse{"Result reuse conditions met? · §3"}
28
+ Reuse -- Yes --> Report(["Output and next step · §5"])
29
+ Reuse -- No --> Ready{"Test environment and prerequisites ready? · §3"}
30
+ Ready -- No --> Report
31
+ Ready -- Yes --> Run["Run tests and recheck anomalies · §4"]
32
+ Run --> Report
33
+ ```
34
+
35
+ ## 3 Determine Test Scope
36
+
37
+ 1. **Identify the subject under test and scope of changes**
38
+ - Developer or upstream caller has specified the scope to test: use that scope directly
39
+ - Scope not specified: read current workspace changes and recent commits, and locate the modules, commands, or events to which the changes belong against the design docs
40
+ - Record the commit under test and any uncommitted changes included in verification
41
+ 2. **Select the minimal test set by the design boundary crossed by changes**
42
+ - Only internal implementation of a module, command, or event is added or modified, and the module `interface`, command routing, and event dispatch contracts are unchanged: select only the unit's own white-box and black-box tests
43
+ - Module `interface`, command routing, event dispatch, or cross-unit collaboration is modified: select this unit's tests, tests of modules or commands and events that call this contract, and black-box tests in project-level `testcase` whose design basis links to this unit
44
+ - Shared foundation across modules such as common infrastructure, global configuration, data migration, build, or deployment is modified: select all affected tests and the corresponding environment verification
45
+ - When the repository `release` doc specifies additional verification for the current scope, include it as well
46
+ 3. **Check reuse conditions and execution environment**
47
+ - Existing test results cover the selected scope and the content under test, test code, fixtures, configuration, and dependency environment have not changed: reuse the results directly, record the basis, and proceed to [Output and Next Step](#5-output-and-next-step)
48
+ - Test execution required: check the readiness of the required environment, fixtures, and real dependencies or test doubles according to the test design
49
+ - Environment or dependencies not ready: record the missing conditions and report incomplete according to [Output and Next Step](#5-output-and-next-step)
50
+
51
+ ## 4 Run and Recheck
52
+
53
+ 1. **Control concurrency and resource isolation**
54
+ - Set up fixtures and an isolated environment according to the test design
55
+ - When shared or heavy resources such as containers, databases, real platforms, or model evaluations are involved, limit concurrency and isolate resources to prevent timeouts caused by parallel contention
56
+ 2. **Run the selected tests**
57
+ - Run the test cases selected in [Determine Test Scope](#3-determine-test-scope) along with required builds or static checks
58
+ - After execution completes, clean up test data and temporary resources created in this run according to the fixture rules
59
+ - Do not modify design docs, production code, test code, or commit history during verification
60
+ 3. **Recheck failures and distinguish causes**
61
+ - All pass: record the executed commands, number of passing test cases, and elapsed time
62
+ - Failures occur: against the confirmed design, check the failure logs, test cases, fixtures, and implementation
63
+ - Suspected timeout caused by high host load or resource contention: rerun the failed items individually under low-concurrency isolated conditions to verify
64
+ - Individual rerun passes consistently and is confirmed to be caused by environment load: record the initial anomaly, rerun command, and passing result
65
+ - The implementation deviates from the design: report an implementation issue, and identify the failing test cases and the corresponding implementation locations
66
+ - Test expectations are outdated or the tests or fixtures are wrong: report a test issue, and identify the corresponding design basis and error locations
67
+ - The design is missing or contracts conflict: mark the corresponding verification as incomplete, and hand it to `/aca-specify` or `/aca-design`
68
+ - Environment failure or diagnostics cannot be verified: mark the corresponding verification as incomplete and record the reason
69
+
70
+ ## 5 Output and Next Step
71
+
72
+ ### 5.1 Verdict
73
+
74
+ | Verdict | Criteria |
75
+ | --- | --- |
76
+ | Pass | All tests and required checks in the selected scope pass (including reused results or timeout rechecks), with no failing or incomplete items |
77
+ | Fail | Confirmed code or test failures exist |
78
+ | Incomplete | The design is missing, contracts conflict, the environment is missing, execution is impossible, or diagnostics cannot be verified, and no confirmed failures exist |
79
+
80
+ When both confirmed failures and incomplete items exist, the verdict is fail, and the incomplete items must be listed
81
+
82
+ ### 5.2 Test Report
83
+
84
+ Output the test results in the current conversation using the following template
85
+
86
+ ```markdown
87
+ # 🧪 Test: <pass / fail / incomplete>
88
+
89
+ | Item | Result |
90
+ | --- | --- |
91
+ | Scope | <unit or change scope under test> |
92
+ | Baseline | <commit under test and uncommitted changes included in verification> |
93
+ | Selection basis | <upstream scope / intra-unit tests with unchanged contract / dependency-chain tests for contract change / full tests for global foundation> |
94
+ | Commands | <actual test and check commands run, or basis for reuse> |
95
+ | Result | <pass count, fail count, and elapsed time> |
96
+ | Anomaly recheck | <individual rerun verification result for timeouts / none> |
97
+ | Failures | <failing test cases, causes, and corresponding locations / none> |
98
+ | Incomplete | <unexecuted verification, reasons, and conditions for resuming / none> |
99
+ | Next step | <one immediately actionable step> |
100
+ ```
101
+
102
+ ### 5.3 Follow-Up Actions
103
+
104
+ Select the next step based on the test verdict and progress in the current round
105
+
106
+ | Verdict | Situation | Next step |
107
+ | --- | --- | --- |
108
+ | Incomplete | Test environment, fixtures, or external dependencies are missing | Supply the environment conditions and verify again through `/aca-test` |
109
+ | Fail | Code or test implementation issues | Fix through `/aca-implement` (verify again directly through `/aca-test` when the code structure is unchanged, or review through `/aca-review` before running `/aca-test` when the code structure changes) |
110
+ | Incomplete | Missing design or contract conflict | Revise the design through `/aca-specify` or `/aca-design` |
111
+ | Pass | Subsequent implementation tasks remain in this round | Continue implementing the next scope through `/aca-implement` |
112
+ | Pass | All implementation scopes in this round have passed verification | Proceed to `/aca-release` according to the version progression plan or conclude the current task |
@@ -33,7 +33,7 @@ Confirm design decisions unit by unit and correct identified issues on the spot
33
33
  - Present the whole first, then expand on the details, see the [Pyramid Principle](~/.codex/skills/aca/SSOT.md#2-structure)
34
34
  - When stating a judgment, give the conclusion first, then the supporting evidence
35
35
  - Merge heading levels that add no information
36
- - Use numbered lists for items with a sequence or priority, and indent multiple attributes under each item
36
+ - 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
37
37
  - Use tables only for content with multiple rows of the same structure, more than two attributes per row, and no sequence between rows
38
38
  - Write list items as complete sentences
39
39
  - When an item has branches, indent the branches under that item
@@ -52,6 +52,8 @@ Confirm design decisions unit by unit and correct identified issues on the spot
52
52
  - Remove content that adds no information and does not help understanding
53
53
  - Write one sentence per line, with only one fact per sentence
54
54
  - State actions directly in operational steps
55
+ - If a specific practice fully expresses a constraint, write the practice directly
56
+ - Keep prohibitions that no specific practice can fully express
55
57
  - Write sequential actions as separate items
56
58
  - Make the actor, the object of the action, and the referents clear
57
59
  - Do not repeat actors, objects of actions, or referents already clear from context
@@ -98,7 +100,7 @@ flowchart TD
98
100
  If it still cannot be located, ask the developer to specify the doc location
99
101
  Read `~/.codex/skills/aca/doc-design/repo-types/{repo-type}.md`
100
102
  Read `CONTEXT.md` and the design docs in the current scope
101
- Read the corresponding document set, doc design, and patterns actually used
103
+ Read the corresponding document set and doc design, and read relevant patterns as needed
102
104
  4. Arrange the walkthrough order
103
105
  Follow the governance order in the repo-type spec
104
106
  Within a document set, follow the order specified by that document set
@@ -152,14 +154,15 @@ flowchart TD
152
154
 
153
155
  ### 4.2 Discuss and Cross-Check
154
156
 
155
- 1. First explain the problems and requirements the current unit must address in business language
156
- Then explain how the design meets these requirements
157
- When business concepts are involved, link to the corresponding entries in the project's `CONTEXT.md`
158
- Explain each concept's meaning and role in the current design
159
- 2. Cross-check the design of the current unit
160
- Cross-check each applicable checklist item in the document set, doc design, and patterns actually used
161
- When walking through the overall doc structure, discuss chapter and section divisions, content placement, and presentation order against the corresponding Doc Design
162
- Identify content that needs to be merged, split, or reordered
157
+ 1. **Walk through the current unit in business language**
158
+ - First explain the problems and requirements the current unit must address, then explain how the design meets these requirements
159
+ - Business concepts are involved: link to the corresponding entries in the project's `CONTEXT.md`, and explain each concept's meaning and role in the current design
160
+ 2. **Cross-check organization and expression**
161
+ - Walking through the overall doc structure: explain chapter and section divisions, content placement, and presentation order against the corresponding doc design, and propose content to merge, split, or reorder
162
+ - Walking through a Chapter or Section: against the expression requirements of the corresponding doc design and the applicable scenarios in `~/.codex/skills/aca/doc-design/patterns/`, tell the developer whether the current form of expression fits the content, without keeping existing code, tables, or diagrams by default
163
+ - The current form of expression does not fit: first propose a replacement, split, or combined form of expression to the developer and read the selected pattern, without patching the original expression locally
164
+ 3. **Cross-check each checklist item**
165
+ - Cross-check each checklist item in the document set, doc design, and selected patterns that applies to the current unit
163
166
 
164
167
  | Check item | Focus |
165
168
  | --- | --- |
@@ -167,14 +170,14 @@ flowchart TD
167
170
  | Completeness | Omissions in responsibilities, behavior, boundaries, and exception handling |
168
171
  | Ambiguity and implementation uniqueness | Multiple reasonable interpretations, implementations that match the description but behave differently, and unresolved design decisions |
169
172
  | Redundancy | Duplicate maintenance and content that adds no information |
170
- | Expression | Writing axiom, corresponding doc design, and terminology consistency |
173
+ | Expression | Choice and fit of the form of expression, writing axiom, corresponding doc design, and terminology consistency |
171
174
 
172
175
  ### 4.3 Confirm, Revise, and Check
173
176
 
174
- 1. Ask the developer to confirm the current unit's design decisions
177
+ 1. Ask the developer to confirm the current unit's design decisions and changes to the form of expression
175
178
  If the developer does not understand or disagrees, clarify the meaning and rationale
176
179
  If not yet confirmed, continue discussing the current unit according to [Discuss and Cross-Check](#42-discuss-and-cross-check)
177
- 2. When changes are confirmed, revise on the spot according to the corresponding doc design
180
+ 2. When changes are confirmed, revise on the spot according to the corresponding doc design and selected patterns
178
181
  When chapters or sections change, also update affected references and related designs
179
182
  3. After revision, rerun affected checklist items and mechanical checks
180
183
  Report the corrections and check results
@@ -243,4 +246,5 @@ Choose one immediately executable action based on completion status and progress
243
246
  | --- | --- | --- |
244
247
  | Incomplete | Units still await a walkthrough or verification conditions are missing | Meet the conditions, then continue this walkthrough through `/aca-walkthrough` |
245
248
  | Incomplete | The design solution cannot be determined this round | Use `/aca-specify` to reason through the solution |
246
- | Complete | The walkthrough of the current scope is complete | Review the design through `/aca-review` according to the confirmed arrangements |
249
+ | Complete | The walkthrough of the current scope is complete, and the design in this round is cross-module | Review the design through `/aca-review` |
250
+ | Complete | The walkthrough of the current scope is complete, and the design in this round is not cross-module | Go directly to the next step (`/aca-implement` when code is needed, `/aca-release` when only design docs change) |
@@ -44,8 +44,9 @@ flowchart TD
44
44
  | `/aca-specify` | Reason through new requirements or improve existing designs, then proceed to Design after confirming the solution |
45
45
  | `/aca-design` | Write and check design docs within the current scope, then determine the next scope or complete the overall closeout |
46
46
  | `/aca-walkthrough` | Walk through design docs in business language, confirm design decisions unit by unit, and correct identified issues on the spot after confirmation |
47
- | `/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 |
48
- | `/aca-implement` | Plan the file structure based on the design, then implement and verify code and tests according to module dependencies |
47
+ | `/aca-review` | Determine the review subject and scope, statically review the design or the overall code structure, without modifying the docs or code under review or running code |
48
+ | `/aca-implement` | Plan the file structure based on the design, then write production code and test code according to module dependencies |
49
+ | `/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 |
49
50
  | `/aca-repo-audit` | Check repository documentation and verify the implementation as needed, with read-only access and no changes |
50
51
  | `/aca-release` | Close out according to the repository release workflow, merge into main, and lock in an annotated Tag |
51
52
  | `/aca-feedback` | Collect deviations from governance rules and submit an Issue after explicit authorization |
@@ -23,7 +23,7 @@ Change only documentation, not code
23
23
  - Present the whole first, then expand on the details, see the [Pyramid Principle](~/.cursor/skills/aca/SSOT.md#2-structure)
24
24
  - When stating a judgment, give the conclusion first, then the supporting evidence
25
25
  - Merge heading levels that add no information
26
- - Use numbered lists for items with a sequence or priority, and indent multiple attributes under each item
26
+ - 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
27
27
  - Use tables only for content with multiple rows of the same structure, more than two attributes per row, and no sequence between rows
28
28
  - Write list items as complete sentences
29
29
  - When an item has branches, indent the branches under that item
@@ -42,6 +42,8 @@ Change only documentation, not code
42
42
  - Remove content that adds no information and does not help understanding
43
43
  - Write one sentence per line, with only one fact per sentence
44
44
  - State actions directly in operational steps
45
+ - If a specific practice fully expresses a constraint, write the practice directly
46
+ - Keep prohibitions that no specific practice can fully express
45
47
  - Write sequential actions as separate items
46
48
  - Make the actor, the object of the action, and the referents clear
47
49
  - Do not repeat actors, objects of actions, or referents already clear from context
@@ -168,11 +170,13 @@ If neither the repo-type spec nor the document set specifies an order, arrange w
168
170
  Keep plain text in headings, code blocks, Mermaid labels, and product copy
169
171
  4. Synchronize affected test designs
170
172
  - Identify affected black-box and white-box test designs based on contracts, flows, and internal mechanisms added, revised, or deleted in this round
173
+ - Against the confirmed design, check the affected existing test code, fixtures, and the behavior they actually verify
171
174
  - Update test designs in sequence according to the corresponding doc designs and [test cases](~/.cursor/skills/aca/doc-design/patterns/testcase.md)
172
175
  1. Update fixtures
173
176
  2. Update test scenarios and their references to design rationale
174
177
  3. Update test cases based on the scenarios
175
178
  Add missing cases, revise changed cases, and delete or replace invalid cases
179
+ - Leave actual changes to test code and fixtures to `/aca-implement`
176
180
  - If only wording is revised and verified behavior has not changed, check that test designs and references remain valid
177
181
  - If solution decisions or as-is evidence required for test design are missing, handle them under §3
178
182
  - If affected docs are outside the current scope, record their locations and the content that needs synchronization
@@ -257,8 +261,10 @@ Perform the following steps after writing and scope checks are complete for all
257
261
  After all applicable checks pass, commit only actual closeout changes, then push to the remote
258
262
  If there are no actual changes, do not create an empty commit, and push existing commits from this round
259
263
  If committing or pushing is not possible, record completed work, incomplete actions, and the resumption point, and report incomplete under §8
260
- 5. Continue to review
261
- After all closeout requirements are complete, the next step is `/aca-review`
264
+ 5. Determine whether design review is needed and continue
265
+ After all closeout requirements are complete, check whether the design in this round is cross-module (involving multiple modules, the project-level architecture, the module division, or cross-module interfaces and collaboration contracts)
266
+ - Cross-module: the next step is `/aca-review` for a design review
267
+ - Not cross-module (only changes inside a single module or local design changes): skip design review and go directly to the next step (`/aca-implement` when this round needs code, or `/aca-release` according to the confirmed version progression plan when this round changes only design docs)
262
268
 
263
269
  ## 8 Output
264
270
 
@@ -276,16 +282,16 @@ Perform the following steps after writing and scope checks are complete for all
276
282
 
277
283
  | Item | Result |
278
284
  | --- | --- |
279
- | Scope | <current scope and progress in this round> |
285
+ | Scope | <current scope, progress in this round, and whether it is cross-module> |
280
286
  | Inputs | <solution or as-is state and actual sources> |
281
287
  | Docs | <files added, revised, moved, or deleted / none> |
282
288
  | Checks | <actual results, basis for reuse, and unverified items> |
283
289
  | Commits | <commit and push results / not committed> |
284
290
  | Pending | <incomplete items, reasons, and resumption point / none> |
285
- | Next step | <target skill and pending scope / fill corresponding gaps / none> |
291
+ | Next step | </aca-review after cross-module closeout, /aca-implement or /aca-release directly after non-cross-module closeout, or fill corresponding gaps> |
286
292
  ```
287
293
 
288
294
  3. Determine the next step
289
- After this round is fully closed out, the next step is `/aca-review`
295
+ After this round is fully closed out, continue to `/aca-review`, `/aca-implement`, or `/aca-release` according to whether the design is cross-module, as in step 5 of 7.2
290
296
  If the current scope is complete but another scope remains, determine the next path under 7.1
291
297
  If work is incomplete, fill the corresponding gaps, and do not judge Design complete solely because files have been written
@@ -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
  disable-model-invocation: true
14
13
  ---
@@ -17,22 +16,21 @@ disable-model-invocation: true
17
16
 
18
17
  # aca-implement
19
18
 
20
- Implement code and tests according to the design docs for the current scope
21
- Change only code and tests, not design docs
19
+ Write production code and test code according to the design docs for the current scope
20
+ Change only code and tests, without modifying design docs or running tests
22
21
 
23
22
  ## 1 Principles
24
23
 
25
24
  1. **Goal-driven**
26
25
  Use confirmed delivery goals to determine the implementation scope and task priorities
27
- Use completion criteria and their verification evidence to determine whether the goals are met
26
+ Judge implementation completion by coverage of the design requirements
28
27
  2. **Dependency-driven parallelism**
29
28
  Use dependencies to determine the implementation order
30
- Run tasks in parallel wherever possible when their dependencies are satisfied and they have no shared resource conflicts
31
- 3. **Test-driven**
32
- Use external contracts and internal design to determine test expectations
33
- Drive implementation with tests and use both black-box and white-box tests to verify design requirements
34
- 4. **Scope constraints**
35
- Keep implementation and refactoring within the confirmed design scope
29
+ Advance tasks in parallel wherever possible when their dependencies are satisfied and they have no file conflicts
30
+ 3. **Code and tests in sync**
31
+ Write production code along with black-box and white-box test code in sync based on external contracts, internal design, and test design
32
+ 4. **Write only, no test execution**
33
+ Write or modify code and tests only during implementation, and hand off test execution to `/aca-test`
36
34
 
37
35
  ## 2 Workflow
38
36
 
@@ -42,14 +40,9 @@ flowchart TD
42
40
  Plan --> Prepare["Implementation Preparation · §4"]
43
41
  Prepare --> Implement["Implementation and Integration · §5"]
44
42
  Implement -- All remaining tasks are blocked and no tasks are in progress --> Report
45
- Implement --> Modules{All module tasks are complete and integrated}
43
+ Implement --> Modules{All module tasks for the current scope are complete and integrated}
46
44
  Modules -- No --> Implement
47
- Modules -- Yes --> Verify["Overall Verification · §6"]
48
- Verify --> Complete{All completion criteria for the current scope are verified as satisfied}
49
- Complete -- No, the design is clear and fixes are possible within the current scope --> Implement
50
- Complete -- No, remaining verification can continue --> Verify
51
- Complete -- No, remaining fixes or verification are blocked --> Report
52
- Complete -- Yes --> Report(["Output and Next Step · §7"])
45
+ Modules -- Yes --> Report(["Output and Next Step · §6"])
53
46
  ```
54
47
 
55
48
  ## 3 Goals and Task Orchestration
@@ -58,49 +51,55 @@ Read the design docs, project configuration, existing code, and tests for the cu
58
51
  Check the workspace state and recent commits to verify current implementation progress and existing changes
59
52
  Preserve existing changes outside the scope of this implementation
60
53
 
61
- 1. List deliverables and their completion criteria based on the confirmed design and implementation scope
62
- 2. Compare delivery requirements with existing code and tests, and list what to reuse, modify, add, or remove
63
- 3. List the tests to run for this implementation based on the black-box and white-box test designs
64
- Specify the environments and fixtures these tests require
65
- 4. List the modules involved in this implementation and their dependencies based on the design
66
- 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
67
- 5. Specify whether each test uses real dependencies or test doubles based on the test design
68
- Check the readiness of required dependencies
69
- 6. Plan the source code and test file structure based on module boundaries, internal design, and repository conventions
70
- List all source code and test directories and files within the current implementation scope
71
- 7. Specify each file's responsibilities, owning module, and dependencies
72
- Check whether each file has a single responsibility and whether responsibilities overlap
73
- Adjust file boundaries when responsibilities are not singular or overlap
74
- 8. Split implementation preparation, module implementation, integration, and overall verification into tasks
75
- Use modules in the design as the smallest units of implementation, verification, and commits
76
- 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
77
- 9. Specify each task's dependencies, owner, and completion criteria
78
- 10. Use the goal or task management capabilities provided by the current AI Agent environment to maintain the overall goal and task progress
79
- Record each task's status: pending implementation, in progress, complete, or blocked
80
- Record verification evidence and the next action for each task
81
- When resuming a task, check task records, the workspace, and recent commits
82
- Update task status based on the findings and continue implementation
54
+ 1. **Specify deliverables and completion criteria**
55
+ - List deliverables and their completion criteria based on the confirmed design and implementation scope
56
+ 2. **Compile the code and test change list**
57
+ - Compare delivery requirements with existing code and tests, and list what to reuse, modify, add, or remove
58
+ - Correct or remove outdated or wrong test cases and fixtures according to the confirmed design
59
+ - When changing test expectations, base the change on the confirmed design or a verified test error
60
+ 3. **Orchestrate the corresponding test scope**
61
+ - List the test cases and fixtures to write or update in this run based on the black-box and white-box test designs
62
+ - Record the units under test and test case scope corresponding to the current implementation scope for direct execution by `/aca-test`
63
+ 4. **Identify modules and dependencies**
64
+ - 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. **Plan the source code and test file structure**
67
+ - Plan the source code and test file structure based on module boundaries, internal design, and repository conventions
68
+ - List all source code and test directories and files within the current implementation scope
69
+ 6. **Check file responsibilities and boundaries**
70
+ - Specify each file's responsibilities, owning module, and dependencies
71
+ - Check whether each file has a single responsibility and whether responsibilities overlap
72
+ - Responsibilities are not singular or overlap: adjust file boundaries
73
+ 7. **Split module implementation and integration tasks**
74
+ - Split implementation preparation, module implementation, and integration into tasks
75
+ - Use modules in the design as the smallest units of implementation and commits
76
+ - 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
77
+ - Specify each task's dependencies, owner, and completion criteria
78
+ 8. **Maintain task status and progress**
79
+ - Use the goal or task management capabilities provided by the current AI Agent environment to maintain the overall goal and task progress
80
+ - Record each task's status: pending implementation, in progress, complete, or blocked
81
+ - When resuming a task, check task records, the workspace, and recent commits, update task status, and continue implementation
83
82
 
84
83
  ## 4 Implementation Preparation
85
84
 
86
- 1. Add all missing source code and test directories and file placeholders for the current scope according to the plan
87
- Reuse existing files directly and create new files as empty files
88
- Delete files explicitly marked for removal in the plan only after verifying that they no longer serve a valid responsibility
89
- When a file's purpose, dependencies, or deletion scope cannot be confirmed, retain it and verify with the developer
90
- Start module implementation only after all file placeholders are in place
91
- 2. The main agent assigns separate workspaces to sub-agents
92
- Allocate test resources according to the test design to ensure parallel tasks do not interfere with each other
93
- Synchronize the prepared file structure to each workspace
94
- 3. Provide each sub-agent with the following task context
85
+ 1. **Create directories and file placeholders**
86
+ - Add all missing source code and test directories and file placeholders for the current scope according to the plan
87
+ - Reuse existing files directly and create new files as empty files
88
+ - Delete files explicitly marked for removal in the plan only after verifying that they no longer serve a valid responsibility
89
+ - File purpose, dependencies, or deletion scope cannot be confirmed: retain the file and verify with the developer
90
+ - Start module implementation only after all file placeholders are in place
91
+ 2. **Assign separate workspaces**
92
+ - The main agent assigns separate workspaces to sub-agents
93
+ - Synchronize the prepared file structure to each workspace
94
+ 3. **Dispatch task context to sub-agents**
95
95
  - The overall implementation goal, the functionality to complete for the current module, and the scope of changes
96
96
  - Links to relevant chapters covering the structural basis, interfaces, internal design, and test cases for the current module and its dependencies
97
97
  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
98
98
  - The readiness of each dependency and the arrangements for real dependencies or test doubles in tests
99
99
  - The workspace path, starting commit, files permitted for modification, and applicable repository conventions
100
- - Test environments and fixtures, verification commands, and module completion criteria
101
- - Change only code and tests
100
+ - Modify only production code and test code, without modifying design docs or running tests
102
101
  - Follow the [Exception Handling](#52-exception-handling) requirements
103
- - Return changed files, commit records, verification commands and results, unverified items, and reasons for blockers
102
+ - Return changed files, commit records, corresponding test scope, and reasons for blockers
104
103
 
105
104
  When files owned by other tasks or shared files are involved, first ask the main agent to coordinate
106
105
 
@@ -108,64 +107,53 @@ Preserve existing changes outside the scope of this implementation
108
107
 
109
108
  ### 5.1 Implementation Loop
110
109
 
111
- 1. The main agent selects module tasks whose dependencies are satisfied
112
- Assign tasks that can run in parallel to sub-agents
113
- 2. Implement and verify each module according to the test design
114
- 1. Prepare and run tests
115
- Reuse, write, or update black-box and white-box tests for the module's current scope according to the design
116
- When new or changed design requirements are not yet implemented, confirm that the corresponding tests fail
117
- For refactoring that preserves behavior, first run the corresponding tests to establish a verification baseline
118
- 2. Complete and verify changes within the module's current scope according to the design
119
- Follow repository conventions for implementation details not specified by the design
120
- When the repository has no corresponding conventions, use the simplest implementation that meets the design
121
- When the design includes a Lark (Feishu) card mockup, implement it according to [Lark Card Mapping](~/.cursor/skills/aca/skills/references/lark-card-mapping.md)
122
- Run module tests and confirm that all pass
123
- 3. Refactor as needed and verify again
124
- After refactoring, rerun module tests and confirm that all pass
125
- When an unexpected test failure occurs and the design is clear, fix the code and rerun the affected tests
126
- 3. Check black-box and white-box test results and other completion criteria for the module's current scope
127
- Once all criteria are satisfied, stage and commit only the current task's changes
128
- 4. The main agent checks module commits and verification evidence
129
- Integrate the module's commits after confirming that it meets the completion criteria
130
- Run tests for affected modules and integration tests between modules on the integrated code
131
- 5. The main agent updates task status, verification evidence, and dependency readiness
132
- Record the reasons for blocked tasks and the conditions for resuming them
133
- Synchronize integrated dependency commits that have passed verification to module workspaces that require real dependencies
134
- If tasks remain that can be implemented, return to step 1
135
- If no tasks can be assigned and tasks are still in progress, wait for execution results
136
- After all module tasks are complete and integrated, proceed to [Overall Verification](#6-overall-verification)
137
- If all remaining tasks are blocked and no tasks are in progress, report the incomplete status according to [Output](#7-output)
110
+ 1. **Dispatch parallelizable module tasks**
111
+ - The main agent selects module tasks whose dependencies are satisfied and assigns tasks that can run in parallel to sub-agents
112
+ 2. **Write module production code and test code**
113
+ - Reuse, write, or update black-box and white-box test code and fixtures for the module's current scope according to the design
114
+ - Complete production code changes within the module's current scope according to the design
115
+ - 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
116
+ - When the design includes a Lark (Feishu) card mockup, implement it according to [Lark Card Mapping](~/.cursor/skills/aca/skills/references/lark-card-mapping.md)
117
+ - Organize code structure as needed to keep responsibilities singular and boundaries clear
118
+ 3. **Check module completion criteria and commit**
119
+ - 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
120
+ - Stage and commit only the current task's changes
121
+ 4. **Integrate module commits**
122
+ - The main agent checks the file scope and completion status of module commits
123
+ - Integrate the module's commits after confirming that it meets the completion criteria
124
+ 5. **Update progress and advance**
125
+ - The main agent updates task status, implemented module scope, and dependency readiness
126
+ - Record the reasons for blocked tasks and the conditions for resuming them
127
+ - Synchronize integrated dependency commits to downstream module workspaces
128
+ - Tasks remain that can be implemented: return to step 1
129
+ - No tasks can be assigned and tasks are still in progress: wait for execution results
130
+ - All module tasks for the current scope are complete and integrated: proceed to [Output](#6-output)
131
+ - All remaining tasks are blocked and no tasks are in progress: report the incomplete status according to [Output](#6-output)
138
132
 
139
133
  ### 5.2 Exception Handling
140
134
 
141
- 1. When the design is missing, contains conflicts, or cannot be implemented, the agent executing the task pauses affected tasks
142
- Sub-agents report the issue and its scope of impact to the main agent
143
- The main agent verifies the issue and its scope of impact, then reports them to the developer
144
- When the solution needs additions or revisions, recommend using `/aca-specify`
145
- Continue unaffected independent tasks
146
- 2. When issues are found in other repositories, the main agent verifies them and reports the issues and their impact to the developer
147
- Do not modify other repositories without authorization
148
-
149
- ## 6 Overall Verification
150
-
151
- After all module tasks are complete and integrated, the main agent performs overall verification for the current delivery scope
152
- Run module tests, integration tests, system tests, builds, and static checks according to the implementation plan
153
- Execute the test cases specified in the design and verify the runtime results of the subject under test
154
- Passing builds or static checks cannot replace behavioral test results
155
-
156
- 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)
157
- Rerun affected verification after fixes
158
- Check each completion criterion against the overall goal
159
- Update task records with verification results and unverified items
160
-
161
- ## 7 Output
162
-
163
- When all completion criteria for the current scope are verified as satisfied, mark the goal and tasks as complete
164
- If incomplete, report remaining work, reasons for blockers, and actions to resume
165
- After this implementation is complete, use `/aca-review` to review the implementation within this scope
166
- Provide Review with the overall goal, corresponding design, implementation scope, and comparison baseline
167
- Identify the commits and uncommitted changes under review, and provide verification results and evidence
168
- Use the following format for the final report, filling in the title and results according to the actual status
135
+ 1. **Handle missing or conflicting designs**
136
+ - When the design is missing, contains conflicts, or cannot be implemented, the agent executing the task pauses affected tasks
137
+ - Sub-agents report the issue and its scope of impact to the main agent
138
+ - The main agent verifies the issue and its scope of impact, then reports them to the developer
139
+ - When the solution needs additions or revisions, recommend using `/aca-specify`
140
+ - Continue unaffected independent tasks
141
+ 2. **Handle cross-repository issues**
142
+ - When issues are found in other repositories, the main agent verifies them and reports the issues and their impact to the developer
143
+ - Do not modify other repositories without authorization
144
+
145
+ ## 6 Output
146
+
147
+ 1. **Update the task status**
148
+ - All completion criteria for the current scope are satisfied: mark the goal and task status as complete
149
+ - Completion criteria are not satisfied: report remaining work, reasons for blockers, and actions to resume
150
+ 2. **Check for module and code structure changes and determine the next step**
151
+ - Check whether the changes are cross-module or change a module's overall code structure (module structure, overall code distribution, function construction)
152
+ - Cross-module or the module's overall code structure changed: use `/aca-review` to run an implementation review on this scope, then go to `/aca-test` after the review passes
153
+ - Only inside a module, with no change to the module's overall code structure (such as internal module logic, local function implementation, or test details): skip implementation review and go directly to `/aca-test`
154
+ - Provide the following `/aca-review` or `/aca-test` with the overall goal, corresponding design, implementation scope, orchestrated test scope, and comparison baseline, and identify the commits and uncommitted changes in this run
155
+ 3. **Output the implementation report**
156
+ Use the following format for the final report, filling in the title and results according to the actual status
169
157
 
170
158
  ```markdown
171
159
  # 🛠️ Implement: <complete / incomplete>
@@ -174,11 +162,11 @@ Use the following format for the final report, filling in the title and results
174
162
  | --- | --- |
175
163
  | Goal | <overall goal and completion criteria satisfaction> |
176
164
  | Scope | <implementation scope and module progress> |
177
- | Changes | <main implementation changes> |
178
- | Verification | <test execution, build, and static check results> |
179
- | Unverified | <unverified scope / none> |
165
+ | Changes | <main production code and test code changes> |
166
+ | Structural change | <yes (cross-module or module's overall code structure changed) / no (only internal module logic or local changes)> |
167
+ | Test scope | <units under test and test case scope orchestrated for /aca-test> |
180
168
  | Commits | <commit records / uncommitted> |
181
169
  | Blockers | <blockers and reasons / none> |
182
170
  | Recommendations | <extension recommendations / none> |
183
- | Next step | <one immediately actionable step> |
171
+ | Next step | </aca-review when there is a structural change, /aca-test directly when changes are only inside a module with no structural change> |
184
172
  ```