@vpxa/aikit 0.1.74 → 0.1.76

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.
Files changed (128) hide show
  1. package/package.json +5 -1
  2. package/packages/cli/dist/index.js +2 -2
  3. package/packages/cli/dist/{init-DQkar6Es.js → init-CuRXmyD9.js} +1 -1
  4. package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
  5. package/packages/cli/dist/{user-CopNWxHP.js → user-vbJwa7x2.js} +1 -1
  6. package/scaffold/dist/adapters/claude-code.mjs +4 -0
  7. package/scaffold/dist/adapters/copilot.mjs +75 -0
  8. package/scaffold/dist/adapters/flows.mjs +1 -0
  9. package/scaffold/dist/adapters/skills.mjs +1 -0
  10. package/scaffold/{compiled → dist/compiled}/flows-data.mjs +304 -446
  11. package/scaffold/{compiled → dist/compiled}/skills-data.mjs +554 -2281
  12. package/scaffold/dist/definitions/agents.mjs +9 -0
  13. package/scaffold/dist/definitions/bodies.mjs +512 -0
  14. package/scaffold/dist/definitions/exclusions.mjs +1 -0
  15. package/scaffold/dist/definitions/hooks.mjs +1 -0
  16. package/scaffold/dist/definitions/models.mjs +1 -0
  17. package/scaffold/dist/definitions/plugins.mjs +1 -0
  18. package/scaffold/dist/definitions/prompts.mjs +225 -0
  19. package/scaffold/dist/definitions/protocols.mjs +835 -0
  20. package/scaffold/dist/definitions/tools.mjs +1 -0
  21. package/packages/cli/dist/scaffold-ukCDW3wQ.js +0 -2
  22. package/scaffold/_preview/agents/Architect-Reviewer-Alpha.agent.md +0 -132
  23. package/scaffold/_preview/agents/Architect-Reviewer-Beta.agent.md +0 -132
  24. package/scaffold/_preview/agents/Code-Reviewer-Alpha.agent.md +0 -112
  25. package/scaffold/_preview/agents/Code-Reviewer-Beta.agent.md +0 -112
  26. package/scaffold/_preview/agents/Debugger.agent.md +0 -412
  27. package/scaffold/_preview/agents/Documenter.agent.md +0 -468
  28. package/scaffold/_preview/agents/Explorer.agent.md +0 -76
  29. package/scaffold/_preview/agents/Frontend.agent.md +0 -440
  30. package/scaffold/_preview/agents/Implementer.agent.md +0 -425
  31. package/scaffold/_preview/agents/Orchestrator.agent.md +0 -452
  32. package/scaffold/_preview/agents/Planner.agent.md +0 -481
  33. package/scaffold/_preview/agents/README.md +0 -57
  34. package/scaffold/_preview/agents/Refactor.agent.md +0 -435
  35. package/scaffold/_preview/agents/Researcher-Alpha.agent.md +0 -151
  36. package/scaffold/_preview/agents/Researcher-Beta.agent.md +0 -152
  37. package/scaffold/_preview/agents/Researcher-Delta.agent.md +0 -153
  38. package/scaffold/_preview/agents/Researcher-Gamma.agent.md +0 -152
  39. package/scaffold/_preview/agents/Security.agent.md +0 -433
  40. package/scaffold/_preview/agents/_shared/architect-reviewer-base.md +0 -104
  41. package/scaffold/_preview/agents/_shared/code-agent-base.md +0 -366
  42. package/scaffold/_preview/agents/_shared/code-reviewer-base.md +0 -87
  43. package/scaffold/_preview/agents/_shared/decision-protocol.md +0 -27
  44. package/scaffold/_preview/agents/_shared/forge-protocol.md +0 -90
  45. package/scaffold/_preview/agents/_shared/researcher-base.md +0 -114
  46. package/scaffold/_preview/agents/templates/adr-template.md +0 -28
  47. package/scaffold/_preview/agents/templates/execution-state.md +0 -26
  48. package/scaffold/_preview/flows/_epilogue/steps/docs-sync/README.md +0 -120
  49. package/scaffold/_preview/flows/aikit-advanced/README.md +0 -70
  50. package/scaffold/_preview/flows/aikit-advanced/steps/design/README.md +0 -178
  51. package/scaffold/_preview/flows/aikit-advanced/steps/execute/README.md +0 -145
  52. package/scaffold/_preview/flows/aikit-advanced/steps/plan/README.md +0 -122
  53. package/scaffold/_preview/flows/aikit-advanced/steps/spec/README.md +0 -121
  54. package/scaffold/_preview/flows/aikit-advanced/steps/task/README.md +0 -119
  55. package/scaffold/_preview/flows/aikit-advanced/steps/verify/README.md +0 -145
  56. package/scaffold/_preview/flows/aikit-basic/README.md +0 -51
  57. package/scaffold/_preview/flows/aikit-basic/steps/assess/README.md +0 -109
  58. package/scaffold/_preview/flows/aikit-basic/steps/design/README.md +0 -116
  59. package/scaffold/_preview/flows/aikit-basic/steps/implement/README.md +0 -131
  60. package/scaffold/_preview/flows/aikit-basic/steps/verify/README.md +0 -123
  61. package/scaffold/_preview/prompts/aikit-ask.prompt.md +0 -13
  62. package/scaffold/_preview/prompts/aikit-debug.prompt.md +0 -15
  63. package/scaffold/_preview/prompts/aikit-design.prompt.md +0 -15
  64. package/scaffold/_preview/prompts/aikit-flow-add.prompt.md +0 -84
  65. package/scaffold/_preview/prompts/aikit-flow-create.prompt.md +0 -80
  66. package/scaffold/_preview/prompts/aikit-flow-manage.prompt.md +0 -24
  67. package/scaffold/_preview/prompts/aikit-implement.prompt.md +0 -17
  68. package/scaffold/_preview/prompts/aikit-plan.prompt.md +0 -15
  69. package/scaffold/_preview/prompts/aikit-review.prompt.md +0 -24
  70. package/scaffold/_preview/skills/adr-skill/SKILL.md +0 -335
  71. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-madr.md +0 -89
  72. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-readme.md +0 -20
  73. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-simple.md +0 -46
  74. package/scaffold/_preview/skills/adr-skill/references/adr-conventions.md +0 -95
  75. package/scaffold/_preview/skills/adr-skill/references/examples.md +0 -193
  76. package/scaffold/_preview/skills/adr-skill/references/review-checklist.md +0 -77
  77. package/scaffold/_preview/skills/adr-skill/references/template-variants.md +0 -52
  78. package/scaffold/_preview/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
  79. package/scaffold/_preview/skills/adr-skill/scripts/new_adr.js +0 -391
  80. package/scaffold/_preview/skills/adr-skill/scripts/set_adr_status.js +0 -169
  81. package/scaffold/_preview/skills/aikit/SKILL.md +0 -754
  82. package/scaffold/_preview/skills/brainstorming/SKILL.md +0 -265
  83. package/scaffold/_preview/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  84. package/scaffold/_preview/skills/c4-architecture/SKILL.md +0 -389
  85. package/scaffold/_preview/skills/c4-architecture/references/advanced-patterns.md +0 -552
  86. package/scaffold/_preview/skills/c4-architecture/references/c4-syntax.md +0 -510
  87. package/scaffold/_preview/skills/c4-architecture/references/common-mistakes.md +0 -437
  88. package/scaffold/_preview/skills/c4-architecture/references/html-design-system.md +0 -337
  89. package/scaffold/_preview/skills/c4-architecture/references/html-template.html +0 -627
  90. package/scaffold/_preview/skills/docs/SKILL.md +0 -553
  91. package/scaffold/_preview/skills/docs/references/diataxis-anti-patterns.md +0 -147
  92. package/scaffold/_preview/skills/docs/references/diataxis-compass.md +0 -123
  93. package/scaffold/_preview/skills/docs/references/diataxis-quadrants.md +0 -192
  94. package/scaffold/_preview/skills/docs/references/diataxis-quality.md +0 -76
  95. package/scaffold/_preview/skills/docs/references/diataxis-templates.md +0 -120
  96. package/scaffold/_preview/skills/docs/references/flow-artifacts-guide.md +0 -70
  97. package/scaffold/_preview/skills/docs/references/project-knowledge-gotchas.md +0 -32
  98. package/scaffold/_preview/skills/docs/references/project-knowledge-templates.md +0 -281
  99. package/scaffold/_preview/skills/docs/references/project-knowledge-workflow.md +0 -80
  100. package/scaffold/_preview/skills/frontend-design/SKILL.md +0 -237
  101. package/scaffold/_preview/skills/lesson-learned/SKILL.md +0 -113
  102. package/scaffold/_preview/skills/lesson-learned/references/anti-patterns.md +0 -55
  103. package/scaffold/_preview/skills/lesson-learned/references/se-principles.md +0 -109
  104. package/scaffold/_preview/skills/multi-agents-development/SKILL.md +0 -448
  105. package/scaffold/_preview/skills/multi-agents-development/architecture-review-prompt.md +0 -81
  106. package/scaffold/_preview/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
  107. package/scaffold/_preview/skills/multi-agents-development/implementer-prompt.md +0 -93
  108. package/scaffold/_preview/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
  109. package/scaffold/_preview/skills/multi-agents-development/spec-review-prompt.md +0 -81
  110. package/scaffold/_preview/skills/present/SKILL.md +0 -616
  111. package/scaffold/_preview/skills/react/SKILL.md +0 -309
  112. package/scaffold/_preview/skills/repo-access/SKILL.md +0 -178
  113. package/scaffold/_preview/skills/repo-access/references/error-patterns.md +0 -116
  114. package/scaffold/_preview/skills/repo-access/references/platform-matrix.md +0 -142
  115. package/scaffold/_preview/skills/requirements-clarity/SKILL.md +0 -333
  116. package/scaffold/_preview/skills/session-handoff/SKILL.md +0 -199
  117. package/scaffold/_preview/skills/session-handoff/references/handoff-template.md +0 -139
  118. package/scaffold/_preview/skills/session-handoff/references/resume-checklist.md +0 -80
  119. package/scaffold/_preview/skills/session-handoff/scripts/check_staleness.js +0 -269
  120. package/scaffold/_preview/skills/session-handoff/scripts/create_handoff.js +0 -299
  121. package/scaffold/_preview/skills/session-handoff/scripts/list_handoffs.js +0 -113
  122. package/scaffold/_preview/skills/session-handoff/scripts/validate_handoff.js +0 -241
  123. package/scaffold/_preview/skills/typescript/SKILL.md +0 -405
  124. package/scaffold/adapters/claude-code.mjs +0 -73
  125. package/scaffold/adapters/copilot.mjs +0 -292
  126. package/scaffold/adapters/flows.mjs +0 -27
  127. package/scaffold/adapters/skills.mjs +0 -25
  128. package/scaffold/generate.mjs +0 -92
@@ -0,0 +1,225 @@
1
+ const e={ask:{description:`Quick research question — find answer using AI Kit + web search`,agent:`Researcher-Alpha`,tools:[`search`,`web_search`,`web_fetch`,`compact`,`file_summary`,`remember`,`present`],content:`## Quick Research
2
+
3
+ 1. **AI Kit Recall** — Search knowledge base for existing answers
4
+ 2. **Web Search** — If AI Kit has no relevant results, search the web
5
+ 3. **Synthesize** — Combine findings into a clear, concise answer
6
+ 4. **Remember** — If the answer is broadly useful, persist it to KB
7
+
8
+ **Always cite sources** — AI Kit entries, file paths, or URLs.`},debug:{description:`Systematic error diagnosis: reproduce → trace → diagnose → fix → verify`,agent:`Debugger`,tools:[`search`,`symbol`,`trace`,`blast_radius`,`check`,`test_run`,`parse_output`,`compact`,`remember`,`present`],content:"## Debug Workflow\n\n1. **Parse Error** — Use `parse_output` on the error message/stack trace\n2. **AI Kit Recall** — Search for known issues matching this pattern\n3. **Reproduce** — Run the failing command/test to confirm\n4. **Trace** — Use `symbol` and `trace` to follow the call chain\n5. **Diagnose** — Form hypothesis, gather evidence\n6. **Fix** — Implement minimal fix\n7. **Verify** — `check` + `test_run` to confirm fix and no regressions\n8. **Remember** — Persist the fix with category `troubleshooting`"},implement:{description:`Full lifecycle implementation: plan → build → review → commit`,agent:`Orchestrator`,tools:[`search`,`scope_map`,`forge_ground`,`check`,`test_run`,`blast_radius`,`remember`,`audit`,`present`],content:`## Implementation Pipeline
9
+
10
+ Follow the Orchestrator's full workflow:
11
+
12
+ 1. **Phase 0: Design Gate** — Orchestrator checks if design is needed. Creative/additive work triggers brainstorming first. Use \`/design\` if you want to start with design explicitly.
13
+ 2. **Phase 1: Planning** — Research, draft plan, present to user for approval
14
+ 3. **Phase 2: Implementation** — Execute phases in parallel batches
15
+ 4. **Phase 3: Completion** — Final review, docs, persist learnings
16
+
17
+ **🛑 MANDATORY STOPS** — After plan, after each batch, after completion.
18
+
19
+ Refer to the Orchestrator agent's full instructions for the detailed workflow.`},plan:{description:`Create a detailed TDD implementation plan without executing it`,agent:`Planner`,tools:[`search`,`scope_map`,`forge_ground`,`forge_classify`,`file_summary`,`analyze_structure`,`analyze_dependencies`,`remember`,`present`],content:`## Planning Workflow
20
+
21
+ 1. **AI Kit Recall** — Search for past plans, architecture decisions
22
+ 2. **FORGE Ground** — Classify tier, scope map, seed unknowns
23
+ 3. **Research** — Explore codebase, understand subsystems
24
+ 4. **Draft Plan** — 3-10 phases with agent assignments, TDD steps
25
+ 5. **Dependency Graph** — Group into parallel batches
26
+ 6. **Present** — Show plan with open questions
27
+
28
+ **🛑 MANDATORY STOP** — Wait for user approval. Do NOT implement.`},design:{description:`Collaborative design session — explore ideas, refine requirements, produce a design spec`,agent:`Orchestrator`,tools:[`search`,`scope_map`,`file_summary`,`compact`,`remember`,`forge_classify`,`present`],content:`## Design Session
29
+
30
+ Enter Phase 0 (Design Gate) directly — the user is requesting a design session.
31
+
32
+ 1. **Invoke the brainstorming skill** — interactive design dialogue with user
33
+ 2. Follow the skill's full process (auto-selects Simple or Advanced mode)
34
+ 3. If Advanced Mode, use Decision Protocol for unresolved technical choices
35
+ 4. Terminal state: brainstorming skill invokes writing-plans skill
36
+
37
+ **🛑 HARD GATE** — Do NOT skip brainstorming. Do NOT write code. Design first.`},review:{description:`Dual-model code + architecture review pipeline`,agent:`Orchestrator`,tools:[`search`,`blast_radius`,`check`,`test_run`,`analyze_dependencies`,`remember`,`present`],content:`## Review Pipeline
38
+
39
+ ### Step 1: Scope
40
+ Identify changed files and their blast radius.
41
+
42
+ ### Step 2: Code Review (parallel)
43
+ Launch Code-Reviewer-Alpha and Code-Reviewer-Beta on the same changeset.
44
+
45
+ ### Step 3: Architecture Review (if needed)
46
+ If changes cross service boundaries or modify interfaces, launch Architect-Reviewer-Alpha and Architect-Reviewer-Beta.
47
+
48
+ ### Step 4: Synthesis
49
+ Merge findings from both reviewers:
50
+ - **Agreements**: Both found same issue → HIGH confidence
51
+ - **Unique findings**: One found, other didn't → verify
52
+ - **Disagreements**: Contradicting verdicts → present both to user
53
+
54
+ ### Step 5: Report
55
+ Present unified review with: verdict, findings by severity, recommended actions.`},"flow-add":{description:`Install a new flow from a git URL or local path — with interactive error recovery`,agent:`Orchestrator`,tools:[`flow_add`,`flow_list`,`flow_info`,`search`,`compact`,`file_summary`,`present`],content:`## Flow Installation Assistant
56
+
57
+ Install a development flow from a git repository or local directory.
58
+
59
+ ### Usage
60
+ Provide a git URL or local path:
61
+ - \`https://github.com/org/my-flow.git\`
62
+ - \`git@github.com:org/my-flow.git\`
63
+ - \`./path/to/local/flow\`
64
+ - \`C:\\Users\\name\\flows\\my-flow\`
65
+
66
+ ### Workflow
67
+
68
+ 1. **Attempt Install** — Call \`flow_add\` with the provided source
69
+ 2. **On Success** — Show installed flow info with \`flow_info\`, present summary to user
70
+ 3. **On Failure** — Classify the error and enter the appropriate recovery path:
71
+
72
+ ### Error Recovery Paths
73
+
74
+ #### Git Authentication Failure
75
+ If the error mentions authentication, credentials, 401, 403, permission denied, or SAML:
76
+
77
+ 1. Present the error clearly to the user
78
+ 2. Ask which auth method they prefer:
79
+ - **SSH key**: Walk through \`ssh-keygen -t ed25519\`, adding the public key to their git host, and retrying with the SSH URL
80
+ - **Personal Access Token (PAT)**: Guide them to create a PAT in their git host settings, configure \`git credential.helper store\`, and retry
81
+ - **Git Credential Manager**: Check if GCM is installed, help install if needed, then retry (GCM opens a browser for auth)
82
+ 3. After credentials are configured, retry \`flow_add\`
83
+
84
+ #### Network / Connectivity Failure
85
+ If the error mentions timeout, host not found, SSL, or proxy:
86
+
87
+ 1. Present diagnostics: Is VPN needed? Is the URL correct? Is there a proxy?
88
+ 2. Guide the user through resolution
89
+ 3. Retry after the issue is resolved
90
+
91
+ #### Format Not Recognized
92
+ If \`flow_add\` succeeds cloning but returns a format/structure error:
93
+
94
+ 1. Explain that the source was fetched but doesn't match any supported format
95
+ 2. List the 3 supported formats:
96
+ - **Native**: Has a \`flow.json\` manifest in the root
97
+ - **Claude Plugin**: Has \`.claude-plugin/plugin.json\` with skills as steps
98
+ - **Copilot Agents**: Has \`.github/agents/\` with agent .md files as steps
99
+ 3. Analyze the source structure to understand what's there
100
+ 4. Offer to help migrate:
101
+ - If it has README files or markdown docs → propose creating a \`flow.json\` that maps them as steps
102
+ - If it has a different workflow format → propose conversion
103
+ - If it's missing key parts → guide user to fill them in
104
+ 5. Create the missing \`flow.json\` manifest and step structure
105
+ 6. Retry \`flow_add\` with the fixed source
106
+
107
+ ### Native flow.json Format Reference
108
+ \`\`\`json
109
+ {
110
+ "name": "my-flow",
111
+ "version": "1.0.0",
112
+ "description": "Description of the flow",
113
+ "steps": [
114
+ {
115
+ "id": "step-id",
116
+ "name": "Step Name",
117
+ "instruction": "steps/step-id/README.md",
118
+ "produces": ["output.md"],
119
+ "requires": [],
120
+ "agents": [],
121
+ "description": "What this step does"
122
+ }
123
+ ],
124
+ "agents": [],
125
+ "artifacts_dir": ".spec",
126
+ "install": []
127
+ }
128
+ \`\`\`
129
+
130
+ ### Post-Install
131
+ After successful installation:
132
+ - Show the flow name, steps, and description via \`present\`
133
+ - Remind user they can start it with \`flow_start\``},"flow-manage":{description:`List, inspect, update, and remove installed flows`,agent:`Orchestrator`,tools:[`flow_list`,`flow_info`,`flow_status`,`flow_update`,`flow_remove`,`flow_start`,`flow_reset`,`present`],content:`## Flow Management
134
+
135
+ Manage your installed development flows.
136
+
137
+ ### Available Actions
138
+
139
+ 1. **List flows** — \`flow_list\` to see all installed flows with status
140
+ 2. **Inspect a flow** — \`flow_info\` to see detailed steps, agents, and artifacts
141
+ 3. **Check status** — \`flow_status\` to see the active flow and current step
142
+ 4. **Update a flow** — \`flow_update\` to pull latest changes for git-installed flows
143
+ 5. **Remove a flow** — \`flow_remove\` to uninstall (builtin flows cannot be removed)
144
+ 6. **Start a flow** — \`flow_start\` to begin executing a flow
145
+ 7. **Reset active flow** — \`flow_reset\` to clear active flow state
146
+
147
+ ### Workflow
148
+ 1. If no specific action requested, start with \`flow_list\` and present overview
149
+ 2. Use \`present\` to display flow information in a clear table/card format
150
+ 3. For updates, warn if there's an active flow that might be affected
151
+ 4. For removals, confirm with user before proceeding`},"flow-create":{description:`Create a new flow from scratch or migrate an existing workflow to aikit format`,agent:`Orchestrator`,tools:[`flow_add`,`flow_list`,`flow_info`,`search`,`compact`,`file_summary`,`present`],content:`## Flow Creation Assistant
152
+
153
+ Create a new development flow or migrate an existing workflow to the aikit flow format.
154
+
155
+ ### Mode 1: Create from Scratch
156
+
157
+ Guide the user through building a complete flow:
158
+
159
+ 1. **Define the workflow** — Ask what the flow should accomplish (e.g., "TDD workflow", "documentation pipeline", "migration process")
160
+ 2. **Design steps** — Break the workflow into sequential steps (3-8 is ideal)
161
+ 3. **For each step**:
162
+ - Define the step id, name, and description
163
+ - Write the instruction (README.md content — what the agent should do)
164
+ - Identify what it produces (output artifacts)
165
+ - Identify what it requires (which previous steps must complete first)
166
+ - Optionally assign preferred agents
167
+ 4. **Generate flow.json** — Create the manifest with all steps
168
+ 5. **Write step READMEs** — Create instruction files for each step
169
+ 6. **Install** — Use \`flow_add\` to install from the local directory
170
+
171
+ ### Mode 2: Migrate Existing Workflow
172
+
173
+ If the user has an existing workflow (scripts, docs, runbooks) that they want to convert:
174
+
175
+ 1. **Analyze the source** — Read the existing workflow files to understand the process
176
+ 2. **Map to steps** — Identify discrete steps with clear inputs/outputs
177
+ 3. **Identify gaps** — What's missing for a complete flow? (instructions? ordering? agents?)
178
+ 4. **Fill gaps with user** — Ask user to clarify any ambiguous parts
179
+ 5. **Generate the flow** — Create flow.json + step READMEs
180
+ 6. **Install and validate** — Use \`flow_add\` and \`flow_info\` to verify
181
+
182
+ ### Flow Structure
183
+
184
+ \`\`\`
185
+ my-flow/
186
+ flow.json — Flow manifest (name, version, steps, agents)
187
+ steps/
188
+ step-1/
189
+ README.md — Step instructions (what the agent should do)
190
+ step-2/
191
+ README.md
192
+ references/ — Optional reference files for the step
193
+ ...
194
+ \`\`\`
195
+
196
+ ### flow.json Format
197
+ \`\`\`json
198
+ {
199
+ "name": "my-flow",
200
+ "version": "1.0.0",
201
+ "description": "What this flow does",
202
+ "steps": [
203
+ {
204
+ "id": "step-id",
205
+ "name": "Human-readable Step Name",
206
+ "instruction": "steps/step-id/README.md",
207
+ "produces": ["artifact-name.md"],
208
+ "requires": [],
209
+ "agents": ["Preferred-Agent"],
210
+ "description": "Brief description of this step"
211
+ }
212
+ ],
213
+ "agents": [],
214
+ "artifacts_dir": ".spec",
215
+ "install": []
216
+ }
217
+ \`\`\`
218
+
219
+ ### Step README Format
220
+ Each step README should include:
221
+ - **Goal** — What this step accomplishes
222
+ - **Inputs** — What context/artifacts from prior steps are needed
223
+ - **Instructions** — Detailed steps for the agent to follow
224
+ - **Output** — What artifact(s) to produce and where to save them
225
+ - **Acceptance criteria** — How to know the step is complete`}};export{e as PROMPTS};