@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
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: task
|
|
3
|
-
description: Break the implementation plan into ordered, atomic tasks with dependencies and agent assignments.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Task Breakdown
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Decompose the implementation plan into small, atomic tasks that agents can execute independently, with clear dependency ordering and acceptance criteria per task.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/plan.md` — the phased implementation plan
|
|
15
|
-
|
|
16
|
-
## Process
|
|
17
|
-
|
|
18
|
-
1. **Load plan** — Read phases, file scope, and dependency graph
|
|
19
|
-
2. **Decompose phases into tasks** — Each task should:
|
|
20
|
-
- Touch 1–3 files maximum
|
|
21
|
-
- Have a single, testable outcome
|
|
22
|
-
- Take one agent one focused session
|
|
23
|
-
3. **Define dependencies** — Map task-to-task dependencies (not just phase-to-phase)
|
|
24
|
-
4. **Assign agents** — Match each task to the best-fit agent based on scope
|
|
25
|
-
5. **Identify parallelism** — Mark which tasks can run simultaneously
|
|
26
|
-
6. **Architecture review** — Have Architect-Reviewer validate task ordering won't create integration issues
|
|
27
|
-
|
|
28
|
-
## Outputs
|
|
29
|
-
|
|
30
|
-
Produce `.spec/<slug>/tasks.md` with:
|
|
31
|
-
|
|
32
|
-
```markdown
|
|
33
|
-
# Task Breakdown: <feature title>
|
|
34
|
-
|
|
35
|
-
## Task Graph
|
|
36
|
-
|
|
37
|
-
### Phase 1: <name>
|
|
38
|
-
- [ ] **T1.1**: <description>
|
|
39
|
-
- Files: <list>
|
|
40
|
-
- Agent: <agent name>
|
|
41
|
-
- Depends on: none
|
|
42
|
-
- Acceptance: <testable criterion>
|
|
43
|
-
|
|
44
|
-
- [ ] **T1.2**: <description>
|
|
45
|
-
- Files: <list>
|
|
46
|
-
- Agent: <agent name>
|
|
47
|
-
- Depends on: T1.1
|
|
48
|
-
- Acceptance: <testable criterion>
|
|
49
|
-
|
|
50
|
-
### Phase 2: <name>
|
|
51
|
-
- [ ] **T2.1**: <description> (can parallel with T1.2)
|
|
52
|
-
...
|
|
53
|
-
|
|
54
|
-
## Parallelism Map
|
|
55
|
-
| Batch | Tasks | Agents |
|
|
56
|
-
|-------|-------|--------|
|
|
57
|
-
| 1 | T1.1 | Implementer |
|
|
58
|
-
| 2 | T1.2, T2.1 | Implementer, Frontend |
|
|
59
|
-
| 3 | T2.2 | Implementer |
|
|
60
|
-
| ... | ... | ... |
|
|
61
|
-
|
|
62
|
-
## Estimated Batches: <N>
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Agents
|
|
66
|
-
|
|
67
|
-
| Agent | Role |
|
|
68
|
-
|-------|------|
|
|
69
|
-
| **Planner** | Decomposes plan phases into atomic tasks with dependency ordering |
|
|
70
|
-
| **Architect-Reviewer-Alpha** | Validates task decomposition won't cause integration issues |
|
|
71
|
-
|
|
72
|
-
Planner does the decomposition, then Architect-Reviewer validates the task graph.
|
|
73
|
-
|
|
74
|
-
## Foundation Integration
|
|
75
|
-
|
|
76
|
-
Load these skills BEFORE executing this step:
|
|
77
|
-
|
|
78
|
-
| Skill | Purpose | When |
|
|
79
|
-
|-------|---------|------|
|
|
80
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
81
|
-
| `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 |
|
|
82
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
83
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
84
|
-
|
|
85
|
-
### Presentation Rules
|
|
86
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
87
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
88
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
89
|
-
- Artifact content and summaries → present with structured layout
|
|
90
|
-
- Only use plain text for brief confirmations and simple questions
|
|
91
|
-
|
|
92
|
-
## Completion Criteria
|
|
93
|
-
|
|
94
|
-
- [ ] Every plan phase maps to ≥1 task
|
|
95
|
-
- [ ] Each task touches ≤3 files
|
|
96
|
-
- [ ] Dependencies form a DAG (no cycles)
|
|
97
|
-
- [ ] Parallelism opportunities identified
|
|
98
|
-
- [ ] Architect review confirms no integration risks
|
|
99
|
-
- [ ] `.spec/<slug>/tasks.md` written
|
|
1
|
+
---
|
|
2
|
+
name: task
|
|
3
|
+
description: Break the implementation plan into ordered, atomic tasks with dependencies and agent assignments.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Task Breakdown
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Decompose the implementation plan into small, atomic tasks that agents can execute independently, with clear dependency ordering and acceptance criteria per task.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/plan.md` — the phased implementation plan
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. **Load plan** — Read phases, file scope, and dependency graph
|
|
19
|
+
2. **Decompose phases into tasks** — Each task should:
|
|
20
|
+
- Touch 1–3 files maximum
|
|
21
|
+
- Have a single, testable outcome
|
|
22
|
+
- Take one agent one focused session
|
|
23
|
+
3. **Define dependencies** — Map task-to-task dependencies (not just phase-to-phase)
|
|
24
|
+
4. **Assign agents** — Match each task to the best-fit agent based on scope
|
|
25
|
+
5. **Identify parallelism** — Mark which tasks can run simultaneously
|
|
26
|
+
6. **Architecture review** — Have Architect-Reviewer validate task ordering won't create integration issues
|
|
27
|
+
|
|
28
|
+
## Outputs
|
|
29
|
+
|
|
30
|
+
Produce `.spec/<slug>/tasks.md` with:
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# Task Breakdown: <feature title>
|
|
34
|
+
|
|
35
|
+
## Task Graph
|
|
36
|
+
|
|
37
|
+
### Phase 1: <name>
|
|
38
|
+
- [ ] **T1.1**: <description>
|
|
39
|
+
- Files: <list>
|
|
40
|
+
- Agent: <agent name>
|
|
41
|
+
- Depends on: none
|
|
42
|
+
- Acceptance: <testable criterion>
|
|
43
|
+
|
|
44
|
+
- [ ] **T1.2**: <description>
|
|
45
|
+
- Files: <list>
|
|
46
|
+
- Agent: <agent name>
|
|
47
|
+
- Depends on: T1.1
|
|
48
|
+
- Acceptance: <testable criterion>
|
|
49
|
+
|
|
50
|
+
### Phase 2: <name>
|
|
51
|
+
- [ ] **T2.1**: <description> (can parallel with T1.2)
|
|
52
|
+
...
|
|
53
|
+
|
|
54
|
+
## Parallelism Map
|
|
55
|
+
| Batch | Tasks | Agents |
|
|
56
|
+
|-------|-------|--------|
|
|
57
|
+
| 1 | T1.1 | Implementer |
|
|
58
|
+
| 2 | T1.2, T2.1 | Implementer, Frontend |
|
|
59
|
+
| 3 | T2.2 | Implementer |
|
|
60
|
+
| ... | ... | ... |
|
|
61
|
+
|
|
62
|
+
## Estimated Batches: <N>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Agents
|
|
66
|
+
|
|
67
|
+
| Agent | Role |
|
|
68
|
+
|-------|------|
|
|
69
|
+
| **Planner** | Decomposes plan phases into atomic tasks with dependency ordering |
|
|
70
|
+
| **Architect-Reviewer-Alpha** | Validates task decomposition won't cause integration issues |
|
|
71
|
+
|
|
72
|
+
Planner does the decomposition, then Architect-Reviewer validates the task graph.
|
|
73
|
+
|
|
74
|
+
## Foundation Integration
|
|
75
|
+
|
|
76
|
+
Load these skills BEFORE executing this step:
|
|
77
|
+
|
|
78
|
+
| Skill | Purpose | When |
|
|
79
|
+
|-------|---------|------|
|
|
80
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
81
|
+
| `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 |
|
|
82
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
83
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
84
|
+
|
|
85
|
+
### Presentation Rules
|
|
86
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
87
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
88
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
89
|
+
- Artifact content and summaries → present with structured layout
|
|
90
|
+
- Only use plain text for brief confirmations and simple questions
|
|
91
|
+
|
|
92
|
+
## Completion Criteria
|
|
93
|
+
|
|
94
|
+
- [ ] Every plan phase maps to ≥1 task
|
|
95
|
+
- [ ] Each task touches ≤3 files
|
|
96
|
+
- [ ] Dependencies form a DAG (no cycles)
|
|
97
|
+
- [ ] Parallelism opportunities identified
|
|
98
|
+
- [ ] Architect review confirms no integration risks
|
|
99
|
+
- [ ] `.spec/<slug>/tasks.md` written
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verify
|
|
3
|
-
description: Dual code review, architecture review, security review, and comprehensive test validation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Verification (Advanced)
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Perform thorough multi-perspective validation of all changes through parallel dual code review, architecture review, and security analysis.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/spec.md` — original requirements and acceptance criteria
|
|
15
|
-
- `.spec/<slug>/plan.md` — architecture decisions and phase design
|
|
16
|
-
- `.spec/<slug>/tasks.md` — task breakdown with per-task acceptance criteria
|
|
17
|
-
- `.spec/<slug>/progress.md` — implementation status and changes made
|
|
18
|
-
|
|
19
|
-
## Process
|
|
20
|
-
|
|
21
|
-
1. **Load all artifacts** — Read spec, plan, tasks, and progress
|
|
22
|
-
2. **Dual code review** (parallel):
|
|
23
|
-
- Code-Reviewer-Alpha: focus on correctness, conventions, quality
|
|
24
|
-
- Code-Reviewer-Beta: focus on edge cases, error handling, maintainability
|
|
25
|
-
3. **Architecture review** (parallel with code review):
|
|
26
|
-
- Architect-Reviewer-Alpha: validate changes align with plan and ADRs
|
|
27
|
-
- Architect-Reviewer-Beta: assess long-term maintainability and evolution
|
|
28
|
-
4. **Security review**:
|
|
29
|
-
- Security agent: OWASP Top 10, auth/authz, input validation, secrets
|
|
30
|
-
5. **Quality gates** — `check({})` + `test_run({})` must pass
|
|
31
|
-
6. **Blast radius** — `blast_radius({ changed_files: [...] })` on all modified files
|
|
32
|
-
7. **Acceptance criteria** — Verify each spec acceptance criterion is met
|
|
33
|
-
8. **FORGE gate** — `evidence_map({ action: "gate" })` for final quality assessment
|
|
34
|
-
9. **Synthesize report** — Merge all reviewer findings into unified verdict
|
|
35
|
-
|
|
36
|
-
## Outputs
|
|
37
|
-
|
|
38
|
-
Produce `.spec/<slug>/verify-report.md` with:
|
|
39
|
-
|
|
40
|
-
```markdown
|
|
41
|
-
# Verification Report: <feature title>
|
|
42
|
-
|
|
43
|
-
## Verdict: PASS | FAIL
|
|
44
|
-
|
|
45
|
-
## Acceptance Criteria
|
|
46
|
-
- [x] <criterion> — verified by <method>
|
|
47
|
-
- [ ] <criterion> — FAILED: <reason>
|
|
48
|
-
|
|
49
|
-
## Quality Gates
|
|
50
|
-
- check: PASS/FAIL
|
|
51
|
-
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
52
|
-
- blast_radius: <impact summary>
|
|
53
|
-
- FORGE gate: YIELD/HOLD/HARD_BLOCK
|
|
54
|
-
|
|
55
|
-
## Code Review (Alpha)
|
|
56
|
-
<findings with severity: critical/major/minor/suggestion>
|
|
57
|
-
|
|
58
|
-
## Code Review (Beta)
|
|
59
|
-
<findings with severity>
|
|
60
|
-
|
|
61
|
-
## Architecture Review
|
|
62
|
-
<alignment assessment, any concerns>
|
|
63
|
-
|
|
64
|
-
## Security Review
|
|
65
|
-
<vulnerabilities found, OWASP compliance>
|
|
66
|
-
|
|
67
|
-
## Recommendation
|
|
68
|
-
APPROVE | REQUEST CHANGES
|
|
69
|
-
|
|
70
|
-
### Required Changes (if any)
|
|
71
|
-
1. <change needed>
|
|
72
|
-
2. ...
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Agents
|
|
76
|
-
|
|
77
|
-
| Agent | Role |
|
|
78
|
-
|-------|------|
|
|
79
|
-
| **Code-Reviewer-Alpha** | Primary code review — correctness, quality, conventions |
|
|
80
|
-
| **Code-Reviewer-Beta** | Secondary code review — edge cases, error handling, maintainability |
|
|
81
|
-
| **Architect-Reviewer-Alpha** | Primary architecture review — alignment with plan and ADRs |
|
|
82
|
-
| **Architect-Reviewer-Beta** | Secondary architecture review — long-term evolution |
|
|
83
|
-
| **Security** | Security analysis — OWASP, auth, input validation |
|
|
84
|
-
|
|
85
|
-
**Parallelism**: All 5 reviewers can run in parallel — they are read-only.
|
|
86
|
-
|
|
87
|
-
## Foundation Integration
|
|
88
|
-
|
|
89
|
-
Load these skills BEFORE executing this step:
|
|
90
|
-
|
|
91
|
-
| Skill | Purpose | When |
|
|
92
|
-
|-------|---------|------|
|
|
93
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
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 |
|
|
95
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
96
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
97
|
-
|
|
98
|
-
### Presentation Rules
|
|
99
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
100
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
101
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
102
|
-
- Artifact content and summaries → present with structured layout
|
|
103
|
-
- Only use plain text for brief confirmations and simple questions
|
|
104
|
-
|
|
105
|
-
### FORGE Quality Gate
|
|
106
|
-
|
|
107
|
-
After all reviews complete:
|
|
108
|
-
1. `evidence_map({ action: "gate", task_id: "<slug>" })` → returns YIELD/HOLD/HARD_BLOCK
|
|
109
|
-
2. YIELD → approved, proceed to commit
|
|
110
|
-
3. HOLD → minor issues, fix then re-gate (max 3 rounds)
|
|
111
|
-
4. HARD_BLOCK → critical issues, escalate to user
|
|
112
|
-
|
|
113
|
-
## Completion Criteria
|
|
114
|
-
|
|
115
|
-
- [ ] Dual code review complete (2 reviewers)
|
|
116
|
-
- [ ] Architecture review complete (2 reviewers)
|
|
117
|
-
- [ ] Security review complete
|
|
118
|
-
- [ ] `check({})` passes
|
|
119
|
-
- [ ] `test_run({})` passes
|
|
120
|
-
- [ ] All spec acceptance criteria verified
|
|
121
|
-
- [ ] FORGE gate passed (YIELD)
|
|
122
|
-
- [ ] `.spec/<slug>/verify-report.md` written with clear verdict
|
|
1
|
+
---
|
|
2
|
+
name: verify
|
|
3
|
+
description: Dual code review, architecture review, security review, and comprehensive test validation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verification (Advanced)
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Perform thorough multi-perspective validation of all changes through parallel dual code review, architecture review, and security analysis.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/spec.md` — original requirements and acceptance criteria
|
|
15
|
+
- `.spec/<slug>/plan.md` — architecture decisions and phase design
|
|
16
|
+
- `.spec/<slug>/tasks.md` — task breakdown with per-task acceptance criteria
|
|
17
|
+
- `.spec/<slug>/progress.md` — implementation status and changes made
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
1. **Load all artifacts** — Read spec, plan, tasks, and progress
|
|
22
|
+
2. **Dual code review** (parallel):
|
|
23
|
+
- Code-Reviewer-Alpha: focus on correctness, conventions, quality
|
|
24
|
+
- Code-Reviewer-Beta: focus on edge cases, error handling, maintainability
|
|
25
|
+
3. **Architecture review** (parallel with code review):
|
|
26
|
+
- Architect-Reviewer-Alpha: validate changes align with plan and ADRs
|
|
27
|
+
- Architect-Reviewer-Beta: assess long-term maintainability and evolution
|
|
28
|
+
4. **Security review**:
|
|
29
|
+
- Security agent: OWASP Top 10, auth/authz, input validation, secrets
|
|
30
|
+
5. **Quality gates** — `check({})` + `test_run({})` must pass
|
|
31
|
+
6. **Blast radius** — `blast_radius({ changed_files: [...] })` on all modified files
|
|
32
|
+
7. **Acceptance criteria** — Verify each spec acceptance criterion is met
|
|
33
|
+
8. **FORGE gate** — `evidence_map({ action: "gate" })` for final quality assessment
|
|
34
|
+
9. **Synthesize report** — Merge all reviewer findings into unified verdict
|
|
35
|
+
|
|
36
|
+
## Outputs
|
|
37
|
+
|
|
38
|
+
Produce `.spec/<slug>/verify-report.md` with:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
# Verification Report: <feature title>
|
|
42
|
+
|
|
43
|
+
## Verdict: PASS | FAIL
|
|
44
|
+
|
|
45
|
+
## Acceptance Criteria
|
|
46
|
+
- [x] <criterion> — verified by <method>
|
|
47
|
+
- [ ] <criterion> — FAILED: <reason>
|
|
48
|
+
|
|
49
|
+
## Quality Gates
|
|
50
|
+
- check: PASS/FAIL
|
|
51
|
+
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
52
|
+
- blast_radius: <impact summary>
|
|
53
|
+
- FORGE gate: YIELD/HOLD/HARD_BLOCK
|
|
54
|
+
|
|
55
|
+
## Code Review (Alpha)
|
|
56
|
+
<findings with severity: critical/major/minor/suggestion>
|
|
57
|
+
|
|
58
|
+
## Code Review (Beta)
|
|
59
|
+
<findings with severity>
|
|
60
|
+
|
|
61
|
+
## Architecture Review
|
|
62
|
+
<alignment assessment, any concerns>
|
|
63
|
+
|
|
64
|
+
## Security Review
|
|
65
|
+
<vulnerabilities found, OWASP compliance>
|
|
66
|
+
|
|
67
|
+
## Recommendation
|
|
68
|
+
APPROVE | REQUEST CHANGES
|
|
69
|
+
|
|
70
|
+
### Required Changes (if any)
|
|
71
|
+
1. <change needed>
|
|
72
|
+
2. ...
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Agents
|
|
76
|
+
|
|
77
|
+
| Agent | Role |
|
|
78
|
+
|-------|------|
|
|
79
|
+
| **Code-Reviewer-Alpha** | Primary code review — correctness, quality, conventions |
|
|
80
|
+
| **Code-Reviewer-Beta** | Secondary code review — edge cases, error handling, maintainability |
|
|
81
|
+
| **Architect-Reviewer-Alpha** | Primary architecture review — alignment with plan and ADRs |
|
|
82
|
+
| **Architect-Reviewer-Beta** | Secondary architecture review — long-term evolution |
|
|
83
|
+
| **Security** | Security analysis — OWASP, auth, input validation |
|
|
84
|
+
|
|
85
|
+
**Parallelism**: All 5 reviewers can run in parallel — they are read-only.
|
|
86
|
+
|
|
87
|
+
## Foundation Integration
|
|
88
|
+
|
|
89
|
+
Load these skills BEFORE executing this step:
|
|
90
|
+
|
|
91
|
+
| Skill | Purpose | When |
|
|
92
|
+
|-------|---------|------|
|
|
93
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
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 |
|
|
95
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
96
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
97
|
+
|
|
98
|
+
### Presentation Rules
|
|
99
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
100
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
101
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
102
|
+
- Artifact content and summaries → present with structured layout
|
|
103
|
+
- Only use plain text for brief confirmations and simple questions
|
|
104
|
+
|
|
105
|
+
### FORGE Quality Gate
|
|
106
|
+
|
|
107
|
+
After all reviews complete:
|
|
108
|
+
1. `evidence_map({ action: "gate", task_id: "<slug>" })` → returns YIELD/HOLD/HARD_BLOCK
|
|
109
|
+
2. YIELD → approved, proceed to commit
|
|
110
|
+
3. HOLD → minor issues, fix then re-gate (max 3 rounds)
|
|
111
|
+
4. HARD_BLOCK → critical issues, escalate to user
|
|
112
|
+
|
|
113
|
+
## Completion Criteria
|
|
114
|
+
|
|
115
|
+
- [ ] Dual code review complete (2 reviewers)
|
|
116
|
+
- [ ] Architecture review complete (2 reviewers)
|
|
117
|
+
- [ ] Security review complete
|
|
118
|
+
- [ ] `check({})` passes
|
|
119
|
+
- [ ] `test_run({})` passes
|
|
120
|
+
- [ ] All spec acceptance criteria verified
|
|
121
|
+
- [ ] FORGE gate passed (YIELD)
|
|
122
|
+
- [ ] `.spec/<slug>/verify-report.md` written with clear verdict
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: assess
|
|
3
|
-
description: Understand scope, analyze the codebase, and identify the implementation approach.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Assessment
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Analyze the task requirements and codebase to produce a clear, actionable assessment before any code changes begin.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- User's task description or issue reference
|
|
15
|
-
- Codebase (accessed via aikit MCP tools)
|
|
16
|
-
|
|
17
|
-
## Process
|
|
18
|
-
|
|
19
|
-
1. **Parse the goal** — Extract what needs to change, success criteria, and constraints
|
|
20
|
-
2. **Search for prior work** — `search({ query: "<task keywords>" })` to check for existing decisions or related code
|
|
21
|
-
3. **Map affected scope** — `scope_map({ task: "<description>" })` to identify files and modules involved
|
|
22
|
-
4. **Analyze structure** — `file_summary()` on each affected file; `compact()` for deeper sections
|
|
23
|
-
5. **Identify risks** — Note dependencies, breaking change potential, test coverage gaps
|
|
24
|
-
6. **Draft approach** — Outline the implementation strategy in 3–7 steps
|
|
25
|
-
|
|
26
|
-
## Outputs
|
|
27
|
-
|
|
28
|
-
Produce `.spec/<slug>/assessment.md` with:
|
|
29
|
-
|
|
30
|
-
```markdown
|
|
31
|
-
# Assessment: <task title>
|
|
32
|
-
|
|
33
|
-
## Goal
|
|
34
|
-
<what needs to happen>
|
|
35
|
-
|
|
36
|
-
## Affected Files
|
|
37
|
-
<list of files with brief reason>
|
|
38
|
-
|
|
39
|
-
## Approach
|
|
40
|
-
<numbered implementation steps>
|
|
41
|
-
|
|
42
|
-
## Risks
|
|
43
|
-
<potential issues and mitigations>
|
|
44
|
-
|
|
45
|
-
## Open Questions
|
|
46
|
-
<anything that needs clarification before proceeding>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Agents
|
|
50
|
-
|
|
51
|
-
| Agent | Role |
|
|
52
|
-
|-------|------|
|
|
53
|
-
| **Explorer** | Rapid file discovery, dependency tracing, structural context |
|
|
54
|
-
| **Researcher-Alpha** | Deep analysis of complex logic, prior decisions, architectural implications |
|
|
55
|
-
|
|
56
|
-
Use Explorer first for breadth, then Researcher-Alpha for depth on complex areas.
|
|
57
|
-
|
|
58
|
-
## Foundation Integration
|
|
59
|
-
|
|
60
|
-
Load these skills BEFORE executing this step:
|
|
61
|
-
|
|
62
|
-
| Skill | Purpose | When |
|
|
63
|
-
|-------|---------|------|
|
|
64
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
65
|
-
| `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
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
67
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
68
|
-
|
|
69
|
-
### Presentation Rules
|
|
70
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
71
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
72
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
73
|
-
- Artifact content and summaries → present with structured layout
|
|
74
|
-
- Only use plain text for brief confirmations and simple questions
|
|
75
|
-
|
|
76
|
-
## Completion Criteria
|
|
77
|
-
|
|
78
|
-
- [ ] All affected files identified
|
|
79
|
-
- [ ] Implementation approach is concrete (not vague)
|
|
80
|
-
- [ ] Risks documented with mitigations
|
|
81
|
-
- [ ] No unresolved open questions that block implementation
|
|
82
|
-
- [ ] `.spec/<slug>/assessment.md` written
|
|
1
|
+
---
|
|
2
|
+
name: assess
|
|
3
|
+
description: Understand scope, analyze the codebase, and identify the implementation approach.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Assessment
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Analyze the task requirements and codebase to produce a clear, actionable assessment before any code changes begin.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- User's task description or issue reference
|
|
15
|
+
- Codebase (accessed via aikit MCP tools)
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. **Parse the goal** — Extract what needs to change, success criteria, and constraints
|
|
20
|
+
2. **Search for prior work** — `search({ query: "<task keywords>" })` to check for existing decisions or related code
|
|
21
|
+
3. **Map affected scope** — `scope_map({ task: "<description>" })` to identify files and modules involved
|
|
22
|
+
4. **Analyze structure** — `file_summary()` on each affected file; `compact()` for deeper sections
|
|
23
|
+
5. **Identify risks** — Note dependencies, breaking change potential, test coverage gaps
|
|
24
|
+
6. **Draft approach** — Outline the implementation strategy in 3–7 steps
|
|
25
|
+
|
|
26
|
+
## Outputs
|
|
27
|
+
|
|
28
|
+
Produce `.spec/<slug>/assessment.md` with:
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
# Assessment: <task title>
|
|
32
|
+
|
|
33
|
+
## Goal
|
|
34
|
+
<what needs to happen>
|
|
35
|
+
|
|
36
|
+
## Affected Files
|
|
37
|
+
<list of files with brief reason>
|
|
38
|
+
|
|
39
|
+
## Approach
|
|
40
|
+
<numbered implementation steps>
|
|
41
|
+
|
|
42
|
+
## Risks
|
|
43
|
+
<potential issues and mitigations>
|
|
44
|
+
|
|
45
|
+
## Open Questions
|
|
46
|
+
<anything that needs clarification before proceeding>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Agents
|
|
50
|
+
|
|
51
|
+
| Agent | Role |
|
|
52
|
+
|-------|------|
|
|
53
|
+
| **Explorer** | Rapid file discovery, dependency tracing, structural context |
|
|
54
|
+
| **Researcher-Alpha** | Deep analysis of complex logic, prior decisions, architectural implications |
|
|
55
|
+
|
|
56
|
+
Use Explorer first for breadth, then Researcher-Alpha for depth on complex areas.
|
|
57
|
+
|
|
58
|
+
## Foundation Integration
|
|
59
|
+
|
|
60
|
+
Load these skills BEFORE executing this step:
|
|
61
|
+
|
|
62
|
+
| Skill | Purpose | When |
|
|
63
|
+
|-------|---------|------|
|
|
64
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
65
|
+
| `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
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
67
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
68
|
+
|
|
69
|
+
### Presentation Rules
|
|
70
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
71
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
72
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
73
|
+
- Artifact content and summaries → present with structured layout
|
|
74
|
+
- Only use plain text for brief confirmations and simple questions
|
|
75
|
+
|
|
76
|
+
## Completion Criteria
|
|
77
|
+
|
|
78
|
+
- [ ] All affected files identified
|
|
79
|
+
- [ ] Implementation approach is concrete (not vague)
|
|
80
|
+
- [ ] Risks documented with mitigations
|
|
81
|
+
- [ ] No unresolved open questions that block implementation
|
|
82
|
+
- [ ] `.spec/<slug>/assessment.md` written
|