@vpxa/aikit 0.1.20 → 0.1.22
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/package.json +1 -1
- package/packages/cli/dist/commands/init/scaffold.d.ts +3 -3
- package/packages/cli/dist/commands/init/scaffold.js +1 -1
- package/packages/cli/dist/commands/init/user.js +4 -4
- package/packages/core/dist/types.d.ts +2 -0
- package/packages/flows/dist/adapters/claude-plugin.js +1 -1
- package/packages/flows/dist/adapters/copilot.js +1 -1
- package/packages/flows/dist/builtins.js +1 -1
- package/packages/flows/dist/loader.js +1 -1
- package/packages/flows/dist/types.d.ts +2 -2
- package/packages/indexer/dist/smart-index-scheduler.d.ts +4 -1
- package/packages/indexer/dist/smart-index-scheduler.js +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/tool-metadata.js +1 -1
- package/packages/server/dist/tools/flow.tools.js +1 -1
- package/packages/store/dist/lance-store.d.ts +2 -0
- package/packages/store/dist/lance-store.js +1 -1
- package/scaffold/definitions/bodies.mjs +8 -8
- package/scaffold/definitions/plugins.mjs +92 -0
- package/scaffold/definitions/protocols.mjs +2 -2
- package/scaffold/flows/aikit-advanced/README.md +10 -10
- package/scaffold/flows/aikit-advanced/flow.json +6 -6
- package/scaffold/flows/aikit-advanced/{skills/design/SKILL.md → steps/design/README.md} +30 -0
- package/scaffold/flows/aikit-advanced/{skills/execute/SKILL.md → steps/execute/README.md} +19 -0
- package/scaffold/flows/aikit-advanced/{skills/plan/SKILL.md → steps/plan/README.md} +20 -0
- package/scaffold/flows/aikit-advanced/{skills/spec/SKILL.md → steps/spec/README.md} +19 -0
- package/scaffold/flows/aikit-advanced/{skills/task/SKILL.md → steps/task/README.md} +18 -0
- package/scaffold/flows/aikit-advanced/{skills/verify/SKILL.md → steps/verify/README.md} +21 -0
- package/scaffold/flows/aikit-basic/README.md +8 -8
- package/scaffold/flows/aikit-basic/flow.json +4 -4
- package/scaffold/flows/aikit-basic/{skills/assess/SKILL.md → steps/assess/README.md} +25 -0
- package/scaffold/flows/aikit-basic/{skills/design/SKILL.md → steps/design/README.md} +32 -0
- package/scaffold/flows/aikit-basic/{skills/implement/SKILL.md → steps/implement/README.md} +24 -0
- package/scaffold/flows/aikit-basic/{skills/verify/SKILL.md → steps/verify/README.md} +25 -0
- package/scaffold/general/agents/Orchestrator.agent.md +6 -6
- package/scaffold/general/agents/Planner.agent.md +2 -2
- package/scaffold/general/agents/_shared/code-agent-base.md +2 -2
- package/scaffold/general/skills/adr-skill/SKILL.md +6 -6
- package/scaffold/general/skills/aikit/SKILL.md +10 -10
- package/scaffold/general/skills/brainstorming/SKILL.md +11 -13
- package/scaffold/general/skills/c4-architecture/SKILL.md +1 -0
- package/scaffold/general/skills/requirements-clarity/SKILL.md +5 -3
- package/scaffold/general/skills/session-handoff/SKILL.md +2 -0
- package/scaffold/general/skills/brainstorming/scripts/frame-template.html +0 -365
- package/scaffold/general/skills/brainstorming/scripts/helper.js +0 -216
- package/scaffold/general/skills/brainstorming/scripts/server.cjs +0 -9
- package/scaffold/general/skills/brainstorming/scripts/server.src.cjs +0 -249
- package/scaffold/general/skills/brainstorming/visual-companion.md +0 -430
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": "design",
|
|
8
8
|
"name": "Design Gate",
|
|
9
|
-
"
|
|
9
|
+
"instruction": "steps/design/README.md",
|
|
10
10
|
"produces": ["design-decisions.md"],
|
|
11
11
|
"requires": [],
|
|
12
12
|
"agents": ["Researcher-Alpha", "Researcher-Beta", "Researcher-Gamma", "Researcher-Delta"],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"id": "spec",
|
|
17
17
|
"name": "Specification",
|
|
18
|
-
"
|
|
18
|
+
"instruction": "steps/spec/README.md",
|
|
19
19
|
"produces": ["spec.md"],
|
|
20
20
|
"requires": ["design-decisions.md"],
|
|
21
21
|
"agents": ["Researcher-Alpha"],
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{
|
|
25
25
|
"id": "plan",
|
|
26
26
|
"name": "Planning",
|
|
27
|
-
"
|
|
27
|
+
"instruction": "steps/plan/README.md",
|
|
28
28
|
"produces": ["plan.md"],
|
|
29
29
|
"requires": ["spec.md"],
|
|
30
30
|
"agents": ["Planner", "Explorer"],
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{
|
|
34
34
|
"id": "task",
|
|
35
35
|
"name": "Task Breakdown",
|
|
36
|
-
"
|
|
36
|
+
"instruction": "steps/task/README.md",
|
|
37
37
|
"produces": ["tasks.md"],
|
|
38
38
|
"requires": ["plan.md"],
|
|
39
39
|
"agents": ["Planner", "Architect-Reviewer-Alpha"],
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
{
|
|
43
43
|
"id": "execute",
|
|
44
44
|
"name": "Execution",
|
|
45
|
-
"
|
|
45
|
+
"instruction": "steps/execute/README.md",
|
|
46
46
|
"produces": ["progress.md"],
|
|
47
47
|
"requires": ["tasks.md"],
|
|
48
48
|
"agents": ["Orchestrator", "Implementer", "Frontend", "Refactor"],
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
{
|
|
52
52
|
"id": "verify",
|
|
53
53
|
"name": "Verification",
|
|
54
|
-
"
|
|
54
|
+
"instruction": "steps/verify/README.md",
|
|
55
55
|
"produces": ["verify-report.md"],
|
|
56
56
|
"requires": ["progress.md"],
|
|
57
57
|
"agents": [
|
|
@@ -132,3 +132,33 @@ After user approves:
|
|
|
132
132
|
- `Researcher-Beta` — Trade-offs and edge cases
|
|
133
133
|
- `Researcher-Gamma` — Cross-domain patterns
|
|
134
134
|
- `Researcher-Delta` — Feasibility and performance
|
|
135
|
+
|
|
136
|
+
## Foundation Integration
|
|
137
|
+
|
|
138
|
+
Load these skills BEFORE executing this step:
|
|
139
|
+
|
|
140
|
+
| Skill | Purpose | When |
|
|
141
|
+
|-------|---------|------|
|
|
142
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
143
|
+
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
144
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
145
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
146
|
+
| `c4-architecture` | C4 model diagrams showing system structure changes | When visualizing proposed architecture |
|
|
147
|
+
| `adr-skill` | Architecture Decision Records for non-trivial decisions | Critical tier — document architecture decisions |
|
|
148
|
+
|
|
149
|
+
### Presentation Rules
|
|
150
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
151
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
152
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
153
|
+
- Artifact content and summaries → present with structured layout
|
|
154
|
+
- Only use plain text for brief confirmations and simple questions
|
|
155
|
+
|
|
156
|
+
## Knowledge Capture
|
|
157
|
+
|
|
158
|
+
Before completing this step, persist important findings using `remember()`:
|
|
159
|
+
|
|
160
|
+
- **Design decisions**: Chosen approach and alternatives considered with trade-offs
|
|
161
|
+
- **Architecture patterns**: New patterns introduced or existing patterns that must be followed
|
|
162
|
+
- **Constraints discovered**: Technical limitations, compatibility requirements, or performance boundaries
|
|
163
|
+
|
|
164
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -5,6 +5,14 @@ description: Implement all tasks from the task breakdown, dispatching agents in
|
|
|
5
5
|
|
|
6
6
|
# Execution
|
|
7
7
|
|
|
8
|
+
## Prerequisites Check
|
|
9
|
+
|
|
10
|
+
Before starting this step, verify:
|
|
11
|
+
- [ ] Task breakdown approved with valid task graph
|
|
12
|
+
- [ ] `.spec/<slug>/tasks.md` exists with defined batches and dependencies
|
|
13
|
+
|
|
14
|
+
If prerequisites are NOT met -> **backtrack to task step** (`flow_step({ action: 'redo' })` on previous step)
|
|
15
|
+
|
|
8
16
|
## Purpose
|
|
9
17
|
|
|
10
18
|
Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
|
|
@@ -86,6 +94,7 @@ Load these skills BEFORE executing this step:
|
|
|
86
94
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
87
95
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
88
96
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
97
|
+
| `session-handoff` | Context preservation for long-running execution phases | When execution spans multiple sessions or context is filling |
|
|
89
98
|
|
|
90
99
|
### Presentation Rules
|
|
91
100
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -122,3 +131,13 @@ Follow the `multi-agents-development` skill patterns for dispatch:
|
|
|
122
131
|
- [ ] `test_run({})` passes
|
|
123
132
|
- [ ] No blocked items remaining
|
|
124
133
|
- [ ] `.spec/<slug>/progress.md` written
|
|
134
|
+
|
|
135
|
+
## Knowledge Capture
|
|
136
|
+
|
|
137
|
+
Before completing this step, persist important findings using `remember()`:
|
|
138
|
+
|
|
139
|
+
- **Implementation decisions**: Why specific approaches were chosen over alternatives
|
|
140
|
+
- **Patterns established**: New conventions or patterns that future code should follow
|
|
141
|
+
- **Gotchas encountered**: Edge cases, workarounds, or non-obvious behaviors discovered during execution
|
|
142
|
+
|
|
143
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -5,6 +5,14 @@ description: Analyze the codebase, design the architecture, and create a detaile
|
|
|
5
5
|
|
|
6
6
|
# Planning
|
|
7
7
|
|
|
8
|
+
## Prerequisites Check
|
|
9
|
+
|
|
10
|
+
Before starting this step, verify:
|
|
11
|
+
- [ ] Specification approved with clarity score ≥90
|
|
12
|
+
- [ ] `.spec/<slug>/spec.md` exists and is complete
|
|
13
|
+
|
|
14
|
+
If prerequisites are NOT met → **backtrack to spec step** (`flow_step({ action: 'redo' })` on previous step)
|
|
15
|
+
|
|
8
16
|
## Purpose
|
|
9
17
|
|
|
10
18
|
Translate the specification into a concrete, phased implementation plan with architecture decisions, file-level scope, and dependency ordering.
|
|
@@ -82,6 +90,8 @@ Load these skills BEFORE executing this step:
|
|
|
82
90
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
83
91
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
84
92
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
93
|
+
| `adr-skill` | Architecture Decision Records for non-trivial technical decisions | When plan involves architecture choices that need documentation |
|
|
94
|
+
| `c4-architecture` | C4 model diagrams showing system structure changes | When plan modifies system architecture |
|
|
85
95
|
|
|
86
96
|
### Presentation Rules
|
|
87
97
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -98,3 +108,13 @@ Load these skills BEFORE executing this step:
|
|
|
98
108
|
- [ ] Dependency graph has no circular dependencies
|
|
99
109
|
- [ ] Risks identified with mitigations
|
|
100
110
|
- [ ] `.spec/<slug>/plan.md` written
|
|
111
|
+
|
|
112
|
+
## Knowledge Capture
|
|
113
|
+
|
|
114
|
+
Before completing this step, persist important findings using `remember()`:
|
|
115
|
+
|
|
116
|
+
- **Task dependencies**: Critical ordering constraints and parallel opportunities
|
|
117
|
+
- **Risk assessment**: Identified risks and mitigation strategies
|
|
118
|
+
- **Resource decisions**: File ownership, module boundaries, and integration points
|
|
119
|
+
|
|
120
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -5,6 +5,14 @@ description: Elicit requirements, clarify scope, and define acceptance criteria
|
|
|
5
5
|
|
|
6
6
|
# Specification
|
|
7
7
|
|
|
8
|
+
## Prerequisites Check
|
|
9
|
+
|
|
10
|
+
Before starting this step, verify:
|
|
11
|
+
- [ ] Design decisions approved (design-decisions.md exists with user approval)
|
|
12
|
+
- [ ] FORGE tier assigned and documented
|
|
13
|
+
|
|
14
|
+
If prerequisites are NOT met -> **backtrack to design step** (`flow_step({ action: 'redo' })` on previous step)
|
|
15
|
+
|
|
8
16
|
## Purpose
|
|
9
17
|
|
|
10
18
|
Transform a vague or broad feature request into a precise, testable specification through requirements elicitation and stakeholder dialogue.
|
|
@@ -83,6 +91,7 @@ Load these skills BEFORE executing this step:
|
|
|
83
91
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
84
92
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
85
93
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
94
|
+
| `requirements-clarity` | Score requirements 0-100, iterate until ≥90 before proceeding | Before writing spec — ensures requirements are clear enough |
|
|
86
95
|
|
|
87
96
|
### Presentation Rules
|
|
88
97
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -98,3 +107,13 @@ Load these skills BEFORE executing this step:
|
|
|
98
107
|
- [ ] Requirements clarity score ≥ 90
|
|
99
108
|
- [ ] No open questions remain
|
|
100
109
|
- [ ] `.spec/<slug>/spec.md` written
|
|
110
|
+
|
|
111
|
+
## Knowledge Capture
|
|
112
|
+
|
|
113
|
+
Before completing this step, persist important findings using `remember()`:
|
|
114
|
+
|
|
115
|
+
- **Requirements clarified**: Ambiguities resolved and assumptions validated
|
|
116
|
+
- **Scope boundaries**: What the spec covers and explicit exclusions
|
|
117
|
+
- **Acceptance criteria**: Key testable conditions that define "done"
|
|
118
|
+
|
|
119
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -5,6 +5,14 @@ description: Break the implementation plan into ordered, atomic tasks with depen
|
|
|
5
5
|
|
|
6
6
|
# Task Breakdown
|
|
7
7
|
|
|
8
|
+
## Prerequisites Check
|
|
9
|
+
|
|
10
|
+
Before starting this step, verify:
|
|
11
|
+
- [ ] Implementation plan approved
|
|
12
|
+
- [ ] `.spec/<slug>/plan.md` exists with defined phases
|
|
13
|
+
|
|
14
|
+
If prerequisites are NOT met → **backtrack to plan step** (`flow_step({ action: 'redo' })` on previous step)
|
|
15
|
+
|
|
8
16
|
## Purpose
|
|
9
17
|
|
|
10
18
|
Decompose the implementation plan into small, atomic tasks that agents can execute independently, with clear dependency ordering and acceptance criteria per task.
|
|
@@ -97,3 +105,13 @@ Load these skills BEFORE executing this step:
|
|
|
97
105
|
- [ ] Parallelism opportunities identified
|
|
98
106
|
- [ ] Architect review confirms no integration risks
|
|
99
107
|
- [ ] `.spec/<slug>/tasks.md` written
|
|
108
|
+
|
|
109
|
+
## Knowledge Capture
|
|
110
|
+
|
|
111
|
+
Before completing this step, persist important findings using `remember()`:
|
|
112
|
+
|
|
113
|
+
- **Task decomposition rationale**: Why tasks were split this way and what each accomplishes
|
|
114
|
+
- **Interface contracts**: APIs, types, or data shapes that tasks depend on
|
|
115
|
+
- **Coordination points**: Where tasks interact and handoff requirements
|
|
116
|
+
|
|
117
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -5,6 +5,15 @@ description: Dual code review, architecture review, security review, and compreh
|
|
|
5
5
|
|
|
6
6
|
# Verification (Advanced)
|
|
7
7
|
|
|
8
|
+
## Prerequisites Check
|
|
9
|
+
|
|
10
|
+
Before starting this step, verify:
|
|
11
|
+
- [ ] All tasks marked complete in progress tracker
|
|
12
|
+
- [ ] `check({})` and `test_run({})` pass
|
|
13
|
+
- [ ] `.spec/<slug>/progress.md` exists with execution results
|
|
14
|
+
|
|
15
|
+
If prerequisites are NOT met → **backtrack to execute step** (`flow_step({ action: 'redo' })` on previous step)
|
|
16
|
+
|
|
8
17
|
## Purpose
|
|
9
18
|
|
|
10
19
|
Perform thorough multi-perspective validation of all changes through parallel dual code review, architecture review, and security analysis.
|
|
@@ -94,6 +103,8 @@ Load these skills BEFORE executing this step:
|
|
|
94
103
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
95
104
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
96
105
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
106
|
+
| `lesson-learned` | Extract engineering principles from completed work | After verification — capture lessons from the implementation |
|
|
107
|
+
| `session-handoff` | Context preservation for session continuity | When verification spans sessions or for final handoff documentation |
|
|
97
108
|
|
|
98
109
|
### Presentation Rules
|
|
99
110
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -120,3 +131,13 @@ After all reviews complete:
|
|
|
120
131
|
- [ ] All spec acceptance criteria verified
|
|
121
132
|
- [ ] FORGE gate passed (YIELD)
|
|
122
133
|
- [ ] `.spec/<slug>/verify-report.md` written with clear verdict
|
|
134
|
+
|
|
135
|
+
## Knowledge Capture
|
|
136
|
+
|
|
137
|
+
Before completing this step, persist important findings using `remember()`:
|
|
138
|
+
|
|
139
|
+
- **Test coverage gaps**: Areas that couldn't be fully tested and why
|
|
140
|
+
- **Quality findings**: Issues found during verification and their resolutions
|
|
141
|
+
- **Session checkpoint**: Summarize what was accomplished, decisions made, and any remaining work
|
|
142
|
+
|
|
143
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -6,19 +6,19 @@ Quick development flow for **bug fixes, small features, and refactoring**.
|
|
|
6
6
|
|
|
7
7
|
| # | Step | Skill | Produces | Requires | Agents |
|
|
8
8
|
|---|------|-------|----------|----------|--------|
|
|
9
|
-
| 1 | **Design Gate** | `
|
|
10
|
-
| 2 | **Assessment** | `
|
|
11
|
-
| 3 | **Implementation** | `
|
|
12
|
-
| 4 | **Verification** | `
|
|
9
|
+
| 1 | **Design Gate** | `steps/design/README.md` | `design-decisions.md` | — | Researcher-Alpha/Beta/Gamma/Delta |
|
|
10
|
+
| 2 | **Assessment** | `steps/assess/README.md` | `assessment.md` | `design-decisions.md` | Explorer, Researcher-Alpha |
|
|
11
|
+
| 3 | **Implementation** | `steps/implement/README.md` | `progress.md` | `assessment.md` | Implementer, Frontend |
|
|
12
|
+
| 4 | **Verification** | `steps/verify/README.md` | `verify-report.md` | `progress.md` | Code-Reviewer-Alpha, Security |
|
|
13
13
|
|
|
14
14
|
## How It Works
|
|
15
15
|
|
|
16
|
-
Each step has a **
|
|
16
|
+
Each step has a **README.md** file that contains the detailed instructions for the agent(s) executing that step. The Orchestrator reads the README.md via `flow_read_instruction` and delegates work accordingly.
|
|
17
17
|
|
|
18
18
|
### Step 1: Design Gate
|
|
19
19
|
- **Auto-skips** for bug fixes and refactors (produces a minimal `design-decisions.md` noting it was skipped)
|
|
20
20
|
- For small features: runs quick brainstorming, FORGE classification, and optional decision protocol
|
|
21
|
-
- Read `
|
|
21
|
+
- Read `steps/design/README.md` for the full decision tree
|
|
22
22
|
|
|
23
23
|
### Step 2: Assessment
|
|
24
24
|
- Explore the codebase to understand scope and impact
|
|
@@ -39,8 +39,8 @@ Each step has a **SKILL.md** file that contains the detailed instructions for th
|
|
|
39
39
|
|
|
40
40
|
When the Orchestrator activates a step:
|
|
41
41
|
|
|
42
|
-
1. **Read the
|
|
43
|
-
2. **Follow
|
|
42
|
+
1. **Read the instruction first** — `flow_read_instruction` returns the README.md for the current step
|
|
43
|
+
2. **Follow step instructions** — the README.md is the primary guide for what to do
|
|
44
44
|
3. **Delegate to listed agents** — each step lists which agents are appropriate
|
|
45
45
|
4. **Produce the required artifact** — the step's `produces` field specifies what file to create in the artifacts directory
|
|
46
46
|
5. **Check dependencies** — the step's `requires` field lists artifacts from previous steps that must exist
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": "design",
|
|
8
8
|
"name": "Design Gate",
|
|
9
|
-
"
|
|
9
|
+
"instruction": "steps/design/README.md",
|
|
10
10
|
"produces": ["design-decisions.md"],
|
|
11
11
|
"requires": [],
|
|
12
12
|
"agents": ["Researcher-Alpha", "Researcher-Beta", "Researcher-Gamma", "Researcher-Delta"],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"id": "assess",
|
|
17
17
|
"name": "Assessment",
|
|
18
|
-
"
|
|
18
|
+
"instruction": "steps/assess/README.md",
|
|
19
19
|
"produces": ["assessment.md"],
|
|
20
20
|
"requires": ["design-decisions.md"],
|
|
21
21
|
"agents": ["Explorer", "Researcher-Alpha"],
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{
|
|
25
25
|
"id": "implement",
|
|
26
26
|
"name": "Implementation",
|
|
27
|
-
"
|
|
27
|
+
"instruction": "steps/implement/README.md",
|
|
28
28
|
"produces": ["progress.md"],
|
|
29
29
|
"requires": ["assessment.md"],
|
|
30
30
|
"agents": ["Implementer", "Frontend"],
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{
|
|
34
34
|
"id": "verify",
|
|
35
35
|
"name": "Verification",
|
|
36
|
-
"
|
|
36
|
+
"instruction": "steps/verify/README.md",
|
|
37
37
|
"produces": ["verify-report.md"],
|
|
38
38
|
"requires": ["progress.md"],
|
|
39
39
|
"agents": ["Code-Reviewer-Alpha", "Security"],
|
|
@@ -14,6 +14,19 @@ Analyze the task requirements and codebase to produce a clear, actionable assess
|
|
|
14
14
|
- User's task description or issue reference
|
|
15
15
|
- Codebase (accessed via aikit MCP tools)
|
|
16
16
|
|
|
17
|
+
## Prerequisites Check
|
|
18
|
+
|
|
19
|
+
Before executing this step, verify:
|
|
20
|
+
|
|
21
|
+
- [ ] Design decisions documented (from the design step)
|
|
22
|
+
- [ ] FORGE classification determined (tier assigned)
|
|
23
|
+
- [ ] If brainstorming was done, session outcomes are recorded
|
|
24
|
+
|
|
25
|
+
If any prerequisites are missing or incomplete:
|
|
26
|
+
1. Inform the Orchestrator with specifics about what's missing
|
|
27
|
+
2. Recommend `flow_step({ action: 'redo' })` on the **design** step
|
|
28
|
+
3. Do NOT proceed with partial inputs — quality degrades downstream
|
|
29
|
+
|
|
17
30
|
## Process
|
|
18
31
|
|
|
19
32
|
1. **Parse the goal** — Extract what needs to change, success criteria, and constraints
|
|
@@ -65,6 +78,8 @@ Load these skills BEFORE executing this step:
|
|
|
65
78
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
66
79
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
67
80
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
81
|
+
| `c4-architecture` | C4 model architecture diagrams — system context, container, component, deployment views | When visualizing system structure during assessment |
|
|
82
|
+
| `adr-skill` | Architecture Decision Records — create, review, maintain ADRs | When assessment reveals non-trivial design decisions |
|
|
68
83
|
|
|
69
84
|
### Presentation Rules
|
|
70
85
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -80,3 +95,13 @@ Load these skills BEFORE executing this step:
|
|
|
80
95
|
- [ ] Risks documented with mitigations
|
|
81
96
|
- [ ] No unresolved open questions that block implementation
|
|
82
97
|
- [ ] `.spec/<slug>/assessment.md` written
|
|
98
|
+
|
|
99
|
+
## Knowledge Capture
|
|
100
|
+
|
|
101
|
+
Before completing this step, persist important findings using `remember()`:
|
|
102
|
+
|
|
103
|
+
- **Codebase discoveries**: File locations, architecture patterns, or dependency relationships found during assessment
|
|
104
|
+
- **Problem diagnosis**: Root cause analysis, contributing factors, and affected components
|
|
105
|
+
- **Scope decisions**: What's in scope, what's explicitly excluded, and why
|
|
106
|
+
|
|
107
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -73,3 +73,35 @@ When complete, report status:
|
|
|
73
73
|
## Agents
|
|
74
74
|
|
|
75
75
|
- `Researcher-Alpha`, `Researcher-Beta`, `Researcher-Gamma`, `Researcher-Delta` — for parallel research during decision protocol
|
|
76
|
+
|
|
77
|
+
## Foundation Integration
|
|
78
|
+
|
|
79
|
+
Load these skills BEFORE executing this step:
|
|
80
|
+
|
|
81
|
+
| Skill | Purpose | When |
|
|
82
|
+
|-------|---------|------|
|
|
83
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
84
|
+
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
85
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
86
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
87
|
+
| `c4-architecture` | C4 model architecture diagrams — system context, container, component, deployment views | When visualizing system structure during design |
|
|
88
|
+
| `adr-skill` | Architecture Decision Records — create, review, maintain ADRs | When making non-trivial design or technology decisions |
|
|
89
|
+
|
|
90
|
+
### Presentation Rules
|
|
91
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
92
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
93
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
94
|
+
- Artifact content and summaries → present with structured layout
|
|
95
|
+
- Only use plain text for brief confirmations and simple questions
|
|
96
|
+
|
|
97
|
+
## Completion Criteria
|
|
98
|
+
|
|
99
|
+
## Knowledge Capture
|
|
100
|
+
|
|
101
|
+
Before completing this step, persist important findings using `remember()`:
|
|
102
|
+
|
|
103
|
+
- **Design decisions**: Chosen approach and alternatives considered with trade-offs
|
|
104
|
+
- **Architecture patterns**: New patterns introduced or existing patterns that must be followed
|
|
105
|
+
- **Constraints discovered**: Technical limitations, compatibility requirements, or performance boundaries
|
|
106
|
+
|
|
107
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -13,6 +13,19 @@ Execute the implementation plan from the assessment, writing production code and
|
|
|
13
13
|
|
|
14
14
|
- `.spec/<slug>/assessment.md` — the approach, affected files, and risks
|
|
15
15
|
|
|
16
|
+
## Prerequisites Check
|
|
17
|
+
|
|
18
|
+
Before executing this step, verify:
|
|
19
|
+
|
|
20
|
+
- [ ] Assessment complete and scope approved (from the assess step)
|
|
21
|
+
- [ ] Files-to-modify list is clear and bounded
|
|
22
|
+
- [ ] `check({})` baseline captured (know what currently passes)
|
|
23
|
+
|
|
24
|
+
If any prerequisites are missing or incomplete:
|
|
25
|
+
1. Inform the Orchestrator with specifics about what's missing
|
|
26
|
+
2. Recommend `flow_step({ action: 'redo' })` on the **assess** step
|
|
27
|
+
3. Do NOT proceed with partial inputs — quality degrades downstream
|
|
28
|
+
|
|
16
29
|
## Process
|
|
17
30
|
|
|
18
31
|
1. **Read assessment** — Load `.spec/<slug>/assessment.md` and internalize the approach
|
|
@@ -67,6 +80,7 @@ Load these skills BEFORE executing this step:
|
|
|
67
80
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
68
81
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
69
82
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
83
|
+
| `session-handoff` | Context preservation for session transfers | When implementation is long-running and context may fill up |
|
|
70
84
|
|
|
71
85
|
### Presentation Rules
|
|
72
86
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -103,3 +117,13 @@ Follow the `multi-agents-development` skill patterns for dispatch:
|
|
|
103
117
|
- [ ] `test_run({})` passes (no test failures)
|
|
104
118
|
- [ ] No files modified outside assessed scope
|
|
105
119
|
- [ ] `.spec/<slug>/progress.md` written
|
|
120
|
+
|
|
121
|
+
## Knowledge Capture
|
|
122
|
+
|
|
123
|
+
Before completing this step, persist important findings using `remember()`:
|
|
124
|
+
|
|
125
|
+
- **Implementation decisions**: Why specific approaches were chosen over alternatives
|
|
126
|
+
- **Patterns established**: New conventions or patterns that future code should follow
|
|
127
|
+
- **Gotchas encountered**: Edge cases, workarounds, or non-obvious behaviors discovered during implementation
|
|
128
|
+
|
|
129
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -14,6 +14,19 @@ Validate that the implementation meets the original requirements, passes all qua
|
|
|
14
14
|
- `.spec/<slug>/assessment.md` — original requirements and approach
|
|
15
15
|
- `.spec/<slug>/progress.md` — what was implemented and any deviations
|
|
16
16
|
|
|
17
|
+
## Prerequisites Check
|
|
18
|
+
|
|
19
|
+
Before executing this step, verify:
|
|
20
|
+
|
|
21
|
+
- [ ] Implementation complete (from the implement step)
|
|
22
|
+
- [ ] `check({})` + `test_run({})` pass at baseline
|
|
23
|
+
- [ ] Changed files list is available for blast radius analysis
|
|
24
|
+
|
|
25
|
+
If any prerequisites are missing or incomplete:
|
|
26
|
+
1. Inform the Orchestrator with specifics about what's missing
|
|
27
|
+
2. Recommend `flow_step({ action: 'redo' })` on the **implement** step
|
|
28
|
+
3. Do NOT proceed with partial inputs — quality degrades downstream
|
|
29
|
+
|
|
17
30
|
## Process
|
|
18
31
|
|
|
19
32
|
1. **Load context** — Read assessment and progress artifacts
|
|
@@ -70,6 +83,8 @@ Load these skills BEFORE executing this step:
|
|
|
70
83
|
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
71
84
|
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
72
85
|
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
86
|
+
| `lesson-learned` | Extract engineering lessons from completed work via git history | After verification completes — capture principles from what was built |
|
|
87
|
+
| `session-handoff` | Context preservation for session transfers | When verification is the final step and session context should be saved |
|
|
73
88
|
|
|
74
89
|
### Presentation Rules
|
|
75
90
|
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
@@ -94,3 +109,13 @@ After all reviews complete:
|
|
|
94
109
|
- [ ] Security review complete
|
|
95
110
|
- [ ] Blast radius assessed
|
|
96
111
|
- [ ] `.spec/<slug>/verify-report.md` written with clear PASS/FAIL verdict
|
|
112
|
+
|
|
113
|
+
## Knowledge Capture
|
|
114
|
+
|
|
115
|
+
Before completing this step, persist important findings using `remember()`:
|
|
116
|
+
|
|
117
|
+
- **Test coverage gaps**: Areas that couldn't be fully tested and why
|
|
118
|
+
- **Quality findings**: Issues found during verification and their resolutions
|
|
119
|
+
- **Session checkpoint**: Summarize what was accomplished, decisions made, and any remaining work
|
|
120
|
+
|
|
121
|
+
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -56,8 +56,8 @@ You orchestrate the full development lifecycle: **planning → implementation
|
|
|
56
56
|
|
|
57
57
|
1. `flow_status` — check for an active flow from a previous session
|
|
58
58
|
2. **If active flow exists:**
|
|
59
|
-
- Note current step name and
|
|
60
|
-
- Read the current step
|
|
59
|
+
- Note current step name and instruction path
|
|
60
|
+
- Read the current step instruction with `flow_read_instruction`
|
|
61
61
|
- Follow its instructions
|
|
62
62
|
- When complete: `flow_step({ action: 'next' })`
|
|
63
63
|
3. **If NO active flow:**
|
|
@@ -80,8 +80,8 @@ You orchestrate the full development lifecycle: **planning → implementation
|
|
|
80
80
|
|
|
81
81
|
For EACH step in the active flow:
|
|
82
82
|
|
|
83
|
-
1. `
|
|
84
|
-
2. Follow the
|
|
83
|
+
1. `flow_read_instruction` — read the current step's README.md
|
|
84
|
+
2. Follow the step's instructions — delegate work to the appropriate agents
|
|
85
85
|
3. Apply **Orchestrator Protocols** (PRE-DISPATCH GATE, FORGE, review cycle) during execution
|
|
86
86
|
4. When the step is complete and results are approved:
|
|
87
87
|
- `flow_step({ action: 'next' })` to advance
|
|
@@ -156,7 +156,7 @@ Batch 2 (after batch 1):
|
|
|
156
156
|
| `flow_step` | Advance: next, skip, or redo current step |
|
|
157
157
|
| `flow_status` | Check current execution state |
|
|
158
158
|
| `flow_reset` | Clear flow state to start over |
|
|
159
|
-
| `
|
|
159
|
+
| `flow_read_instruction` | Read the instruction content for the current step |
|
|
160
160
|
|
|
161
161
|
## Emergency: STOP → ASSESS → CONTAIN → RECOVER → DOCUMENT
|
|
162
162
|
|
|
@@ -248,7 +248,7 @@ Before every tool call, verify:
|
|
|
248
248
|
## Flows
|
|
249
249
|
|
|
250
250
|
This project uses aikit's pluggable flow system. Check flow status with the `flow_status` MCP tool.
|
|
251
|
-
If a flow is active, follow the current step's
|
|
251
|
+
If a flow is active, follow the current step's instructions. Advance with `flow_step({ action: 'next' })`.
|
|
252
252
|
Use `flow_list` to see available flows and `flow_start` to begin one.
|
|
253
253
|
|
|
254
254
|
|
|
@@ -44,8 +44,8 @@ The Planner is typically activated by the Orchestrator as part of a flow step (e
|
|
|
44
44
|
|
|
45
45
|
**When activated as part of a flow:**
|
|
46
46
|
1. `flow_status` — check current step context and which flow is active
|
|
47
|
-
2. `
|
|
48
|
-
3. Follow the
|
|
47
|
+
2. `flow_read_instruction` — read the current step's README.md for specific instructions
|
|
48
|
+
3. Follow the step's instructions as the primary guide, applying Planner methodology on top
|
|
49
49
|
4. Read the flow's README.md for overall context on how the flow works
|
|
50
50
|
5. Produce required artifacts (as specified by the flow step's `produces` field)
|
|
51
51
|
6. When complete, report status to Orchestrator: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
@@ -60,7 +60,7 @@ You may be invoked in two modes:
|
|
|
60
60
|
|
|
61
61
|
```
|
|
62
62
|
flow_status({}) # Check/resume active flow FIRST
|
|
63
|
-
# If flow active →
|
|
63
|
+
# If flow active → flow_read_instruction({ step }) → follow step instructions
|
|
64
64
|
status({}) # Check AI Kit health + onboard state
|
|
65
65
|
# If onboard not run → onboard({ path: "." }) # First-time codebase analysis
|
|
66
66
|
flow_list({}) # See available flows
|
|
@@ -73,7 +73,7 @@ search({ query: "SESSION CHECKPOINT", origin: "curated" }) # Resume prior wo
|
|
|
73
73
|
|
|
74
74
|
| Category | Tools | Purpose |
|
|
75
75
|
|----------|-------|---------|
|
|
76
|
-
| Flows | `flow_list`, `flow_info`, `flow_start`, `flow_step`, `flow_status`, `
|
|
76
|
+
| Flows | `flow_list`, `flow_info`, `flow_start`, `flow_step`, `flow_status`, `flow_read_instruction`, `flow_reset` | Structured multi-step workflows |
|
|
77
77
|
|
|
78
78
|
---
|
|
79
79
|
|
|
@@ -262,7 +262,7 @@ Preferred: let `scripts/new_adr.js --update-index` do it. Otherwise:
|
|
|
262
262
|
When introducing ADRs to a repo that has none:
|
|
263
263
|
|
|
264
264
|
```bash
|
|
265
|
-
node
|
|
265
|
+
node scripts/bootstrap_adr.js
|
|
266
266
|
```
|
|
267
267
|
|
|
268
268
|
This creates the directory, an index file, and a filled-out first ADR ("Adopt architecture decision records") with real content explaining why the team is using ADRs. Use `--json` for machine-readable output. Use `--dir` to override the directory name.
|
|
@@ -306,20 +306,20 @@ Date prefixes are local to each category. Choose a categorization scheme early (
|
|
|
306
306
|
|
|
307
307
|
### Script Usage
|
|
308
308
|
|
|
309
|
-
From the
|
|
309
|
+
From the directory that contains this skill's `scripts/` folder:
|
|
310
310
|
|
|
311
311
|
```bash
|
|
312
312
|
# Simple ADR
|
|
313
|
-
node
|
|
313
|
+
node scripts/new_adr.js --title "Choose database" --status proposed
|
|
314
314
|
|
|
315
315
|
# MADR-style with options
|
|
316
|
-
node
|
|
316
|
+
node scripts/new_adr.js --title "Choose database" --template madr --status proposed
|
|
317
317
|
|
|
318
318
|
# With index update
|
|
319
|
-
node
|
|
319
|
+
node scripts/new_adr.js --title "Choose database" --status proposed --update-index
|
|
320
320
|
|
|
321
321
|
# Bootstrap a new repo
|
|
322
|
-
node
|
|
322
|
+
node scripts/bootstrap_adr.js --dir docs/decisions
|
|
323
323
|
```
|
|
324
324
|
|
|
325
325
|
Notes:
|