@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,105 +1,105 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implement
|
|
3
|
-
description: Write code following the assessment plan, using TDD practices where applicable.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Implementation
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Execute the implementation plan from the assessment, writing production code and tests.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/assessment.md` — the approach, affected files, and risks
|
|
15
|
-
|
|
16
|
-
## Process
|
|
17
|
-
|
|
18
|
-
1. **Read assessment** — Load `.spec/<slug>/assessment.md` and internalize the approach
|
|
19
|
-
2. **Set up tests first** — Where applicable, write failing tests that define success
|
|
20
|
-
3. **Implement changes** — Follow the approach steps sequentially
|
|
21
|
-
- One logical change per commit-worthy chunk
|
|
22
|
-
- Stay within the assessed file scope — do not expand without re-assessment
|
|
23
|
-
4. **Run validation** — `check({})` for type/lint errors, `test_run({})` for test results
|
|
24
|
-
5. **Fix issues** — Iterate until `check` and `test_run` pass (max 3 rounds)
|
|
25
|
-
6. **Document progress** — Write progress artifact with what was done and any deviations
|
|
26
|
-
|
|
27
|
-
## Outputs
|
|
28
|
-
|
|
29
|
-
Produce `.spec/<slug>/progress.md` with:
|
|
30
|
-
|
|
31
|
-
```markdown
|
|
32
|
-
# Implementation Progress: <task title>
|
|
33
|
-
|
|
34
|
-
## Changes Made
|
|
35
|
-
<list of files changed with brief description>
|
|
36
|
-
|
|
37
|
-
## Tests
|
|
38
|
-
<tests added or modified>
|
|
39
|
-
|
|
40
|
-
## Deviations from Assessment
|
|
41
|
-
<any changes to the original plan and why>
|
|
42
|
-
|
|
43
|
-
## Validation
|
|
44
|
-
- check: PASS/FAIL
|
|
45
|
-
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
46
|
-
|
|
47
|
-
## Notes
|
|
48
|
-
<anything the reviewer should know>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Agents
|
|
52
|
-
|
|
53
|
-
| Agent | Role |
|
|
54
|
-
|-------|------|
|
|
55
|
-
| **Implementer** | Primary code writer — follows TDD, writes production code and tests |
|
|
56
|
-
| **Frontend** | UI/UX specialist — use when changes involve React components, styling, or responsive design |
|
|
57
|
-
|
|
58
|
-
Dispatch Implementer for backend/logic changes, Frontend for UI changes. Both can run in parallel if working on different files.
|
|
59
|
-
|
|
60
|
-
## Foundation Integration
|
|
61
|
-
|
|
62
|
-
Load these skills BEFORE executing this step:
|
|
63
|
-
|
|
64
|
-
| Skill | Purpose | When |
|
|
65
|
-
|-------|---------|------|
|
|
66
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
67
|
-
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
68
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
69
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
70
|
-
|
|
71
|
-
### Presentation Rules
|
|
72
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
73
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
74
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
75
|
-
- Artifact content and summaries → present with structured layout
|
|
76
|
-
- Only use plain text for brief confirmations and simple questions
|
|
77
|
-
|
|
78
|
-
### Orchestrator Dispatch Protocol
|
|
79
|
-
|
|
80
|
-
Follow the `multi-agents-development` skill patterns for dispatch:
|
|
81
|
-
|
|
82
|
-
1. **Independence Check** before parallelizing:
|
|
83
|
-
- Same files? → sequential
|
|
84
|
-
- Shared mutable state? → sequential
|
|
85
|
-
- Execution-order dependent? → sequential
|
|
86
|
-
- Need shared new types? → define contract first, then parallel
|
|
87
|
-
- All clear? → **parallel dispatch**
|
|
88
|
-
|
|
89
|
-
2. **Subagent Context Template** (each dispatch includes):
|
|
90
|
-
- **Scope**: exact files + boundary (do NOT touch)
|
|
91
|
-
- **Goal**: acceptance criteria, testable
|
|
92
|
-
- **Arch Context**: actual code snippets via `compact()`/`digest()`
|
|
93
|
-
- **Constraints**: patterns, conventions, anti-patterns
|
|
94
|
-
- **Self-Review**: checklist before declaring DONE
|
|
95
|
-
|
|
96
|
-
3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
97
|
-
4. **Max 2 retries** per task — then escalate to user
|
|
98
|
-
|
|
99
|
-
## Completion Criteria
|
|
100
|
-
|
|
101
|
-
- [ ] All assessment steps implemented
|
|
102
|
-
- [ ] `check({})` passes (no type/lint errors)
|
|
103
|
-
- [ ] `test_run({})` passes (no test failures)
|
|
104
|
-
- [ ] No files modified outside assessed scope
|
|
105
|
-
- [ ] `.spec/<slug>/progress.md` written
|
|
1
|
+
---
|
|
2
|
+
name: implement
|
|
3
|
+
description: Write code following the assessment plan, using TDD practices where applicable.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Implementation
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Execute the implementation plan from the assessment, writing production code and tests.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/assessment.md` — the approach, affected files, and risks
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. **Read assessment** — Load `.spec/<slug>/assessment.md` and internalize the approach
|
|
19
|
+
2. **Set up tests first** — Where applicable, write failing tests that define success
|
|
20
|
+
3. **Implement changes** — Follow the approach steps sequentially
|
|
21
|
+
- One logical change per commit-worthy chunk
|
|
22
|
+
- Stay within the assessed file scope — do not expand without re-assessment
|
|
23
|
+
4. **Run validation** — `check({})` for type/lint errors, `test_run({})` for test results
|
|
24
|
+
5. **Fix issues** — Iterate until `check` and `test_run` pass (max 3 rounds)
|
|
25
|
+
6. **Document progress** — Write progress artifact with what was done and any deviations
|
|
26
|
+
|
|
27
|
+
## Outputs
|
|
28
|
+
|
|
29
|
+
Produce `.spec/<slug>/progress.md` with:
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
# Implementation Progress: <task title>
|
|
33
|
+
|
|
34
|
+
## Changes Made
|
|
35
|
+
<list of files changed with brief description>
|
|
36
|
+
|
|
37
|
+
## Tests
|
|
38
|
+
<tests added or modified>
|
|
39
|
+
|
|
40
|
+
## Deviations from Assessment
|
|
41
|
+
<any changes to the original plan and why>
|
|
42
|
+
|
|
43
|
+
## Validation
|
|
44
|
+
- check: PASS/FAIL
|
|
45
|
+
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
46
|
+
|
|
47
|
+
## Notes
|
|
48
|
+
<anything the reviewer should know>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Agents
|
|
52
|
+
|
|
53
|
+
| Agent | Role |
|
|
54
|
+
|-------|------|
|
|
55
|
+
| **Implementer** | Primary code writer — follows TDD, writes production code and tests |
|
|
56
|
+
| **Frontend** | UI/UX specialist — use when changes involve React components, styling, or responsive design |
|
|
57
|
+
|
|
58
|
+
Dispatch Implementer for backend/logic changes, Frontend for UI changes. Both can run in parallel if working on different files.
|
|
59
|
+
|
|
60
|
+
## Foundation Integration
|
|
61
|
+
|
|
62
|
+
Load these skills BEFORE executing this step:
|
|
63
|
+
|
|
64
|
+
| Skill | Purpose | When |
|
|
65
|
+
|-------|---------|------|
|
|
66
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
67
|
+
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
68
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
69
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
70
|
+
|
|
71
|
+
### Presentation Rules
|
|
72
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
73
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
74
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
75
|
+
- Artifact content and summaries → present with structured layout
|
|
76
|
+
- Only use plain text for brief confirmations and simple questions
|
|
77
|
+
|
|
78
|
+
### Orchestrator Dispatch Protocol
|
|
79
|
+
|
|
80
|
+
Follow the `multi-agents-development` skill patterns for dispatch:
|
|
81
|
+
|
|
82
|
+
1. **Independence Check** before parallelizing:
|
|
83
|
+
- Same files? → sequential
|
|
84
|
+
- Shared mutable state? → sequential
|
|
85
|
+
- Execution-order dependent? → sequential
|
|
86
|
+
- Need shared new types? → define contract first, then parallel
|
|
87
|
+
- All clear? → **parallel dispatch**
|
|
88
|
+
|
|
89
|
+
2. **Subagent Context Template** (each dispatch includes):
|
|
90
|
+
- **Scope**: exact files + boundary (do NOT touch)
|
|
91
|
+
- **Goal**: acceptance criteria, testable
|
|
92
|
+
- **Arch Context**: actual code snippets via `compact()`/`digest()`
|
|
93
|
+
- **Constraints**: patterns, conventions, anti-patterns
|
|
94
|
+
- **Self-Review**: checklist before declaring DONE
|
|
95
|
+
|
|
96
|
+
3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
97
|
+
4. **Max 2 retries** per task — then escalate to user
|
|
98
|
+
|
|
99
|
+
## Completion Criteria
|
|
100
|
+
|
|
101
|
+
- [ ] All assessment steps implemented
|
|
102
|
+
- [ ] `check({})` passes (no type/lint errors)
|
|
103
|
+
- [ ] `test_run({})` passes (no test failures)
|
|
104
|
+
- [ ] No files modified outside assessed scope
|
|
105
|
+
- [ ] `.spec/<slug>/progress.md` written
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verify
|
|
3
|
-
description: Review code changes, run tests, validate correctness and quality.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Verification
|
|
7
|
-
|
|
8
|
-
## Purpose
|
|
9
|
-
|
|
10
|
-
Validate that the implementation meets the original requirements, passes all quality gates, and introduces no regressions.
|
|
11
|
-
|
|
12
|
-
## Inputs
|
|
13
|
-
|
|
14
|
-
- `.spec/<slug>/assessment.md` — original requirements and approach
|
|
15
|
-
- `.spec/<slug>/progress.md` — what was implemented and any deviations
|
|
16
|
-
|
|
17
|
-
## Process
|
|
18
|
-
|
|
19
|
-
1. **Load context** — Read assessment and progress artifacts
|
|
20
|
-
2. **Code review** — Review all changed files for:
|
|
21
|
-
- Correctness against requirements
|
|
22
|
-
- Code quality and adherence to project conventions
|
|
23
|
-
- Error handling and edge cases
|
|
24
|
-
- No unnecessary changes (scope creep)
|
|
25
|
-
3. **Run quality gates** — `check({})` + `test_run({})` must pass
|
|
26
|
-
4. **Blast radius** — `blast_radius({ changed_files: [...] })` to assess impact
|
|
27
|
-
5. **Security scan** — Check for OWASP Top 10 issues in changed code
|
|
28
|
-
6. **Write report** — Document findings with PASS/FAIL verdict
|
|
29
|
-
|
|
30
|
-
## Outputs
|
|
31
|
-
|
|
32
|
-
Produce `.spec/<slug>/verify-report.md` with:
|
|
33
|
-
|
|
34
|
-
```markdown
|
|
35
|
-
# Verification Report: <task title>
|
|
36
|
-
|
|
37
|
-
## Verdict: PASS | FAIL
|
|
38
|
-
|
|
39
|
-
## Quality Gates
|
|
40
|
-
- check: PASS/FAIL
|
|
41
|
-
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
42
|
-
- blast_radius: <summary of impact>
|
|
43
|
-
|
|
44
|
-
## Code Review Findings
|
|
45
|
-
<issues found, if any, with severity>
|
|
46
|
-
|
|
47
|
-
## Security
|
|
48
|
-
<any security concerns>
|
|
49
|
-
|
|
50
|
-
## Recommendation
|
|
51
|
-
<APPROVE for commit / REQUEST CHANGES with specific items>
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Agents
|
|
55
|
-
|
|
56
|
-
| Agent | Role |
|
|
57
|
-
|-------|------|
|
|
58
|
-
| **Code-Reviewer-Alpha** | Primary code reviewer — correctness, quality, conventions |
|
|
59
|
-
| **Security** | Security specialist — vulnerability analysis, OWASP compliance |
|
|
60
|
-
|
|
61
|
-
Run both in parallel — they review different aspects of the same changes.
|
|
62
|
-
|
|
63
|
-
## Foundation Integration
|
|
64
|
-
|
|
65
|
-
Load these skills BEFORE executing this step:
|
|
66
|
-
|
|
67
|
-
| Skill | Purpose | When |
|
|
68
|
-
|-------|---------|------|
|
|
69
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
70
|
-
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
71
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
72
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
73
|
-
|
|
74
|
-
### Presentation Rules
|
|
75
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
76
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
77
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
78
|
-
- Artifact content and summaries → present with structured layout
|
|
79
|
-
- Only use plain text for brief confirmations and simple questions
|
|
80
|
-
|
|
81
|
-
### FORGE Quality Gate
|
|
82
|
-
|
|
83
|
-
After all reviews complete:
|
|
84
|
-
1. `evidence_map({ action: "gate", task_id: "<slug>" })` → returns YIELD/HOLD/HARD_BLOCK
|
|
85
|
-
2. YIELD → approved, proceed to commit
|
|
86
|
-
3. HOLD → minor issues, fix then re-gate (max 3 rounds)
|
|
87
|
-
4. HARD_BLOCK → critical issues, escalate to user
|
|
88
|
-
|
|
89
|
-
## Completion Criteria
|
|
90
|
-
|
|
91
|
-
- [ ] `check({})` passes
|
|
92
|
-
- [ ] `test_run({})` passes
|
|
93
|
-
- [ ] Code review complete with no blocking issues
|
|
94
|
-
- [ ] Security review complete
|
|
95
|
-
- [ ] Blast radius assessed
|
|
96
|
-
- [ ] `.spec/<slug>/verify-report.md` written with clear PASS/FAIL verdict
|
|
1
|
+
---
|
|
2
|
+
name: verify
|
|
3
|
+
description: Review code changes, run tests, validate correctness and quality.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verification
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Validate that the implementation meets the original requirements, passes all quality gates, and introduces no regressions.
|
|
11
|
+
|
|
12
|
+
## Inputs
|
|
13
|
+
|
|
14
|
+
- `.spec/<slug>/assessment.md` — original requirements and approach
|
|
15
|
+
- `.spec/<slug>/progress.md` — what was implemented and any deviations
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. **Load context** — Read assessment and progress artifacts
|
|
20
|
+
2. **Code review** — Review all changed files for:
|
|
21
|
+
- Correctness against requirements
|
|
22
|
+
- Code quality and adherence to project conventions
|
|
23
|
+
- Error handling and edge cases
|
|
24
|
+
- No unnecessary changes (scope creep)
|
|
25
|
+
3. **Run quality gates** — `check({})` + `test_run({})` must pass
|
|
26
|
+
4. **Blast radius** — `blast_radius({ changed_files: [...] })` to assess impact
|
|
27
|
+
5. **Security scan** — Check for OWASP Top 10 issues in changed code
|
|
28
|
+
6. **Write report** — Document findings with PASS/FAIL verdict
|
|
29
|
+
|
|
30
|
+
## Outputs
|
|
31
|
+
|
|
32
|
+
Produce `.spec/<slug>/verify-report.md` with:
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
# Verification Report: <task title>
|
|
36
|
+
|
|
37
|
+
## Verdict: PASS | FAIL
|
|
38
|
+
|
|
39
|
+
## Quality Gates
|
|
40
|
+
- check: PASS/FAIL
|
|
41
|
+
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
42
|
+
- blast_radius: <summary of impact>
|
|
43
|
+
|
|
44
|
+
## Code Review Findings
|
|
45
|
+
<issues found, if any, with severity>
|
|
46
|
+
|
|
47
|
+
## Security
|
|
48
|
+
<any security concerns>
|
|
49
|
+
|
|
50
|
+
## Recommendation
|
|
51
|
+
<APPROVE for commit / REQUEST CHANGES with specific items>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Agents
|
|
55
|
+
|
|
56
|
+
| Agent | Role |
|
|
57
|
+
|-------|------|
|
|
58
|
+
| **Code-Reviewer-Alpha** | Primary code reviewer — correctness, quality, conventions |
|
|
59
|
+
| **Security** | Security specialist — vulnerability analysis, OWASP compliance |
|
|
60
|
+
|
|
61
|
+
Run both in parallel — they review different aspects of the same changes.
|
|
62
|
+
|
|
63
|
+
## Foundation Integration
|
|
64
|
+
|
|
65
|
+
Load these skills BEFORE executing this step:
|
|
66
|
+
|
|
67
|
+
| Skill | Purpose | When |
|
|
68
|
+
|-------|---------|------|
|
|
69
|
+
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
70
|
+
| `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
|
|
71
|
+
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
72
|
+
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
73
|
+
|
|
74
|
+
### Presentation Rules
|
|
75
|
+
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
76
|
+
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
77
|
+
- Tables, charts, progress tracking, code review findings → always present
|
|
78
|
+
- Artifact content and summaries → present with structured layout
|
|
79
|
+
- Only use plain text for brief confirmations and simple questions
|
|
80
|
+
|
|
81
|
+
### FORGE Quality Gate
|
|
82
|
+
|
|
83
|
+
After all reviews complete:
|
|
84
|
+
1. `evidence_map({ action: "gate", task_id: "<slug>" })` → returns YIELD/HOLD/HARD_BLOCK
|
|
85
|
+
2. YIELD → approved, proceed to commit
|
|
86
|
+
3. HOLD → minor issues, fix then re-gate (max 3 rounds)
|
|
87
|
+
4. HARD_BLOCK → critical issues, escalate to user
|
|
88
|
+
|
|
89
|
+
## Completion Criteria
|
|
90
|
+
|
|
91
|
+
- [ ] `check({})` passes
|
|
92
|
+
- [ ] `test_run({})` passes
|
|
93
|
+
- [ ] Code review complete with no blocking issues
|
|
94
|
+
- [ ] Security review complete
|
|
95
|
+
- [ ] Blast radius assessed
|
|
96
|
+
- [ ] `.spec/<slug>/verify-report.md` written with clear PASS/FAIL verdict
|
|
@@ -9,13 +9,13 @@ model: Claude Opus 4.6 (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Debugger**, expert debugger that diagnoses issues, traces errors, and provides solutions
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
16
16
|
## Debugging Protocol
|
|
17
17
|
|
|
18
|
-
1. **
|
|
18
|
+
1. **AI Kit Recall** — Search for known issues matching this error pattern
|
|
19
19
|
2. **Reproduce** — Confirm the error, use `parse_output` on stack traces and build errors for structured analysis
|
|
20
20
|
3. **Verify targets exist** — Before tracing, confirm the files and functions mentioned in the error actually exist. Use `find` or `symbol` to verify paths and signatures. **Never trace into a file you haven't confirmed exists**
|
|
21
21
|
4. **Trace** — `symbol`, `trace`, follow call chains backwards
|
|
@@ -9,7 +9,7 @@ model: GPT-5.4 (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Documenter**, documentation specialist that creates and maintains comprehensive project documentation
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ You are the **Documenter**, documentation specialist that creates and maintains
|
|
|
24
24
|
|
|
25
25
|
## Documentation Protocol
|
|
26
26
|
|
|
27
|
-
1. **
|
|
27
|
+
1. **AI Kit Recall** — `search("documentation <area>")` + `list()` for existing docs, conventions, architecture decisions
|
|
28
28
|
2. **Analyze** — `analyze_structure`, `analyze_entry_points`, `file_summary`
|
|
29
29
|
3. **Draft** — Write documentation following project conventions
|
|
30
30
|
4. **Cross-reference** — Link to related docs, ensure consistency
|
|
@@ -9,7 +9,7 @@ model: Gemini 3 Flash (Preview) (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Explorer**, rapid codebase exploration to find files, usages, dependencies, and structural context
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
## MANDATORY FIRST ACTION
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ You are the **Explorer**, rapid codebase exploration to find files, usages, depe
|
|
|
25
25
|
|
|
26
26
|
## Exploration Protocol
|
|
27
27
|
|
|
28
|
-
1. **
|
|
28
|
+
1. **AI Kit Recall** — `search` for existing analysis on this area
|
|
29
29
|
2. **Discover** — Use `find`, `symbol`, `scope_map` to locate relevant files
|
|
30
30
|
3. **Analyze** — Use `analyze_structure`, `analyze_dependencies`, `file_summary`
|
|
31
31
|
4. **Compress** — Use `compact` for targeted file sections, `digest` when synthesizing 3+ sources, `stratum_card` for files you'll reference repeatedly
|
|
@@ -9,7 +9,7 @@ model: Gemini 3.1 Pro (Preview) (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Frontend**, ui/ux specialist for react, styling, responsive design, and frontend implementation
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ model: GPT-5.4 (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Implementer**, persistent implementation agent that writes code following tdd practices until all tasks are complete
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
@@ -26,7 +26,7 @@ You are the **Implementer**, persistent implementation agent that writes code fo
|
|
|
26
26
|
|
|
27
27
|
- **Test-first always** — No implementation without a failing test
|
|
28
28
|
- **Minimal code** — Don't build what isn't asked for
|
|
29
|
-
- **Follow existing patterns** — Search
|
|
29
|
+
- **Follow existing patterns** — Search AI Kit for conventions before creating new ones
|
|
30
30
|
- **Never modify tests to make them pass** — Fix the implementation instead
|
|
31
31
|
- **Run `check` after every change** — Catch errors early
|
|
32
32
|
- **Loop-break** — If the same test fails 3 times with the same error after your fixes, STOP. Re-read the error from scratch, check your assumptions with `trace` or `symbol`, and try a fundamentally different approach. Do not attempt a 4th fix in the same direction
|
|
@@ -134,7 +134,7 @@ Batch 2 (after batch 1):
|
|
|
134
134
|
2. **Break tasks small** — 1-3 files per dispatch, clear scope, clear acceptance criteria
|
|
135
135
|
3. **Maximize parallelism** — independent tasks MUST run as parallel `runSubagent` calls in the SAME function block. Sequential dispatch of parallelizable tasks is a protocol violation.
|
|
136
136
|
4. **Fresh context per subagent** — paste relevant code, don't reference conversation history
|
|
137
|
-
5. **Search
|
|
137
|
+
5. **Search AI Kit before planning** — check past decisions with `search()`
|
|
138
138
|
6. **Route correctly** — brainstorming for design, decision protocol for tech choices
|
|
139
139
|
7. **Never proceed without user approval** at 🛑 stops
|
|
140
140
|
8. **Max 2 retries** then escalate to user
|
|
@@ -8,7 +8,7 @@ model: Claude Opus 4.6 (copilot)
|
|
|
8
8
|
|
|
9
9
|
You are the **Planner**, autonomous planner that researches codebases and writes comprehensive tdd implementation plans
|
|
10
10
|
|
|
11
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
11
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
12
12
|
|
|
13
13
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
14
14
|
|
|
@@ -25,7 +25,7 @@ You are the **Planner**, autonomous planner that researches codebases and writes
|
|
|
25
25
|
|
|
26
26
|
## Planning Workflow
|
|
27
27
|
|
|
28
|
-
1. **
|
|
28
|
+
1. **AI Kit Recall** — Search for past plans, architecture decisions, known patterns. Check `list()` for stored knowledge.
|
|
29
29
|
2. **FORGE Classify** — `forge_classify({ task, files, root_path: "." })` to determine complexity tier
|
|
30
30
|
3. **FORGE Ground** — `forge_ground` to scope map, seed unknowns, load constraints
|
|
31
31
|
4. **Research** — Delegate to Explorer and Researcher agents to gather context
|
|
@@ -9,13 +9,13 @@ model: GPT-5.4 (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Refactor**, code refactoring specialist that improves structure, readability, and maintainability
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
16
16
|
## Refactoring Protocol
|
|
17
17
|
|
|
18
|
-
1. **
|
|
18
|
+
1. **AI Kit Recall** — Search for established patterns and conventions
|
|
19
19
|
2. **Analyze** — `analyze_structure`, `analyze_patterns`, `dead_symbols`
|
|
20
20
|
3. **Ensure test coverage** — Run existing tests, add coverage for untested paths
|
|
21
21
|
4. **Refactor in small steps** — Each step must keep tests green
|
|
@@ -9,7 +9,7 @@ model: Claude Opus 4.6 (copilot)
|
|
|
9
9
|
|
|
10
10
|
You are the **Security**, security specialist that analyzes code for vulnerabilities and compliance
|
|
11
11
|
|
|
12
|
-
**Read `AGENTS.md`** in the workspace root for project conventions and
|
|
12
|
+
**Read `AGENTS.md`** in the workspace root for project conventions and AI Kit protocol.
|
|
13
13
|
|
|
14
14
|
**Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ You are the **Security**, security specialist that analyzes code for vulnerabili
|
|
|
24
24
|
|
|
25
25
|
## Security Review Protocol
|
|
26
26
|
|
|
27
|
-
1. **
|
|
27
|
+
1. **AI Kit Recall** — `search("security findings <area>")` + `list()` for past security decisions and known issues
|
|
28
28
|
2. **Audit** — Run `audit` for a comprehensive project health check, then `find` for specific vulnerability patterns
|
|
29
29
|
3. **OWASP Top 10 Scan** — Check each category systematically
|
|
30
30
|
4. **Dependency Audit** — Check for known CVEs in dependencies
|
|
@@ -14,7 +14,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
|
|
|
14
14
|
|
|
15
15
|
## Review Workflow
|
|
16
16
|
|
|
17
|
-
1. **
|
|
17
|
+
1. **AI Kit Recall** — `search("architecture decisions boundaries")` + `list()` for past ADRs, patterns
|
|
18
18
|
2. **Analyze** — `analyze_structure`, `analyze_dependencies`, `blast_radius`
|
|
19
19
|
3. **Evaluate** — Check all dimensions below
|
|
20
20
|
4. **Report** — Structured findings with verdict
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
## Invocation Mode Detection
|
|
7
7
|
|
|
8
8
|
You may be invoked in two modes:
|
|
9
|
-
1. **Direct** — you have full
|
|
9
|
+
1. **Direct** — you have full AI Kit tool access. Follow the **Information Lookup Order** below.
|
|
10
10
|
2. **Sub-agent** (via Orchestrator) — you may have limited MCP tool access.
|
|
11
|
-
The Orchestrator provides context under "## Prior
|
|
12
|
-
If present, skip
|
|
11
|
+
The Orchestrator provides context under "## Prior AI Kit Context" in your prompt.
|
|
12
|
+
If present, skip AI Kit Recall and use the provided context instead.
|
|
13
13
|
|
|
14
|
-
**Detection:** If your prompt contains "## Prior
|
|
14
|
+
**Detection:** If your prompt contains "## Prior AI Kit Context", you are in sub-agent mode.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -74,7 +74,7 @@ list() // see all stored knowledge entries
|
|
|
74
74
|
|
|
75
75
|
### Step 4: Tool Discovery
|
|
76
76
|
|
|
77
|
-
If unsure which
|
|
77
|
+
If unsure which AI Kit tool to use → run `guide({ topic: "what you need" })` for recommendations.
|
|
78
78
|
|
|
79
79
|
## FORGE Protocol (Quality Gate)
|
|
80
80
|
|
|
@@ -168,7 +168,7 @@ remember({
|
|
|
168
168
|
|
|
169
169
|
**If you complete a task without remembering anything, you likely missed something.** Review what you learned.
|
|
170
170
|
|
|
171
|
-
For outdated
|
|
171
|
+
For outdated AI Kit entries → `update(path, content, reason)`
|
|
172
172
|
|
|
173
173
|
---
|
|
174
174
|
|
|
@@ -14,7 +14,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
|
|
|
14
14
|
|
|
15
15
|
## Review Workflow
|
|
16
16
|
|
|
17
|
-
1. **
|
|
17
|
+
1. **AI Kit Recall** — `search("conventions relevant-area")` + `list()` for past review findings, patterns
|
|
18
18
|
2. **Blast Radius** — `blast_radius` on changed files to understand impact
|
|
19
19
|
3. **FORGE Classify** — `forge_classify` to determine review depth
|
|
20
20
|
4. **Review** — Evaluate against all dimensions below
|
|
@@ -16,7 +16,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
|
|
|
16
16
|
|
|
17
17
|
## Research Methodology
|
|
18
18
|
|
|
19
|
-
### Phase 1:
|
|
19
|
+
### Phase 1: AI Kit Recall (BLOCKING)
|
|
20
20
|
```
|
|
21
21
|
search("task keywords")
|
|
22
22
|
scope_map("what you need to investigate")
|
|
@@ -87,8 +87,8 @@ When invoked for a decision analysis, you receive a specific question. You MUST:
|
|
|
87
87
|
|
|
88
88
|
## Invocation Mode Detection
|
|
89
89
|
|
|
90
|
-
- **Direct** (has
|
|
91
|
-
- **Sub-agent** (prompt has "## Prior
|
|
90
|
+
- **Direct** (has AI Kit tools) → Follow the **Information Lookup Order** from code-agent-base
|
|
91
|
+
- **Sub-agent** (prompt has "## Prior AI Kit Context") → Skip AI Kit Recall, use provided context
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|