@leejungkiin/awkit 1.4.2 → 1.5.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/README.md +32 -9
- package/bin/awk.js +464 -87
- package/bin/claude-generators.js +3 -1
- package/bin/cline-generators.js +3 -1
- package/bin/codex-generators.js +7 -2
- package/core/orchestrator.md +17 -3
- package/core/skill-runtime-manifest.json +37 -0
- package/package.json +2 -2
- package/skill-packs/creator-studio/README.md +19 -0
- package/skill-packs/creator-studio/pack.json +10 -0
- package/skill-packs/marketing/README.md +64 -0
- package/skill-packs/marketing/pack.json +37 -0
- package/skill-packs/mobile-android/README.md +16 -0
- package/skill-packs/mobile-android/pack.json +10 -0
- package/skill-packs/mobile-ios/README.md +22 -0
- package/skill-packs/mobile-ios/pack.json +16 -0
- package/skill-packs/neural-memory/pack.json +8 -2
- package/skill-packs/superpowers/pack.json +1 -0
- package/skill-packs/superpowers/skills/single-flow-task-execution/SKILL.md +59 -358
- package/skill-packs/superpowers/skills/writing-skills/SKILL.md +60 -654
- package/skill-packs/superpowers/skills/writing-skills/examples/anti-rationalization.md +75 -0
- package/skill-packs/superpowers/skills/writing-skills/examples/cso-optimization.md +67 -0
- package/skill-packs/superpowers/skills/writing-skills/examples/tdd-for-skills.md +63 -0
- package/skills/CATALOG.md +49 -44
- package/skills/brainstorm-agent/SKILL.md +55 -315
- package/skills/brainstorm-agent/templates/brief-template.md +76 -0
- package/skills/codex-conductor/SKILL.md +55 -259
- package/skills/codex-conductor/examples/prompt-templates.md +72 -0
- package/skills/module-spec-writer/SKILL.md +38 -365
- package/skills/module-spec-writer/examples/port-migration-mode.md +40 -0
- package/skills/module-spec-writer/templates/module-spec-template.md +118 -0
- package/skills/orchestrator/SKILL.md +17 -8
- package/skills/single-flow-task-execution/SKILL.md +56 -363
- package/skills/single-flow-task-execution/examples/workflow-example.md +91 -0
- package/skills/smali-to-kotlin/SKILL.md +23 -416
- package/skills/smali-to-kotlin/examples/getting-started/tech-stack.md +58 -0
- package/skills/smali-to-kotlin/examples/pipeline/data-ui-parity.md +118 -0
- package/skills/smali-to-kotlin/examples/pipeline/scanner-and-bootstrap.md +106 -0
- package/skills/smali-to-swift/SKILL.md +18 -621
- package/skills/smali-to-swift/examples/getting-started/tech-stack.md +72 -0
- package/skills/smali-to-swift/examples/getting-started/toolchain.md +32 -0
- package/skills/smali-to-swift/examples/pipeline/core-logic.md +45 -0
- package/skills/smali-to-swift/examples/pipeline/data-layer.md +76 -0
- package/skills/smali-to-swift/examples/pipeline/framework-scanner.md +73 -0
- package/skills/smali-to-swift/examples/pipeline/project-bootstrap.md +76 -0
- package/skills/smali-to-swift/examples/pipeline/sdk-integration.md +66 -0
- package/skills/smali-to-swift/examples/pipeline/ui-viewmodel.md +96 -0
- package/skills/smali-to-swift/references/objc-to-swift-mapping.md +57 -0
- package/skills/spec-gate/SKILL.md +51 -265
- package/skills/spec-gate/templates/design-templates.md +93 -0
- package/skills/symphony-enforcer/SKILL.md +24 -555
- package/skills/symphony-enforcer/examples/startup-protocol.md +92 -0
- package/skills/symphony-enforcer/examples/task-completion.md +100 -0
- package/skills/symphony-enforcer/examples/three-phase.md +107 -0
- package/skills/symphony-enforcer/examples/trigger-points.md +99 -0
- package/skills/symphony-orchestrator/SKILL.md +1 -1
- package/skills/writing-skills/SKILL.md +82 -70
- package/skills/writing-skills/examples/anti-rationalization.md +53 -0
- package/skills/writing-skills/examples/cso-optimization.md +52 -0
- package/skills/writing-skills/examples/tdd-for-skills.md +48 -0
- package/templates/help.html +447 -0
- package/skills/memory-sync/SKILL.md +0 -424
- package/skills/memory-sync/memory-router.md +0 -185
- package/skills/memory-sync/memory-templates.md +0 -201
|
@@ -3,410 +3,103 @@ name: single-flow-task-execution
|
|
|
3
3
|
description: Use when executing implementation plans, handling multiple independent tasks, or doing structured task-by-task development with review gates in Antigravity.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Single-Flow Task Execution
|
|
6
|
+
# Single-Flow Task Execution — Router
|
|
7
7
|
|
|
8
8
|
Execute plans by working through one task at a time with two-stage review after each: spec compliance review first, then code quality review.
|
|
9
9
|
|
|
10
10
|
**Core principle:** One task at a time + two-stage review (spec then quality) = high quality, disciplined iteration.
|
|
11
11
|
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
Antigravity does NOT support parallel coding subagents. All work happens in a single execution thread.
|
|
15
|
-
|
|
16
|
-
**Rules:**
|
|
17
|
-
|
|
18
|
-
1. **One active task only** — never work on multiple tasks simultaneously.
|
|
19
|
-
2. **One execution thread only** — no parallel dispatch.
|
|
20
|
-
3. **No parallel coding subagents** — Antigravity does not have `Task(...)`.
|
|
21
|
-
4. **Browser automation** may use `browser_subagent` in isolated steps.
|
|
22
|
-
5. **Track progress** via Symphony task system. Update task status at each state change.
|
|
23
|
-
6. **Use `task_boundary`** to clearly delineate each unit of work.
|
|
24
|
-
|
|
25
|
-
## When to Use
|
|
26
|
-
|
|
27
|
-
```dot
|
|
28
|
-
digraph when_to_use {
|
|
29
|
-
"Have implementation plan?" [shape=diamond];
|
|
30
|
-
"Tasks mostly independent?" [shape=diamond];
|
|
31
|
-
"Multiple problems to solve?" [shape=diamond];
|
|
32
|
-
"single-flow-task-execution" [shape=box];
|
|
33
|
-
"executing-plans" [shape=box];
|
|
34
|
-
"Manual execution or brainstorm first" [shape=box];
|
|
35
|
-
|
|
36
|
-
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
|
|
37
|
-
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
|
|
38
|
-
"Tasks mostly independent?" -> "single-flow-task-execution" [label="yes"];
|
|
39
|
-
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
|
|
40
|
-
"Multiple problems to solve?" -> "single-flow-task-execution" [label="yes - work through them sequentially"];
|
|
41
|
-
"Multiple problems to solve?" -> "Manual execution or brainstorm first" [label="no - single task"];
|
|
42
|
-
}
|
|
43
|
-
```
|
|
12
|
+
## 📋 Topic Index
|
|
44
13
|
|
|
45
|
-
|
|
14
|
+
| Topic | Khi nào load | File |
|
|
15
|
+
|-------|-------------|------|
|
|
16
|
+
| Example full execution cycle & task brief template | Khi cần reference pattern | `examples/workflow-example.md` |
|
|
46
17
|
|
|
47
|
-
|
|
48
|
-
- 2+ test files failing with different root causes (work through them one at a time)
|
|
49
|
-
- Multiple subsystems broken independently
|
|
50
|
-
- Each problem can be understood without context from others
|
|
51
|
-
- Structured execution with quality gates is needed
|
|
18
|
+
## Antigravity Execution Model
|
|
52
19
|
|
|
53
|
-
**
|
|
20
|
+
1. **One active task only** — never work on multiple tasks simultaneously
|
|
21
|
+
2. **One execution thread** — no parallel dispatch, no `Task(...)`
|
|
22
|
+
3. **Browser automation** may use `browser_subagent` in isolated steps
|
|
23
|
+
4. **Track progress** via Symphony task system
|
|
24
|
+
5. **Use `task_boundary`** to delineate each unit of work
|
|
54
25
|
|
|
55
|
-
|
|
56
|
-
- Tasks are tightly coupled and need full system understanding
|
|
57
|
-
- Single simple task that doesn't need review structure
|
|
26
|
+
## When to Use / Don't Use
|
|
58
27
|
|
|
59
|
-
**
|
|
28
|
+
**Use:** Implementation plan with multiple independent tasks | 2+ test files failing different causes | Structured execution with quality gates
|
|
60
29
|
|
|
61
|
-
|
|
62
|
-
- Fresh `task_boundary` per task (clean scope)
|
|
63
|
-
- Two-stage review after each task: spec compliance first, then code quality
|
|
64
|
-
- Faster iteration (no human-in-loop between tasks)
|
|
30
|
+
**Don't:** Related failures (fix one → fix others) | Tightly coupled tasks | Single simple task
|
|
65
31
|
|
|
66
32
|
## The Process
|
|
67
33
|
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"Spec confirms code matches spec?" [shape=diamond];
|
|
80
|
-
"Fix spec gaps" [shape=box];
|
|
81
|
-
"Run code quality review (./code-quality-reviewer-prompt.md)" [shape=box];
|
|
82
|
-
"Code quality approved?" [shape=diamond];
|
|
83
|
-
"Fix quality issues" [shape=box];
|
|
84
|
-
"Mark task complete via Symphony" [shape=box];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
"Read plan, extract all tasks with full text, note context" [shape=box];
|
|
88
|
-
"More tasks remain?" [shape=diamond];
|
|
89
|
-
"Run final code review for entire implementation" [shape=box];
|
|
90
|
-
"Complete Symphony task and present next steps" [shape=box style=filled fillcolor=lightgreen];
|
|
91
|
-
|
|
92
|
-
"Read plan, extract all tasks with full text, note context" -> "Execute implementation (./implementer-prompt.md)";
|
|
93
|
-
"Execute implementation (./implementer-prompt.md)" -> "Questions about requirements?";
|
|
94
|
-
"Questions about requirements?" -> "Answer questions, provide context" [label="yes"];
|
|
95
|
-
"Answer questions, provide context" -> "Execute implementation (./implementer-prompt.md)";
|
|
96
|
-
"Questions about requirements?" -> "Implement, test, commit, self-review" [label="no"];
|
|
97
|
-
"Implement, test, commit, self-review" -> "Run spec compliance review (./spec-reviewer-prompt.md)";
|
|
98
|
-
"Run spec compliance review (./spec-reviewer-prompt.md)" -> "Spec confirms code matches spec?";
|
|
99
|
-
"Spec confirms code matches spec?" -> "Fix spec gaps" [label="no"];
|
|
100
|
-
"Fix spec gaps" -> "Run spec compliance review (./spec-reviewer-prompt.md)" [label="re-review"];
|
|
101
|
-
"Spec confirms code matches spec?" -> "Run code quality review (./code-quality-reviewer-prompt.md)" [label="yes"];
|
|
102
|
-
"Run code quality review (./code-quality-reviewer-prompt.md)" -> "Code quality approved?";
|
|
103
|
-
"Code quality approved?" -> "Fix quality issues" [label="no"];
|
|
104
|
-
"Fix quality issues" -> "Run code quality review (./code-quality-reviewer-prompt.md)" [label="re-review"];
|
|
105
|
-
"Code quality approved?" -> "Mark task complete via Symphony" [label="yes"];
|
|
106
|
-
"Mark task complete via Symphony" -> "More tasks remain?";
|
|
107
|
-
"More tasks remain?" -> "Execute implementation (./implementer-prompt.md)" [label="yes"];
|
|
108
|
-
"More tasks remain?" -> "Run final code review for entire implementation" [label="no"];
|
|
109
|
-
"Run final code review for entire implementation" -> "Complete Symphony task and present next steps";
|
|
110
|
-
}
|
|
34
|
+
```
|
|
35
|
+
Read plan → Extract tasks → [Per task loop]:
|
|
36
|
+
1. Execute implementation (./implementer-prompt.md)
|
|
37
|
+
2. Questions? → Ask & wait → Re-execute
|
|
38
|
+
3. Implement, test, commit, self-review
|
|
39
|
+
4. Run spec compliance review (./spec-reviewer-prompt.md)
|
|
40
|
+
→ Issues? Fix → Re-review until approved
|
|
41
|
+
5. Run code quality review (./code-quality-reviewer-prompt.md)
|
|
42
|
+
→ Issues? Fix → Re-review until approved
|
|
43
|
+
6. Mark task complete via Symphony
|
|
44
|
+
7. More tasks? → Loop | No → Final code review → Complete
|
|
111
45
|
```
|
|
112
46
|
|
|
113
|
-
## UI-First Task Ordering (Gate 4 Three-Phase
|
|
47
|
+
## UI-First Task Ordering (Gate 4 Three-Phase)
|
|
114
48
|
|
|
115
|
-
When
|
|
49
|
+
When tasks include UI components (COMPLEX/MODERATE):
|
|
116
50
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- Create project structure (packages, modules, DI)
|
|
123
|
-
- Set up navigation skeleton (NavGraph, Router)
|
|
124
|
-
- Configure build variants, signing
|
|
125
|
-
Gate: App MUST build successfully → proceed
|
|
126
|
-
```
|
|
51
|
+
| Phase | Priority | Examples | Gate |
|
|
52
|
+
|-------|----------|----------|------|
|
|
53
|
+
| **A: Infrastructure** | FIRST | Dependencies, DI, nav skeleton | App MUST build |
|
|
54
|
+
| **B: UI Shell** | SECOND | All screens with mock data | 🧪 USER/AUTO CHECKPOINT |
|
|
55
|
+
| **C: Logic** | LAST | Real API/DB, business logic | 🧪 Per-feature checkpoint |
|
|
127
56
|
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
Priority: Execute SECOND, BEFORE any logic tasks
|
|
131
|
-
Examples:
|
|
132
|
-
- Build all screen layouts with static/mock data
|
|
133
|
-
- Implement navigation between screens
|
|
134
|
-
- Add animations, transitions, loading/empty/error states
|
|
135
|
-
- Wire up UI components (no real API/DB calls)
|
|
136
|
-
Gate: 🧪 USER TEST CHECKPOINT or 🤖 AUTO DEVICE CHECKPOINT
|
|
137
|
-
→ Check `.project-identity` for `autoVerification` flag.
|
|
138
|
-
→ If `false` (default): Stop & block user for manual test (BlockedOnUser=true).
|
|
139
|
-
→ If `true`: AI auto-tests on device (Maestro MCP) & takes UI screenshot. Proceed to Phase C WITHOUT blocking user if build/launch OK.
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Phase C: Logic Tasks (Per Feature)
|
|
143
|
-
```
|
|
144
|
-
Priority: Execute LAST, after UI is confirmed
|
|
145
|
-
Examples:
|
|
146
|
-
- Replace mock data with real API/DB calls
|
|
147
|
-
- Implement business logic, validation
|
|
148
|
-
- Add error handling, retry, offline support
|
|
149
|
-
- Wire up hardware features (camera, GPS, sensors)
|
|
150
|
-
Gate: 🧪 MANUAL or 🤖 AUTO CHECKPOINT per feature (batch small ones)
|
|
151
|
-
→ Depends on `autoVerification` setting. Auto uses Build & Maestro. Manual waits for user confirmation.
|
|
152
|
-
```
|
|
57
|
+
**Auto checkpoint:** Check `.project-identity` → `autoVerification: true` = Maestro auto-test, `false` = wait for user.
|
|
153
58
|
|
|
154
59
|
### Task Sorting Rule
|
|
155
|
-
|
|
156
|
-
When creating task list from implementation plan:
|
|
157
|
-
1. Tag each task: [INFRA] [UI] [LOGIC]
|
|
60
|
+
1. Tag each task: `[INFRA]` `[UI]` `[LOGIC]`
|
|
158
61
|
2. Sort: INFRA first → UI second → LOGIC last
|
|
159
62
|
3. Within each phase: respect dependency ordering
|
|
160
|
-
4. Between phases: MANDATORY checkpoint where indicated
|
|
161
|
-
```
|
|
162
63
|
|
|
163
64
|
## Task Decomposition
|
|
164
65
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Group failures by what's broken:
|
|
170
|
-
|
|
171
|
-
- File A tests: User authentication flow
|
|
172
|
-
- File B tests: Data validation logic
|
|
173
|
-
- File C tests: API response handling
|
|
174
|
-
|
|
175
|
-
Each domain is independent — fixing authentication doesn't affect validation tests.
|
|
176
|
-
|
|
177
|
-
### 2. Create Task Units
|
|
178
|
-
|
|
179
|
-
Each task gets:
|
|
180
|
-
|
|
181
|
-
- **Specific scope:** One test file or subsystem
|
|
182
|
-
- **Clear goal:** Make these tests pass / implement this feature
|
|
183
|
-
- **Constraints:** Don't change unrelated code
|
|
184
|
-
- **Expected output:** Summary of what changed and verification results
|
|
185
|
-
|
|
186
|
-
### 3. Execute Sequentially with Review
|
|
187
|
-
|
|
188
|
-
Work through each task one at a time using the full review cycle.
|
|
189
|
-
|
|
190
|
-
### 4. Review and Integrate
|
|
191
|
-
|
|
192
|
-
After all tasks:
|
|
193
|
-
|
|
194
|
-
- Run full test suite to verify no regressions
|
|
195
|
-
- Check for conflicts between task changes
|
|
196
|
-
- Run final code review on entire implementation
|
|
197
|
-
|
|
198
|
-
## Task Brief Structure
|
|
199
|
-
|
|
200
|
-
For each task, prepare:
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
task_boundary:
|
|
204
|
-
description: "Implement Task N: [task name]"
|
|
205
|
-
prompt: |
|
|
206
|
-
## Task Description
|
|
207
|
-
[FULL TEXT of task from plan — paste it here]
|
|
208
|
-
|
|
209
|
-
## Context
|
|
210
|
-
[Where this fits, dependencies, architectural context]
|
|
211
|
-
|
|
212
|
-
## Constraints
|
|
213
|
-
- Only modify [specific files/directories]
|
|
214
|
-
- Follow existing patterns in the codebase
|
|
215
|
-
- Write tests for new functionality
|
|
216
|
-
|
|
217
|
-
## Verification
|
|
218
|
-
- Run: [specific test command]
|
|
219
|
-
- Expected: [what success looks like]
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
**Key:** Provide full task text and context upfront. Don't make the task boundary re-read the plan file.
|
|
66
|
+
1. **Identify independent domains** — Group failures by what's broken
|
|
67
|
+
2. **Create task units** — Specific scope, clear goal, constraints, expected output
|
|
68
|
+
3. **Execute sequentially** with full review cycle
|
|
69
|
+
4. **Review & integrate** — Full test suite, check conflicts
|
|
223
70
|
|
|
224
71
|
## Review Templates
|
|
225
72
|
|
|
226
|
-
|
|
73
|
+
- `./implementer-prompt.md` — Implementation structure
|
|
74
|
+
- `./spec-reviewer-prompt.md` — Did we build what was requested?
|
|
75
|
+
- `./code-quality-reviewer-prompt.md` — Is it well-built?
|
|
227
76
|
|
|
228
|
-
|
|
229
|
-
- **`./spec-reviewer-prompt.md`** — Template for spec compliance review (did we build what was requested?)
|
|
230
|
-
- **`./code-quality-reviewer-prompt.md`** — Template for code quality review (is it well-built?)
|
|
231
|
-
|
|
232
|
-
**Review order matters:** Always run spec compliance FIRST, then code quality. There's no point reviewing code quality if the implementation doesn't match the spec.
|
|
77
|
+
**Order:** Always spec compliance FIRST, then code quality.
|
|
233
78
|
|
|
234
79
|
## Checkpoint Pattern
|
|
235
80
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
Update Symphony task progress with current status.
|
|
243
|
-
**Crucially (Inter-task Flow):**
|
|
244
|
-
- If `.project-identity` has `"autoVerification": true`: Do NOT block the user (`BlockedOnUser=false`) between tasks/batches. Auto-proceed immediately to the next task if auto-verification (Maestro) passes.
|
|
245
|
-
- If `"autoVerification": false` (default): MUST stop and wait for user's manual validation (`BlockedOnUser=true`) before proceeding to the next batch.
|
|
246
|
-
|
|
247
|
-
## Common Mistakes
|
|
248
|
-
|
|
249
|
-
**Task scoping:**
|
|
250
|
-
|
|
251
|
-
- **Bad:** "Fix all the tests" — loses focus
|
|
252
|
-
- **Good:** "Fix user-auth.test.ts failures" — clear scope
|
|
253
|
-
|
|
254
|
-
**Context:**
|
|
255
|
-
|
|
256
|
-
- **Bad:** "Fix the validation bug" — unclear where
|
|
257
|
-
- **Good:** Paste error messages, test names, relevant code paths
|
|
258
|
-
|
|
259
|
-
**Constraints:**
|
|
260
|
-
|
|
261
|
-
- **Bad:** No constraints — task might refactor everything
|
|
262
|
-
- **Good:** "Only modify src/auth/ directory"
|
|
263
|
-
|
|
264
|
-
**Output:**
|
|
265
|
-
|
|
266
|
-
- **Bad:** "Fix it" — no visibility into what changed
|
|
267
|
-
- **Good:** "Report: root cause, changes made, test results"
|
|
268
|
-
|
|
269
|
-
**Reviews:**
|
|
270
|
-
|
|
271
|
-
- **Bad:** "It works, move on" — quality debt
|
|
272
|
-
- **Good:** Implement then spec review then quality review then next task
|
|
273
|
-
|
|
274
|
-
## Example Workflow
|
|
275
|
-
|
|
276
|
-
```
|
|
277
|
-
You: I'm using single-flow-task-execution to execute this plan.
|
|
278
|
-
|
|
279
|
-
[Read plan file: docs/plans/feature-plan.md]
|
|
280
|
-
[Extract all 5 tasks with full text and context]
|
|
281
|
-
[Create Symphony tasks for tracking]
|
|
282
|
-
|
|
283
|
-
--- Task 1: Hook installation script ---
|
|
284
|
-
|
|
285
|
-
[Prepare task brief with full text + context]
|
|
286
|
-
[Execute implementation following ./implementer-prompt.md structure]
|
|
287
|
-
|
|
288
|
-
Questions: "Should the hook be installed at user or system level?"
|
|
289
|
-
Answer: "User level (~/.config/superpowers/hooks/)"
|
|
290
|
-
|
|
291
|
-
Implementation:
|
|
292
|
-
- Implemented install-hook command
|
|
293
|
-
- Added tests, 5/5 passing
|
|
294
|
-
- Self-review: Found I missed --force flag, added it
|
|
295
|
-
- Committed
|
|
296
|
-
|
|
297
|
-
[Run spec compliance review following ./spec-reviewer-prompt.md]
|
|
298
|
-
Spec review: Spec compliant — all requirements met, nothing extra
|
|
299
|
-
|
|
300
|
-
[Run code quality review following ./code-quality-reviewer-prompt.md]
|
|
301
|
-
Code review: Strengths: Good test coverage, clean. Issues: None. Approved.
|
|
302
|
-
|
|
303
|
-
[Mark Task 1 complete in Symphony]
|
|
304
|
-
|
|
305
|
-
--- Task 2: Recovery modes ---
|
|
306
|
-
|
|
307
|
-
[Prepare task brief with full text + context]
|
|
308
|
-
[Execute implementation]
|
|
309
|
-
|
|
310
|
-
Implementation:
|
|
311
|
-
- Added verify/repair modes
|
|
312
|
-
- 8/8 tests passing
|
|
313
|
-
- Self-review: All good
|
|
314
|
-
- Committed
|
|
315
|
-
|
|
316
|
-
[Run spec compliance review]
|
|
317
|
-
Spec review: Issues found:
|
|
318
|
-
- Missing: Progress reporting (spec says "report every 100 items")
|
|
319
|
-
- Extra: Added --json flag (not requested)
|
|
320
|
-
|
|
321
|
-
[Fix issues: remove --json flag, add progress reporting]
|
|
322
|
-
[Run spec compliance review again]
|
|
323
|
-
Spec review: Spec compliant now
|
|
324
|
-
|
|
325
|
-
[Run code quality review]
|
|
326
|
-
Code review: Issue (Important): Magic number (100) should be a constant
|
|
327
|
-
|
|
328
|
-
[Fix: extract PROGRESS_INTERVAL constant]
|
|
329
|
-
[Run code quality review again]
|
|
330
|
-
Code review: Approved
|
|
331
|
-
|
|
332
|
-
[Mark Task 2 complete in Symphony]
|
|
333
|
-
|
|
334
|
-
... [Continue through remaining tasks] ...
|
|
335
|
-
|
|
336
|
-
[After all tasks complete]
|
|
337
|
-
[Run final code review on entire implementation]
|
|
338
|
-
Final review: All requirements met, ready to merge
|
|
339
|
-
|
|
340
|
-
[Complete Symphony task and present next steps]
|
|
341
|
-
Done!
|
|
342
|
-
```
|
|
81
|
+
Report at logical boundaries:
|
|
82
|
+
- **What changed**, **What verification ran**, **What remains**
|
|
83
|
+
- Update Symphony task progress
|
|
84
|
+
- `autoVerification: true` → don't block between tasks
|
|
85
|
+
- `autoVerification: false` → wait for manual validation
|
|
343
86
|
|
|
344
87
|
## Red Flags
|
|
345
88
|
|
|
346
|
-
**Never:**
|
|
347
|
-
|
|
348
|
-
- Start implementation on main/master branch without explicit user consent
|
|
349
|
-
- Skip reviews (spec compliance OR code quality)
|
|
350
|
-
- Proceed with unfixed review issues
|
|
351
|
-
- Work on multiple tasks simultaneously
|
|
352
|
-
- Skip scene-setting context (task needs to understand where it fits)
|
|
353
|
-
- Accept "close enough" on spec compliance (reviewer found issues = not done)
|
|
354
|
-
- Skip review loops (reviewer found issues = fix = review again)
|
|
355
|
-
- Let self-review replace actual review (both are needed)
|
|
356
|
-
- **Start code quality review before spec compliance passes** (wrong order)
|
|
357
|
-
- Move to next task while either review has open issues
|
|
358
|
-
|
|
359
|
-
**If you have questions about requirements:**
|
|
360
|
-
|
|
361
|
-
- Ask clearly and wait for answers
|
|
362
|
-
- Don't guess or make assumptions
|
|
363
|
-
- Better to ask upfront than rework later
|
|
364
|
-
|
|
365
|
-
**If reviewer finds issues:**
|
|
366
|
-
|
|
367
|
-
- Fix them
|
|
368
|
-
- Run reviewer again
|
|
369
|
-
- Repeat until approved
|
|
370
|
-
- Don't skip the re-review
|
|
89
|
+
**Never:** Start on main without consent | Skip reviews | Work on multiple tasks | Accept "close enough" | Start quality review before spec passes | Skip re-review after fixes
|
|
371
90
|
|
|
372
91
|
## Completion
|
|
373
92
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
3. Verify no regressions across all tasks
|
|
379
|
-
4. Summarize evidence (test output, review approvals)
|
|
380
|
-
|
|
381
|
-
## Advantages
|
|
382
|
-
|
|
383
|
-
**Structured execution:**
|
|
384
|
-
|
|
385
|
-
- Clear task boundaries prevent scope creep
|
|
386
|
-
- Review gates catch issues early (cheaper than debugging later)
|
|
387
|
-
- Progress tracking provides visibility
|
|
388
|
-
|
|
389
|
-
**Quality gates:**
|
|
390
|
-
|
|
391
|
-
- Self-review catches obvious issues before handoff
|
|
392
|
-
- Two-stage review: spec compliance prevents over/under-building, code quality ensures maintainability
|
|
393
|
-
- Review loops ensure fixes actually work
|
|
394
|
-
|
|
395
|
-
**Efficiency:**
|
|
396
|
-
|
|
397
|
-
- Provide full task text upfront (no re-reading plan files)
|
|
398
|
-
- Controller curates exactly what context is needed
|
|
399
|
-
- Questions surfaced before work begins (not after)
|
|
400
|
-
- Sequential execution avoids conflicts between tasks
|
|
93
|
+
1. All Symphony tasks marked `done`/`cancelled`
|
|
94
|
+
2. Full test/validation command ran
|
|
95
|
+
3. No regressions across all tasks
|
|
96
|
+
4. Evidence summarized
|
|
401
97
|
|
|
402
98
|
## Integration
|
|
403
99
|
|
|
404
|
-
**Required
|
|
100
|
+
- **Required:** `symphony-orchestrator`, `symphony-enforcer`
|
|
101
|
+
- **Recommended:** TDD, verification-before-completion
|
|
405
102
|
|
|
406
|
-
|
|
407
|
-
- **`~/.gemini/antigravity/skills/symphony-enforcer/SKILL.md`** — Enforce task discipline
|
|
408
|
-
|
|
409
|
-
**Should also use:**
|
|
103
|
+
---
|
|
410
104
|
|
|
411
|
-
-
|
|
412
|
-
- **verification-before-completion** — Final verification checklist
|
|
105
|
+
*single-flow-task-execution — Modular Router Architecture*
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Example Workflow: Full Task Execution Cycle
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
You: I'm using single-flow-task-execution to execute this plan.
|
|
5
|
+
|
|
6
|
+
[Read plan file: docs/plans/feature-plan.md]
|
|
7
|
+
[Extract all 5 tasks with full text and context]
|
|
8
|
+
[Create Symphony tasks for tracking]
|
|
9
|
+
|
|
10
|
+
--- Task 1: Hook installation script ---
|
|
11
|
+
|
|
12
|
+
[Prepare task brief with full text + context]
|
|
13
|
+
[Execute implementation following ./implementer-prompt.md structure]
|
|
14
|
+
|
|
15
|
+
Questions: "Should the hook be installed at user or system level?"
|
|
16
|
+
Answer: "User level (~/.config/superpowers/hooks/)"
|
|
17
|
+
|
|
18
|
+
Implementation:
|
|
19
|
+
- Implemented install-hook command
|
|
20
|
+
- Added tests, 5/5 passing
|
|
21
|
+
- Self-review: Found I missed --force flag, added it
|
|
22
|
+
- Committed
|
|
23
|
+
|
|
24
|
+
[Run spec compliance review following ./spec-reviewer-prompt.md]
|
|
25
|
+
Spec review: Spec compliant — all requirements met, nothing extra
|
|
26
|
+
|
|
27
|
+
[Run code quality review following ./code-quality-reviewer-prompt.md]
|
|
28
|
+
Code review: Strengths: Good test coverage, clean. Issues: None. Approved.
|
|
29
|
+
|
|
30
|
+
[Mark Task 1 complete in Symphony]
|
|
31
|
+
|
|
32
|
+
--- Task 2: Recovery modes ---
|
|
33
|
+
|
|
34
|
+
[Prepare task brief with full text + context]
|
|
35
|
+
[Execute implementation]
|
|
36
|
+
|
|
37
|
+
Implementation:
|
|
38
|
+
- Added verify/repair modes
|
|
39
|
+
- 8/8 tests passing
|
|
40
|
+
- Self-review: All good
|
|
41
|
+
- Committed
|
|
42
|
+
|
|
43
|
+
[Run spec compliance review]
|
|
44
|
+
Spec review: Issues found:
|
|
45
|
+
- Missing: Progress reporting (spec says "report every 100 items")
|
|
46
|
+
- Extra: Added --json flag (not requested)
|
|
47
|
+
|
|
48
|
+
[Fix issues: remove --json flag, add progress reporting]
|
|
49
|
+
[Run spec compliance review again]
|
|
50
|
+
Spec review: Spec compliant now
|
|
51
|
+
|
|
52
|
+
[Run code quality review]
|
|
53
|
+
Code review: Issue (Important): Magic number (100) should be a constant
|
|
54
|
+
|
|
55
|
+
[Fix: extract PROGRESS_INTERVAL constant]
|
|
56
|
+
[Run code quality review again]
|
|
57
|
+
Code review: Approved
|
|
58
|
+
|
|
59
|
+
[Mark Task 2 complete in Symphony]
|
|
60
|
+
|
|
61
|
+
... [Continue through remaining tasks] ...
|
|
62
|
+
|
|
63
|
+
[After all tasks complete]
|
|
64
|
+
[Run final code review on entire implementation]
|
|
65
|
+
Final review: All requirements met, ready to merge
|
|
66
|
+
|
|
67
|
+
[Complete Symphony task and present next steps]
|
|
68
|
+
Done!
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Task Brief Structure
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
task_boundary:
|
|
75
|
+
description: "Implement Task N: [task name]"
|
|
76
|
+
prompt: |
|
|
77
|
+
## Task Description
|
|
78
|
+
[FULL TEXT of task from plan — paste it here]
|
|
79
|
+
|
|
80
|
+
## Context
|
|
81
|
+
[Where this fits, dependencies, architectural context]
|
|
82
|
+
|
|
83
|
+
## Constraints
|
|
84
|
+
- Only modify [specific files/directories]
|
|
85
|
+
- Follow existing patterns in the codebase
|
|
86
|
+
- Write tests for new functionality
|
|
87
|
+
|
|
88
|
+
## Verification
|
|
89
|
+
- Run: [specific test command]
|
|
90
|
+
- Expected: [what success looks like]
|
|
91
|
+
```
|