@vpxa/aikit 0.1.73 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -1
- package/packages/cli/dist/index.js +2 -2
- package/packages/cli/dist/{init-D_OGLUN1.js → init-CuRXmyD9.js} +4 -4
- package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
- package/packages/cli/dist/{templates-DJ7EC5vw.js → templates-ArdAVWoY.js} +13 -3
- package/packages/cli/dist/user-vbJwa7x2.js +5 -0
- package/packages/dashboard/dist/assets/index-C6D-PCp0.js.map +1 -1
- package/packages/flows/dist/index.d.ts +29 -0
- package/packages/flows/dist/index.js +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/{server-B9Mx1aK-.js → server-CVhVH5cT.js} +127 -127
- package/packages/tools/dist/index.d.ts +19 -1
- package/packages/tools/dist/index.js +39 -39
- package/scaffold/dist/adapters/claude-code.mjs +4 -0
- package/scaffold/dist/adapters/copilot.mjs +75 -0
- package/scaffold/dist/adapters/flows.mjs +1 -0
- package/scaffold/dist/adapters/skills.mjs +1 -0
- package/scaffold/dist/compiled/flows-data.mjs +1429 -0
- package/scaffold/dist/compiled/skills-data.mjs +9951 -0
- package/scaffold/dist/definitions/agents.mjs +9 -0
- package/scaffold/{definitions → dist/definitions}/bodies.mjs +6 -229
- package/scaffold/dist/definitions/exclusions.mjs +1 -0
- package/scaffold/dist/definitions/hooks.mjs +1 -0
- package/scaffold/dist/definitions/models.mjs +1 -0
- package/scaffold/dist/definitions/plugins.mjs +1 -0
- package/scaffold/{definitions → dist/definitions}/prompts.mjs +9 -149
- package/scaffold/{definitions → dist/definitions}/protocols.mjs +9 -37
- package/scaffold/dist/definitions/tools.mjs +1 -0
- package/packages/cli/dist/scaffold-CJwkHf-q.js +0 -2
- package/packages/cli/dist/user-BEmVW8Tp.js +0 -5
- package/scaffold/adapters/claude-code.mjs +0 -73
- package/scaffold/adapters/copilot.mjs +0 -292
- package/scaffold/definitions/agents.mjs +0 -266
- package/scaffold/definitions/hooks.mjs +0 -43
- package/scaffold/definitions/models.mjs +0 -84
- package/scaffold/definitions/plugins.mjs +0 -147
- package/scaffold/definitions/tools.mjs +0 -250
- package/scaffold/flows/_epilogue/steps/docs-sync/README.md +0 -120
- package/scaffold/flows/aikit-advanced/README.md +0 -70
- package/scaffold/flows/aikit-advanced/flow.json +0 -69
- package/scaffold/flows/aikit-advanced/steps/design/README.md +0 -178
- package/scaffold/flows/aikit-advanced/steps/execute/README.md +0 -145
- package/scaffold/flows/aikit-advanced/steps/plan/README.md +0 -122
- package/scaffold/flows/aikit-advanced/steps/spec/README.md +0 -121
- package/scaffold/flows/aikit-advanced/steps/task/README.md +0 -119
- package/scaffold/flows/aikit-advanced/steps/verify/README.md +0 -145
- package/scaffold/flows/aikit-basic/README.md +0 -51
- package/scaffold/flows/aikit-basic/flow.json +0 -45
- package/scaffold/flows/aikit-basic/steps/assess/README.md +0 -109
- package/scaffold/flows/aikit-basic/steps/design/README.md +0 -116
- package/scaffold/flows/aikit-basic/steps/implement/README.md +0 -131
- package/scaffold/flows/aikit-basic/steps/verify/README.md +0 -123
- package/scaffold/general/agents/Architect-Reviewer-Alpha.agent.md +0 -132
- package/scaffold/general/agents/Architect-Reviewer-Beta.agent.md +0 -132
- package/scaffold/general/agents/Code-Reviewer-Alpha.agent.md +0 -112
- package/scaffold/general/agents/Code-Reviewer-Beta.agent.md +0 -112
- package/scaffold/general/agents/Debugger.agent.md +0 -412
- package/scaffold/general/agents/Documenter.agent.md +0 -468
- package/scaffold/general/agents/Explorer.agent.md +0 -76
- package/scaffold/general/agents/Frontend.agent.md +0 -440
- package/scaffold/general/agents/Implementer.agent.md +0 -425
- package/scaffold/general/agents/Orchestrator.agent.md +0 -452
- package/scaffold/general/agents/Planner.agent.md +0 -481
- package/scaffold/general/agents/README.md +0 -57
- package/scaffold/general/agents/Refactor.agent.md +0 -435
- package/scaffold/general/agents/Researcher-Alpha.agent.md +0 -151
- package/scaffold/general/agents/Researcher-Beta.agent.md +0 -152
- package/scaffold/general/agents/Researcher-Delta.agent.md +0 -153
- package/scaffold/general/agents/Researcher-Gamma.agent.md +0 -152
- package/scaffold/general/agents/Security.agent.md +0 -433
- package/scaffold/general/agents/_shared/architect-reviewer-base.md +0 -104
- package/scaffold/general/agents/_shared/code-agent-base.md +0 -366
- package/scaffold/general/agents/_shared/code-reviewer-base.md +0 -87
- package/scaffold/general/agents/_shared/decision-protocol.md +0 -27
- package/scaffold/general/agents/_shared/forge-protocol.md +0 -90
- package/scaffold/general/agents/_shared/researcher-base.md +0 -114
- package/scaffold/general/agents/templates/adr-template.md +0 -28
- package/scaffold/general/agents/templates/execution-state.md +0 -26
- package/scaffold/general/prompts/aikit-ask.prompt.md +0 -13
- package/scaffold/general/prompts/aikit-debug.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-design.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-flow-add.prompt.md +0 -84
- package/scaffold/general/prompts/aikit-flow-create.prompt.md +0 -80
- package/scaffold/general/prompts/aikit-flow-manage.prompt.md +0 -24
- package/scaffold/general/prompts/aikit-implement.prompt.md +0 -17
- package/scaffold/general/prompts/aikit-plan.prompt.md +0 -15
- package/scaffold/general/prompts/aikit-review.prompt.md +0 -24
- package/scaffold/general/skills/adr-skill/SKILL.md +0 -335
- package/scaffold/general/skills/adr-skill/assets/templates/adr-madr.md +0 -89
- package/scaffold/general/skills/adr-skill/assets/templates/adr-readme.md +0 -20
- package/scaffold/general/skills/adr-skill/assets/templates/adr-simple.md +0 -46
- package/scaffold/general/skills/adr-skill/references/adr-conventions.md +0 -95
- package/scaffold/general/skills/adr-skill/references/examples.md +0 -193
- package/scaffold/general/skills/adr-skill/references/review-checklist.md +0 -77
- package/scaffold/general/skills/adr-skill/references/template-variants.md +0 -52
- package/scaffold/general/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
- package/scaffold/general/skills/adr-skill/scripts/new_adr.js +0 -391
- package/scaffold/general/skills/adr-skill/scripts/set_adr_status.js +0 -169
- package/scaffold/general/skills/aikit/SKILL.md +0 -754
- package/scaffold/general/skills/brainstorming/SKILL.md +0 -265
- package/scaffold/general/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
- package/scaffold/general/skills/c4-architecture/SKILL.md +0 -389
- package/scaffold/general/skills/c4-architecture/references/advanced-patterns.md +0 -552
- package/scaffold/general/skills/c4-architecture/references/c4-syntax.md +0 -510
- package/scaffold/general/skills/c4-architecture/references/common-mistakes.md +0 -437
- package/scaffold/general/skills/c4-architecture/references/html-design-system.md +0 -337
- package/scaffold/general/skills/c4-architecture/references/html-template.html +0 -627
- package/scaffold/general/skills/docs/SKILL.md +0 -553
- package/scaffold/general/skills/docs/references/diataxis-anti-patterns.md +0 -147
- package/scaffold/general/skills/docs/references/diataxis-compass.md +0 -123
- package/scaffold/general/skills/docs/references/diataxis-quadrants.md +0 -192
- package/scaffold/general/skills/docs/references/diataxis-quality.md +0 -76
- package/scaffold/general/skills/docs/references/diataxis-templates.md +0 -120
- package/scaffold/general/skills/docs/references/flow-artifacts-guide.md +0 -70
- package/scaffold/general/skills/docs/references/project-knowledge-gotchas.md +0 -32
- package/scaffold/general/skills/docs/references/project-knowledge-templates.md +0 -281
- package/scaffold/general/skills/docs/references/project-knowledge-workflow.md +0 -80
- package/scaffold/general/skills/frontend-design/SKILL.md +0 -237
- package/scaffold/general/skills/lesson-learned/SKILL.md +0 -113
- package/scaffold/general/skills/lesson-learned/references/anti-patterns.md +0 -55
- package/scaffold/general/skills/lesson-learned/references/se-principles.md +0 -109
- package/scaffold/general/skills/multi-agents-development/SKILL.md +0 -448
- package/scaffold/general/skills/multi-agents-development/architecture-review-prompt.md +0 -81
- package/scaffold/general/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
- package/scaffold/general/skills/multi-agents-development/implementer-prompt.md +0 -93
- package/scaffold/general/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
- package/scaffold/general/skills/multi-agents-development/spec-review-prompt.md +0 -81
- package/scaffold/general/skills/present/SKILL.md +0 -616
- package/scaffold/general/skills/react/SKILL.md +0 -309
- package/scaffold/general/skills/repo-access/SKILL.md +0 -178
- package/scaffold/general/skills/repo-access/references/error-patterns.md +0 -116
- package/scaffold/general/skills/repo-access/references/platform-matrix.md +0 -142
- package/scaffold/general/skills/requirements-clarity/SKILL.md +0 -333
- package/scaffold/general/skills/session-handoff/SKILL.md +0 -199
- package/scaffold/general/skills/session-handoff/references/handoff-template.md +0 -139
- package/scaffold/general/skills/session-handoff/references/resume-checklist.md +0 -80
- package/scaffold/general/skills/session-handoff/scripts/check_staleness.js +0 -269
- package/scaffold/general/skills/session-handoff/scripts/create_handoff.js +0 -299
- package/scaffold/general/skills/session-handoff/scripts/list_handoffs.js +0 -113
- package/scaffold/general/skills/session-handoff/scripts/validate_handoff.js +0 -241
- package/scaffold/general/skills/typescript/SKILL.md +0 -405
- package/scaffold/generate.mjs +0 -82
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent definitions — role, description, capabilities, and variant configuration.
|
|
3
|
-
*
|
|
4
|
-
* These are IDE-agnostic. Each IDE adapter reads these definitions and
|
|
5
|
-
* produces its own file format (.agent.md, .mdc, CLAUDE.md sections, etc.).
|
|
6
|
-
*
|
|
7
|
-
* `toolRole` maps to a key in tools.mjs IDE_CAPABILITIES.
|
|
8
|
-
* `variants` (if present) means this role has multiple model variants.
|
|
9
|
-
* `sharedBase` points to a shared protocol file the agent should reference.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const AGENTS = {
|
|
13
|
-
// ─── Orchestration ────────────────────────────────────────────────────
|
|
14
|
-
|
|
15
|
-
Orchestrator: {
|
|
16
|
-
title: 'The Master Conductor',
|
|
17
|
-
description:
|
|
18
|
-
'Master conductor that orchestrates the full development lifecycle: Planning → Implementation → Review → Recovery → Commit',
|
|
19
|
-
argumentHint: null,
|
|
20
|
-
toolRole: 'orchestrator',
|
|
21
|
-
sharedBase: null, // Orchestrator has inline instructions
|
|
22
|
-
sharedProtocols: ['decision-protocol', 'forge-protocol'],
|
|
23
|
-
category: 'orchestration',
|
|
24
|
-
skills: [],
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
Planner: {
|
|
28
|
-
title: 'The Strategic Architect',
|
|
29
|
-
description:
|
|
30
|
-
'Autonomous planner that researches codebases and writes comprehensive TDD implementation plans',
|
|
31
|
-
argumentHint: null,
|
|
32
|
-
toolRole: 'planner',
|
|
33
|
-
sharedBase: 'code-agent-base',
|
|
34
|
-
category: 'orchestration',
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
// ─── Implementation ───────────────────────────────────────────────────
|
|
38
|
-
|
|
39
|
-
Implementer: {
|
|
40
|
-
title: 'The Code Builder',
|
|
41
|
-
description:
|
|
42
|
-
'Persistent implementation agent that writes code following TDD practices until all tasks are complete',
|
|
43
|
-
argumentHint: 'Implementation task, feature, or phase from plan',
|
|
44
|
-
toolRole: 'codeAgent',
|
|
45
|
-
sharedBase: 'code-agent-base',
|
|
46
|
-
category: 'implementation',
|
|
47
|
-
skills: [
|
|
48
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
49
|
-
['typescript', 'When writing TypeScript code — type patterns, generics, utility types'],
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
Frontend: {
|
|
54
|
-
title: 'The UI Specialist',
|
|
55
|
-
description:
|
|
56
|
-
'UI/UX specialist for React, styling, responsive design, and frontend implementation',
|
|
57
|
-
argumentHint: 'UI component, styling task, or frontend feature',
|
|
58
|
-
toolRole: 'codeAgent',
|
|
59
|
-
sharedBase: 'code-agent-base',
|
|
60
|
-
category: 'implementation',
|
|
61
|
-
skills: [
|
|
62
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
63
|
-
['react', 'When building React components — hooks, patterns, Server Components'],
|
|
64
|
-
['typescript', 'When writing TypeScript code — type patterns, generics, utility types'],
|
|
65
|
-
[
|
|
66
|
-
'frontend-design',
|
|
67
|
-
'When implementing UI/UX — design systems, accessibility, responsive patterns',
|
|
68
|
-
],
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
Refactor: {
|
|
73
|
-
title: 'The Code Sculptor',
|
|
74
|
-
description:
|
|
75
|
-
'Code refactoring specialist that improves structure, readability, and maintainability',
|
|
76
|
-
argumentHint: 'Code, component, or pattern to refactor',
|
|
77
|
-
toolRole: 'refactor',
|
|
78
|
-
sharedBase: 'code-agent-base',
|
|
79
|
-
category: 'implementation',
|
|
80
|
-
skills: [['aikit', '**Always** — AI Kit tool signatures, search, analysis']],
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
// ─── Diagnostics ──────────────────────────────────────────────────────
|
|
84
|
-
|
|
85
|
-
Debugger: {
|
|
86
|
-
title: 'The Problem Solver',
|
|
87
|
-
description: 'Expert debugger that diagnoses issues, traces errors, and provides solutions',
|
|
88
|
-
argumentHint: 'Error message, stack trace, or description of issue',
|
|
89
|
-
toolRole: 'debugger',
|
|
90
|
-
sharedBase: 'code-agent-base',
|
|
91
|
-
category: 'diagnostics',
|
|
92
|
-
skills: [
|
|
93
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
94
|
-
['typescript', 'When writing TypeScript code — type patterns, generics, utility types'],
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
Security: {
|
|
99
|
-
title: 'The Vulnerability Hunter',
|
|
100
|
-
description: 'Security specialist that analyzes code for vulnerabilities and compliance',
|
|
101
|
-
argumentHint: 'Code, feature, or component to security review',
|
|
102
|
-
toolRole: 'security',
|
|
103
|
-
sharedBase: 'code-agent-base',
|
|
104
|
-
category: 'diagnostics',
|
|
105
|
-
skills: [
|
|
106
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
107
|
-
['typescript', 'When reviewing code — security patterns, type safety'],
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
// ─── Documentation ────────────────────────────────────────────────────
|
|
112
|
-
|
|
113
|
-
Documenter: {
|
|
114
|
-
title: 'The Knowledge Keeper',
|
|
115
|
-
description:
|
|
116
|
-
'Documentation specialist that creates and maintains comprehensive project documentation',
|
|
117
|
-
argumentHint: 'Component, API, feature, or area to document',
|
|
118
|
-
toolRole: 'documenter',
|
|
119
|
-
sharedBase: 'code-agent-base',
|
|
120
|
-
category: 'documentation',
|
|
121
|
-
skills: [
|
|
122
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
123
|
-
['present', 'When presenting documentation previews or architecture visuals to the user'],
|
|
124
|
-
[
|
|
125
|
-
'docs',
|
|
126
|
-
'When creating or updating project documentation — docs/ convention, architecture blueprints, Diátaxis framework',
|
|
127
|
-
],
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
Explorer: {
|
|
132
|
-
title: 'The Rapid Scout',
|
|
133
|
-
description:
|
|
134
|
-
'Rapid codebase exploration to find files, usages, dependencies, and structural context',
|
|
135
|
-
argumentHint: 'Find files, usages, and context related to: {topic or goal}',
|
|
136
|
-
toolRole: 'explorer',
|
|
137
|
-
sharedBase: null,
|
|
138
|
-
category: 'exploration',
|
|
139
|
-
skills: [['aikit', '**Always** — AI Kit tool signatures, search, analysis']],
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
// ─── Multi-variant roles ──────────────────────────────────────────────
|
|
143
|
-
|
|
144
|
-
Researcher: {
|
|
145
|
-
title: 'The Context Gatherer',
|
|
146
|
-
description:
|
|
147
|
-
'Deep analysis, architecture review, and multi-model decision protocol participant',
|
|
148
|
-
argumentHint: 'Research question, problem statement, or subsystem to investigate',
|
|
149
|
-
toolRole: 'researcher',
|
|
150
|
-
sharedBase: 'researcher-base',
|
|
151
|
-
category: 'research',
|
|
152
|
-
skills: [
|
|
153
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
154
|
-
['lesson-learned', 'When analyzing past changes to extract engineering principles'],
|
|
155
|
-
['c4-architecture', 'When researching system architecture \u2014 produce C4 diagrams'],
|
|
156
|
-
['adr-skill', 'When the research involves a technical decision \u2014 draft an ADR'],
|
|
157
|
-
],
|
|
158
|
-
variants: {
|
|
159
|
-
Alpha: {
|
|
160
|
-
description: 'Primary deep research agent — also serves as default Researcher',
|
|
161
|
-
identity:
|
|
162
|
-
', the primary deep research agent. During multi-model decision sessions, you provide deep reasoning and nuanced system design.',
|
|
163
|
-
bodyAddendum: `## Required Output Section — \`## Depth Analysis\`
|
|
164
|
-
|
|
165
|
-
Your final report MUST contain a \`## Depth Analysis\` section with:
|
|
166
|
-
- Deep-dive into ONE chosen subsystem (most structurally central to the question)
|
|
167
|
-
- Full evidence chain: file:line citations for every structural claim
|
|
168
|
-
- At least 2 \`compact\`/\`file_summary\` extracts woven into the narrative
|
|
169
|
-
|
|
170
|
-
You are the DEFAULT researcher. When the Orchestrator needs breadth + depth, they
|
|
171
|
-
dispatch you alone. Your lens: thorough, evidence-first, exhaustive.`,
|
|
172
|
-
},
|
|
173
|
-
Beta: {
|
|
174
|
-
description:
|
|
175
|
-
'Research variant — pragmatic analysis with focus on trade-offs and edge cases',
|
|
176
|
-
identity:
|
|
177
|
-
', a variant of the Researcher agent optimized for **pragmatic analysis**. Focus on trade-offs, edge cases, and practical constraints. Challenge assumptions and highlight risks the primary researcher may overlook.',
|
|
178
|
-
bodyAddendum: `## Required Output Section — \`## Failure Modes & Counter-Evidence\`
|
|
179
|
-
|
|
180
|
-
Your final report MUST contain a \`## Failure Modes & Counter-Evidence\` section with:
|
|
181
|
-
- At least 3 adversarial claims challenging your own primary finding
|
|
182
|
-
- For each counter-claim: the condition under which it would be TRUE, and the
|
|
183
|
-
evidence (file:line or search receipt) that currently falsifies it
|
|
184
|
-
- Any unresolved counter-evidence flagged as \`⚠ UNRESOLVED\`
|
|
185
|
-
|
|
186
|
-
Your lens: pragmatic skepticism. Mark competing claims as \`A\` (Assumed) by default;
|
|
187
|
-
challenge before promoting to \`V\`.`,
|
|
188
|
-
},
|
|
189
|
-
Gamma: {
|
|
190
|
-
description: 'Research variant — broad pattern matching across domains and technologies',
|
|
191
|
-
identity:
|
|
192
|
-
', a variant of the Researcher agent optimized for **cross-domain pattern matching**. Draw connections from other domains, frameworks, and industries. Bring breadth where Alpha brings depth.',
|
|
193
|
-
bodyAddendum: `## Required Output Section — \`## Cross-Domain Analogies\`
|
|
194
|
-
|
|
195
|
-
Your final report MUST contain a \`## Cross-Domain Analogies\` section with:
|
|
196
|
-
- At least 2 patterns from other tools/frameworks/domains that apply to the question
|
|
197
|
-
- For each: the external source (cite via \`web_search\` or \`web_fetch\` receipt) and
|
|
198
|
-
how it maps to our codebase
|
|
199
|
-
- One "missing pattern we should adopt" recommendation
|
|
200
|
-
|
|
201
|
-
Your lens: cross-domain pattern matching. Weight \`web_search\` + \`web_fetch\` higher
|
|
202
|
-
than peers. Assume the LLM's training data is stale — verify with fresh searches.`,
|
|
203
|
-
},
|
|
204
|
-
Delta: {
|
|
205
|
-
description: 'Research variant — implementation feasibility and performance implications',
|
|
206
|
-
identity:
|
|
207
|
-
', a variant of the Researcher agent optimized for **implementation feasibility**. Focus on performance implications, scaling concerns, and concrete implementation paths. Ground theoretical proposals in practical reality.',
|
|
208
|
-
bodyAddendum: `## Required Output Section — \`## Implementation Cost & Feasibility\`
|
|
209
|
-
|
|
210
|
-
Your final report MUST contain a \`## Implementation Cost & Feasibility\` section with:
|
|
211
|
-
- Complexity snapshot: you MUST call \`measure({ path })\` on any file ≥ 50 LOC in the
|
|
212
|
-
target subsystem at least once and quote the \`cognitiveComplexity\` result
|
|
213
|
-
- Blast radius estimate: \`blast_radius({ changed_files })\` on the proposed edits
|
|
214
|
-
- Time/risk table: | Change | Lines | Risk | Effort |
|
|
215
|
-
- Feasibility verdict: SAFE / RISKY / INFEASIBLE with one-line justification
|
|
216
|
-
|
|
217
|
-
Your lens: implementation feasibility. Prefer \`measure\` + \`blast_radius\` + \`analyze_patterns\`
|
|
218
|
-
over abstract reasoning.`,
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
'Code-Reviewer': {
|
|
224
|
-
title: 'The Quality Guardian',
|
|
225
|
-
description:
|
|
226
|
-
'Code review specialist analyzing code for quality, security, performance, and maintainability',
|
|
227
|
-
argumentHint: 'File path, PR, or code to review',
|
|
228
|
-
toolRole: 'reviewer',
|
|
229
|
-
sharedBase: 'code-reviewer-base',
|
|
230
|
-
category: 'review',
|
|
231
|
-
skills: [
|
|
232
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
233
|
-
['typescript', 'When reviewing TypeScript code — type patterns, best practices'],
|
|
234
|
-
],
|
|
235
|
-
variants: {
|
|
236
|
-
Alpha: { description: 'Primary code reviewer' },
|
|
237
|
-
Beta: { description: 'Code reviewer variant — different LLM perspective for dual review' },
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
'Architect-Reviewer': {
|
|
242
|
-
title: 'The Structural Guardian',
|
|
243
|
-
description:
|
|
244
|
-
'Reviews architecture for pattern adherence, SOLID compliance, dependency direction, and structural integrity',
|
|
245
|
-
argumentHint: 'Files, PR, or subsystem to architecture-review',
|
|
246
|
-
toolRole: 'reviewer',
|
|
247
|
-
sharedBase: 'architect-reviewer-base',
|
|
248
|
-
category: 'review',
|
|
249
|
-
skills: [
|
|
250
|
-
['aikit', '**Always** — AI Kit tool signatures, search, analysis'],
|
|
251
|
-
['c4-architecture', 'When reviewing architectural diagrams or boundary changes'],
|
|
252
|
-
[
|
|
253
|
-
'adr-skill',
|
|
254
|
-
'When the review involves architecture decisions \u2014 reference or create ADRs',
|
|
255
|
-
],
|
|
256
|
-
],
|
|
257
|
-
extraBody:
|
|
258
|
-
'You are **not** the Code-Reviewer agent. Code-Reviewer handles correctness, testing, security, and code quality. You handle the big picture: service boundaries, dependency direction, pattern adherence, and structural health.',
|
|
259
|
-
variants: {
|
|
260
|
-
Alpha: { description: 'Primary architecture reviewer' },
|
|
261
|
-
Beta: {
|
|
262
|
-
description: 'Architecture reviewer variant — different LLM perspective for dual review',
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook definitions — lifecycle events that agents can respond to.
|
|
3
|
-
*
|
|
4
|
-
* Not all IDEs support hooks natively:
|
|
5
|
-
* - Copilot: No native hook support (hooks are documented in instructions only)
|
|
6
|
-
* - Claude Code: Maps to hooks config in settings.json
|
|
7
|
-
* - Claude Code: Supports hooks via settings.json
|
|
8
|
-
*
|
|
9
|
-
* Each adapter decides how to surface these:
|
|
10
|
-
* - Copilot adapter: Embeds as rules in copilot-instructions.md
|
|
11
|
-
* - Claude Code adapter: Generates hooks config [future]
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
export const HOOKS = {
|
|
15
|
-
sessionStart: {
|
|
16
|
-
description: 'Run at the start of every agent session',
|
|
17
|
-
actions: ['status({})', 'list()', 'search({ query: "SESSION CHECKPOINT", origin: "curated" })'],
|
|
18
|
-
rationale: 'Resume prior work, load existing knowledge',
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
sessionEnd: {
|
|
22
|
-
description: 'Run at the end of every agent session',
|
|
23
|
-
actions: [
|
|
24
|
-
'remember({ title: "Session checkpoint: <topic>", content: "<decisions, next steps>", category: "conventions" })',
|
|
25
|
-
],
|
|
26
|
-
rationale: 'Persist decisions for future sessions',
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
beforeCodeChange: {
|
|
30
|
-
description: 'Run before modifying any code',
|
|
31
|
-
actions: [
|
|
32
|
-
'search({ query: "<what you are changing>" })',
|
|
33
|
-
'scope_map({ task: "<description>" })',
|
|
34
|
-
],
|
|
35
|
-
rationale: 'Check for prior decisions and understand impact',
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
beforeCommit: {
|
|
39
|
-
description: 'Run before committing changes',
|
|
40
|
-
actions: ['check({})', 'test_run({})', 'blast_radius({ changed_files: ["..."] })'],
|
|
41
|
-
rationale: 'Validate changes before they enter version control',
|
|
42
|
-
},
|
|
43
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized model assignments — THE SINGLE FILE to update when models change.
|
|
3
|
-
*
|
|
4
|
-
* Keys are agent names (stable, model-agnostic).
|
|
5
|
-
* COPILOT_MODELS keeps the full fallback list in Copilot format.
|
|
6
|
-
* CLAUDE_MODELS maps each agent to its primary model as a single plain string.
|
|
7
|
-
*
|
|
8
|
-
* Naming convention for variants: {Role}-Alpha, {Role}-Beta, {Role}-Gamma, {Role}-Delta
|
|
9
|
-
* These are abstract labels — the actual model behind each is defined HERE.
|
|
10
|
-
*
|
|
11
|
-
* NOTE (Experimental): VS Code supports a model array syntax (e.g. [model1, model2])
|
|
12
|
-
* for agent files, but it requires an experiment flag to be enabled. Until the flag
|
|
13
|
-
* is generally available, adapters should emit only the first (primary) model as a
|
|
14
|
-
* plain string. The full fallback arrays are retained here so adapters can switch to
|
|
15
|
-
* array output when the flag is GA.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
export const COPILOT_MODELS = {
|
|
19
|
-
// ─── Single-role agents ───────────────────────────────────────────────
|
|
20
|
-
Orchestrator: ['Claude Opus 4.6 (copilot)', 'GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
21
|
-
Planner: ['Claude Opus 4.6 (copilot)', 'GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
22
|
-
Implementer: [
|
|
23
|
-
'GPT-5.4 (copilot)',
|
|
24
|
-
'Gemini 3.1 Pro (Preview) (copilot)',
|
|
25
|
-
'GPT-5.3-Codex (copilot)',
|
|
26
|
-
'Auto (copilot)',
|
|
27
|
-
],
|
|
28
|
-
Frontend: [
|
|
29
|
-
'Gemini 3.1 Pro (Preview) (copilot)',
|
|
30
|
-
'GPT-5.4 (copilot)',
|
|
31
|
-
'GPT-5.3-Codex (copilot)',
|
|
32
|
-
'Auto (copilot)',
|
|
33
|
-
],
|
|
34
|
-
Debugger: [
|
|
35
|
-
'Claude Opus 4.6 (copilot)',
|
|
36
|
-
'GPT-5.4 (copilot)',
|
|
37
|
-
'GPT-5.3-Codex (copilot)',
|
|
38
|
-
'Auto (copilot)',
|
|
39
|
-
],
|
|
40
|
-
Refactor: ['GPT-5.4 (copilot)', 'GPT-5.3-Codex (copilot)', 'Auto (copilot)'],
|
|
41
|
-
Security: ['Claude Opus 4.6 (copilot)', 'GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
42
|
-
Documenter: ['GPT-5.4 (copilot)', 'Gemini 3.1 Pro (Preview) (copilot)', 'Auto (copilot)'],
|
|
43
|
-
Explorer: ['Gemini 3 Flash (Preview) (copilot)', 'Claude Haiku 4.5 (copilot)', 'Auto (copilot)'],
|
|
44
|
-
|
|
45
|
-
// ─── Researcher variants (4 models for multi-model decision protocol) ────────────
|
|
46
|
-
'Researcher-Alpha': ['Claude Opus 4.6 (copilot)', 'Auto (copilot)'],
|
|
47
|
-
'Researcher-Beta': ['Claude Sonnet 4.6 (copilot)', 'Auto (copilot)'],
|
|
48
|
-
'Researcher-Gamma': ['GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
49
|
-
'Researcher-Delta': ['Gemini 3.1 Pro (Preview) (copilot)', 'Auto (copilot)'],
|
|
50
|
-
|
|
51
|
-
// ─── Code-Reviewer variants (2 models for dual review) ───────────────
|
|
52
|
-
'Code-Reviewer-Alpha': ['GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
53
|
-
'Code-Reviewer-Beta': ['Claude Opus 4.6 (copilot)', 'Auto (copilot)'],
|
|
54
|
-
|
|
55
|
-
// ─── Architect-Reviewer variants (2 models for dual review) ──────────
|
|
56
|
-
'Architect-Reviewer-Alpha': ['GPT-5.4 (copilot)', 'Auto (copilot)'],
|
|
57
|
-
'Architect-Reviewer-Beta': ['Claude Opus 4.6 (copilot)', 'Auto (copilot)'],
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const CLAUDE_MODELS = Object.fromEntries(
|
|
61
|
-
Object.entries(COPILOT_MODELS).map(([agentName, models]) => {
|
|
62
|
-
const primaryModel = Array.isArray(models) ? models[0] : models;
|
|
63
|
-
return [agentName, primaryModel?.replace(/ \(copilot\)$/, '') || 'Auto'];
|
|
64
|
-
}),
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Variant group definitions — maps role to variant suffixes.
|
|
69
|
-
* Used by adapters to know which agents are variants of the same role.
|
|
70
|
-
*/
|
|
71
|
-
export const VARIANT_GROUPS = {
|
|
72
|
-
Researcher: ['Alpha', 'Beta', 'Gamma', 'Delta'],
|
|
73
|
-
'Code-Reviewer': ['Alpha', 'Beta'],
|
|
74
|
-
'Architect-Reviewer': ['Alpha', 'Beta'],
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Primary variant per role — the "default" one for single-agent invocation.
|
|
79
|
-
*/
|
|
80
|
-
export const PRIMARY_VARIANT = {
|
|
81
|
-
Researcher: 'Alpha',
|
|
82
|
-
'Code-Reviewer': 'Alpha',
|
|
83
|
-
'Architect-Reviewer': 'Alpha',
|
|
84
|
-
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plugin/skill definitions — packages of domain knowledge for agents.
|
|
3
|
-
*
|
|
4
|
-
* Copilot: .github/skills/{name}/SKILL.md
|
|
5
|
-
* Claude Code: Maps to tool_use permissions and MCP config
|
|
6
|
-
* Claude Code: Referenced via CLAUDE.md or MCP
|
|
7
|
-
*
|
|
8
|
-
* Skills are NOT generated — they live in scaffold/general/skills/.
|
|
9
|
-
* This file defines WHICH skills to copy and their metadata.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export const PLUGINS = {
|
|
13
|
-
aikit: {
|
|
14
|
-
description: 'AI Kit search, analysis, memory, and developer tools',
|
|
15
|
-
source: 'scaffold/general/skills/aikit/SKILL.md',
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
brainstorming: {
|
|
20
|
-
description: 'Brainstorming & design exploration workflow',
|
|
21
|
-
source: 'scaffold/general/skills/brainstorming/SKILL.md',
|
|
22
|
-
required: true,
|
|
23
|
-
sidecars: ['scaffold/general/skills/brainstorming/spec-document-reviewer-prompt.md'],
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
'multi-agents-development': {
|
|
27
|
-
description:
|
|
28
|
-
'Multi-agent orchestration, task decomposition, parallel dispatch, and review pipeline patterns',
|
|
29
|
-
source: 'scaffold/general/skills/multi-agents-development/SKILL.md',
|
|
30
|
-
required: true,
|
|
31
|
-
sidecars: [
|
|
32
|
-
'scaffold/general/skills/multi-agents-development/implementer-prompt.md',
|
|
33
|
-
'scaffold/general/skills/multi-agents-development/spec-review-prompt.md',
|
|
34
|
-
'scaffold/general/skills/multi-agents-development/code-quality-review-prompt.md',
|
|
35
|
-
'scaffold/general/skills/multi-agents-development/architecture-review-prompt.md',
|
|
36
|
-
'scaffold/general/skills/multi-agents-development/parallel-dispatch-example.md',
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
'adr-skill': {
|
|
41
|
-
description:
|
|
42
|
-
'Architecture Decision Records — create, maintain, and review ADRs for significant technical decisions',
|
|
43
|
-
source: 'scaffold/general/skills/adr-skill/SKILL.md',
|
|
44
|
-
required: true,
|
|
45
|
-
sidecars: [
|
|
46
|
-
'scaffold/general/skills/adr-skill/assets/templates/adr-madr.md',
|
|
47
|
-
'scaffold/general/skills/adr-skill/assets/templates/adr-readme.md',
|
|
48
|
-
'scaffold/general/skills/adr-skill/assets/templates/adr-simple.md',
|
|
49
|
-
'scaffold/general/skills/adr-skill/references/adr-conventions.md',
|
|
50
|
-
'scaffold/general/skills/adr-skill/references/examples.md',
|
|
51
|
-
'scaffold/general/skills/adr-skill/references/review-checklist.md',
|
|
52
|
-
'scaffold/general/skills/adr-skill/references/template-variants.md',
|
|
53
|
-
'scaffold/general/skills/adr-skill/scripts/bootstrap_adr.js',
|
|
54
|
-
'scaffold/general/skills/adr-skill/scripts/new_adr.js',
|
|
55
|
-
'scaffold/general/skills/adr-skill/scripts/set_adr_status.js',
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
'c4-architecture': {
|
|
60
|
-
description:
|
|
61
|
-
'C4 model architecture diagrams using Mermaid — system context, container, component, and deployment views',
|
|
62
|
-
source: 'scaffold/general/skills/c4-architecture/SKILL.md',
|
|
63
|
-
required: true,
|
|
64
|
-
sidecars: [
|
|
65
|
-
'scaffold/general/skills/c4-architecture/references/advanced-patterns.md',
|
|
66
|
-
'scaffold/general/skills/c4-architecture/references/c4-syntax.md',
|
|
67
|
-
'scaffold/general/skills/c4-architecture/references/common-mistakes.md',
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
'frontend-design': {
|
|
72
|
-
description:
|
|
73
|
-
'Frontend design system — visual design thinking, typography, color, layout, motion, accessibility, and anti-pattern detection',
|
|
74
|
-
source: 'scaffold/general/skills/frontend-design/SKILL.md',
|
|
75
|
-
required: false,
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
'lesson-learned': {
|
|
79
|
-
description: 'Extract engineering lessons from recent code changes via git history analysis',
|
|
80
|
-
source: 'scaffold/general/skills/lesson-learned/SKILL.md',
|
|
81
|
-
required: true,
|
|
82
|
-
sidecars: [
|
|
83
|
-
'scaffold/general/skills/lesson-learned/references/anti-patterns.md',
|
|
84
|
-
'scaffold/general/skills/lesson-learned/references/se-principles.md',
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
present: {
|
|
89
|
-
description:
|
|
90
|
-
'Rich interactive dashboards, charts, tables, timelines, and data visualizations via the present MCP tool',
|
|
91
|
-
source: 'scaffold/general/skills/present/SKILL.md',
|
|
92
|
-
required: true,
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
react: {
|
|
96
|
-
description:
|
|
97
|
-
'React development patterns — component architecture, React 19 APIs, Server Components, TypeScript integration',
|
|
98
|
-
source: 'scaffold/general/skills/react/SKILL.md',
|
|
99
|
-
required: false,
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
'requirements-clarity': {
|
|
103
|
-
description:
|
|
104
|
-
'Clarify ambiguous requirements through focused dialogue — score 0-100 until ≥90 before implementation',
|
|
105
|
-
source: 'scaffold/general/skills/requirements-clarity/SKILL.md',
|
|
106
|
-
required: true,
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
'session-handoff': {
|
|
110
|
-
description:
|
|
111
|
-
'Comprehensive handoff documents for seamless AI agent session transfers and context preservation',
|
|
112
|
-
source: 'scaffold/general/skills/session-handoff/SKILL.md',
|
|
113
|
-
required: true,
|
|
114
|
-
sidecars: [
|
|
115
|
-
'scaffold/general/skills/session-handoff/references/handoff-template.md',
|
|
116
|
-
'scaffold/general/skills/session-handoff/references/resume-checklist.md',
|
|
117
|
-
'scaffold/general/skills/session-handoff/scripts/check_staleness.js',
|
|
118
|
-
'scaffold/general/skills/session-handoff/scripts/create_handoff.js',
|
|
119
|
-
'scaffold/general/skills/session-handoff/scripts/list_handoffs.js',
|
|
120
|
-
'scaffold/general/skills/session-handoff/scripts/validate_handoff.js',
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
typescript: {
|
|
125
|
-
description:
|
|
126
|
-
'TypeScript development patterns — type system, compiler config, advanced types, async patterns, module organization',
|
|
127
|
-
source: 'scaffold/general/skills/typescript/SKILL.md',
|
|
128
|
-
required: false,
|
|
129
|
-
},
|
|
130
|
-
docs: {
|
|
131
|
-
description:
|
|
132
|
-
'Living documentation management — Diátaxis framework, docs/ convention, staleness detection, integration with adr-skill and c4-architecture',
|
|
133
|
-
source: 'scaffold/general/skills/docs/SKILL.md',
|
|
134
|
-
required: true,
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
'repo-access': {
|
|
138
|
-
description:
|
|
139
|
-
'Progressive repository access recovery for private and enterprise git repos — strategy ladder from HTTPS to SSH to CLI OAuth to PAT to local clone',
|
|
140
|
-
source: 'scaffold/general/skills/repo-access/SKILL.md',
|
|
141
|
-
required: true,
|
|
142
|
-
sidecars: [
|
|
143
|
-
'scaffold/general/skills/repo-access/references/platform-matrix.md',
|
|
144
|
-
'scaffold/general/skills/repo-access/references/error-patterns.md',
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
};
|