@vpxa/aikit 0.1.1 → 0.1.3
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 +6 -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/flows/dist/git.js +1 -1
- package/packages/flows/dist/registry.d.ts +3 -3
- package/packages/flows/dist/registry.js +1 -1
- package/packages/flows/dist/symlinks.js +1 -1
- package/packages/indexer/dist/filesystem-crawler.js +1 -1
- package/packages/indexer/dist/hash-cache.js +1 -1
- package/packages/indexer/dist/incremental-indexer.js +1 -1
- package/packages/kb-client/dist/direct-client.d.ts +37 -0
- package/packages/kb-client/dist/direct-client.js +1 -0
- package/packages/kb-client/dist/index.d.ts +5 -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 +35 -0
- package/packages/kb-client/dist/parsers.js +2 -0
- package/packages/kb-client/dist/types.d.ts +62 -0
- package/packages/kb-client/dist/types.js +1 -0
- package/packages/present/dist/index.html +28 -28
- 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 +33 -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 +4 -2
- 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/config.tool.d.ts +8 -0
- package/packages/server/dist/tools/config.tool.js +12 -0
- package/packages/server/dist/tools/evolution.tools.js +1 -1
- package/packages/server/dist/tools/flow.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 +9 -9
- package/packages/server/dist/tools/present/tool.js +4 -4
- package/packages/server/dist/tools/reindex.tool.js +1 -1
- package/packages/server/dist/tools/search.tool.js +4 -4
- package/packages/server/dist/tools/status.tool.d.ts +1 -1
- package/packages/server/dist/tools/status.tool.js +3 -3
- package/packages/store/dist/sqlite-graph-store.d.ts +3 -0
- package/packages/store/dist/sqlite-graph-store.js +3 -3
- package/packages/tools/dist/checkpoint.js +1 -1
- package/packages/tools/dist/config-extractor.js +1 -1
- package/packages/tools/dist/evidence-map.js +1 -1
- 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/restore-points.js +1 -1
- package/packages/tools/dist/schema-validate.js +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-DpjN3iS-.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-Db-SeZhR.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 +435 -435
- package/scaffold/general/skills/present/SKILL.md +424 -424
- package/packages/dashboard/dist/assets/index-BjA4YODs.js.map +0 -1
- package/packages/tui/dist/LogPanel-Bo8a8QXB.js +0 -3
|
@@ -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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Quick research question — find answer using
|
|
2
|
+
description: "Quick research question — find answer using AI Kit + web search"
|
|
3
3
|
agent: "Researcher-Alpha"
|
|
4
4
|
tools:
|
|
5
5
|
- aikit/search
|
|
@@ -13,9 +13,9 @@ tools:
|
|
|
13
13
|
|
|
14
14
|
## Quick Research
|
|
15
15
|
|
|
16
|
-
1. **
|
|
17
|
-
2. **Web Search** — If
|
|
16
|
+
1. **AI Kit Recall** — Search knowledge base for existing answers
|
|
17
|
+
2. **Web Search** — If AI Kit has no relevant results, search the web
|
|
18
18
|
3. **Synthesize** — Combine findings into a clear, concise answer
|
|
19
19
|
4. **Remember** — If the answer is broadly useful, persist it to KB
|
|
20
20
|
|
|
21
|
-
**Always cite sources** —
|
|
21
|
+
**Always cite sources** — AI Kit entries, file paths, or URLs.
|
|
@@ -16,7 +16,7 @@ tools:
|
|
|
16
16
|
## Debug Workflow
|
|
17
17
|
|
|
18
18
|
1. **Parse Error** — Use `parse_output` on the error message/stack trace
|
|
19
|
-
2. **
|
|
19
|
+
2. **AI Kit Recall** — Search for known issues matching this pattern
|
|
20
20
|
3. **Reproduce** — Run the failing command/test to confirm
|
|
21
21
|
4. **Trace** — Use `symbol` and `trace` to follow the call chain
|
|
22
22
|
5. **Diagnose** — Form hypothesis, gather evidence
|
|
@@ -15,7 +15,7 @@ tools:
|
|
|
15
15
|
|
|
16
16
|
## Planning Workflow
|
|
17
17
|
|
|
18
|
-
1. **
|
|
18
|
+
1. **AI Kit Recall** — Search for past plans, architecture decisions
|
|
19
19
|
2. **FORGE Ground** — Classify tier, scope map, seed unknowns
|
|
20
20
|
3. **Research** — Explore codebase, understand subsystems
|
|
21
21
|
4. **Draft Plan** — 3-10 phases with agent assignments, TDD steps
|
|
@@ -188,13 +188,13 @@ Lane actions: `create` (copy files to lane), `list`, `status` (modified/added/de
|
|
|
188
188
|
|
|
189
189
|
## Search Strategy
|
|
190
190
|
|
|
191
|
-
## CRITICAL: Use
|
|
191
|
+
## CRITICAL: Use AI Kit Tools Instead of Native IDE Tools
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
AI Kit tools provide **10x richer output** than native IDE tools — with AST-analyzed call graphs, scope context, import classification, and cognitive complexity. **Always prefer AI Kit tools.**
|
|
194
194
|
|
|
195
195
|
### Tool Replacement Table
|
|
196
196
|
|
|
197
|
-
| Instead of... | Use
|
|
197
|
+
| Instead of... | Use AI Kit Tool | Why |
|
|
198
198
|
|---------------|-------------|-----|
|
|
199
199
|
| `read_file` (full file) | `file_summary` | Exports, imports, call edges — **10x fewer tokens** |
|
|
200
200
|
| `read_file` (specific section) | `compact({ path, query })` | Server-side read + extract — **5-20x reduction** |
|
|
@@ -220,7 +220,7 @@ Need to understand a file?
|
|
|
220
220
|
└─ Full file needed? → ONLY as last resort, and compact it after reading
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
### What
|
|
223
|
+
### What AI Kit Tools Return (AST-Enhanced)
|
|
224
224
|
|
|
225
225
|
These tools use Tree-sitter WASM to analyze source code at the AST level, providing structured data that raw file reads cannot:
|
|
226
226
|
|
|
@@ -322,7 +322,7 @@ git_context({ diff: true })
|
|
|
322
322
|
## CLI Quick Reference
|
|
323
323
|
|
|
324
324
|
```bash
|
|
325
|
-
aikit init # Scaffold
|
|
325
|
+
aikit init # Scaffold AI Kit in current directory
|
|
326
326
|
aikit init --force # Overwrite all scaffold/skill files
|
|
327
327
|
aikit init --guide # JSON report of stale files for LLM-driven updates
|
|
328
328
|
aikit serve # Start MCP server (stdio or HTTP)
|