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.
- package/CONTEXT.md +2 -2
- package/README.md +6 -4
- package/README.zh-CN.md +4 -2
- package/SSOT.md +5 -0
- package/VERSION +1 -1
- package/axioms/README.md +1 -1
- package/axioms/writing.md +3 -1
- package/dist/antigravity/aca/SKILL.md +3 -2
- package/dist/antigravity/aca-design/SKILL.md +12 -6
- package/dist/antigravity/aca-implement/SKILL.md +102 -114
- package/dist/antigravity/aca-release/SKILL.md +13 -20
- package/dist/antigravity/aca-repo-audit/SKILL.md +13 -9
- package/dist/antigravity/aca-review/SKILL.md +146 -182
- package/dist/antigravity/aca-test/SKILL.md +112 -0
- package/dist/antigravity/aca-walkthrough/SKILL.md +18 -14
- package/dist/antigravity-cli/aca/SKILL.md +3 -2
- package/dist/antigravity-cli/aca-design/SKILL.md +12 -6
- package/dist/antigravity-cli/aca-implement/SKILL.md +102 -114
- package/dist/antigravity-cli/aca-release/SKILL.md +13 -20
- package/dist/antigravity-cli/aca-repo-audit/SKILL.md +13 -9
- package/dist/antigravity-cli/aca-review/SKILL.md +146 -182
- package/dist/antigravity-cli/aca-test/SKILL.md +112 -0
- package/dist/antigravity-cli/aca-walkthrough/SKILL.md +18 -14
- package/dist/codex/aca/SKILL.md +3 -2
- package/dist/codex/aca-design/SKILL.md +12 -6
- package/dist/codex/aca-implement/SKILL.md +102 -114
- package/dist/codex/aca-release/SKILL.md +13 -20
- package/dist/codex/aca-repo-audit/SKILL.md +13 -9
- package/dist/codex/aca-review/SKILL.md +146 -182
- package/dist/codex/aca-test/SKILL.md +112 -0
- package/dist/codex/aca-walkthrough/SKILL.md +18 -14
- package/dist/cursor/aca/SKILL.md +3 -2
- package/dist/cursor/aca-design/SKILL.md +12 -6
- package/dist/cursor/aca-implement/SKILL.md +102 -114
- package/dist/cursor/aca-release/SKILL.md +13 -20
- package/dist/cursor/aca-repo-audit/SKILL.md +13 -9
- package/dist/cursor/aca-review/SKILL.md +146 -182
- package/dist/cursor/aca-test/SKILL.md +113 -0
- package/dist/cursor/aca-walkthrough/SKILL.md +18 -14
- package/dist/grok/aca/SKILL.md +3 -2
- package/dist/grok/aca-design/SKILL.md +12 -6
- package/dist/grok/aca-implement/SKILL.md +102 -114
- package/dist/grok/aca-release/SKILL.md +13 -20
- package/dist/grok/aca-repo-audit/SKILL.md +13 -9
- package/dist/grok/aca-review/SKILL.md +146 -182
- package/dist/grok/aca-test/SKILL.md +112 -0
- package/dist/grok/aca-walkthrough/SKILL.md +18 -14
- package/doc-design/document-sets/module.md +6 -2
- package/doc-design/document-sets/ops-guide.md +25 -27
- package/doc-design/documents/class-design.md +7 -4
- package/doc-design/documents/instrumentation.md +3 -2
- package/doc-design/documents/integration-guide.md +7 -5
- package/doc-design/documents/interaction.md +516 -143
- package/doc-design/documents/interface.md +12 -7
- package/doc-design/documents/release.md +137 -105
- package/doc-design/patterns/interface.md +135 -14
- package/doc-design/repo-types/client-sdk.md +3 -3
- package/doc-design/repo-types/web-app.md +11 -5
- package/meta-skills/aca/SKILL.md +3 -2
- package/meta-skills/aca/SKILL.md.tmpl +3 -2
- package/package.json +1 -1
- package/skills/aca-design/SKILL.md +12 -6
- package/skills/aca-design/SKILL.md.tmpl +9 -5
- package/skills/aca-implement/SKILL.md +102 -114
- package/skills/aca-implement/SKILL.md.tmpl +103 -115
- package/skills/aca-release/SKILL.md +13 -20
- package/skills/aca-release/SKILL.md.tmpl +13 -20
- package/skills/aca-repo-audit/SKILL.md +13 -9
- package/skills/aca-repo-audit/SKILL.md.tmpl +10 -8
- package/skills/aca-review/SKILL.md +146 -182
- package/skills/aca-review/SKILL.md.tmpl +143 -181
- package/skills/aca-test/SKILL.md +112 -0
- package/skills/aca-test/SKILL.md.tmpl +110 -0
- package/skills/aca-walkthrough/SKILL.md +18 -14
- package/skills/aca-walkthrough/SKILL.md.tmpl +15 -13
- package/zh-CN/CONTEXT.md +2 -2
- package/zh-CN/SSOT.md +5 -0
- package/zh-CN/axioms/README.md +1 -1
- package/zh-CN/axioms/writing.md +3 -1
- package/zh-CN/dist/antigravity/aca/SKILL.md +3 -2
- package/zh-CN/dist/antigravity/aca-design/SKILL.md +12 -6
- package/zh-CN/dist/antigravity/aca-implement/SKILL.md +102 -114
- package/zh-CN/dist/antigravity/aca-release/SKILL.md +71 -69
- package/zh-CN/dist/antigravity/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/dist/antigravity/aca-review/SKILL.md +143 -179
- package/zh-CN/dist/antigravity/aca-test/SKILL.md +112 -0
- package/zh-CN/dist/antigravity/aca-walkthrough/SKILL.md +18 -14
- package/zh-CN/dist/antigravity-cli/aca/SKILL.md +3 -2
- package/zh-CN/dist/antigravity-cli/aca-design/SKILL.md +12 -6
- package/zh-CN/dist/antigravity-cli/aca-implement/SKILL.md +102 -114
- package/zh-CN/dist/antigravity-cli/aca-release/SKILL.md +71 -69
- package/zh-CN/dist/antigravity-cli/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/dist/antigravity-cli/aca-review/SKILL.md +143 -179
- package/zh-CN/dist/antigravity-cli/aca-test/SKILL.md +112 -0
- package/zh-CN/dist/antigravity-cli/aca-walkthrough/SKILL.md +18 -14
- package/zh-CN/dist/codex/aca/SKILL.md +3 -2
- package/zh-CN/dist/codex/aca-design/SKILL.md +12 -6
- package/zh-CN/dist/codex/aca-implement/SKILL.md +102 -114
- package/zh-CN/dist/codex/aca-release/SKILL.md +71 -69
- package/zh-CN/dist/codex/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/dist/codex/aca-review/SKILL.md +143 -179
- package/zh-CN/dist/codex/aca-test/SKILL.md +112 -0
- package/zh-CN/dist/codex/aca-walkthrough/SKILL.md +18 -14
- package/zh-CN/dist/cursor/aca/SKILL.md +3 -2
- package/zh-CN/dist/cursor/aca-design/SKILL.md +12 -6
- package/zh-CN/dist/cursor/aca-implement/SKILL.md +102 -114
- package/zh-CN/dist/cursor/aca-release/SKILL.md +71 -69
- package/zh-CN/dist/cursor/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/dist/cursor/aca-review/SKILL.md +143 -179
- package/zh-CN/dist/cursor/aca-test/SKILL.md +113 -0
- package/zh-CN/dist/cursor/aca-walkthrough/SKILL.md +18 -14
- package/zh-CN/dist/grok/aca/SKILL.md +3 -2
- package/zh-CN/dist/grok/aca-design/SKILL.md +12 -6
- package/zh-CN/dist/grok/aca-implement/SKILL.md +102 -114
- package/zh-CN/dist/grok/aca-release/SKILL.md +71 -69
- package/zh-CN/dist/grok/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/dist/grok/aca-review/SKILL.md +143 -179
- package/zh-CN/dist/grok/aca-test/SKILL.md +112 -0
- package/zh-CN/dist/grok/aca-walkthrough/SKILL.md +18 -14
- package/zh-CN/doc-design/document-sets/module.md +6 -2
- package/zh-CN/doc-design/document-sets/ops-guide.md +25 -27
- package/zh-CN/doc-design/documents/class-design.md +7 -4
- package/zh-CN/doc-design/documents/instrumentation.md +3 -2
- package/zh-CN/doc-design/documents/integration-guide.md +7 -5
- package/zh-CN/doc-design/documents/interaction.md +516 -143
- package/zh-CN/doc-design/documents/interface.md +12 -7
- package/zh-CN/doc-design/documents/release.md +138 -106
- package/zh-CN/doc-design/patterns/interface.md +135 -14
- package/zh-CN/doc-design/repo-types/client-sdk.md +3 -3
- package/zh-CN/doc-design/repo-types/web-app.md +11 -5
- package/zh-CN/meta-skills/aca/SKILL.md +3 -2
- package/zh-CN/meta-skills/aca/SKILL.md.tmpl +3 -2
- package/zh-CN/skills/aca-design/SKILL.md +12 -6
- package/zh-CN/skills/aca-design/SKILL.md.tmpl +9 -5
- package/zh-CN/skills/aca-implement/SKILL.md +102 -114
- package/zh-CN/skills/aca-implement/SKILL.md.tmpl +102 -114
- package/zh-CN/skills/aca-release/SKILL.md +71 -69
- package/zh-CN/skills/aca-release/SKILL.md.tmpl +71 -69
- package/zh-CN/skills/aca-repo-audit/SKILL.md +39 -29
- package/zh-CN/skills/aca-repo-audit/SKILL.md.tmpl +36 -28
- package/zh-CN/skills/aca-review/SKILL.md +143 -179
- package/zh-CN/skills/aca-review/SKILL.md.tmpl +140 -178
- package/zh-CN/skills/aca-test/SKILL.md +112 -0
- package/zh-CN/skills/aca-test/SKILL.md.tmpl +110 -0
- package/zh-CN/skills/aca-walkthrough/SKILL.md +18 -14
- 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 antigravity -->
|
|
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](~/.gemini/config/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
|
|
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 `~/.gemini/config/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
|
|
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.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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 `~/.gemini/config/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 |
|
|
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`
|
|
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) |
|
|
@@ -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
|
|
47
|
-
| `/aca-implement` | Plan the file structure based on the design, then
|
|
46
|
+
| `/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 |
|
|
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/antigravity-cli/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
|
|
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
|
|
@@ -41,6 +41,8 @@ Change only documentation, not code
|
|
|
41
41
|
- Remove content that adds no information and does not help understanding
|
|
42
42
|
- Write one sentence per line, with only one fact per sentence
|
|
43
43
|
- State actions directly in operational steps
|
|
44
|
+
- If a specific practice fully expresses a constraint, write the practice directly
|
|
45
|
+
- Keep prohibitions that no specific practice can fully express
|
|
44
46
|
- Write sequential actions as separate items
|
|
45
47
|
- Make the actor, the object of the action, and the referents clear
|
|
46
48
|
- Do not repeat actors, objects of actions, or referents already clear from context
|
|
@@ -167,11 +169,13 @@ If neither the repo-type spec nor the document set specifies an order, arrange w
|
|
|
167
169
|
Keep plain text in headings, code blocks, Mermaid labels, and product copy
|
|
168
170
|
4. Synchronize affected test designs
|
|
169
171
|
- Identify affected black-box and white-box test designs based on contracts, flows, and internal mechanisms added, revised, or deleted in this round
|
|
172
|
+
- Against the confirmed design, check the affected existing test code, fixtures, and the behavior they actually verify
|
|
170
173
|
- Update test designs in sequence according to the corresponding doc designs and [test cases](~/.gemini/antigravity-cli/skills/aca/doc-design/patterns/testcase.md)
|
|
171
174
|
1. Update fixtures
|
|
172
175
|
2. Update test scenarios and their references to design rationale
|
|
173
176
|
3. Update test cases based on the scenarios
|
|
174
177
|
Add missing cases, revise changed cases, and delete or replace invalid cases
|
|
178
|
+
- Leave actual changes to test code and fixtures to `/aca-implement`
|
|
175
179
|
- If only wording is revised and verified behavior has not changed, check that test designs and references remain valid
|
|
176
180
|
- If solution decisions or as-is evidence required for test design are missing, handle them under §3
|
|
177
181
|
- If affected docs are outside the current scope, record their locations and the content that needs synchronization
|
|
@@ -256,8 +260,10 @@ Perform the following steps after writing and scope checks are complete for all
|
|
|
256
260
|
After all applicable checks pass, commit only actual closeout changes, then push to the remote
|
|
257
261
|
If there are no actual changes, do not create an empty commit, and push existing commits from this round
|
|
258
262
|
If committing or pushing is not possible, record completed work, incomplete actions, and the resumption point, and report incomplete under §8
|
|
259
|
-
5.
|
|
260
|
-
After all closeout requirements are complete, the
|
|
263
|
+
5. Determine whether design review is needed and continue
|
|
264
|
+
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)
|
|
265
|
+
- Cross-module: the next step is `/aca-review` for a design review
|
|
266
|
+
- 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)
|
|
261
267
|
|
|
262
268
|
## 8 Output
|
|
263
269
|
|
|
@@ -275,16 +281,16 @@ Perform the following steps after writing and scope checks are complete for all
|
|
|
275
281
|
|
|
276
282
|
| Item | Result |
|
|
277
283
|
| --- | --- |
|
|
278
|
-
| Scope | <current scope
|
|
284
|
+
| Scope | <current scope, progress in this round, and whether it is cross-module> |
|
|
279
285
|
| Inputs | <solution or as-is state and actual sources> |
|
|
280
286
|
| Docs | <files added, revised, moved, or deleted / none> |
|
|
281
287
|
| Checks | <actual results, basis for reuse, and unverified items> |
|
|
282
288
|
| Commits | <commit and push results / not committed> |
|
|
283
289
|
| Pending | <incomplete items, reasons, and resumption point / none> |
|
|
284
|
-
| Next step |
|
|
290
|
+
| Next step | </aca-review after cross-module closeout, /aca-implement or /aca-release directly after non-cross-module closeout, or fill corresponding gaps> |
|
|
285
291
|
```
|
|
286
292
|
|
|
287
293
|
3. Determine the next step
|
|
288
|
-
After this round is fully closed out,
|
|
294
|
+
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
|
|
289
295
|
If the current scope is complete but another scope remains, determine the next path under 7.1
|
|
290
296
|
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
|
|
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
|
|
9
|
-
6. Commit the corresponding changes after each module
|
|
10
|
-
7.
|
|
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
|
-
|
|
20
|
-
Change only code and tests,
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
3. **
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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 -->
|
|
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,55 @@ 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.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
+
- Correct or remove outdated or wrong test cases and fixtures according to the confirmed design
|
|
58
|
+
- When changing test expectations, base the change on the confirmed design or a verified test error
|
|
59
|
+
3. **Orchestrate the corresponding test scope**
|
|
60
|
+
- List the test cases and fixtures to write or update in this run based on the black-box and white-box test designs
|
|
61
|
+
- Record the units under test and test case scope corresponding to the current implementation scope for direct execution by `/aca-test`
|
|
62
|
+
4. **Identify modules and dependencies**
|
|
63
|
+
- List the modules involved in this implementation and their dependencies based on the design
|
|
64
|
+
- 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
|
|
65
|
+
5. **Plan the source code and test file structure**
|
|
66
|
+
- Plan the source code and test file structure based on module boundaries, internal design, and repository conventions
|
|
67
|
+
- List all source code and test directories and files within the current implementation scope
|
|
68
|
+
6. **Check file responsibilities and boundaries**
|
|
69
|
+
- Specify each file's responsibilities, owning module, and dependencies
|
|
70
|
+
- Check whether each file has a single responsibility and whether responsibilities overlap
|
|
71
|
+
- Responsibilities are not singular or overlap: adjust file boundaries
|
|
72
|
+
7. **Split module implementation and integration tasks**
|
|
73
|
+
- Split implementation preparation, module implementation, and integration into tasks
|
|
74
|
+
- Use modules in the design as the smallest units of implementation 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
|
+
- Specify each task's dependencies, owner, and completion criteria
|
|
77
|
+
8. **Maintain task status and progress**
|
|
78
|
+
- 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
|
+
- When resuming a task, check task records, the workspace, and recent commits, update task status, and continue implementation
|
|
82
81
|
|
|
83
82
|
## 4 Implementation Preparation
|
|
84
83
|
|
|
85
|
-
1.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
1. **Create directories and file placeholders**
|
|
85
|
+
- 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
|
+
- File purpose, dependencies, or deletion scope cannot be confirmed: retain the file and verify with the developer
|
|
89
|
+
- Start module implementation only after all file placeholders are in place
|
|
90
|
+
2. **Assign separate workspaces**
|
|
91
|
+
- The main agent assigns separate workspaces to sub-agents
|
|
92
|
+
- Synchronize the prepared file structure to each workspace
|
|
93
|
+
3. **Dispatch task context to sub-agents**
|
|
94
94
|
- The overall implementation goal, the functionality to complete for the current module, and the scope of changes
|
|
95
95
|
- Links to relevant chapters covering the structural basis, interfaces, internal design, and test cases for the current module and its dependencies
|
|
96
96
|
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
97
|
- The readiness of each dependency and the arrangements for real dependencies or test doubles in tests
|
|
98
98
|
- The workspace path, starting commit, files permitted for modification, and applicable repository conventions
|
|
99
|
-
-
|
|
100
|
-
- Change only code and tests
|
|
99
|
+
- Modify only production code and test code, without modifying design docs or running tests
|
|
101
100
|
- Follow the [Exception Handling](#52-exception-handling) requirements
|
|
102
|
-
- Return changed files, commit records,
|
|
101
|
+
- Return changed files, commit records, corresponding test scope, and reasons for blockers
|
|
103
102
|
|
|
104
103
|
When files owned by other tasks or shared files are involved, first ask the main agent to coordinate
|
|
105
104
|
|
|
@@ -107,64 +106,53 @@ Preserve existing changes outside the scope of this implementation
|
|
|
107
106
|
|
|
108
107
|
### 5.1 Implementation Loop
|
|
109
108
|
|
|
110
|
-
1.
|
|
111
|
-
|
|
112
|
-
2.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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)
|
|
109
|
+
1. **Dispatch parallelizable module tasks**
|
|
110
|
+
- The main agent selects module tasks whose dependencies are satisfied and assigns tasks that can run in parallel to sub-agents
|
|
111
|
+
2. **Write module production code and test code**
|
|
112
|
+
- Reuse, write, or update black-box and white-box test code and fixtures for the module's current scope according to the design
|
|
113
|
+
- Complete production code changes within the module's current scope according to the design
|
|
114
|
+
- 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
|
|
115
|
+
- When the design includes a Lark (Feishu) card mockup, implement it according to [Lark Card Mapping](~/.gemini/antigravity-cli/skills/aca/skills/references/lark-card-mapping.md)
|
|
116
|
+
- Organize code structure as needed to keep responsibilities singular and boundaries clear
|
|
117
|
+
3. **Check module completion criteria and commit**
|
|
118
|
+
- 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
|
|
119
|
+
- Stage and commit only the current task's changes
|
|
120
|
+
4. **Integrate module commits**
|
|
121
|
+
- The main agent checks the file scope and completion status of module commits
|
|
122
|
+
- Integrate the module's commits after confirming that it meets the completion criteria
|
|
123
|
+
5. **Update progress and advance**
|
|
124
|
+
- The main agent updates task status, implemented module scope, and dependency readiness
|
|
125
|
+
- Record the reasons for blocked tasks and the conditions for resuming them
|
|
126
|
+
- Synchronize integrated dependency commits to downstream module workspaces
|
|
127
|
+
- Tasks remain that can be implemented: return to step 1
|
|
128
|
+
- No tasks can be assigned and tasks are still in progress: wait for execution results
|
|
129
|
+
- All module tasks for the current scope are complete and integrated: proceed to [Output](#6-output)
|
|
130
|
+
- All remaining tasks are blocked and no tasks are in progress: report the incomplete status according to [Output](#6-output)
|
|
137
131
|
|
|
138
132
|
### 5.2 Exception Handling
|
|
139
133
|
|
|
140
|
-
1.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
When all completion criteria for the current scope are verified as satisfied, mark the goal and tasks as complete
|
|
163
|
-
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
|
|
167
|
-
Use the following format for the final report, filling in the title and results according to the actual status
|
|
134
|
+
1. **Handle missing or conflicting designs**
|
|
135
|
+
- When the design is missing, contains conflicts, or cannot be implemented, the agent executing the task pauses affected tasks
|
|
136
|
+
- Sub-agents report the issue and its scope of impact to the main agent
|
|
137
|
+
- The main agent verifies the issue and its scope of impact, then reports them to the developer
|
|
138
|
+
- When the solution needs additions or revisions, recommend using `/aca-specify`
|
|
139
|
+
- Continue unaffected independent tasks
|
|
140
|
+
2. **Handle cross-repository issues**
|
|
141
|
+
- When issues are found in other repositories, the main agent verifies them and reports the issues and their impact to the developer
|
|
142
|
+
- Do not modify other repositories without authorization
|
|
143
|
+
|
|
144
|
+
## 6 Output
|
|
145
|
+
|
|
146
|
+
1. **Update the task status**
|
|
147
|
+
- All completion criteria for the current scope are satisfied: mark the goal and task status as complete
|
|
148
|
+
- Completion criteria are not satisfied: report remaining work, reasons for blockers, and actions to resume
|
|
149
|
+
2. **Check for module and code structure changes and determine the next step**
|
|
150
|
+
- Check whether the changes are cross-module or change a module's overall code structure (module structure, overall code distribution, function construction)
|
|
151
|
+
- 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
|
|
152
|
+
- 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`
|
|
153
|
+
- 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
|
|
154
|
+
3. **Output the implementation report**
|
|
155
|
+
Use the following format for the final report, filling in the title and results according to the actual status
|
|
168
156
|
|
|
169
157
|
```markdown
|
|
170
158
|
# 🛠️ Implement: <complete / incomplete>
|
|
@@ -173,11 +161,11 @@ Use the following format for the final report, filling in the title and results
|
|
|
173
161
|
| --- | --- |
|
|
174
162
|
| Goal | <overall goal and completion criteria satisfaction> |
|
|
175
163
|
| Scope | <implementation scope and module progress> |
|
|
176
|
-
| Changes | <main
|
|
177
|
-
|
|
|
178
|
-
|
|
|
164
|
+
| Changes | <main production code and test code changes> |
|
|
165
|
+
| Structural change | <yes (cross-module or module's overall code structure changed) / no (only internal module logic or local changes)> |
|
|
166
|
+
| Test scope | <units under test and test case scope orchestrated for /aca-test> |
|
|
179
167
|
| Commits | <commit records / uncommitted> |
|
|
180
168
|
| Blockers | <blockers and reasons / none> |
|
|
181
169
|
| Recommendations | <extension recommendations / none> |
|
|
182
|
-
| Next step |
|
|
170
|
+
| Next step | </aca-review when there is a structural change, /aca-test directly when changes are only inside a module with no structural change> |
|
|
183
171
|
```
|