@arsxxi/iterative-dev-workflow 1.0.0 → 1.0.2
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/.opencode/commands/kickoff.md +90 -0
- package/.opencode/commands/phase-1.md +47 -0
- package/.opencode/commands/phase-2-step-1.md +39 -0
- package/.opencode/commands/phase-2-step-2.md +39 -0
- package/.opencode/commands/phase-2-step-3.md +80 -0
- package/.opencode/commands/phase-2-step-4.md +67 -0
- package/.opencode/commands/phase-2-step-5.md +34 -0
- package/.opencode/commands/phase-3.md +45 -0
- package/.opencode/commands/phase-4.md +41 -0
- package/.opencode/commands/session-transcript.md +69 -0
- package/.opencode/plugins/iterative-dev-workflow.mjs +4 -1
- package/AGENTS.md +44 -441
- package/README.md +33 -13
- package/bin/install-opencode-commands.mjs +49 -0
- package/commands/kickoff.md +90 -90
- package/commands/kickoff.toml +2 -2
- package/commands/phase-1.md +47 -31
- package/commands/phase-2-step-1.md +39 -25
- package/commands/phase-2-step-2.md +39 -27
- package/commands/phase-2-step-3.md +80 -68
- package/commands/phase-2-step-4.md +67 -55
- package/commands/phase-2-step-5.md +34 -22
- package/commands/phase-3.md +45 -33
- package/commands/phase-4.md +41 -29
- package/commands/session-transcript.md +69 -57
- package/commands/session-transcript.toml +2 -2
- package/package.json +19 -7
- package/skills/workflow-methodology/SKILL.md +563 -464
package/AGENTS.md
CHANGED
|
@@ -1,464 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
description: "Kickoff"
|
|
3
|
-
argument-hint: [optional: feature-slug or description]
|
|
4
|
-
---
|
|
1
|
+
# AGENTS.md — Iterative Dev Workflow Plugin
|
|
5
2
|
|
|
6
|
-
##
|
|
3
|
+
## What this repo is
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
A structured 4-phase iterative development workflow plugin for AI coding agents (Claude Code, OpenCode, Antigravity/Codex, Gemini).
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
platform/stack (e.g. "React Native non-Expo", "Python backend service", "LLM agent pipeline"),
|
|
12
|
-
confirm your understanding back to me in one or two sentences and proceed to the section below.
|
|
13
|
-
- If any of those three are missing or vague, **stop and ask me**:
|
|
14
|
-
1. What are we building? (be as comprehensive as you want me to be - the more detail, the
|
|
15
|
-
better Phase 1 will be)
|
|
16
|
-
2. What platform/stack is this for? (e.g. mobile app - React Native/Expo/native, backend
|
|
17
|
-
service, LLM/agent pipeline, web frontend, CLI tool, etc. - this changes what Phase 1's
|
|
18
|
-
library/service analysis actually looks like)
|
|
19
|
-
3. What short slug should identify it? (used for the `.workflow/<slug>/` folder, e.g.
|
|
20
|
-
`article-quality-widget`)
|
|
7
|
+
## Source of truth
|
|
21
8
|
|
|
22
|
-
|
|
23
|
-
React Native or anything else) to analyze. Do not proceed past this point until I've answered.
|
|
9
|
+
`commands/*.md` (10 command files) and `skills/workflow-methodology/SKILL.md` are the authoritative sources. All other platform-specific files are generated from these.
|
|
24
10
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"Proposed Services". If I say I'm not sure or there's nothing existing yet, that's a valid
|
|
29
|
-
answer - don't invent a services list.
|
|
30
|
-
|
|
31
|
-
Once you know the platform/stack and existing services, use them consistently for the rest of
|
|
32
|
-
this workflow (Phase 1's library/package questions, Phase 2's architecture diagrams, etc. should
|
|
33
|
-
all be framed for this specific project, not a generic or assumed one).
|
|
34
|
-
|
|
35
|
-
## Step 1 - once we know what we're building
|
|
36
|
-
|
|
37
|
-
Here is the workflow we use for every feature, regardless of platform/stack:
|
|
38
|
-
|
|
39
|
-
- **Phase 1: Analyze** - requirements, libraries/packages, Existing vs. Proposed services, 5
|
|
40
|
-
candidate development paths, ATAM + SQALE, final timeline.
|
|
41
|
-
- **Phase 2: Design** - Solution Proposal (low-fidelity, divergent) -> ATAM -> Quality
|
|
42
|
-
Attribute Assessment (weighted scoring, may loop back to the proposal bucket) -> High-Fidelity
|
|
43
|
-
Design (System Context + User Flow diagrams in Mermaid.js).
|
|
44
|
-
- **Phase 3: Implement** - build it, following the High-Fidelity Design.
|
|
45
|
-
- **Phase 4: Post-Mortem** - retrospective.
|
|
46
|
-
|
|
47
|
-
This is an **iterative model, not waterfall**: if a problem surfaces in a later phase but
|
|
48
|
-
actually belongs to an earlier phase (e.g. an Implement-phase bug that's really a Design flaw),
|
|
49
|
-
we circle back to that earlier phase to fix it there rather than patching around it downstream.
|
|
50
|
-
|
|
51
|
-
I want you to do a deep, meticulous, extensive analysis of this workflow before we touch Phase 1:
|
|
52
|
-
|
|
53
|
-
1. Evaluate how it aligns with professional industry practice (e.g. where it maps to standard
|
|
54
|
-
models like Double Diamond, Set-Based Design, ATAM, SQALE - and where it deliberately departs
|
|
55
|
-
from them, and why that's reasonable for a project this size).
|
|
56
|
-
2. Flag any real gaps or risks in the workflow itself, applied to what we're building
|
|
57
|
-
specifically - not generic commentary.
|
|
58
|
-
3. Confirm you understand your role: you're my assistant through this, not an autopilot. After
|
|
59
|
-
each phase/step, you produce results and stop - I evaluate them and decide whether we move
|
|
60
|
-
on, adjust, or loop back. You never advance phases on your own.
|
|
61
|
-
|
|
62
|
-
## Step 2 - set up tracking
|
|
63
|
-
|
|
64
|
-
Once I've confirmed the analysis, create `.workflow/<slug>/` in this project (using the slug we
|
|
65
|
-
settled on in Step 0) and write `.workflow/<slug>/00-context.md` containing:
|
|
66
|
-
|
|
67
|
-
- Platform/stack
|
|
68
|
-
- What we're building (the description from Step 0)
|
|
69
|
-
- Existing Services (as I described them, or "none identified yet" if I said so)
|
|
70
|
-
|
|
71
|
-
Every later `/phase-*` command for this slug should read this file first and use it instead
|
|
72
|
-
of assuming or hardcoding a platform or services list.
|
|
73
|
-
|
|
74
|
-
## Hard constraints (apply for the entire workflow, every phase)
|
|
75
|
-
|
|
76
|
-
- AVOID overengineering. PREFER simple, low-complexity implementations. GOAL: high
|
|
77
|
-
maintainability.
|
|
78
|
-
- AVOID jargon when naming components/systems/functions - prefer plain language that states the
|
|
79
|
-
actual intent, so any developer can understand it without translation.
|
|
80
|
-
|
|
81
|
-
## Output
|
|
82
|
-
|
|
83
|
-
Give me your analysis of the workflow in chat (no need to write this one to a file - it's a
|
|
84
|
-
one-time discussion, not a phase deliverable). End by telling me you're ready for
|
|
85
|
-
`/phase-1` when I am.
|
|
86
|
-
|
|
87
|
-
## Trigger
|
|
88
|
-
```
|
|
89
|
-
$ARGUMENTS = "optional: feature-slug or description"
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
description: "Phase 1: Analyze"
|
|
96
|
-
argument-hint: [feature-slug or description]
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
# Phase 1: Analyze
|
|
100
|
-
|
|
101
|
-
## Purpose
|
|
102
|
-
Understand the task deeply before writing any code.
|
|
103
|
-
|
|
104
|
-
## Steps
|
|
105
|
-
|
|
106
|
-
1. **Read the task** — understand what the user is asking for
|
|
107
|
-
2. **Explore the codebase** — understand existing patterns, structure, and constraints
|
|
108
|
-
3. **Identify gaps** — what information is missing? What needs clarification?
|
|
109
|
-
4. **Ask questions if needed** — use the ask-questions-if-underspecified skill when requirements are unclear
|
|
110
|
-
|
|
111
|
-
## Output
|
|
112
|
-
- A clear summary of what needs to be built
|
|
113
|
-
- Identified constraints and context
|
|
114
|
-
- List of open questions (if any)
|
|
115
|
-
|
|
116
|
-
## When to escalate
|
|
117
|
-
- Requirements are ambiguous or contradictory
|
|
118
|
-
- Task involves security-critical or irreversible changes
|
|
119
|
-
- Scope is too large for a single iteration
|
|
120
|
-
|
|
121
|
-
## Trigger
|
|
122
|
-
```
|
|
123
|
-
$ARGUMENTS = "feature-slug or description"
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
description: "Phase 2 Step 1: Solution Proposal"
|
|
130
|
-
argument-hint: [feature-slug or description]
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
# Phase 2 Step 1: Solution Proposal
|
|
134
|
-
|
|
135
|
-
## Purpose
|
|
136
|
-
Create a minimum of 5 designs that we can use to solve our problem, according to the previous instruction about this step.
|
|
137
|
-
|
|
138
|
-
## Steps
|
|
139
|
-
|
|
140
|
-
1. **Recall the previous instruction** about Step 1: Solution Proposal
|
|
141
|
-
2. **Analyze industry standard** — do a deep dive, extensive and meticulous analysis on how industry standard conducts this step
|
|
142
|
-
3. **Create minimum 5 designs** that we can use to solve our problem
|
|
143
|
-
4. **Proceed to execute Step 1**
|
|
144
|
-
|
|
145
|
-
## Output
|
|
146
|
-
- Analysis of how industry standard conducts this step
|
|
147
|
-
- Minimum 5 design candidates
|
|
148
|
-
|
|
149
|
-
## Trigger
|
|
150
|
-
```
|
|
151
|
-
$ARGUMENTS = "feature-slug or description"
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
description: "Phase 2 Step 2: ATAM"
|
|
158
|
-
argument-hint: [feature-slug or description]
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
# Phase 2 Step 2: ATAM
|
|
162
|
-
|
|
163
|
-
## Purpose
|
|
164
|
-
Assess each design using ATAM. Our goal is to identify trade-offs and sensitivity points on each design.
|
|
165
|
-
|
|
166
|
-
## Steps
|
|
167
|
-
|
|
168
|
-
1. **Check for the previous result** from the previous step. If it's empty or not generated due to certain reason, DO NOT PROCEED TO EXECUTE THIS STEP. Don't forget to remind the user if this happened.
|
|
169
|
-
2. **Analyze all of our designs** — do a deep dive, extensive and meticulous analysis on all of our designs
|
|
170
|
-
3. **Proceed to execute Step 2: ATAM**
|
|
171
|
-
|
|
172
|
-
## Output
|
|
173
|
-
- Trade-offs identified for each design
|
|
174
|
-
- Sensitivity points identified for each design
|
|
175
|
-
|
|
176
|
-
## Error handling
|
|
177
|
-
If any step contains an error regarding user prompts, INFORM THE USER and DO NOT CONTINUE.
|
|
178
|
-
|
|
179
|
-
## Trigger
|
|
180
|
-
```
|
|
181
|
-
$ARGUMENTS = "feature-slug or description"
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
description: "Phase 2 Step 3: Quality Attribute"
|
|
188
|
-
argument-hint: [feature-slug or description]
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
# Phase 2 Step 3: Quality Attribute
|
|
192
|
-
|
|
193
|
-
## Purpose
|
|
194
|
-
Assess the results from Step 2: ATAM using Weighted Scoring Assessment, against Quality Attributes designed specifically for this project.
|
|
195
|
-
|
|
196
|
-
## Steps
|
|
197
|
-
|
|
198
|
-
1. **Check for the previous result** from Step 2 (ATAM). If it's empty or not generated, DO NOT PROCEED TO EXECUTE THIS STEP — remind the user.
|
|
199
|
-
|
|
200
|
-
2. **Ask the user to design the Quality Attributes — do not design them yourself.** Present this to the user:
|
|
201
|
-
|
|
202
|
-
> You will need to design these Quality Attributes by yourself and assign each Attribute a
|
|
203
|
-
> Score Range. Base this design on the problem you need to solve, the project requirements,
|
|
204
|
-
> or any other relatable requirements (FR, NFR). The example below shows a project that takes
|
|
205
|
-
> Performance as the highest-priority Quality Attribute, and therefore gives Performance the
|
|
206
|
-
> highest score (0-4) range.
|
|
207
|
-
>
|
|
208
|
-
> These are example only. YOU MUST DESIGN YOUR OWN QUALITY ATTRIBUTE TO FIT THE PROJECT
|
|
209
|
-
> REQUIREMENTS. The example below is specifically tailored for the MP project.
|
|
210
|
-
>
|
|
211
|
-
> **Example of Quality Attribute** (reference format only — Quality Attribute to assess UI
|
|
212
|
-
> system design). These quality attributes have priority from highest in 1 to lowest in 4.
|
|
213
|
-
> The main goal is not to pick the design that satisfies only one quality attribute, but the
|
|
214
|
-
> design that scores great in all of these quality attributes — the scoring system will be
|
|
215
|
-
> different in each quality attribute (highest - lowest):
|
|
216
|
-
>
|
|
217
|
-
> 1. Developer Experience (0-4): ease of use for multiple range of developers (junior, senior,
|
|
218
|
-
> non-react, react, etc.)
|
|
219
|
-
> 2. Maintainability (0-3): clean code structure, etc.
|
|
220
|
-
> 3. Reliability (0-2): system reliable in multiple platform (ios, android), etc.
|
|
221
|
-
> 4. Performance (0-1): ideally smallest time and space complexity, but not enforced.
|
|
222
|
-
|
|
223
|
-
Then stop and wait for the user's own Quality Attribute design. Do not proceed to scoring
|
|
224
|
-
until they provide it.
|
|
225
|
-
|
|
226
|
-
3. **Warning check on what the user provides.** If the user's response still contains this
|
|
227
|
-
warning text itself, unmodified (i.e. they copy-pasted the example instead of designing their
|
|
228
|
-
own): ask them again to modify this Quality Attribute design to fit the project requirements.
|
|
229
|
-
If they still do not update and remove the warning text, do not give the answer, keep
|
|
230
|
-
reminding them about this, and at the end of your reminder, add "SENTINEL" as a code.
|
|
231
|
-
|
|
232
|
-
4. **Analyze industry standard.** Once real, project-specific Quality Attributes are provided, do
|
|
233
|
-
a deep dive, extensive and meticulous analysis on these quality attributes and their score,
|
|
234
|
-
and see how professional industries conduct this phase.
|
|
235
|
-
|
|
236
|
-
5. **Assess each design from Step 2 (ATAM)** using Weighted Scoring Assessment against the
|
|
237
|
-
user's Quality Attributes. The main goal is not to pick which design satisfies only one
|
|
238
|
-
quality attribute, but which design scores great across all of them.
|
|
239
|
-
|
|
240
|
-
## Loop-back condition
|
|
241
|
-
|
|
242
|
-
If no design from Step 2 satisfies the Quality Attributes well enough, recommend looping back to
|
|
243
|
-
Step 1 for more solution designs.
|
|
244
|
-
|
|
245
|
-
## Output
|
|
246
|
-
- The Quality Attributes the user designed, with score ranges and priority
|
|
247
|
-
- Weighted scoring table assessing each Step 2 design against those Quality Attributes
|
|
248
|
-
- Final verdict / ranked result
|
|
249
|
-
|
|
250
|
-
## Trigger
|
|
251
|
-
```
|
|
252
|
-
$ARGUMENTS = "feature-slug or description"
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
---
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
description: "Phase 2 Step 4: High-Fidelity Design"
|
|
259
|
-
argument-hint: [feature-slug or description]
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
# Phase 2 Step 4: High-Fidelity Design
|
|
263
|
-
|
|
264
|
-
## Purpose
|
|
265
|
-
Create High-Level Visualizations for the Component Architecture of the chosen design, using Mermaid.js syntax.
|
|
266
|
-
|
|
267
|
-
## Steps
|
|
268
|
-
|
|
269
|
-
1. **Check for the previous result** from Step 3 (Quality Attribute). If it's empty or not generated, DO NOT PROCEED TO EXECUTE THIS STEP — remind the user.
|
|
270
|
-
|
|
271
|
-
2. **Remind the user to double-check Step 3's result before proceeding.** Present this to the user:
|
|
272
|
-
|
|
273
|
-
> Step 3 gave you the chosen design according to the Quality Attributes you designed
|
|
274
|
-
> previously. Make sure to double-check the results from Step 3 and do your own assessment of
|
|
275
|
-
> the results given by the AI agent in Step 3. Make sure you select the correct design, not
|
|
276
|
-
> just bias from the AI's results.
|
|
277
|
-
|
|
278
|
-
3. **Ask the user to explain their chosen design.** Present this to the user:
|
|
279
|
-
|
|
280
|
-
> Briefly explain the design you've selected from the previous phase, and explain from your
|
|
281
|
-
> opinion why you selected that design. Or if you have your own thoughts/modification, let the
|
|
282
|
-
> AI agent know here.
|
|
283
|
-
|
|
284
|
-
Then stop and wait for the user's explanation. Do not proceed to the analysis/diagram below
|
|
285
|
-
until they've explained their chosen design.
|
|
286
|
-
|
|
287
|
-
4. **Analyze the chosen design.** Once the user has explained their chosen design, do a deep
|
|
288
|
-
dive and meticulous analysis on that chosen design.
|
|
289
|
-
|
|
290
|
-
5. **Create the System Context Diagram.** Using Mermaid.js syntax, create a System Context
|
|
291
|
-
Diagram that defines the boundaries of the current solution (feature, system, etc.) we are
|
|
292
|
-
working on, and shows how the design sits within the whole app.
|
|
293
|
-
|
|
294
|
-
Once this diagram is done, stop. The User Journey diagram is a separate step -
|
|
295
|
-
`/phase-2-step-5` - run after you've reviewed this one.
|
|
296
|
-
|
|
297
|
-
## Hard constraints
|
|
298
|
-
|
|
299
|
-
- AVOID overengineering in the architecture itself — the diagrams should reflect a simple,
|
|
300
|
-
maintainable structure.
|
|
301
|
-
- Name every box/component in the diagrams using plain-language intent, not jargon.
|
|
302
|
-
|
|
303
|
-
## Output
|
|
304
|
-
- The user's explanation of their chosen design (and any modifications)
|
|
305
|
-
- Analysis of the chosen design
|
|
306
|
-
- System Context Diagram (Mermaid.js)
|
|
307
|
-
|
|
308
|
-
## Trigger
|
|
309
|
-
```
|
|
310
|
-
$ARGUMENTS = "feature-slug or description"
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
---
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
description: "Phase 2 Step 5: User Journey"
|
|
317
|
-
argument-hint: [feature-slug or description]
|
|
318
|
-
---
|
|
319
|
-
|
|
320
|
-
# Phase 2 Step 5: User Journey
|
|
321
|
-
|
|
322
|
-
## Purpose
|
|
323
|
-
Create a User Journey Diagram using Mermaid.js syntax for the chosen design from Step 4 (High-Fidelity Design).
|
|
324
|
-
|
|
325
|
-
## Steps
|
|
326
|
-
|
|
327
|
-
1. **Check for the previous result** from Step 4 (High-Fidelity Design). If it's empty or not generated, DO NOT PROCEED — remind the user.
|
|
328
|
-
2. **Create the User Journey Diagram** using Mermaid.js syntax, mapping the user's interaction flow through the system.
|
|
329
|
-
|
|
330
|
-
## Output
|
|
331
|
-
- User Journey Diagram (Mermaid.js)
|
|
332
|
-
|
|
333
|
-
## Trigger
|
|
11
|
+
**After editing `commands/` or `skills/`, run:**
|
|
12
|
+
```bash
|
|
13
|
+
bash scripts/sync-platforms.sh
|
|
334
14
|
```
|
|
335
|
-
$ARGUMENTS = "feature-slug or description"
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
description: "Phase 3: Implementation Plan"
|
|
342
|
-
argument-hint: [feature-slug or description]
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
# Phase 3: Implementation Plan
|
|
346
|
-
|
|
347
|
-
## Purpose
|
|
348
|
-
Write a comprehensive implementation plan based on the proposed plan and extensive architecture and design from Phase 1 and Phase 2.
|
|
349
|
-
|
|
350
|
-
## Steps
|
|
351
|
-
|
|
352
|
-
1. **Check for the previous result** from the previous step. If it's empty or not generated due to certain reason, then DO NOT PROCEED TO EXECUTE THIS STEP. Don't forget to remind the user if this happened.
|
|
353
|
-
2. **Write a comprehensive implementation plan** based on the proposed plan (Phase 1: Analyze) and extensive architecture and design (Phase 2: Design - the chosen design, ATAM trade-offs, Quality Attribute results, System Context Diagram, and User Journey Diagram).
|
|
354
|
-
|
|
355
|
-
## Constraints
|
|
356
|
-
|
|
357
|
-
AVOID overengineering, PREFER simple, low-complexity implementations with the GOAL of high maintainability, AVOID jargons when naming function/methods/class/components/system, instead PRIORITIZE using layman's terms or prefer naming with the actual intentions of the code, the GOAL is ease of developer understanding and maintainability.
|
|
358
|
-
|
|
359
|
-
## Iteration rule
|
|
360
|
-
|
|
361
|
-
If, while writing the implementation plan, you find a problem that is actually a Design problem
|
|
362
|
-
(not an implementation detail) - e.g. the architecture from Phase 2 doesn't actually support
|
|
363
|
-
something needed - STOP and tell the user clearly, and recommend circling back to Phase 2. Do
|
|
364
|
-
not silently work around a design flaw in the plan.
|
|
365
|
-
|
|
366
|
-
## Output
|
|
367
|
-
- A comprehensive implementation plan, written to `.workflow/<slug>/03-implement.md`
|
|
368
|
-
|
|
369
|
-
## Trigger
|
|
370
|
-
```
|
|
371
|
-
$ARGUMENTS = "feature-slug or description"
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
---
|
|
375
15
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
16
|
+
This syncs to:
|
|
17
|
+
- `.opencode/commands/` — OpenCode slash commands (copied verbatim)
|
|
18
|
+
- `.agent/workflows/` — Antigravity/Codex workflows (copied verbatim)
|
|
19
|
+
- `.agents/skills/workflow-methodology/` — Antigravity/Codex skill
|
|
380
20
|
|
|
381
|
-
|
|
21
|
+
**AGENTS.md is hand-curated.** It is intentionally NOT auto-generated. It serves as the OpenCode system-prompt injection file — a different purpose than the consumer-facing plugin payload. Keep the two in sync manually.
|
|
382
22
|
|
|
383
|
-
##
|
|
384
|
-
Reflect on the iteration to improve the next one.
|
|
23
|
+
## Workflow overview
|
|
385
24
|
|
|
386
|
-
## Prerequisites
|
|
387
|
-
- Phase 3 (Implement) is complete
|
|
388
|
-
|
|
389
|
-
## Steps
|
|
390
|
-
|
|
391
|
-
1. **What went well?** — capture successful patterns
|
|
392
|
-
2. **What could be better?** — identify friction and slowdowns
|
|
393
|
-
3. **What will we do differently?** — concrete improvements for next iteration
|
|
394
|
-
4. **Update workflow** — if a process change is needed, update the relevant command files
|
|
395
|
-
|
|
396
|
-
## Output
|
|
397
|
-
- Postmortem document
|
|
398
|
-
- Action items for next iteration
|
|
399
|
-
- Updated workflow documentation (if needed)
|
|
400
|
-
|
|
401
|
-
## Trigger
|
|
402
25
|
```
|
|
403
|
-
|
|
26
|
+
/kickoff
|
|
27
|
+
└── /phase-1
|
|
28
|
+
└── /phase-2-step-1
|
|
29
|
+
└── /phase-2-step-2
|
|
30
|
+
└── /phase-2-step-3 (may loop back to step-1)
|
|
31
|
+
└── /phase-2-step-4
|
|
32
|
+
└── /phase-2-step-5
|
|
33
|
+
└── /phase-3
|
|
34
|
+
└── /phase-4
|
|
404
35
|
```
|
|
405
36
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
description: "Session Transcript"
|
|
410
|
-
argument-hint: [optional: feature-slug]
|
|
411
|
-
---
|
|
412
|
-
|
|
413
|
-
# Session Transcript
|
|
414
|
-
|
|
415
|
-
## Purpose
|
|
416
|
-
Record this session's conversation as-is, in chronological order (who said what), as a standalone factual record — separate from the workflow's phase deliverables (which only contain final results, not the discussion that led to them).
|
|
417
|
-
|
|
418
|
-
## Steps
|
|
37
|
+
## Hard constraints (every phase)
|
|
419
38
|
|
|
420
|
-
|
|
39
|
+
- **AVOID overengineering.** Prefer simple, low-complexity implementations. Goal: high maintainability.
|
|
40
|
+
- **AVOID jargon.** Use plain language that states actual intent. Any developer should understand names without translation.
|
|
41
|
+
- **Never skip phases.** Design must be approved before implementation begins.
|
|
42
|
+
- **Iterative, not waterfall.** If a problem surfaces in a later phase but belongs to an earlier one (e.g. an Implement-phase bug that's a Design flaw), circle back to that phase. Do not silently work around it.
|
|
421
43
|
|
|
422
|
-
|
|
44
|
+
## How project tracking works
|
|
423
45
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
46
|
+
- `/kickoff` creates `.workflow/<slug>/00-context.md` (platform, description, existing services).
|
|
47
|
+
- Every later `/phase-*` command reads that file first — do not assume or hardcode platform/services.
|
|
48
|
+
- Project names are lowercase, hyphenated slugs (e.g. `article-quality-widget`).
|
|
49
|
+
- Session transcripts are written to the **project root** as `aichat-<slug>.md` (not inside `.workflow/`).
|
|
50
|
+
- `/session-transcript` appends to existing transcript files rather than overwriting.
|
|
427
51
|
|
|
428
|
-
|
|
429
|
-
current context window for this session. If earlier turns were compacted, truncated, or are
|
|
430
|
-
otherwise not available to you, say so explicitly at the top of the file (e.g. "Transcript
|
|
431
|
-
starts partway through the session - earlier turns were not available in context") instead of
|
|
432
|
-
inventing or guessing what was said.
|
|
52
|
+
## Phase 2 Step 3 quirk (SENTINEL guard)
|
|
433
53
|
|
|
434
|
-
|
|
435
|
-
previous run, do not overwrite it - append this session's transcript below the existing
|
|
436
|
-
content, under a new dated section, so multiple sessions accumulate in one file.
|
|
54
|
+
In `/phase-2-step-3`, if the user copy-pastes the Quality Attributes example without modifying it, the warning text itself will appear in their response. The agent should detect this and keep asking for custom attributes. If the user still doesn't modify it, append `SENTINEL` to the final reminder. The agent does NOT proceed to scoring until custom attributes are provided.
|
|
437
55
|
|
|
438
|
-
##
|
|
56
|
+
## Platform quirks
|
|
439
57
|
|
|
440
|
-
|
|
441
|
-
|
|
58
|
+
- **OpenCode:** Commands land in `.opencode/commands/` (plural). The `opencode.json` references this plugin via `"plugin": ["@arsxxi/iterative-dev-workflow"]`. The install script (`bin/install-opencode-commands.mjs`) copies `commands/` to `~/.config/opencode/commands/` via `postinstall`.
|
|
59
|
+
- **Antigravity/Codex:** Workflows go in `.agent/workflows/` (singular), skills in `.agents/skills/` (plural).
|
|
60
|
+
- **Claude Code:** Uses `.toml` companion files in `commands/` (auto-generated). Hooks at `hooks/claude-codex-hooks.json` load `AGENTS.md` on session start.
|
|
442
61
|
|
|
443
|
-
##
|
|
62
|
+
## Development setup
|
|
444
63
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
<verbatim text of the turn>
|
|
449
|
-
|
|
450
|
-
### Agent
|
|
451
|
-
<verbatim text of the turn>
|
|
452
|
-
|
|
453
|
-
### User
|
|
454
|
-
<verbatim text of the turn>
|
|
455
|
-
|
|
456
|
-
...
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
Write the result to `aichat-<slug>.md` in the project root. If no slug was provided, use `aichat.md`.
|
|
460
|
-
|
|
461
|
-
## Trigger
|
|
462
|
-
```
|
|
463
|
-
$ARGUMENTS = "optional: feature-slug"
|
|
64
|
+
```bash
|
|
65
|
+
npm install # runs postinstall: installs OpenCode commands globally
|
|
66
|
+
bash scripts/sync-platforms.sh # syncs to all platform targets
|
|
464
67
|
```
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ With Iterative Dev Workflow:
|
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
/kickoff
|
|
29
|
-
→ Agent asks: what platform? what stack? what's the
|
|
29
|
+
→ Agent asks: what platform? what stack? what's the project name?
|
|
30
30
|
→ You answer
|
|
31
31
|
→ Agent confirms understanding, sets up .workflow/<slug>/00-context.md
|
|
32
32
|
|
|
@@ -64,15 +64,15 @@ You stay in control. The agent never skips ahead.
|
|
|
64
64
|
### Claude Code
|
|
65
65
|
|
|
66
66
|
```
|
|
67
|
-
/plugin marketplace add
|
|
68
|
-
/plugin install iterative-dev-workflow@
|
|
67
|
+
/plugin marketplace add arsxxi/iterative-dev-workflow
|
|
68
|
+
/plugin install iterative-dev-workflow@arsxxi-iterative-dev-workflow
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
### Codex
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
codex plugin marketplace add
|
|
75
|
-
codex plugin add iterative-dev-workflow@
|
|
74
|
+
codex plugin marketplace add arsxxi/iterative-dev-workflow
|
|
75
|
+
codex plugin add iterative-dev-workflow@arsxxi-iterative-dev-workflow
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
### OpenCode
|
|
@@ -81,25 +81,38 @@ codex plugin add iterative-dev-workflow@Repository
|
|
|
81
81
|
npm install -g @arsxxi/iterative-dev-workflow
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
On install, a `postinstall` script copies the commands into `~/.config/opencode/commands/`
|
|
85
|
+
automatically. Restart OpenCode and type `/` to see them.
|
|
86
|
+
|
|
87
|
+
If commands still don't show up (some package managers or environments skip lifecycle scripts,
|
|
88
|
+
or your OpenCode version doesn't pick them up automatically), run the installer manually:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
npx --package=@arsxxi/iterative-dev-workflow iterative-dev-workflow-install
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Or, as a guaranteed last resort, copy the `commands/` folder from this repo directly into
|
|
95
|
+
`~/.config/opencode/commands/` (global) or `.opencode/commands/` inside your project yourself -
|
|
96
|
+
these are plain markdown files, no build step required.
|
|
97
|
+
|
|
98
|
+
Then add to your `opencode.json` (this enables the AGENTS.md system-prompt injection feature,
|
|
99
|
+
separate from command registration):
|
|
85
100
|
|
|
86
101
|
```json
|
|
87
102
|
{ "plugin": ["@arsxxi/iterative-dev-workflow"] }
|
|
88
103
|
```
|
|
89
104
|
|
|
90
|
-
Slash commands are auto-installed to `~/.config/opencode/commands/` on first run.
|
|
91
|
-
|
|
92
105
|
### Antigravity CLI
|
|
93
106
|
|
|
94
107
|
```bash
|
|
95
|
-
agy plugin install https://github.com/
|
|
108
|
+
agy plugin install https://github.com/arsxxi/iterative-dev-workflow
|
|
96
109
|
```
|
|
97
110
|
|
|
98
111
|
## Commands
|
|
99
112
|
|
|
100
113
|
| # | Command | Description |
|
|
101
114
|
|---|---------|-------------|
|
|
102
|
-
| 0 | `/kickoff` | Start a new project — asks what to build, platform/stack,
|
|
115
|
+
| 0 | `/kickoff` | Start a new project — asks what to build, platform/stack, project name |
|
|
103
116
|
| 1 | `/phase-1` | Analyze: understand task, explore codebase, identify gaps |
|
|
104
117
|
| 2.1 | `/phase-2-step-1` | Solution Proposal: create minimum 5 designs |
|
|
105
118
|
| 2.2 | `/phase-2-step-2` | ATAM: assess trade-offs and sensitivity points |
|
|
@@ -127,7 +140,7 @@ All phase outputs are written to `.workflow/<slug>/`:
|
|
|
127
140
|
└── 04-postmortem.md # Phase 4
|
|
128
141
|
```
|
|
129
142
|
|
|
130
|
-
Session transcripts are saved directly to the **project root** as `aichat-<slug>.md` (or `aichat.md` if no
|
|
143
|
+
Session transcripts are saved directly to the **project root** as `aichat-<slug>.md` (or `aichat.md` if no project name was provided).
|
|
131
144
|
|
|
132
145
|
## Hard Constraints
|
|
133
146
|
|
|
@@ -173,14 +186,21 @@ No. The workflow is modular. Use only what the task needs — but don't skip bac
|
|
|
173
186
|
|
|
174
187
|
Stop. Tell the user clearly. Circle back to Phase 2. Do not silently work around a design flaw in the plan.
|
|
175
188
|
|
|
176
|
-
**How do I choose a
|
|
189
|
+
**How do I choose a project name?**
|
|
177
190
|
|
|
178
|
-
Use a short, lowercase identifier with hyphens.
|
|
191
|
+
Use a short, lowercase identifier with hyphens (e.g. `user-auth`, `article-quality-widget`, `payment-flow`). It's used as the project folder name under `.workflow/<slug>/`, so it stays filesystem-safe.
|
|
179
192
|
|
|
180
193
|
**What's the difference between Phase 2 Step 4 and Step 5?**
|
|
181
194
|
|
|
182
195
|
Step 4 creates a System Context Diagram — shows how the solution fits within the whole app. Step 5 creates a User Journey Diagram — shows how the user interacts with the system.
|
|
183
196
|
|
|
197
|
+
## Acknowledgments
|
|
198
|
+
|
|
199
|
+
The Analyze → Design → Implement → Post-Mortem methodology, including the ATAM/SQALE
|
|
200
|
+
assessment framework and phase-gating prompts, was designed by **Hanzz**
|
|
201
|
+
([@haniladjamba](https://github.com/haniladjamba)). Implementation, cross-platform tooling,
|
|
202
|
+
and CI were built by [Arsxxi](https://github.com/Arsxxi).
|
|
203
|
+
|
|
184
204
|
## License
|
|
185
205
|
|
|
186
206
|
[MIT](LICENSE)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Writes this package's commands/*.md into OpenCode's global commands directory
|
|
3
|
+
// (~/.config/opencode/commands/) so slash commands work regardless of whether
|
|
4
|
+
// OpenCode's internal plugin "config" hook is supported in the installed version.
|
|
5
|
+
//
|
|
6
|
+
// Run automatically via the "postinstall" npm script. If that doesn't fire in your
|
|
7
|
+
// environment (some package managers skip lifecycle scripts by default), run this
|
|
8
|
+
// manually:
|
|
9
|
+
// npx --package=@arsxxi/iterative-dev-workflow iterative-dev-workflow-install
|
|
10
|
+
// or just copy the commands/ folder from this package into your OpenCode commands dir
|
|
11
|
+
// yourself - see README.md.
|
|
12
|
+
|
|
13
|
+
import fs from "fs";
|
|
14
|
+
import path from "path";
|
|
15
|
+
import os from "os";
|
|
16
|
+
import { fileURLToPath } from "url";
|
|
17
|
+
|
|
18
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const packageRoot = path.join(__dirname, "..");
|
|
20
|
+
const sourceDir = path.join(packageRoot, "commands");
|
|
21
|
+
|
|
22
|
+
const globalTarget = path.join(os.homedir(), ".config", "opencode", "commands");
|
|
23
|
+
|
|
24
|
+
function copyCommands(targetDir) {
|
|
25
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
26
|
+
const files = fs.readdirSync(sourceDir).filter((f) => f.endsWith(".md"));
|
|
27
|
+
for (const f of files) {
|
|
28
|
+
fs.copyFileSync(path.join(sourceDir, f), path.join(targetDir, f));
|
|
29
|
+
}
|
|
30
|
+
return files.length;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
const count = copyCommands(globalTarget);
|
|
35
|
+
console.log(
|
|
36
|
+
`[iterative-dev-workflow] Installed ${count} OpenCode commands to ${globalTarget}`
|
|
37
|
+
);
|
|
38
|
+
console.log(
|
|
39
|
+
"[iterative-dev-workflow] Restart OpenCode, then type / to see them (kickoff, phase-1, ...)."
|
|
40
|
+
);
|
|
41
|
+
} catch (err) {
|
|
42
|
+
console.warn(
|
|
43
|
+
"[iterative-dev-workflow] Could not auto-install OpenCode commands:",
|
|
44
|
+
err.message
|
|
45
|
+
);
|
|
46
|
+
console.warn(
|
|
47
|
+
`[iterative-dev-workflow] Manual fix: copy the commands/ folder from this package into ${globalTarget}`
|
|
48
|
+
);
|
|
49
|
+
}
|