@arsxxi/iterative-dev-workflowA structured 4-phase iterative development workflow for AI coding agents.
2
680
近 7 天 28
40.1
生态多维模型
27 天前
2026-07-23
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@arsxxi/iterative-dev-workflow@1.0.3"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@arsxxi/iterative-dev-workflow@1.0.3"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @arsxxi/iterative-dev-workflowopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Iterative Dev Workflow
Structure your AI agent's development process.
METHODOLOGY & PROMPT DESIGN
Stop shipping features that break production. Stop rewriting the same architecture three times. Stop wondering why your AI agent keeps over-engineering simple tasks.
Iterative Dev Workflow gives your AI agent a structured development process — from understanding the task to reflecting on what went wrong.
Before / after
You give your AI agent a vague task like "build user authentication." Without a structure, it writes code, asks no questions, and delivers something that doesn't match what you needed.
With Iterative Dev Workflow:
/kickoff
→ Agent asks: what platform? what stack? what's the project name?
→ You answer
→ Agent confirms understanding, sets up .workflow/<slug>/00-context.md
/phase-1
→ Agent explores codebase, identifies gaps, asks the right questions
/phase-2-step-1
→ Agent proposes 5 different approaches (Architecture, UI/UX, Data Model, etc.)
/phase-2-step-2
→ Agent analyzes trade-offs and sensitivity points for each approach
/phase-2-step-3
→ You define Quality Attributes (e.g. Performance, Maintainability)
→ Agent scores each design against your criteria
/phase-2-step-4
→ You choose the best design
→ Agent creates System Context Diagram (Mermaid.js)
/phase-2-step-5
→ Agent creates User Journey Diagram (Mermaid.js)
/phase-3
→ Agent writes implementation plan — avoiding overengineering
/phase-4
→ Agent reflects: what went well, what could be better
You stay in control. The agent never skips ahead.
Install
Claude Code
/plugin marketplace add arsxxi/iterative-dev-workflow
/plugin install iterative-dev-workflow@arsxxi-iterative-dev-workflow
Codex
codex plugin marketplace add arsxxi/iterative-dev-workflow
codex plugin add iterative-dev-workflow@arsxxi-iterative-dev-workflow
OpenCode
npm install -g @arsxxi/iterative-dev-workflow
On install, a postinstall script copies the commands into ~/.config/opencode/commands/
automatically. Restart OpenCode and type / to see them.
If commands still don't show up (some package managers or environments skip lifecycle scripts, or your OpenCode version doesn't pick them up automatically), run the installer manually:
npx --package=@arsxxi/iterative-dev-workflow iterative-dev-workflow-install
Or, as a guaranteed last resort, copy the commands/ folder from this repo directly into
~/.config/opencode/commands/ (global) or .opencode/commands/ inside your project yourself -
these are plain markdown files, no build step required.
Then add to your opencode.json (this enables the AGENTS.md system-prompt injection feature,
separate from command registration):
{ "plugin": ["@arsxxi/iterative-dev-workflow"] }
Kilo Code
Kilo Code is a VS Code extension, so there is no plugin marketplace command — the commands are installed as files. Easiest path, available in every project:
npm install -g @arsxxi/iterative-dev-workflow
npx --package=@arsxxi/iterative-dev-workflow iterative-dev-workflow-install-kilo
This copies the 10 commands into ~/.config/kilo/commands/ and the methodology into
~/.config/kilo/rules/. Reload the Kilo Code extension, then type / to see them.
To load the methodology into the system prompt, add the rules glob to
~/.config/kilo/kilo.jsonc:
{ "instructions": ["~/.config/kilo/rules/*.md"] }
For a single project instead of globally, copy .kilo/commands/ and .kilo/rules/ from this
repo into your project root and point kilo.jsonc at the rules:
{ "instructions": [".kilo/rules/*.md"] }
Older Kilo Code builds read .kilocode/workflows/ and .kilocode/rules/ instead. Both paths are
shipped in this repo, so either version works — newer builds migrate the legacy path on startup.
Antigravity CLI
agy plugin install https://github.com/arsxxi/iterative-dev-workflow
Commands
| # | Command | Description |
|---|---|---|
| 0 | /kickoff |
Start a new project — asks what to build, platform/stack, project name |
| 1 | /phase-1 |
Analyze: understand task, explore codebase, identify gaps |
| 2.1 | /phase-2-step-1 |
Solution Proposal: create minimum 5 designs |
| 2.2 | /phase-2-step-2 |
ATAM: assess trade-offs and sensitivity points |
| 2.3 | /phase-2-step-3 |
Quality Attribute: weighted scoring assessment |
| 2.4 | /phase-2-step-4 |
High-Fidelity Design: System Context Diagram (Mermaid.js) |
| 2.5 | /phase-2-step-5 |
User Journey: User Journey Diagram (Mermaid.js) |
| 3 | /phase-3 |
Implementation Plan: write comprehensive plan |
| 4 | /phase-4 |
Postmortem: reflect and improve |
| — | /session-transcript |
Record verbatim conversation to project root as aichat-<slug>.md |
Output Location
All phase outputs are written to .workflow/<slug>/:
.workflow/<slug>/
├── 00-context.md # platform, description, existing services
├── 01-analyze.md # Phase 1
├── 02-propose.md # Phase 2 Step 1
├── 02-atam.md # Phase 2 Step 2
├── 02-qa.md # Phase 2 Step 3
├── 02-hifi.md # Phase 2 Step 4 (System Context Diagram)
├── 02-journey.md # Phase 2 Step 5 (User Journey Diagram)
├── 03-implement.md # Phase 3
└── 04-postmortem.md # Phase 4
Session transcripts are saved directly to the project root as aichat-<slug>.md (or aichat.md if no project name was provided).
Hard Constraints
- AVOID overengineering. PREFER simple, low-complexity implementations.
- AVOID jargon. Use plain language that states actual intent.
- Never skip phases. Design must be approved before implementation begins.
- Iterative, not waterfall. If a problem surfaces in a later phase, circle back to fix it there.
Workflow Flow
/kickoff
└── /phase-1
└── /phase-2-step-1
└── /phase-2-step-2
└── /phase-2-step-3 (may loop back to /phase-2-step-1)
└── /phase-2-step-4
└── /phase-2-step-5
└── /phase-3
└── /phase-4
Development
The source of truth is commands/*.md (10 files) and skills/workflow-methodology/SKILL.md. After editing these, run:
bash scripts/sync-platforms.sh
This syncs to:
.opencode/commands/— OpenCode command definitions.agents/skills/— Antigravity/Codex skill definitions.kilo/commands/+.kilo/rules/— Kilo Code commands and methodology rule.kilocode/workflows/+.kilocode/rules/— same payload on Kilo Code's legacy pathsAGENTS.md— cross-platform instruction file
The Kilo Code targets are the only ones that aren't a verbatim copy: Kilo has no argument-hint
frontmatter key and doesn't substitute $ARGUMENTS, so scripts/build-kilo.mjs rewrites the
frontmatter and prepends a short note explaining where the argument comes from. The command body
itself is copied unchanged.
FAQ
Does every project need all phases?
No. The workflow is modular. Use only what the task needs — but don't skip backward. Each phase has a clear prerequisite chain.
What if the design doesn't support implementation?
Stop. Tell the user clearly. Circle back to Phase 2. Do not silently work around a design flaw in the plan.
How do I choose a project name?
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.
What's the difference between Phase 2 Step 4 and Step 5?
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.