@vpxa/aikit 0.1.1 → 0.1.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/README.md +8 -8
- package/package.json +1 -1
- package/packages/aikit-client/dist/types.d.ts +3 -3
- package/packages/cli/dist/aikit-init.d.ts +1 -1
- package/packages/cli/dist/aikit-init.js +1 -1
- package/packages/cli/dist/commands/context-cmds.js +1 -1
- package/packages/cli/dist/commands/environment.js +1 -1
- package/packages/cli/dist/commands/init/config.d.ts +1 -1
- package/packages/cli/dist/commands/init/config.js +2 -2
- package/packages/cli/dist/commands/init/constants.d.ts +3 -3
- package/packages/cli/dist/commands/init/index.d.ts +4 -4
- package/packages/cli/dist/commands/init/index.js +4 -4
- package/packages/cli/dist/commands/init/templates.js +12 -12
- package/packages/cli/dist/commands/init/user.d.ts +3 -3
- package/packages/cli/dist/commands/init/user.js +2 -2
- package/packages/cli/dist/commands/search.js +1 -1
- package/packages/cli/dist/commands/system.js +4 -4
- package/packages/cli/dist/commands/upgrade.js +1 -1
- package/packages/cli/dist/commands/workspace.js +1 -1
- package/packages/cli/dist/helpers.js +1 -1
- package/packages/cli/dist/index.d.ts +1 -1
- package/packages/core/dist/constants.d.ts +3 -3
- package/packages/core/dist/global-registry.d.ts +7 -1
- package/packages/core/dist/global-registry.js +1 -1
- package/packages/core/dist/index.d.ts +2 -2
- package/packages/core/dist/index.js +1 -1
- package/packages/core/dist/types.d.ts +4 -2
- package/packages/dashboard/dist/assets/{index-BjA4YODs.js → index-CO2S9BKY.js} +2 -2
- package/packages/dashboard/dist/assets/index-CO2S9BKY.js.map +1 -0
- package/packages/dashboard/dist/index.html +2 -2
- package/packages/enterprise-bridge/dist/er-client.d.ts +1 -1
- package/packages/indexer/dist/incremental-indexer.js +1 -1
- package/packages/kb-client/dist/__tests__/direct-client.test.d.ts +1 -0
- package/packages/kb-client/dist/__tests__/mcp-client.test.d.ts +1 -0
- package/packages/kb-client/dist/__tests__/parsers.test.d.ts +1 -0
- package/packages/kb-client/dist/direct-client.d.ts +38 -0
- package/packages/kb-client/dist/direct-client.js +1 -0
- package/packages/kb-client/dist/index.d.ts +4 -0
- package/packages/kb-client/dist/index.js +1 -0
- package/packages/kb-client/dist/mcp-client.d.ts +19 -0
- package/packages/kb-client/dist/mcp-client.js +4 -0
- package/packages/kb-client/dist/parsers.d.ts +32 -0
- package/packages/kb-client/dist/parsers.js +2 -0
- package/packages/kb-client/dist/types.d.ts +59 -0
- package/packages/kb-client/dist/types.js +1 -0
- package/packages/present/dist/index.html +3 -3
- package/packages/server/dist/background-task.d.ts +47 -0
- package/packages/server/dist/background-task.js +1 -0
- package/packages/server/dist/config.js +1 -1
- package/packages/server/dist/idle-timer.d.ts +29 -0
- package/packages/server/dist/idle-timer.js +1 -0
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/memory-monitor.d.ts +37 -0
- package/packages/server/dist/memory-monitor.js +1 -0
- package/packages/server/dist/prompts.js +5 -5
- package/packages/server/dist/resource-links.d.ts +1 -1
- package/packages/server/dist/resource-links.js +1 -1
- package/packages/server/dist/resources/curated-resources.d.ts +2 -2
- package/packages/server/dist/resources/curated-resources.js +2 -2
- package/packages/server/dist/resources/resource-notifier.d.ts +1 -1
- package/packages/server/dist/resources/resource-notifier.js +1 -1
- package/packages/server/dist/resources/resources.js +1 -1
- package/packages/server/dist/server.d.ts +3 -1
- package/packages/server/dist/server.js +3 -3
- package/packages/server/dist/tool-metadata.d.ts +1 -1
- package/packages/server/dist/tool-metadata.js +1 -1
- package/packages/server/dist/tool-timeout.d.ts +27 -0
- package/packages/server/dist/tool-timeout.js +1 -0
- package/packages/server/dist/tools/bridge.tools.d.ts +1 -1
- package/packages/server/dist/tools/bridge.tools.js +3 -3
- package/packages/server/dist/tools/evolution.tools.js +1 -1
- package/packages/server/dist/tools/infra.tools.js +1 -1
- package/packages/server/dist/tools/onboard.tool.js +1 -1
- package/packages/server/dist/tools/present/browser.js +4 -4
- package/packages/server/dist/tools/present/tool.js +1 -1
- package/packages/server/dist/tools/reindex.tool.js +1 -1
- package/packages/server/dist/tools/search.tool.js +1 -1
- package/packages/server/dist/tools/status.tool.d.ts +1 -1
- package/packages/server/dist/tools/status.tool.js +2 -2
- package/packages/tools/dist/checkpoint.js +1 -1
- package/packages/tools/dist/config-extractor.js +1 -1
- package/packages/tools/dist/evidence-map.js +2 -2
- package/packages/tools/dist/find.d.ts +1 -1
- package/packages/tools/dist/forge-ground.d.ts +1 -1
- package/packages/tools/dist/guide.js +1 -1
- package/packages/tools/dist/lane.js +1 -1
- package/packages/tools/dist/onboard.d.ts +2 -2
- package/packages/tools/dist/onboard.js +2 -2
- package/packages/tools/dist/queue.js +1 -1
- package/packages/tools/dist/replay.js +1 -1
- package/packages/tools/dist/response-envelope.d.ts +1 -1
- package/packages/tools/dist/snippet.js +1 -1
- package/packages/tools/dist/stash.js +1 -1
- package/packages/tools/dist/synthesis-engine.js +2 -2
- package/packages/tools/dist/workset.js +1 -1
- package/packages/tui/dist/{App-DU2KEylW.js → App-B2-KJPt4.js} +1 -1
- package/packages/tui/dist/App.d.ts +1 -1
- package/packages/tui/dist/App.js +1 -1
- package/packages/tui/dist/LogPanel-E_1Do4-j.js +3 -0
- package/packages/tui/dist/hooks/useKBClient.d.ts +1 -1
- package/packages/tui/dist/{index-BXafekwr.d.ts → index-MXJeXmCf.d.ts} +3 -3
- package/packages/tui/dist/index.d.ts +1 -1
- package/packages/tui/dist/index.js +1 -1
- package/packages/tui/dist/panels/LogPanel.js +1 -1
- package/scaffold/README.md +192 -192
- package/scaffold/definitions/bodies.mjs +16 -16
- package/scaffold/definitions/plugins.mjs +1 -1
- package/scaffold/definitions/prompts.mjs +6 -6
- package/scaffold/definitions/protocols.mjs +12 -12
- package/scaffold/definitions/tools.mjs +1 -1
- package/scaffold/flows/aikit-advanced/skills/execute/SKILL.md +124 -124
- package/scaffold/flows/aikit-advanced/skills/plan/SKILL.md +100 -100
- package/scaffold/flows/aikit-advanced/skills/spec/SKILL.md +100 -100
- package/scaffold/flows/aikit-advanced/skills/task/SKILL.md +99 -99
- package/scaffold/flows/aikit-advanced/skills/verify/SKILL.md +122 -122
- package/scaffold/flows/aikit-basic/skills/assess/SKILL.md +82 -82
- package/scaffold/flows/aikit-basic/skills/implement/SKILL.md +105 -105
- package/scaffold/flows/aikit-basic/skills/verify/SKILL.md +96 -96
- package/scaffold/general/agents/Debugger.agent.md +2 -2
- package/scaffold/general/agents/Documenter.agent.md +2 -2
- package/scaffold/general/agents/Explorer.agent.md +2 -2
- package/scaffold/general/agents/Frontend.agent.md +1 -1
- package/scaffold/general/agents/Implementer.agent.md +2 -2
- package/scaffold/general/agents/Orchestrator.agent.md +1 -1
- package/scaffold/general/agents/Planner.agent.md +2 -2
- package/scaffold/general/agents/Refactor.agent.md +2 -2
- package/scaffold/general/agents/Security.agent.md +2 -2
- package/scaffold/general/agents/_shared/architect-reviewer-base.md +1 -1
- package/scaffold/general/agents/_shared/code-agent-base.md +6 -6
- package/scaffold/general/agents/_shared/code-reviewer-base.md +1 -1
- package/scaffold/general/agents/_shared/forge-protocol.md +1 -1
- package/scaffold/general/agents/_shared/researcher-base.md +3 -3
- package/scaffold/general/prompts/ask.prompt.md +4 -4
- package/scaffold/general/prompts/debug.prompt.md +1 -1
- package/scaffold/general/prompts/plan.prompt.md +1 -1
- package/scaffold/general/skills/aikit/SKILL.md +5 -5
- package/scaffold/general/skills/multi-agents-development/SKILL.md +2 -2
- package/scaffold/general/skills/present/SKILL.md +1 -1
- package/packages/dashboard/dist/assets/index-BjA4YODs.js.map +0 -1
- package/packages/tui/dist/LogPanel-Bo8a8QXB.js +0 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ide` — IDE-native tool permissions, keyed by role. Each IDE adapter
|
|
6
6
|
* maps these to its own format (e.g., Copilot tool identifiers).
|
|
7
7
|
*
|
|
8
|
-
* When
|
|
8
|
+
* When AI Kit adds/removes a tool, update `kb` here — all agents pick it up.
|
|
9
9
|
*
|
|
10
10
|
* NOTE: The copilot adapter currently uses `aikit/*` wildcard instead
|
|
11
11
|
* of listing individual tools. This array is kept as a reference and for future
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: execute
|
|
3
|
-
description: Implement all tasks from the task breakdown, dispatching agents in parallel where possible.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Execution
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/tasks.md` — the atomic task list with dependencies and agent assignments
|
|
15
|
-
|
|
16
|
-
## Process
|
|
17
|
-
|
|
18
|
-
1. **Load tasks** — Read task graph, dependencies, and parallelism map
|
|
19
|
-
2. **Execute by batch** — For each batch in the parallelism map:
|
|
20
|
-
a. Dispatch assigned agents in parallel (different files = safe parallelism)
|
|
21
|
-
b. Each agent receives: task scope, affected files, acceptance criteria, relevant code context via `compact()`/`digest()`
|
|
22
|
-
c. Wait for all agents in batch to complete
|
|
23
|
-
d. Run `check({})` + `test_run({})` after each batch
|
|
24
|
-
e. Fix any failures before proceeding to next batch
|
|
25
|
-
3. **Track progress** — Update task checkboxes as each completes
|
|
26
|
-
4. **Handle failures** — If an agent reports `BLOCKED` or `NEEDS_CONTEXT`:
|
|
27
|
-
- Max 2 retries per task with refined context
|
|
28
|
-
- If still blocked, escalate to user
|
|
29
|
-
5. **Final validation** — After all batches: `check({})` + `test_run({})` must pass
|
|
30
|
-
|
|
31
|
-
## Outputs
|
|
32
|
-
|
|
33
|
-
Produce `.spec/<slug>/progress.md` with:
|
|
34
|
-
|
|
35
|
-
```markdown
|
|
36
|
-
# Execution Progress: <feature title>
|
|
37
|
-
|
|
38
|
-
## Task Status
|
|
39
|
-
- [x] T1.1: <description> — DONE
|
|
40
|
-
- [x] T1.2: <description> — DONE
|
|
41
|
-
- [x] T2.1: <description> — DONE
|
|
42
|
-
- [ ] T2.2: <description> — IN PROGRESS
|
|
43
|
-
...
|
|
44
|
-
|
|
45
|
-
## Changes Made
|
|
46
|
-
| File | Change | Task |
|
|
47
|
-
|------|--------|------|
|
|
48
|
-
| <file> | <description> | T1.1 |
|
|
49
|
-
| ... | ... | ... |
|
|
50
|
-
|
|
51
|
-
## Tests Added/Modified
|
|
52
|
-
<list of test files and what they cover>
|
|
53
|
-
|
|
54
|
-
## Validation
|
|
55
|
-
- check: PASS/FAIL
|
|
56
|
-
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
57
|
-
|
|
58
|
-
## Deviations
|
|
59
|
-
<any changes from the task plan and why>
|
|
60
|
-
|
|
61
|
-
## Blocked Items
|
|
62
|
-
<items that needed user intervention, if any>
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Agents
|
|
66
|
-
|
|
67
|
-
| Agent | Role |
|
|
68
|
-
|-------|------|
|
|
69
|
-
| **Orchestrator** | Coordinates batch execution, handles failures and retries |
|
|
70
|
-
| **Implementer** | Primary code writer for backend, logic, and infrastructure tasks |
|
|
71
|
-
| **Frontend** | UI/UX implementation for React components, styling, responsive design |
|
|
72
|
-
| **Refactor** | Code cleanup, restructuring, and pattern alignment tasks |
|
|
73
|
-
|
|
74
|
-
**Parallelism rules**:
|
|
75
|
-
- Read-only agents: unlimited parallelism
|
|
76
|
-
- File-modifying agents: parallel ONLY on completely different files
|
|
77
|
-
- Max 4 concurrent file-modifying agents
|
|
78
|
-
|
|
79
|
-
## Foundation Integration
|
|
80
|
-
|
|
81
|
-
Load these skills BEFORE executing this step:
|
|
82
|
-
|
|
83
|
-
| Skill | Purpose | When |
|
|
84
|
-
|-------|---------|------|
|
|
85
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
86
|
-
| `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
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
88
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
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
|
-
### Orchestrator Dispatch Protocol
|
|
98
|
-
|
|
99
|
-
Follow the `multi-agents-development` skill patterns for dispatch:
|
|
100
|
-
|
|
101
|
-
1. **Independence Check** before parallelizing:
|
|
102
|
-
- Same files? → sequential
|
|
103
|
-
- Shared mutable state? → sequential
|
|
104
|
-
- Execution-order dependent? → sequential
|
|
105
|
-
- Need shared new types? → define contract first, then parallel
|
|
106
|
-
- All clear? → **parallel dispatch**
|
|
107
|
-
|
|
108
|
-
2. **Subagent Context Template** (each dispatch includes):
|
|
109
|
-
- **Scope**: exact files + boundary (do NOT touch)
|
|
110
|
-
- **Goal**: acceptance criteria, testable
|
|
111
|
-
- **Arch Context**: actual code snippets via `compact()`/`digest()`
|
|
112
|
-
- **Constraints**: patterns, conventions, anti-patterns
|
|
113
|
-
- **Self-Review**: checklist before declaring DONE
|
|
114
|
-
|
|
115
|
-
3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
116
|
-
4. **Max 2 retries** per task — then escalate to user
|
|
117
|
-
|
|
118
|
-
## Completion Criteria
|
|
119
|
-
|
|
120
|
-
- [ ] All tasks marked completed
|
|
121
|
-
- [ ] `check({})` passes
|
|
122
|
-
- [ ] `test_run({})` passes
|
|
123
|
-
- [ ] No blocked items remaining
|
|
124
|
-
- [ ] `.spec/<slug>/progress.md` written
|
|
1
|
+
---
|
|
2
|
+
name: execute
|
|
3
|
+
description: Implement all tasks from the task breakdown, dispatching agents in parallel where possible.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Execution
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/tasks.md` — the atomic task list with dependencies and agent assignments
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. **Load tasks** — Read task graph, dependencies, and parallelism map
|
|
19
|
+
2. **Execute by batch** — For each batch in the parallelism map:
|
|
20
|
+
a. Dispatch assigned agents in parallel (different files = safe parallelism)
|
|
21
|
+
b. Each agent receives: task scope, affected files, acceptance criteria, relevant code context via `compact()`/`digest()`
|
|
22
|
+
c. Wait for all agents in batch to complete
|
|
23
|
+
d. Run `check({})` + `test_run({})` after each batch
|
|
24
|
+
e. Fix any failures before proceeding to next batch
|
|
25
|
+
3. **Track progress** — Update task checkboxes as each completes
|
|
26
|
+
4. **Handle failures** — If an agent reports `BLOCKED` or `NEEDS_CONTEXT`:
|
|
27
|
+
- Max 2 retries per task with refined context
|
|
28
|
+
- If still blocked, escalate to user
|
|
29
|
+
5. **Final validation** — After all batches: `check({})` + `test_run({})` must pass
|
|
30
|
+
|
|
31
|
+
## Outputs
|
|
32
|
+
|
|
33
|
+
Produce `.spec/<slug>/progress.md` with:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Execution Progress: <feature title>
|
|
37
|
+
|
|
38
|
+
## Task Status
|
|
39
|
+
- [x] T1.1: <description> — DONE
|
|
40
|
+
- [x] T1.2: <description> — DONE
|
|
41
|
+
- [x] T2.1: <description> — DONE
|
|
42
|
+
- [ ] T2.2: <description> — IN PROGRESS
|
|
43
|
+
...
|
|
44
|
+
|
|
45
|
+
## Changes Made
|
|
46
|
+
| File | Change | Task |
|
|
47
|
+
|------|--------|------|
|
|
48
|
+
| <file> | <description> | T1.1 |
|
|
49
|
+
| ... | ... | ... |
|
|
50
|
+
|
|
51
|
+
## Tests Added/Modified
|
|
52
|
+
<list of test files and what they cover>
|
|
53
|
+
|
|
54
|
+
## Validation
|
|
55
|
+
- check: PASS/FAIL
|
|
56
|
+
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
57
|
+
|
|
58
|
+
## Deviations
|
|
59
|
+
<any changes from the task plan and why>
|
|
60
|
+
|
|
61
|
+
## Blocked Items
|
|
62
|
+
<items that needed user intervention, if any>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Agents
|
|
66
|
+
|
|
67
|
+
| Agent | Role |
|
|
68
|
+
|-------|------|
|
|
69
|
+
| **Orchestrator** | Coordinates batch execution, handles failures and retries |
|
|
70
|
+
| **Implementer** | Primary code writer for backend, logic, and infrastructure tasks |
|
|
71
|
+
| **Frontend** | UI/UX implementation for React components, styling, responsive design |
|
|
72
|
+
| **Refactor** | Code cleanup, restructuring, and pattern alignment tasks |
|
|
73
|
+
|
|
74
|
+
**Parallelism rules**:
|
|
75
|
+
- Read-only agents: unlimited parallelism
|
|
76
|
+
- File-modifying agents: parallel ONLY on completely different files
|
|
77
|
+
- Max 4 concurrent file-modifying agents
|
|
78
|
+
|
|
79
|
+
## Foundation Integration
|
|
80
|
+
|
|
81
|
+
Load these skills BEFORE executing this step:
|
|
82
|
+
|
|
83
|
+
| Skill | Purpose | When |
|
|
84
|
+
|-------|---------|------|
|
|
85
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
86
|
+
| `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
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
88
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
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
|
+
### Orchestrator Dispatch Protocol
|
|
98
|
+
|
|
99
|
+
Follow the `multi-agents-development` skill patterns for dispatch:
|
|
100
|
+
|
|
101
|
+
1. **Independence Check** before parallelizing:
|
|
102
|
+
- Same files? → sequential
|
|
103
|
+
- Shared mutable state? → sequential
|
|
104
|
+
- Execution-order dependent? → sequential
|
|
105
|
+
- Need shared new types? → define contract first, then parallel
|
|
106
|
+
- All clear? → **parallel dispatch**
|
|
107
|
+
|
|
108
|
+
2. **Subagent Context Template** (each dispatch includes):
|
|
109
|
+
- **Scope**: exact files + boundary (do NOT touch)
|
|
110
|
+
- **Goal**: acceptance criteria, testable
|
|
111
|
+
- **Arch Context**: actual code snippets via `compact()`/`digest()`
|
|
112
|
+
- **Constraints**: patterns, conventions, anti-patterns
|
|
113
|
+
- **Self-Review**: checklist before declaring DONE
|
|
114
|
+
|
|
115
|
+
3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
116
|
+
4. **Max 2 retries** per task — then escalate to user
|
|
117
|
+
|
|
118
|
+
## Completion Criteria
|
|
119
|
+
|
|
120
|
+
- [ ] All tasks marked completed
|
|
121
|
+
- [ ] `check({})` passes
|
|
122
|
+
- [ ] `test_run({})` passes
|
|
123
|
+
- [ ] No blocked items remaining
|
|
124
|
+
- [ ] `.spec/<slug>/progress.md` written
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: plan
|
|
3
|
-
description: Analyze the codebase, design the architecture, and create a detailed implementation plan.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Planning
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Translate the specification into a concrete, phased implementation plan with architecture decisions, file-level scope, and dependency ordering.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/spec.md` — the validated specification
|
|
15
|
-
|
|
16
|
-
## Process
|
|
17
|
-
|
|
18
|
-
1. **Load spec** — Read and internalize all requirements and acceptance criteria
|
|
19
|
-
2. **Codebase analysis** — `scope_map({ task: "<feature>" })` to identify affected subsystems
|
|
20
|
-
3. **Deep dive** — `file_summary()` + `compact()` on each affected module
|
|
21
|
-
4. **Architecture design** — Decide on:
|
|
22
|
-
- Where new code lives (new files vs extensions)
|
|
23
|
-
- API surface changes
|
|
24
|
-
- Data model changes
|
|
25
|
-
- Integration patterns
|
|
26
|
-
5. **ADR for non-trivial decisions** — Use `adr-skill` for decisions that affect future development
|
|
27
|
-
6. **Phase decomposition** — Break work into 3–10 ordered phases, each independently testable
|
|
28
|
-
7. **Dependency graph** — Map which phases depend on others and which can parallelize
|
|
29
|
-
8. **Risk assessment** — Identify implementation risks per phase
|
|
30
|
-
|
|
31
|
-
## Outputs
|
|
32
|
-
|
|
33
|
-
Produce `.spec/<slug>/plan.md` with:
|
|
34
|
-
|
|
35
|
-
```markdown
|
|
36
|
-
# Implementation Plan: <feature title>
|
|
37
|
-
|
|
38
|
-
## Architecture Overview
|
|
39
|
-
<high-level design with rationale>
|
|
40
|
-
|
|
41
|
-
## Affected Modules
|
|
42
|
-
| Module | Changes | Risk |
|
|
43
|
-
|--------|---------|------|
|
|
44
|
-
| <module> | <what changes> | low/medium/high |
|
|
45
|
-
|
|
46
|
-
## Phases
|
|
47
|
-
### Phase 1: <name>
|
|
48
|
-
- **Files**: <list>
|
|
49
|
-
- **Changes**: <description>
|
|
50
|
-
- **Tests**: <what to test>
|
|
51
|
-
- **Depends on**: none
|
|
52
|
-
- **Parallelizable with**: Phase 2
|
|
53
|
-
|
|
54
|
-
### Phase 2: <name>
|
|
55
|
-
...
|
|
56
|
-
|
|
57
|
-
## Architecture Decisions
|
|
58
|
-
- ADR-<N>: <title> — <chosen option and rationale>
|
|
59
|
-
|
|
60
|
-
## Risks
|
|
61
|
-
| Risk | Likelihood | Impact | Mitigation |
|
|
62
|
-
|------|-----------|--------|------------|
|
|
63
|
-
| <risk> | low/medium/high | <impact> | <mitigation> |
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Agents
|
|
67
|
-
|
|
68
|
-
| Agent | Role |
|
|
69
|
-
|-------|------|
|
|
70
|
-
| **Planner** | Creates comprehensive TDD implementation plans with phase decomposition |
|
|
71
|
-
| **Explorer** | Rapid codebase exploration for discovery of affected files and dependencies |
|
|
72
|
-
|
|
73
|
-
Use Explorer for initial breadth (file discovery, dependency tracing), then Planner for depth (phase design, ordering).
|
|
74
|
-
|
|
75
|
-
## Foundation Integration
|
|
76
|
-
|
|
77
|
-
Load these skills BEFORE executing this step:
|
|
78
|
-
|
|
79
|
-
| Skill | Purpose | When |
|
|
80
|
-
|-------|---------|------|
|
|
81
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
82
|
-
| `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
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
84
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
85
|
-
|
|
86
|
-
### Presentation Rules
|
|
87
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
88
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
89
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
90
|
-
- Artifact content and summaries → present with structured layout
|
|
91
|
-
- Only use plain text for brief confirmations and simple questions
|
|
92
|
-
|
|
93
|
-
## Completion Criteria
|
|
94
|
-
|
|
95
|
-
- [ ] All spec requirements have corresponding plan phases
|
|
96
|
-
- [ ] Each phase has explicit file scope and test strategy
|
|
97
|
-
- [ ] Architecture decisions documented with rationale
|
|
98
|
-
- [ ] Dependency graph has no circular dependencies
|
|
99
|
-
- [ ] Risks identified with mitigations
|
|
100
|
-
- [ ] `.spec/<slug>/plan.md` written
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Analyze the codebase, design the architecture, and create a detailed implementation plan.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Planning
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Translate the specification into a concrete, phased implementation plan with architecture decisions, file-level scope, and dependency ordering.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/spec.md` — the validated specification
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. **Load spec** — Read and internalize all requirements and acceptance criteria
|
|
19
|
+
2. **Codebase analysis** — `scope_map({ task: "<feature>" })` to identify affected subsystems
|
|
20
|
+
3. **Deep dive** — `file_summary()` + `compact()` on each affected module
|
|
21
|
+
4. **Architecture design** — Decide on:
|
|
22
|
+
- Where new code lives (new files vs extensions)
|
|
23
|
+
- API surface changes
|
|
24
|
+
- Data model changes
|
|
25
|
+
- Integration patterns
|
|
26
|
+
5. **ADR for non-trivial decisions** — Use `adr-skill` for decisions that affect future development
|
|
27
|
+
6. **Phase decomposition** — Break work into 3–10 ordered phases, each independently testable
|
|
28
|
+
7. **Dependency graph** — Map which phases depend on others and which can parallelize
|
|
29
|
+
8. **Risk assessment** — Identify implementation risks per phase
|
|
30
|
+
|
|
31
|
+
## Outputs
|
|
32
|
+
|
|
33
|
+
Produce `.spec/<slug>/plan.md` with:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Implementation Plan: <feature title>
|
|
37
|
+
|
|
38
|
+
## Architecture Overview
|
|
39
|
+
<high-level design with rationale>
|
|
40
|
+
|
|
41
|
+
## Affected Modules
|
|
42
|
+
| Module | Changes | Risk |
|
|
43
|
+
|--------|---------|------|
|
|
44
|
+
| <module> | <what changes> | low/medium/high |
|
|
45
|
+
|
|
46
|
+
## Phases
|
|
47
|
+
### Phase 1: <name>
|
|
48
|
+
- **Files**: <list>
|
|
49
|
+
- **Changes**: <description>
|
|
50
|
+
- **Tests**: <what to test>
|
|
51
|
+
- **Depends on**: none
|
|
52
|
+
- **Parallelizable with**: Phase 2
|
|
53
|
+
|
|
54
|
+
### Phase 2: <name>
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
## Architecture Decisions
|
|
58
|
+
- ADR-<N>: <title> — <chosen option and rationale>
|
|
59
|
+
|
|
60
|
+
## Risks
|
|
61
|
+
| Risk | Likelihood | Impact | Mitigation |
|
|
62
|
+
|------|-----------|--------|------------|
|
|
63
|
+
| <risk> | low/medium/high | <impact> | <mitigation> |
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Agents
|
|
67
|
+
|
|
68
|
+
| Agent | Role |
|
|
69
|
+
|-------|------|
|
|
70
|
+
| **Planner** | Creates comprehensive TDD implementation plans with phase decomposition |
|
|
71
|
+
| **Explorer** | Rapid codebase exploration for discovery of affected files and dependencies |
|
|
72
|
+
|
|
73
|
+
Use Explorer for initial breadth (file discovery, dependency tracing), then Planner for depth (phase design, ordering).
|
|
74
|
+
|
|
75
|
+
## Foundation Integration
|
|
76
|
+
|
|
77
|
+
Load these skills BEFORE executing this step:
|
|
78
|
+
|
|
79
|
+
| Skill | Purpose | When |
|
|
80
|
+
|-------|---------|------|
|
|
81
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
82
|
+
| `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
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
84
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
85
|
+
|
|
86
|
+
### Presentation Rules
|
|
87
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
88
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
89
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
90
|
+
- Artifact content and summaries → present with structured layout
|
|
91
|
+
- Only use plain text for brief confirmations and simple questions
|
|
92
|
+
|
|
93
|
+
## Completion Criteria
|
|
94
|
+
|
|
95
|
+
- [ ] All spec requirements have corresponding plan phases
|
|
96
|
+
- [ ] Each phase has explicit file scope and test strategy
|
|
97
|
+
- [ ] Architecture decisions documented with rationale
|
|
98
|
+
- [ ] Dependency graph has no circular dependencies
|
|
99
|
+
- [ ] Risks identified with mitigations
|
|
100
|
+
- [ ] `.spec/<slug>/plan.md` written
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: spec
|
|
3
|
-
description: Elicit requirements, clarify scope, and define acceptance criteria through structured dialogue.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Specification
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Transform a vague or broad feature request into a precise, testable specification through requirements elicitation and stakeholder dialogue.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- User's feature request, issue, or idea
|
|
15
|
-
- Codebase context (accessed via aikit MCP tools)
|
|
16
|
-
|
|
17
|
-
## Process
|
|
18
|
-
|
|
19
|
-
1. **Understand intent** — Parse what the user wants and why
|
|
20
|
-
2. **Search for context** — `search()` for related prior decisions, existing patterns, and similar features
|
|
21
|
-
3. **Elicit requirements** — Ask structured questions to clarify:
|
|
22
|
-
- **Functional**: What must the system do?
|
|
23
|
-
- **Non-functional**: Performance, security, accessibility constraints
|
|
24
|
-
- **Scope boundaries**: What is explicitly out of scope?
|
|
25
|
-
- **Acceptance criteria**: How do we know it's done?
|
|
26
|
-
4. **Score clarity** — Use the `requirements-clarity` skill to score 0–100. Iterate questions until ≥ 90.
|
|
27
|
-
5. **Draft specification** — Write formal spec with all requirements resolved
|
|
28
|
-
|
|
29
|
-
## Outputs
|
|
30
|
-
|
|
31
|
-
Produce `.spec/<slug>/spec.md` with:
|
|
32
|
-
|
|
33
|
-
```markdown
|
|
34
|
-
# Specification: <feature title>
|
|
35
|
-
|
|
36
|
-
## Summary
|
|
37
|
-
<1-2 sentence description>
|
|
38
|
-
|
|
39
|
-
## Motivation
|
|
40
|
-
<why this feature is needed>
|
|
41
|
-
|
|
42
|
-
## Functional Requirements
|
|
43
|
-
1. <requirement with acceptance criterion>
|
|
44
|
-
2. ...
|
|
45
|
-
|
|
46
|
-
## Non-Functional Requirements
|
|
47
|
-
- Performance: <constraints>
|
|
48
|
-
- Security: <constraints>
|
|
49
|
-
- Accessibility: <constraints>
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
### In Scope
|
|
53
|
-
- <item>
|
|
54
|
-
|
|
55
|
-
### Out of Scope
|
|
56
|
-
- <item>
|
|
57
|
-
|
|
58
|
-
## Acceptance Criteria
|
|
59
|
-
- [ ] <testable criterion>
|
|
60
|
-
- [ ] ...
|
|
61
|
-
|
|
62
|
-
## Open Questions
|
|
63
|
-
<none — all resolved during elicitation>
|
|
64
|
-
|
|
65
|
-
## Clarity Score: <N>/100
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Agents
|
|
69
|
-
|
|
70
|
-
| Agent | Role |
|
|
71
|
-
|-------|------|
|
|
72
|
-
| **Researcher-Alpha** | Deep analysis of existing codebase patterns, prior decisions, and technical constraints |
|
|
73
|
-
|
|
74
|
-
Use the `brainstorming` skill for creative/design exploration before formalizing requirements. Use `requirements-clarity` skill to score and iterate until the spec is unambiguous.
|
|
75
|
-
|
|
76
|
-
## Foundation Integration
|
|
77
|
-
|
|
78
|
-
Load these skills BEFORE executing this step:
|
|
79
|
-
|
|
80
|
-
| Skill | Purpose | When |
|
|
81
|
-
|-------|---------|------|
|
|
82
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
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 |
|
|
84
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
85
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
86
|
-
|
|
87
|
-
### Presentation Rules
|
|
88
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
89
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
90
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
91
|
-
- Artifact content and summaries → present with structured layout
|
|
92
|
-
- Only use plain text for brief confirmations and simple questions
|
|
93
|
-
|
|
94
|
-
## Completion Criteria
|
|
95
|
-
|
|
96
|
-
- [ ] All functional requirements have acceptance criteria
|
|
97
|
-
- [ ] Scope boundaries are explicit
|
|
98
|
-
- [ ] Requirements clarity score ≥ 90
|
|
99
|
-
- [ ] No open questions remain
|
|
100
|
-
- [ ] `.spec/<slug>/spec.md` written
|
|
1
|
+
---
|
|
2
|
+
name: spec
|
|
3
|
+
description: Elicit requirements, clarify scope, and define acceptance criteria through structured dialogue.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Specification
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Transform a vague or broad feature request into a precise, testable specification through requirements elicitation and stakeholder dialogue.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- User's feature request, issue, or idea
|
|
15
|
+
- Codebase context (accessed via aikit MCP tools)
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. **Understand intent** — Parse what the user wants and why
|
|
20
|
+
2. **Search for context** — `search()` for related prior decisions, existing patterns, and similar features
|
|
21
|
+
3. **Elicit requirements** — Ask structured questions to clarify:
|
|
22
|
+
- **Functional**: What must the system do?
|
|
23
|
+
- **Non-functional**: Performance, security, accessibility constraints
|
|
24
|
+
- **Scope boundaries**: What is explicitly out of scope?
|
|
25
|
+
- **Acceptance criteria**: How do we know it's done?
|
|
26
|
+
4. **Score clarity** — Use the `requirements-clarity` skill to score 0–100. Iterate questions until ≥ 90.
|
|
27
|
+
5. **Draft specification** — Write formal spec with all requirements resolved
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
Produce `.spec/<slug>/spec.md` with:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
# Specification: <feature title>
|
|
35
|
+
|
|
36
|
+
## Summary
|
|
37
|
+
<1-2 sentence description>
|
|
38
|
+
|
|
39
|
+
## Motivation
|
|
40
|
+
<why this feature is needed>
|
|
41
|
+
|
|
42
|
+
## Functional Requirements
|
|
43
|
+
1. <requirement with acceptance criterion>
|
|
44
|
+
2. ...
|
|
45
|
+
|
|
46
|
+
## Non-Functional Requirements
|
|
47
|
+
- Performance: <constraints>
|
|
48
|
+
- Security: <constraints>
|
|
49
|
+
- Accessibility: <constraints>
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
### In Scope
|
|
53
|
+
- <item>
|
|
54
|
+
|
|
55
|
+
### Out of Scope
|
|
56
|
+
- <item>
|
|
57
|
+
|
|
58
|
+
## Acceptance Criteria
|
|
59
|
+
- [ ] <testable criterion>
|
|
60
|
+
- [ ] ...
|
|
61
|
+
|
|
62
|
+
## Open Questions
|
|
63
|
+
<none — all resolved during elicitation>
|
|
64
|
+
|
|
65
|
+
## Clarity Score: <N>/100
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Agents
|
|
69
|
+
|
|
70
|
+
| Agent | Role |
|
|
71
|
+
|-------|------|
|
|
72
|
+
| **Researcher-Alpha** | Deep analysis of existing codebase patterns, prior decisions, and technical constraints |
|
|
73
|
+
|
|
74
|
+
Use the `brainstorming` skill for creative/design exploration before formalizing requirements. Use `requirements-clarity` skill to score and iterate until the spec is unambiguous.
|
|
75
|
+
|
|
76
|
+
## Foundation Integration
|
|
77
|
+
|
|
78
|
+
Load these skills BEFORE executing this step:
|
|
79
|
+
|
|
80
|
+
| Skill | Purpose | When |
|
|
81
|
+
|-------|---------|------|
|
|
82
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
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 |
|
|
84
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
85
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
86
|
+
|
|
87
|
+
### Presentation Rules
|
|
88
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
89
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
90
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
91
|
+
- Artifact content and summaries → present with structured layout
|
|
92
|
+
- Only use plain text for brief confirmations and simple questions
|
|
93
|
+
|
|
94
|
+
## Completion Criteria
|
|
95
|
+
|
|
96
|
+
- [ ] All functional requirements have acceptance criteria
|
|
97
|
+
- [ ] Scope boundaries are explicit
|
|
98
|
+
- [ ] Requirements clarity score ≥ 90
|
|
99
|
+
- [ ] No open questions remain
|
|
100
|
+
- [ ] `.spec/<slug>/spec.md` written
|