@vpxa/aikit 0.1.73 → 0.1.75
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 +9 -1
- package/packages/cli/dist/index.js +2 -2
- package/packages/cli/dist/{init-D_OGLUN1.js → init-CuRXmyD9.js} +4 -4
- package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
- package/packages/cli/dist/{templates-DJ7EC5vw.js → templates-ArdAVWoY.js} +13 -3
- package/packages/cli/dist/user-vbJwa7x2.js +5 -0
- package/packages/dashboard/dist/assets/index-C6D-PCp0.js.map +1 -1
- package/packages/flows/dist/index.d.ts +29 -0
- package/packages/flows/dist/index.js +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/{server-B9Mx1aK-.js → server-CVhVH5cT.js} +127 -127
- package/packages/tools/dist/index.d.ts +19 -1
- package/packages/tools/dist/index.js +39 -39
- package/scaffold/dist/adapters/claude-code.mjs +4 -0
- package/scaffold/dist/adapters/copilot.mjs +75 -0
- package/scaffold/dist/adapters/flows.mjs +1 -0
- package/scaffold/dist/adapters/skills.mjs +1 -0
- package/scaffold/dist/compiled/flows-data.mjs +1429 -0
- package/scaffold/dist/compiled/skills-data.mjs +9951 -0
- package/scaffold/dist/definitions/agents.mjs +9 -0
- package/scaffold/{definitions → dist/definitions}/bodies.mjs +6 -229
- package/scaffold/dist/definitions/exclusions.mjs +1 -0
- package/scaffold/dist/definitions/hooks.mjs +1 -0
- package/scaffold/dist/definitions/models.mjs +1 -0
- package/scaffold/dist/definitions/plugins.mjs +1 -0
- package/scaffold/{definitions → dist/definitions}/prompts.mjs +9 -149
- package/scaffold/{definitions → dist/definitions}/protocols.mjs +9 -37
- package/scaffold/dist/definitions/tools.mjs +1 -0
- package/packages/cli/dist/scaffold-CJwkHf-q.js +0 -2
- package/packages/cli/dist/user-BEmVW8Tp.js +0 -5
- package/scaffold/adapters/claude-code.mjs +0 -73
- package/scaffold/adapters/copilot.mjs +0 -292
- package/scaffold/definitions/agents.mjs +0 -266
- package/scaffold/definitions/hooks.mjs +0 -43
- package/scaffold/definitions/models.mjs +0 -84
- package/scaffold/definitions/plugins.mjs +0 -147
- package/scaffold/definitions/tools.mjs +0 -250
- package/scaffold/flows/_epilogue/steps/docs-sync/README.md +0 -120
- package/scaffold/flows/aikit-advanced/README.md +0 -70
- package/scaffold/flows/aikit-advanced/flow.json +0 -69
- package/scaffold/flows/aikit-advanced/steps/design/README.md +0 -178
- package/scaffold/flows/aikit-advanced/steps/execute/README.md +0 -145
- package/scaffold/flows/aikit-advanced/steps/plan/README.md +0 -122
- package/scaffold/flows/aikit-advanced/steps/spec/README.md +0 -121
- package/scaffold/flows/aikit-advanced/steps/task/README.md +0 -119
- package/scaffold/flows/aikit-advanced/steps/verify/README.md +0 -145
- package/scaffold/flows/aikit-basic/README.md +0 -51
- package/scaffold/flows/aikit-basic/flow.json +0 -45
- package/scaffold/flows/aikit-basic/steps/assess/README.md +0 -109
- package/scaffold/flows/aikit-basic/steps/design/README.md +0 -116
- package/scaffold/flows/aikit-basic/steps/implement/README.md +0 -131
- package/scaffold/flows/aikit-basic/steps/verify/README.md +0 -123
- package/scaffold/general/agents/Architect-Reviewer-Alpha.agent.md +0 -132
- package/scaffold/general/agents/Architect-Reviewer-Beta.agent.md +0 -132
- package/scaffold/general/agents/Code-Reviewer-Alpha.agent.md +0 -112
- package/scaffold/general/agents/Code-Reviewer-Beta.agent.md +0 -112
- package/scaffold/general/agents/Debugger.agent.md +0 -412
- package/scaffold/general/agents/Documenter.agent.md +0 -468
- package/scaffold/general/agents/Explorer.agent.md +0 -76
- package/scaffold/general/agents/Frontend.agent.md +0 -440
- package/scaffold/general/agents/Implementer.agent.md +0 -425
- package/scaffold/general/agents/Orchestrator.agent.md +0 -452
- package/scaffold/general/agents/Planner.agent.md +0 -481
- package/scaffold/general/agents/README.md +0 -57
- package/scaffold/general/agents/Refactor.agent.md +0 -435
- package/scaffold/general/agents/Researcher-Alpha.agent.md +0 -151
- package/scaffold/general/agents/Researcher-Beta.agent.md +0 -152
- package/scaffold/general/agents/Researcher-Delta.agent.md +0 -153
- package/scaffold/general/agents/Researcher-Gamma.agent.md +0 -152
- package/scaffold/general/agents/Security.agent.md +0 -433
- package/scaffold/general/agents/_shared/architect-reviewer-base.md +0 -104
- package/scaffold/general/agents/_shared/code-agent-base.md +0 -366
- package/scaffold/general/agents/_shared/code-reviewer-base.md +0 -87
- package/scaffold/general/agents/_shared/decision-protocol.md +0 -27
- package/scaffold/general/agents/_shared/forge-protocol.md +0 -90
- package/scaffold/general/agents/_shared/researcher-base.md +0 -114
- package/scaffold/general/agents/templates/adr-template.md +0 -28
- package/scaffold/general/agents/templates/execution-state.md +0 -26
- package/scaffold/general/prompts/aikit-ask.prompt.md +0 -13
- package/scaffold/general/prompts/aikit-debug.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-design.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-flow-add.prompt.md +0 -84
- package/scaffold/general/prompts/aikit-flow-create.prompt.md +0 -80
- package/scaffold/general/prompts/aikit-flow-manage.prompt.md +0 -24
- package/scaffold/general/prompts/aikit-implement.prompt.md +0 -17
- package/scaffold/general/prompts/aikit-plan.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-review.prompt.md +0 -24
- package/scaffold/general/skills/adr-skill/SKILL.md +0 -335
- package/scaffold/general/skills/adr-skill/assets/templates/adr-madr.md +0 -89
- package/scaffold/general/skills/adr-skill/assets/templates/adr-readme.md +0 -20
- package/scaffold/general/skills/adr-skill/assets/templates/adr-simple.md +0 -46
- package/scaffold/general/skills/adr-skill/references/adr-conventions.md +0 -95
- package/scaffold/general/skills/adr-skill/references/examples.md +0 -193
- package/scaffold/general/skills/adr-skill/references/review-checklist.md +0 -77
- package/scaffold/general/skills/adr-skill/references/template-variants.md +0 -52
- package/scaffold/general/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
- package/scaffold/general/skills/adr-skill/scripts/new_adr.js +0 -391
- package/scaffold/general/skills/adr-skill/scripts/set_adr_status.js +0 -169
- package/scaffold/general/skills/aikit/SKILL.md +0 -754
- package/scaffold/general/skills/brainstorming/SKILL.md +0 -265
- package/scaffold/general/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
- package/scaffold/general/skills/c4-architecture/SKILL.md +0 -389
- package/scaffold/general/skills/c4-architecture/references/advanced-patterns.md +0 -552
- package/scaffold/general/skills/c4-architecture/references/c4-syntax.md +0 -510
- package/scaffold/general/skills/c4-architecture/references/common-mistakes.md +0 -437
- package/scaffold/general/skills/c4-architecture/references/html-design-system.md +0 -337
- package/scaffold/general/skills/c4-architecture/references/html-template.html +0 -627
- package/scaffold/general/skills/docs/SKILL.md +0 -553
- package/scaffold/general/skills/docs/references/diataxis-anti-patterns.md +0 -147
- package/scaffold/general/skills/docs/references/diataxis-compass.md +0 -123
- package/scaffold/general/skills/docs/references/diataxis-quadrants.md +0 -192
- package/scaffold/general/skills/docs/references/diataxis-quality.md +0 -76
- package/scaffold/general/skills/docs/references/diataxis-templates.md +0 -120
- package/scaffold/general/skills/docs/references/flow-artifacts-guide.md +0 -70
- package/scaffold/general/skills/docs/references/project-knowledge-gotchas.md +0 -32
- package/scaffold/general/skills/docs/references/project-knowledge-templates.md +0 -281
- package/scaffold/general/skills/docs/references/project-knowledge-workflow.md +0 -80
- package/scaffold/general/skills/frontend-design/SKILL.md +0 -237
- package/scaffold/general/skills/lesson-learned/SKILL.md +0 -113
- package/scaffold/general/skills/lesson-learned/references/anti-patterns.md +0 -55
- package/scaffold/general/skills/lesson-learned/references/se-principles.md +0 -109
- package/scaffold/general/skills/multi-agents-development/SKILL.md +0 -448
- package/scaffold/general/skills/multi-agents-development/architecture-review-prompt.md +0 -81
- package/scaffold/general/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
- package/scaffold/general/skills/multi-agents-development/implementer-prompt.md +0 -93
- package/scaffold/general/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
- package/scaffold/general/skills/multi-agents-development/spec-review-prompt.md +0 -81
- package/scaffold/general/skills/present/SKILL.md +0 -616
- package/scaffold/general/skills/react/SKILL.md +0 -309
- package/scaffold/general/skills/repo-access/SKILL.md +0 -178
- package/scaffold/general/skills/repo-access/references/error-patterns.md +0 -116
- package/scaffold/general/skills/repo-access/references/platform-matrix.md +0 -142
- package/scaffold/general/skills/requirements-clarity/SKILL.md +0 -333
- package/scaffold/general/skills/session-handoff/SKILL.md +0 -199
- package/scaffold/general/skills/session-handoff/references/handoff-template.md +0 -139
- package/scaffold/general/skills/session-handoff/references/resume-checklist.md +0 -80
- package/scaffold/general/skills/session-handoff/scripts/check_staleness.js +0 -269
- package/scaffold/general/skills/session-handoff/scripts/create_handoff.js +0 -299
- package/scaffold/general/skills/session-handoff/scripts/list_handoffs.js +0 -113
- package/scaffold/general/skills/session-handoff/scripts/validate_handoff.js +0 -241
- package/scaffold/general/skills/typescript/SKILL.md +0 -405
- package/scaffold/generate.mjs +0 -82
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool lists by agent role category.
|
|
3
|
-
*
|
|
4
|
-
* `kb` — Knowledge-base MCP tools (IDE-agnostic, same across all adapters).
|
|
5
|
-
* `ide` — IDE-native tool permissions, keyed by role. Each IDE adapter
|
|
6
|
-
* maps these to its own format (e.g., Copilot tool identifiers).
|
|
7
|
-
*
|
|
8
|
-
* When AI Kit adds/removes a tool, update `kb` here — all agents pick it up.
|
|
9
|
-
*
|
|
10
|
-
* NOTE: The copilot adapter currently uses `aikit/*` wildcard instead
|
|
11
|
-
* of listing individual tools. This array is kept as a reference and for future
|
|
12
|
-
* adapters that may need explicit tool lists (e.g., claude-code).
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
export const AIKIT_TOOLS = [
|
|
16
|
-
'analyze_dependencies',
|
|
17
|
-
'analyze_diagram',
|
|
18
|
-
'analyze_entry_points',
|
|
19
|
-
'analyze_patterns',
|
|
20
|
-
'analyze_structure',
|
|
21
|
-
'analyze_symbols',
|
|
22
|
-
'audit',
|
|
23
|
-
'batch',
|
|
24
|
-
'blast_radius',
|
|
25
|
-
'brainstorm',
|
|
26
|
-
'changelog',
|
|
27
|
-
'check',
|
|
28
|
-
'checkpoint',
|
|
29
|
-
'codemod',
|
|
30
|
-
'compact',
|
|
31
|
-
'config',
|
|
32
|
-
'data_transform',
|
|
33
|
-
'dead_symbols',
|
|
34
|
-
'delegate',
|
|
35
|
-
'describe_tool',
|
|
36
|
-
'diff_parse',
|
|
37
|
-
'digest',
|
|
38
|
-
'encode',
|
|
39
|
-
'env',
|
|
40
|
-
'eval',
|
|
41
|
-
'evidence_map',
|
|
42
|
-
'file_summary',
|
|
43
|
-
'find',
|
|
44
|
-
'flow_add',
|
|
45
|
-
'flow_info',
|
|
46
|
-
'flow_list',
|
|
47
|
-
'flow_read_instruction',
|
|
48
|
-
'flow_remove',
|
|
49
|
-
'flow_reset',
|
|
50
|
-
'flow_start',
|
|
51
|
-
'flow_status',
|
|
52
|
-
'flow_step',
|
|
53
|
-
'flow_update',
|
|
54
|
-
'forge_classify',
|
|
55
|
-
'forge_ground',
|
|
56
|
-
'forget',
|
|
57
|
-
'git_context',
|
|
58
|
-
'graph',
|
|
59
|
-
'guide',
|
|
60
|
-
'health',
|
|
61
|
-
'http',
|
|
62
|
-
'lane',
|
|
63
|
-
'list',
|
|
64
|
-
'list_tools',
|
|
65
|
-
'lookup',
|
|
66
|
-
'measure',
|
|
67
|
-
'onboard',
|
|
68
|
-
'parse_output',
|
|
69
|
-
'present',
|
|
70
|
-
'process',
|
|
71
|
-
'produce_knowledge',
|
|
72
|
-
'queue',
|
|
73
|
-
'read',
|
|
74
|
-
'regex_test',
|
|
75
|
-
'reindex',
|
|
76
|
-
'remember',
|
|
77
|
-
'rename',
|
|
78
|
-
'replay',
|
|
79
|
-
'restore',
|
|
80
|
-
'schema_validate',
|
|
81
|
-
'scope_map',
|
|
82
|
-
'search',
|
|
83
|
-
'search_tools',
|
|
84
|
-
'session_digest',
|
|
85
|
-
'snippet',
|
|
86
|
-
'stash',
|
|
87
|
-
'status',
|
|
88
|
-
'stratum_card',
|
|
89
|
-
'symbol',
|
|
90
|
-
'test_run',
|
|
91
|
-
'time',
|
|
92
|
-
'trace',
|
|
93
|
-
'update',
|
|
94
|
-
'watch',
|
|
95
|
-
'web_fetch',
|
|
96
|
-
'web_search',
|
|
97
|
-
'workset',
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* IDE-native tool categories by role.
|
|
102
|
-
* These are abstract capability names — each IDE adapter maps them to concrete tool IDs.
|
|
103
|
-
*
|
|
104
|
-
* Categories:
|
|
105
|
-
* terminal — run commands
|
|
106
|
-
* problems — read diagnostics
|
|
107
|
-
* readFile — read file contents
|
|
108
|
-
* lastCommand — read terminal output
|
|
109
|
-
* subagent — invoke other agents
|
|
110
|
-
* createFile — create new files
|
|
111
|
-
* editFiles — edit existing files
|
|
112
|
-
* search — search codebase (code, text, usages, changes)
|
|
113
|
-
* web — web fetch, web search, GitHub
|
|
114
|
-
* todo — manage task lists
|
|
115
|
-
* memory — persistent memory (VS Code)
|
|
116
|
-
* runCommand — run VS Code commands
|
|
117
|
-
* switchAgent — switch to another agent
|
|
118
|
-
* killTerminal — kill a terminal
|
|
119
|
-
* createTask — create and run tasks
|
|
120
|
-
* terminalSel — read terminal selection
|
|
121
|
-
* fileSearch — search by filename
|
|
122
|
-
* listDir — list directory
|
|
123
|
-
* textSearch — text search
|
|
124
|
-
* searchSubagent — search via subagent
|
|
125
|
-
*/
|
|
126
|
-
export const IDE_CAPABILITIES = {
|
|
127
|
-
orchestrator: [
|
|
128
|
-
'memory',
|
|
129
|
-
'runCommand',
|
|
130
|
-
'switchAgent',
|
|
131
|
-
'newWorkspace',
|
|
132
|
-
'reviewPlan',
|
|
133
|
-
'killTerminal',
|
|
134
|
-
'createTask',
|
|
135
|
-
'terminal',
|
|
136
|
-
'terminalSel',
|
|
137
|
-
'lastCommand',
|
|
138
|
-
'problems',
|
|
139
|
-
'readFile',
|
|
140
|
-
'subagent',
|
|
141
|
-
'createFile',
|
|
142
|
-
'editFiles',
|
|
143
|
-
'rename',
|
|
144
|
-
'createDirectory',
|
|
145
|
-
'search',
|
|
146
|
-
'web',
|
|
147
|
-
'todo',
|
|
148
|
-
'searchSubagent',
|
|
149
|
-
'textSearch',
|
|
150
|
-
'browser',
|
|
151
|
-
'askQuestions',
|
|
152
|
-
'resolveMemoryFileUri',
|
|
153
|
-
],
|
|
154
|
-
researcher: [
|
|
155
|
-
'terminal',
|
|
156
|
-
'problems',
|
|
157
|
-
'readFile',
|
|
158
|
-
'lastCommand',
|
|
159
|
-
'subagent',
|
|
160
|
-
'search',
|
|
161
|
-
'web',
|
|
162
|
-
'browser',
|
|
163
|
-
],
|
|
164
|
-
reviewer: [
|
|
165
|
-
'terminal',
|
|
166
|
-
'problems',
|
|
167
|
-
'readFile',
|
|
168
|
-
'lastCommand',
|
|
169
|
-
'subagent',
|
|
170
|
-
'search',
|
|
171
|
-
'web',
|
|
172
|
-
'browser',
|
|
173
|
-
],
|
|
174
|
-
codeAgent: [
|
|
175
|
-
'createTask',
|
|
176
|
-
'terminal',
|
|
177
|
-
'problems',
|
|
178
|
-
'readFile',
|
|
179
|
-
'lastCommand',
|
|
180
|
-
'subagent',
|
|
181
|
-
'createFile',
|
|
182
|
-
'editFiles',
|
|
183
|
-
'rename',
|
|
184
|
-
'createDirectory',
|
|
185
|
-
'search',
|
|
186
|
-
'todo',
|
|
187
|
-
'browser',
|
|
188
|
-
],
|
|
189
|
-
debugger: [
|
|
190
|
-
'terminal',
|
|
191
|
-
'problems',
|
|
192
|
-
'readFile',
|
|
193
|
-
'terminalSel',
|
|
194
|
-
'lastCommand',
|
|
195
|
-
'subagent',
|
|
196
|
-
'createFile',
|
|
197
|
-
'editFiles',
|
|
198
|
-
'search',
|
|
199
|
-
'browser',
|
|
200
|
-
],
|
|
201
|
-
refactor: [
|
|
202
|
-
'terminal',
|
|
203
|
-
'problems',
|
|
204
|
-
'readFile',
|
|
205
|
-
'lastCommand',
|
|
206
|
-
'subagent',
|
|
207
|
-
'createFile',
|
|
208
|
-
'editFiles',
|
|
209
|
-
'rename',
|
|
210
|
-
'createDirectory',
|
|
211
|
-
'search',
|
|
212
|
-
'browser',
|
|
213
|
-
],
|
|
214
|
-
explorer: ['problems', 'readFile', 'search', 'fileSearch', 'listDir', 'textSearch', 'browser'],
|
|
215
|
-
planner: [
|
|
216
|
-
'terminal',
|
|
217
|
-
'problems',
|
|
218
|
-
'readFile',
|
|
219
|
-
'reviewPlan',
|
|
220
|
-
'memory',
|
|
221
|
-
'askQuestions',
|
|
222
|
-
'resolveMemoryFileUri',
|
|
223
|
-
'lastCommand',
|
|
224
|
-
'subagent',
|
|
225
|
-
'createFile',
|
|
226
|
-
'editFiles',
|
|
227
|
-
'rename',
|
|
228
|
-
'createDirectory',
|
|
229
|
-
'search',
|
|
230
|
-
'web',
|
|
231
|
-
'todo',
|
|
232
|
-
'searchSubagent',
|
|
233
|
-
'browser',
|
|
234
|
-
],
|
|
235
|
-
security: ['terminal', 'problems', 'readFile', 'subagent', 'search', 'web', 'browser'],
|
|
236
|
-
documenter: [
|
|
237
|
-
'terminal',
|
|
238
|
-
'problems',
|
|
239
|
-
'readFile',
|
|
240
|
-
'lastCommand',
|
|
241
|
-
'subagent',
|
|
242
|
-
'createFile',
|
|
243
|
-
'editFiles',
|
|
244
|
-
'rename',
|
|
245
|
-
'createDirectory',
|
|
246
|
-
'search',
|
|
247
|
-
'web',
|
|
248
|
-
'browser',
|
|
249
|
-
],
|
|
250
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# Epilogue: Documentation Sync
|
|
2
|
-
|
|
3
|
-
> **This is a mandatory epilogue step.** It runs automatically after every flow completes to keep project documentation synchronized with code changes.
|
|
4
|
-
|
|
5
|
-
## Objective
|
|
6
|
-
|
|
7
|
-
Review the changes made during this flow and update the `docs/` folder using AI Kit analysis tools — never write docs from scratch when a tool can generate the foundation.
|
|
8
|
-
|
|
9
|
-
## Prerequisites
|
|
10
|
-
|
|
11
|
-
Load the `docs` skill before proceeding — it contains the full documentation convention, templates, architecture blueprint workflow, and change-to-doc mapping rules.
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
### 0. Gather Flow Artifacts
|
|
16
|
-
|
|
17
|
-
Read all artifacts produced during this flow — they contain design decisions, requirements, and verification results that are the most valuable documentation input.
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
flow_status() # Get artifactsPath
|
|
21
|
-
find({ pattern: "*.md", path: "{{artifacts_path}}" }) # Discover all flow artifacts
|
|
22
|
-
digest({ sources: [ # Compress artifacts for context
|
|
23
|
-
{ path: "<found-artifact-1>" },
|
|
24
|
-
{ path: "<found-artifact-2>" },
|
|
25
|
-
...
|
|
26
|
-
]})
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Map each discovered artifact to documentation actions using the artifact-to-doc mapping from the `docs` skill. Different flows produce different artifacts — read everything `find()` returns and focus on content that contains decisions, requirements, and verification results.
|
|
30
|
-
|
|
31
|
-
If no artifacts exist, proceed to Step 1 in source-only mode.
|
|
32
|
-
|
|
33
|
-
### 1. Assess Changes (tool-driven)
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
git_context({}) # What changed in this flow
|
|
37
|
-
blast_radius({ changed_files: ["<changed-files>"] }) # Impact analysis — which modules affected
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Use the output to classify changes:
|
|
41
|
-
|
|
42
|
-
| Change Signal | Documentation Action |
|
|
43
|
-
|---------------|---------------------|
|
|
44
|
-
| New files in `src/` | Potential new component doc |
|
|
45
|
-
| Modified API surface | Update reference docs |
|
|
46
|
-
| New package or module boundary | Update architecture overview |
|
|
47
|
-
| Architecture decision made | Delegate to `adr-skill` |
|
|
48
|
-
| Test-only or config-only changes | Likely skip |
|
|
49
|
-
|
|
50
|
-
### 2. Apply the Change-to-Doc Mapping
|
|
51
|
-
|
|
52
|
-
Follow the decision tree from the `docs` skill to determine which documentation actions are needed.
|
|
53
|
-
|
|
54
|
-
### 3. Bootstrap `docs/` If Needed (full tool-driven workflow)
|
|
55
|
-
|
|
56
|
-
If `docs/` doesn't exist, run the **Architecture Blueprint Workflow** from the `docs` skill:
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
# Step 1: Generate content with AI Kit tools
|
|
60
|
-
produce_knowledge({ path: "." }) # → Foundation for docs/README.md
|
|
61
|
-
analyze_structure({ path: "." }) # → docs/architecture/overview.md structure
|
|
62
|
-
analyze_diagram({ path: "." }) # → docs/architecture/ Mermaid diagrams
|
|
63
|
-
analyze_dependencies({ path: "." }) # → docs/architecture/overview.md deps section
|
|
64
|
-
analyze_entry_points({ path: "." }) # → docs/reference/api.md foundation
|
|
65
|
-
analyze_patterns({ path: "." }) # → docs/architecture/overview.md patterns
|
|
66
|
-
|
|
67
|
-
# Step 2: Create the docs/ tree from tool outputs
|
|
68
|
-
docs/
|
|
69
|
-
├── README.md ← From produce_knowledge + project context
|
|
70
|
-
├── architecture/
|
|
71
|
-
│ ├── overview.md ← From analyze_structure + analyze_dependencies + analyze_diagram
|
|
72
|
-
│ └── components/ ← From analyze_symbols per major component
|
|
73
|
-
├── decisions/
|
|
74
|
-
│ └── index.md ← ADR log (delegate to adr-skill)
|
|
75
|
-
├── guides/
|
|
76
|
-
│ └── testing.md ← From analyze_patterns test info
|
|
77
|
-
└── reference/
|
|
78
|
-
└── api.md ← From analyze_entry_points
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Use the Architecture Blueprint sections from the `docs` skill as the template for each document.
|
|
82
|
-
|
|
83
|
-
### 4. Update Existing Docs (tool-assisted)
|
|
84
|
-
|
|
85
|
-
When `docs/` already exists:
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
compact({ path: "docs/architecture/overview.md", query: "section to update" }) # Read target section
|
|
89
|
-
blast_radius({ changed_files: ["<files>"] }) # What's affected
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
- **Don't rewrite** — update the relevant sections of existing docs
|
|
93
|
-
- **Don't duplicate** — if the information is in code comments or READMEs, reference it
|
|
94
|
-
- Use `compact` to read existing doc sections before editing
|
|
95
|
-
- Use `blast_radius` output to determine which sections need updating
|
|
96
|
-
|
|
97
|
-
### 5. Delegate When Appropriate
|
|
98
|
-
|
|
99
|
-
- Architecture decisions → `adr-skill` → `docs/decisions/`
|
|
100
|
-
- Architecture diagrams → `c4-architecture` skill → `docs/architecture/`
|
|
101
|
-
- Full architecture refresh → Run the Architecture Blueprint Workflow from `docs` skill
|
|
102
|
-
|
|
103
|
-
### 6. Update Index
|
|
104
|
-
|
|
105
|
-
If documents were added, removed, or renamed, update `docs/README.md` to reflect the current structure.
|
|
106
|
-
|
|
107
|
-
### 7. Skip If Nothing Changed
|
|
108
|
-
|
|
109
|
-
If the flow's changes don't warrant doc updates (e.g., pure bug fix with no revelations), report:
|
|
110
|
-
- "No documentation updates needed"
|
|
111
|
-
- Reason: (brief explanation)
|
|
112
|
-
|
|
113
|
-
## Completion Criteria
|
|
114
|
-
|
|
115
|
-
- [ ] `git_context` + `blast_radius` used to assess changes
|
|
116
|
-
- [ ] Change-to-doc mapping applied from `docs` skill
|
|
117
|
-
- [ ] `docs/` bootstrapped with tool outputs if it didn't exist
|
|
118
|
-
- [ ] Relevant docs created or updated (or skipped with reason)
|
|
119
|
-
- [ ] `docs/README.md` index is current
|
|
120
|
-
- [ ] No placeholder/empty docs created — all content tool-generated or hand-written with purpose
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# aikit:advanced — Full Development Flow
|
|
2
|
-
|
|
3
|
-
Full development flow for **new features, API design, and architecture changes**.
|
|
4
|
-
|
|
5
|
-
## Steps
|
|
6
|
-
|
|
7
|
-
| # | Step | Skill | Produces | Requires | Agents |
|
|
8
|
-
|---|------|-------|----------|----------|--------|
|
|
9
|
-
| 1 | **Design Gate** | `steps/design/README.md` | `design-decisions.md` | — | Researcher-Alpha/Beta/Gamma/Delta |
|
|
10
|
-
| 2 | **Specification** | `steps/spec/README.md` | `spec.md` | `design-decisions.md` | Researcher-Alpha |
|
|
11
|
-
| 3 | **Planning** | `steps/plan/README.md` | `plan.md` | `spec.md` | Planner, Explorer |
|
|
12
|
-
| 4 | **Task Breakdown** | `steps/task/README.md` | `tasks.md` | `plan.md` | Planner, Architect-Reviewer-Alpha |
|
|
13
|
-
| 5 | **Execution** | `steps/execute/README.md` | `progress.md` | `tasks.md` | Orchestrator, Implementer, Frontend, Refactor |
|
|
14
|
-
| 6 | **Verification** | `steps/verify/README.md` | `verify-report.md` | `progress.md` | Code-Reviewer-Alpha/Beta, Architect-Reviewer-Alpha/Beta, Security |
|
|
15
|
-
|
|
16
|
-
## How It Works
|
|
17
|
-
|
|
18
|
-
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.
|
|
19
|
-
|
|
20
|
-
### Step 1: Design Gate
|
|
21
|
-
- Full brainstorming session for new features and architectural changes
|
|
22
|
-
- FORGE classification (`forge_classify`) + grounding (`forge_ground`) for complex tasks
|
|
23
|
-
- Parallel 4-researcher decision protocol for non-trivial technical decisions
|
|
24
|
-
- ADR generation for critical-tier tasks
|
|
25
|
-
- **Mandatory user stop** before proceeding — design decisions must be approved
|
|
26
|
-
- Read `steps/design/README.md` for the full protocol
|
|
27
|
-
|
|
28
|
-
### Step 2: Specification
|
|
29
|
-
- Elicit requirements from the user, clarify scope
|
|
30
|
-
- Define acceptance criteria and constraints
|
|
31
|
-
- Build on design decisions from the previous step
|
|
32
|
-
|
|
33
|
-
### Step 3: Planning
|
|
34
|
-
- Deep codebase analysis using `search`, `scope_map`, `trace`, `analyze_*`
|
|
35
|
-
- Design architecture based on spec and design decisions
|
|
36
|
-
- Create comprehensive implementation plan with file-level changes
|
|
37
|
-
|
|
38
|
-
### Step 4: Task Breakdown
|
|
39
|
-
- Break the plan into ordered, atomic implementation tasks
|
|
40
|
-
- Define dependencies between tasks
|
|
41
|
-
- Identify parallel batches for multi-agent execution
|
|
42
|
-
- Architecture review of the task structure
|
|
43
|
-
|
|
44
|
-
### Step 5: Execution
|
|
45
|
-
- Orchestrator dispatches agents in parallel batches per the task breakdown
|
|
46
|
-
- Each agent gets a scoped task (1-3 files) with clear acceptance criteria
|
|
47
|
-
- TDD: write tests first, then implement
|
|
48
|
-
- Per-batch review cycle: Code Review (dual) → Arch Review → Security → Evidence Gate
|
|
49
|
-
|
|
50
|
-
### Step 6: Verification
|
|
51
|
-
- Dual code review (Code-Reviewer-Alpha + Beta)
|
|
52
|
-
- Architecture review (Architect-Reviewer-Alpha + Beta)
|
|
53
|
-
- Security review
|
|
54
|
-
- Run `check({})` + `test_run({})` + `blast_radius({})`
|
|
55
|
-
- `evidence_map({ action: "gate" })` for final quality gate
|
|
56
|
-
|
|
57
|
-
## Using Skills Inside Steps
|
|
58
|
-
|
|
59
|
-
When the Orchestrator activates a step:
|
|
60
|
-
|
|
61
|
-
1. **Read the instruction first** — `flow_read_instruction` returns the README.md for the current step
|
|
62
|
-
2. **Follow step instructions** — the README.md is the primary guide for what to do
|
|
63
|
-
3. **Delegate to listed agents** — each step lists which agents are appropriate
|
|
64
|
-
4. **Produce the required artifact** — the step's `produces` field specifies what file to create in the artifacts directory
|
|
65
|
-
5. **Check dependencies** — the step's `requires` field lists artifacts from previous steps that must exist
|
|
66
|
-
6. **Report status** — agents report `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED` to the Orchestrator
|
|
67
|
-
|
|
68
|
-
## Artifacts
|
|
69
|
-
|
|
70
|
-
All artifacts are stored in the run directory under `.flows/{topic}/`. The template variable `{{artifacts_path}}` resolves to the actual path at runtime.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aikit:advanced",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "Full development flow for new features, API design, and architecture changes",
|
|
5
|
-
"steps": [
|
|
6
|
-
{
|
|
7
|
-
"id": "design",
|
|
8
|
-
"name": "Design Gate",
|
|
9
|
-
"instruction": "steps/design/README.md",
|
|
10
|
-
"produces": ["design-decisions.md"],
|
|
11
|
-
"requires": [],
|
|
12
|
-
"agents": ["Researcher-Alpha", "Researcher-Beta", "Researcher-Gamma", "Researcher-Delta"],
|
|
13
|
-
"description": "Full brainstorming, FORGE classification, decision protocol with parallel research. ADR for critical-tier tasks."
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": "spec",
|
|
17
|
-
"name": "Specification",
|
|
18
|
-
"instruction": "steps/spec/README.md",
|
|
19
|
-
"produces": ["spec.md"],
|
|
20
|
-
"requires": ["design-decisions.md"],
|
|
21
|
-
"agents": ["Researcher-Alpha"],
|
|
22
|
-
"description": "Elicit requirements, clarify scope, define acceptance criteria"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"id": "plan",
|
|
26
|
-
"name": "Planning",
|
|
27
|
-
"instruction": "steps/plan/README.md",
|
|
28
|
-
"produces": ["plan.md"],
|
|
29
|
-
"requires": ["spec.md"],
|
|
30
|
-
"agents": ["Planner", "Explorer"],
|
|
31
|
-
"description": "Analyze codebase, design architecture, create implementation plan"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"id": "task",
|
|
35
|
-
"name": "Task Breakdown",
|
|
36
|
-
"instruction": "steps/task/README.md",
|
|
37
|
-
"produces": ["tasks.md"],
|
|
38
|
-
"requires": ["plan.md"],
|
|
39
|
-
"agents": ["Planner", "Architect-Reviewer-Alpha"],
|
|
40
|
-
"description": "Break plan into ordered implementation tasks with dependencies"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"id": "execute",
|
|
44
|
-
"name": "Execution",
|
|
45
|
-
"instruction": "steps/execute/README.md",
|
|
46
|
-
"produces": ["progress.md"],
|
|
47
|
-
"requires": ["tasks.md"],
|
|
48
|
-
"agents": ["Orchestrator", "Implementer", "Frontend", "Refactor"],
|
|
49
|
-
"description": "Implement all tasks, write code, write tests"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"id": "verify",
|
|
53
|
-
"name": "Verification",
|
|
54
|
-
"instruction": "steps/verify/README.md",
|
|
55
|
-
"produces": ["verify-report.md"],
|
|
56
|
-
"requires": ["progress.md"],
|
|
57
|
-
"agents": [
|
|
58
|
-
"Code-Reviewer-Alpha",
|
|
59
|
-
"Code-Reviewer-Beta",
|
|
60
|
-
"Architect-Reviewer-Alpha",
|
|
61
|
-
"Architect-Reviewer-Beta",
|
|
62
|
-
"Security"
|
|
63
|
-
],
|
|
64
|
-
"description": "Dual code review, architecture review, security review, test validation"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"artifacts_dir": ".spec",
|
|
68
|
-
"install": []
|
|
69
|
-
}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# Design Gate — Advanced Flow
|
|
2
|
-
|
|
3
|
-
Full design gate for new features, API design, and architecture changes. Runs brainstorming, decision protocol, and FORGE classification before specification begins.
|
|
4
|
-
|
|
5
|
-
## When This Step Runs
|
|
6
|
-
|
|
7
|
-
This is the **first step** of the `aikit:advanced` flow. It runs before specification.
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
### 1. Task Classification
|
|
12
|
-
|
|
13
|
-
Classify the task:
|
|
14
|
-
|
|
15
|
-
| Category | Indicators | Action |
|
|
16
|
-
|----------|-----------|--------|
|
|
17
|
-
| **Bug fix** | Error, regression, "fix" — wrong flow, should use `aikit:basic` | → Note mismatch, still run Quick Design |
|
|
18
|
-
| **New feature** | New behavior, new API, new component | → Run **Full Design** below |
|
|
19
|
-
| **Architecture change** | Restructure, migration, new pattern, cross-cutting | → Run **Full Design** with architecture focus |
|
|
20
|
-
|
|
21
|
-
### 2. FORGE Classification
|
|
22
|
-
|
|
23
|
-
Run `forge_classify({ task: "<task description>", files: [<relevant files>] })` to determine the complexity tier.
|
|
24
|
-
|
|
25
|
-
| Tier | Meaning | Design Depth |
|
|
26
|
-
|------|---------|-------------|
|
|
27
|
-
| **Floor** | Low risk, well-understood | Quick brainstorm, 1-2 decisions |
|
|
28
|
-
| **Standard** | Moderate complexity | Full brainstorm, parallel research, decision protocol |
|
|
29
|
-
| **Critical** | High risk, contract/security implications | Deep brainstorm, 4-researcher parallel review, ADR required |
|
|
30
|
-
|
|
31
|
-
### 3. Brainstorming Session
|
|
32
|
-
|
|
33
|
-
Load the `brainstorming` skill and conduct a structured brainstorming session:
|
|
34
|
-
|
|
35
|
-
1. **Intent Discovery** — What is the user trying to achieve? What problem does this solve?
|
|
36
|
-
2. **Constraint Mapping** — Technical constraints, time constraints, compatibility requirements
|
|
37
|
-
3. **Approach Exploration** — Generate 2-4 possible approaches
|
|
38
|
-
4. **Trade-off Analysis** — Compare approaches on: complexity, maintainability, performance, risk
|
|
39
|
-
|
|
40
|
-
For **Critical** tier tasks, also explore:
|
|
41
|
-
- Security implications
|
|
42
|
-
- Backward compatibility
|
|
43
|
-
- Migration path
|
|
44
|
-
- Rollback strategy
|
|
45
|
-
|
|
46
|
-
### 4. Decision Protocol (Standard & Critical tiers)
|
|
47
|
-
|
|
48
|
-
When technical decisions need resolution:
|
|
49
|
-
|
|
50
|
-
1. **Identify decisions** — List each decision point with 2+ viable options
|
|
51
|
-
2. **Parallel research** — Delegate to Researcher agents (2 for Standard, 4 for Critical):
|
|
52
|
-
- Researcher-Alpha: Deep analysis of primary approach
|
|
53
|
-
- Researcher-Beta: Trade-offs and edge cases of alternatives
|
|
54
|
-
- Researcher-Gamma: Cross-domain patterns and precedents
|
|
55
|
-
- Researcher-Delta: Feasibility and performance implications
|
|
56
|
-
3. **Synthesize** — Combine researcher findings into a recommendation per decision
|
|
57
|
-
4. **ADR** (Critical tier) — Load `adr-skill` and create an Architecture Decision Record
|
|
58
|
-
|
|
59
|
-
### 5. FORGE Ground (Standard & Critical tiers)
|
|
60
|
-
|
|
61
|
-
Run `forge_ground({ task, root_path: "." })` to:
|
|
62
|
-
- Scope the affected files and modules
|
|
63
|
-
- Identify unknowns and risks
|
|
64
|
-
- Load existing constraints and conventions
|
|
65
|
-
|
|
66
|
-
**Auto-upgrade check**: If `forge_ground` reveals contract-type unknowns or security concerns not caught by initial `forge_classify`, recommend tier upgrade.
|
|
67
|
-
|
|
68
|
-
### 6. Write `{{artifacts_path}}/design-decisions.md` to disk
|
|
69
|
-
|
|
70
|
-
**You MUST create this file on disk** using `create_file` or equivalent — do not just present content in chat.
|
|
71
|
-
|
|
72
|
-
```markdown
|
|
73
|
-
## Design Decisions
|
|
74
|
-
|
|
75
|
-
### FORGE Assessment
|
|
76
|
-
- **Tier**: {Floor | Standard | Critical}
|
|
77
|
-
- **Rationale**: {why this tier}
|
|
78
|
-
- **Auto-upgrade**: {yes/no — if yes, explain}
|
|
79
|
-
|
|
80
|
-
### Task Summary
|
|
81
|
-
- **Goal**: {what we're building}
|
|
82
|
-
- **Problem**: {what problem this solves}
|
|
83
|
-
- **Users affected**: {who is impacted}
|
|
84
|
-
|
|
85
|
-
### Approach
|
|
86
|
-
- **Chosen approach**: {description}
|
|
87
|
-
- **Alternatives considered**: {list with reasons for rejection}
|
|
88
|
-
|
|
89
|
-
### Key Decisions
|
|
90
|
-
| # | Decision | Choice | Rationale |
|
|
91
|
-
|---|----------|--------|-----------|
|
|
92
|
-
| 1 | {decision} | {choice} | {why} |
|
|
93
|
-
|
|
94
|
-
### Constraints
|
|
95
|
-
- {constraint 1}
|
|
96
|
-
- {constraint 2}
|
|
97
|
-
|
|
98
|
-
### Risks
|
|
99
|
-
| Risk | Likelihood | Impact | Mitigation |
|
|
100
|
-
|------|-----------|--------|------------|
|
|
101
|
-
| {risk} | {L/M/H} | {L/M/H} | {mitigation} |
|
|
102
|
-
|
|
103
|
-
### Open Questions
|
|
104
|
-
- {question 1}
|
|
105
|
-
- {question 2}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### 7. Present to User
|
|
109
|
-
|
|
110
|
-
Use `present({ format: "html" })` (or `format: "browser"` in CLI mode) to show:
|
|
111
|
-
- Design decisions summary
|
|
112
|
-
- FORGE tier and rationale
|
|
113
|
-
- Key trade-offs
|
|
114
|
-
- Open questions requiring user input
|
|
115
|
-
|
|
116
|
-
**🛑 MANDATORY STOP** — Wait for user approval of design decisions before proceeding.
|
|
117
|
-
|
|
118
|
-
### 8. Report to Orchestrator
|
|
119
|
-
|
|
120
|
-
After user approves:
|
|
121
|
-
- `DONE` — design decisions approved, ready for specification
|
|
122
|
-
- `DONE_WITH_CONCERNS` — approved with caveats (list them)
|
|
123
|
-
- `NEEDS_CONTEXT` — user raised questions that need more research
|
|
124
|
-
|
|
125
|
-
**Do NOT call `flow_step`** — let the Orchestrator advance the flow.
|
|
126
|
-
|
|
127
|
-
## Outputs
|
|
128
|
-
|
|
129
|
-
Write `{{artifacts_path}}/design-decisions.md` to disk. **You MUST create this file** using `create_file` or equivalent — do not just present content in chat. This file is a prerequisite for the next step.
|
|
130
|
-
|
|
131
|
-
## Produces
|
|
132
|
-
|
|
133
|
-
- `{{artifacts_path}}/design-decisions.md` — FORGE tier, approach, key decisions, constraints, risks
|
|
134
|
-
|
|
135
|
-
## Agents
|
|
136
|
-
|
|
137
|
-
- `Researcher-Alpha` — Deep analysis of primary approach
|
|
138
|
-
- `Researcher-Beta` — Trade-offs and edge cases
|
|
139
|
-
- `Researcher-Gamma` — Cross-domain patterns
|
|
140
|
-
- `Researcher-Delta` — Feasibility and performance
|
|
141
|
-
|
|
142
|
-
## Foundation Integration
|
|
143
|
-
|
|
144
|
-
Load these skills BEFORE executing this step:
|
|
145
|
-
|
|
146
|
-
| Skill | Purpose | When |
|
|
147
|
-
|-------|---------|------|
|
|
148
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
149
|
-
| `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 |
|
|
150
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
151
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
152
|
-
| `c4-architecture` | C4 model diagrams showing system structure changes | When visualizing proposed architecture |
|
|
153
|
-
| `adr-skill` | Architecture Decision Records for non-trivial decisions | Critical tier — document architecture decisions |
|
|
154
|
-
|
|
155
|
-
### Presentation Rules
|
|
156
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
157
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
158
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
159
|
-
- Artifact content and summaries → present with structured layout
|
|
160
|
-
- Only use plain text for brief confirmations and simple questions
|
|
161
|
-
|
|
162
|
-
## Completion Criteria
|
|
163
|
-
|
|
164
|
-
- [ ] `{{artifacts_path}}/design-decisions.md` written to disk (NOT just presented in chat)
|
|
165
|
-
- [ ] FORGE tier determined and documented
|
|
166
|
-
- [ ] Brainstorming session completed (for Standard+ tier)
|
|
167
|
-
- [ ] Key design decisions documented with rationale
|
|
168
|
-
- [ ] User approval received (🛑 MANDATORY STOP)
|
|
169
|
-
|
|
170
|
-
## Knowledge Capture
|
|
171
|
-
|
|
172
|
-
Before completing this step, persist important findings using `remember()`:
|
|
173
|
-
|
|
174
|
-
- **Design decisions**: Chosen approach and alternatives considered with trade-offs
|
|
175
|
-
- **Architecture patterns**: New patterns introduced or existing patterns that must be followed
|
|
176
|
-
- **Constraints discovered**: Technical limitations, compatibility requirements, or performance boundaries
|
|
177
|
-
|
|
178
|
-
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|