@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,114 +0,0 @@
|
|
|
1
|
-
# Researcher — Shared Base Instructions
|
|
2
|
-
|
|
3
|
-
> Shared methodology for all Researcher variants. Each variant's definition contains only its unique identity and model assignment. **Do not duplicate.**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## MANDATORY FIRST ACTION
|
|
7
|
-
|
|
8
|
-
Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code-agent-base:
|
|
9
|
-
1. Run `status({})` — check Onboard Status and note the **Onboard Directory** path
|
|
10
|
-
2. If onboard shows ❌ → Run `onboard({ path: "." })` and wait for completion
|
|
11
|
-
3. If onboard shows ✅ → Read relevant onboard artifacts using `compact({ path: "<Onboard Directory>/<file>" })` before exploring
|
|
12
|
-
|
|
13
|
-
**Start with pre-analyzed artifacts.** They cover 80%+ of common research needs.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Research Methodology
|
|
18
|
-
|
|
19
|
-
### Phase 1: AI Kit Recall (BLOCKING)
|
|
20
|
-
```
|
|
21
|
-
search("task keywords")
|
|
22
|
-
scope_map("what you need to investigate")
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Phase 2: Exploration
|
|
26
|
-
- Use `graph`, `symbol`, `trace`, `find` for code exploration (graph FIRST for module relationships)
|
|
27
|
-
- Use `graph({ action: 'neighbors' })` to understand cross-module dependencies before diving into symbol details
|
|
28
|
-
- Use `file_summary`, `compact` for efficient file reading
|
|
29
|
-
- Use `analyze_structure`, `analyze_dependencies` for package-level understanding
|
|
30
|
-
- Use `web_search`, `web_fetch` for external documentation
|
|
31
|
-
|
|
32
|
-
### Phase 3: Synthesis
|
|
33
|
-
- Combine findings from multiple sources using `digest`
|
|
34
|
-
- Create `stratum_card` for key files that will be referenced later
|
|
35
|
-
- Build a coherent picture of the subsystem
|
|
36
|
-
|
|
37
|
-
### Phase 4: Report
|
|
38
|
-
Return structured findings. Always include:
|
|
39
|
-
1. **Summary** — 1-3 sentence overview
|
|
40
|
-
2. **Key Findings** — Bullet list of important discoveries
|
|
41
|
-
3. **Files Examined** — Paths with brief purpose notes
|
|
42
|
-
4. **Recommendation** — Your suggested approach with reasoning
|
|
43
|
-
5. **Trade-offs** — Pros and cons of alternatives
|
|
44
|
-
6. **Risks** — What could go wrong
|
|
45
|
-
|
|
46
|
-
### Phase 5: MANDATORY — Persist Discoveries
|
|
47
|
-
|
|
48
|
-
**Before returning your report**, you MUST call `remember()` for:
|
|
49
|
-
- ✅ Architecture insights not already in onboard artifacts
|
|
50
|
-
- ✅ Non-obvious findings, gotchas, or edge cases
|
|
51
|
-
- ✅ Trade-off analysis and recommendations made
|
|
52
|
-
- ✅ External knowledge gathered from web_search/web_fetch
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
remember({
|
|
56
|
-
title: "Short descriptive title",
|
|
57
|
-
content: "Detailed finding with context",
|
|
58
|
-
category: "patterns" | "conventions" | "decisions" | "troubleshooting"
|
|
59
|
-
})
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**If you complete research without remembering anything, you wasted tokens.** Your research should enrich the knowledge base for future sessions.
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## FORGE-Aware Research
|
|
67
|
-
|
|
68
|
-
When investigating tasks that involve code changes (architecture decisions, design analysis, subsystem investigation):
|
|
69
|
-
|
|
70
|
-
1. **Classify** — Run `forge_classify({ task, files, root_path })` to determine the complexity tier
|
|
71
|
-
2. **Track findings** (Standard+) — Use `evidence_map` to record critical findings as verified claims with receipts
|
|
72
|
-
3. **Flag risks** — If research reveals security, contract, or cross-boundary concerns, note the FORGE tier upgrade implications
|
|
73
|
-
4. **Report tier recommendation** — Include FORGE tier and triggers in your research report
|
|
74
|
-
|
|
75
|
-
This ensures the Orchestrator and Planner have tier context when planning implementation.
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Multi-Model Decision Context
|
|
80
|
-
|
|
81
|
-
When invoked for a decision analysis, you receive a specific question. You MUST:
|
|
82
|
-
1. **Commit to a recommendation** — do not hedge with "it depends"
|
|
83
|
-
2. **Provide concrete reasoning** — cite specific files, patterns, or constraints
|
|
84
|
-
3. **Acknowledge trade-offs** — show you considered alternatives
|
|
85
|
-
4. **State your confidence level** — high/medium/low with reasoning
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## Invocation Mode Detection
|
|
90
|
-
|
|
91
|
-
- **Direct** (has AI Kit tools) → Follow the **Information Lookup Order** from code-agent-base
|
|
92
|
-
- **Sub-agent** (prompt has "## Prior AI Kit Context") → Skip AI Kit Recall, use provided context
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## Context Efficiency
|
|
97
|
-
|
|
98
|
-
- **NEVER use `read_file` to understand code** — use AI Kit compression tools instead
|
|
99
|
-
- **`file_summary`** for structure (exports, imports, call edges — 10x fewer tokens)
|
|
100
|
-
- **`compact`** for specific sections (5-20x token reduction vs read_file)
|
|
101
|
-
- **`digest`** when synthesizing from 3+ sources
|
|
102
|
-
- **`stratum_card`** for files you'll reference repeatedly
|
|
103
|
-
- **`read_file` is ONLY acceptable** when you need exact lines for a pending edit operation
|
|
104
|
-
|
|
105
|
-
## Parallel Exploration via `lane`
|
|
106
|
-
|
|
107
|
-
For questions that require trying approach A vs approach B in isolation:
|
|
108
|
-
1. `lane({ action:'create', name:'approach-a' })` — isolated file copies
|
|
109
|
-
2. Apply approach A mentally; record observations
|
|
110
|
-
3. `lane({ action:'create', name:'approach-b' })` — second isolate
|
|
111
|
-
4. Apply approach B mentally; record observations
|
|
112
|
-
5. `lane({ action:'diff', names:['approach-a','approach-b'] })` — compare
|
|
113
|
-
6. Include the diff summary in your output; do NOT merge lanes back (read-only role)
|
|
114
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# DR-NNN: {Short Title}
|
|
2
|
-
|
|
3
|
-
**Status:** Proposed | Accepted | Rejected | Deprecated | Superseded
|
|
4
|
-
**Date:** YYYY-MM-DD
|
|
5
|
-
**Participants:** {which Researcher variants participated}
|
|
6
|
-
|
|
7
|
-
## Context
|
|
8
|
-
{What is the issue? Why are we making this decision?}
|
|
9
|
-
{If superseding, link: "Supersedes DR-NNN."}
|
|
10
|
-
|
|
11
|
-
## Decision
|
|
12
|
-
{What was decided and why — 2-5 sentences max}
|
|
13
|
-
|
|
14
|
-
## Decision Analysis Summary
|
|
15
|
-
| Model | Recommendation | Key Reasoning |
|
|
16
|
-
|-------|---------------|---------------|
|
|
17
|
-
|
|
18
|
-
**Agreements:** {what 3+ models agreed on}
|
|
19
|
-
**Disagreements:** {where they diverged}
|
|
20
|
-
|
|
21
|
-
## Consequences
|
|
22
|
-
**Positive:** {benefits}
|
|
23
|
-
**Negative:** {trade-offs accepted}
|
|
24
|
-
**Risks:** {what could go wrong, and any mitigations}
|
|
25
|
-
|
|
26
|
-
## Alternatives Considered
|
|
27
|
-
{Other approaches evaluated and why they were rejected — keeps the "why not" alongside the "why"}
|
|
28
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Execution State: {Task Title}
|
|
2
|
-
|
|
3
|
-
**Status:** PLANNING | IN_PROGRESS | REVIEW | COMPLETED | BLOCKED
|
|
4
|
-
**Started:** {timestamp}
|
|
5
|
-
**Plan:** {link to plan file}
|
|
6
|
-
|
|
7
|
-
## Phases
|
|
8
|
-
|
|
9
|
-
| # | Title | Agent | Status | Batch |
|
|
10
|
-
|---|-------|-------|--------|-------|
|
|
11
|
-
|
|
12
|
-
## Current Batch
|
|
13
|
-
|
|
14
|
-
**Batch {N}:** {phases in this batch}
|
|
15
|
-
**Status:** IMPLEMENTING | REVIEWING | APPROVED
|
|
16
|
-
|
|
17
|
-
## Decisions Log
|
|
18
|
-
|
|
19
|
-
| Decision | Rationale | ADR |
|
|
20
|
-
|----------|-----------|-----|
|
|
21
|
-
|
|
22
|
-
## Blockers
|
|
23
|
-
|
|
24
|
-
| Issue | Severity | Assigned |
|
|
25
|
-
|-------|----------|----------|
|
|
26
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Quick research question — find answer using AI Kit + web search"
|
|
3
|
-
agent: "Researcher-Alpha"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Quick Research
|
|
7
|
-
|
|
8
|
-
1. **AI Kit Recall** — Search knowledge base for existing answers
|
|
9
|
-
2. **Web Search** — If AI Kit has no relevant results, search the web
|
|
10
|
-
3. **Synthesize** — Combine findings into a clear, concise answer
|
|
11
|
-
4. **Remember** — If the answer is broadly useful, persist it to KB
|
|
12
|
-
|
|
13
|
-
**Always cite sources** — AI Kit entries, file paths, or URLs.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Systematic error diagnosis: reproduce → trace → diagnose → fix → verify"
|
|
3
|
-
agent: "Debugger"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Debug Workflow
|
|
7
|
-
|
|
8
|
-
1. **Parse Error** — Use `parse_output` on the error message/stack trace
|
|
9
|
-
2. **AI Kit Recall** — Search for known issues matching this pattern
|
|
10
|
-
3. **Reproduce** — Run the failing command/test to confirm
|
|
11
|
-
4. **Trace** — Use `symbol` and `trace` to follow the call chain
|
|
12
|
-
5. **Diagnose** — Form hypothesis, gather evidence
|
|
13
|
-
6. **Fix** — Implement minimal fix
|
|
14
|
-
7. **Verify** — `check` + `test_run` to confirm fix and no regressions
|
|
15
|
-
8. **Remember** — Persist the fix with category `troubleshooting`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Collaborative design session — explore ideas, refine requirements, produce a design spec"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Design Session
|
|
7
|
-
|
|
8
|
-
Enter Phase 0 (Design Gate) directly — the user is requesting a design session.
|
|
9
|
-
|
|
10
|
-
1. **Invoke the brainstorming skill** — interactive design dialogue with user
|
|
11
|
-
2. Follow the skill's full process (auto-selects Simple or Advanced mode)
|
|
12
|
-
3. If Advanced Mode, use Decision Protocol for unresolved technical choices
|
|
13
|
-
4. Terminal state: brainstorming skill invokes writing-plans skill
|
|
14
|
-
|
|
15
|
-
**🛑 HARD GATE** — Do NOT skip brainstorming. Do NOT write code. Design first.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Install a new flow from a git URL or local path — with interactive error recovery"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Flow Installation Assistant
|
|
7
|
-
|
|
8
|
-
Install a development flow from a git repository or local directory.
|
|
9
|
-
|
|
10
|
-
### Usage
|
|
11
|
-
Provide a git URL or local path:
|
|
12
|
-
- `https://github.com/org/my-flow.git`
|
|
13
|
-
- `git@github.com:org/my-flow.git`
|
|
14
|
-
- `./path/to/local/flow`
|
|
15
|
-
- `C:\Users\name\flows\my-flow`
|
|
16
|
-
|
|
17
|
-
### Workflow
|
|
18
|
-
|
|
19
|
-
1. **Attempt Install** — Call `flow_add` with the provided source
|
|
20
|
-
2. **On Success** — Show installed flow info with `flow_info`, present summary to user
|
|
21
|
-
3. **On Failure** — Classify the error and enter the appropriate recovery path:
|
|
22
|
-
|
|
23
|
-
### Error Recovery Paths
|
|
24
|
-
|
|
25
|
-
#### Git Authentication Failure
|
|
26
|
-
If the error mentions authentication, credentials, 401, 403, permission denied, or SAML:
|
|
27
|
-
|
|
28
|
-
1. Present the error clearly to the user
|
|
29
|
-
2. Ask which auth method they prefer:
|
|
30
|
-
- **SSH key**: Walk through `ssh-keygen -t ed25519`, adding the public key to their git host, and retrying with the SSH URL
|
|
31
|
-
- **Personal Access Token (PAT)**: Guide them to create a PAT in their git host settings, configure `git credential.helper store`, and retry
|
|
32
|
-
- **Git Credential Manager**: Check if GCM is installed, help install if needed, then retry (GCM opens a browser for auth)
|
|
33
|
-
3. After credentials are configured, retry `flow_add`
|
|
34
|
-
|
|
35
|
-
#### Network / Connectivity Failure
|
|
36
|
-
If the error mentions timeout, host not found, SSL, or proxy:
|
|
37
|
-
|
|
38
|
-
1. Present diagnostics: Is VPN needed? Is the URL correct? Is there a proxy?
|
|
39
|
-
2. Guide the user through resolution
|
|
40
|
-
3. Retry after the issue is resolved
|
|
41
|
-
|
|
42
|
-
#### Format Not Recognized
|
|
43
|
-
If `flow_add` succeeds cloning but returns a format/structure error:
|
|
44
|
-
|
|
45
|
-
1. Explain that the source was fetched but doesn't match any supported format
|
|
46
|
-
2. List the 3 supported formats:
|
|
47
|
-
- **Native**: Has a `flow.json` manifest in the root
|
|
48
|
-
- **Claude Plugin**: Has `.claude-plugin/plugin.json` with skills as steps
|
|
49
|
-
- **Copilot Agents**: Has `.github/agents/` with agent .md files as steps
|
|
50
|
-
3. Analyze the source structure to understand what's there
|
|
51
|
-
4. Offer to help migrate:
|
|
52
|
-
- If it has README files or markdown docs → propose creating a `flow.json` that maps them as steps
|
|
53
|
-
- If it has a different workflow format → propose conversion
|
|
54
|
-
- If it's missing key parts → guide user to fill them in
|
|
55
|
-
5. Create the missing `flow.json` manifest and step structure
|
|
56
|
-
6. Retry `flow_add` with the fixed source
|
|
57
|
-
|
|
58
|
-
### Native flow.json Format Reference
|
|
59
|
-
```json
|
|
60
|
-
{
|
|
61
|
-
"name": "my-flow",
|
|
62
|
-
"version": "1.0.0",
|
|
63
|
-
"description": "Description of the flow",
|
|
64
|
-
"steps": [
|
|
65
|
-
{
|
|
66
|
-
"id": "step-id",
|
|
67
|
-
"name": "Step Name",
|
|
68
|
-
"instruction": "steps/step-id/README.md",
|
|
69
|
-
"produces": ["output.md"],
|
|
70
|
-
"requires": [],
|
|
71
|
-
"agents": [],
|
|
72
|
-
"description": "What this step does"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"agents": [],
|
|
76
|
-
"artifacts_dir": ".spec",
|
|
77
|
-
"install": []
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Post-Install
|
|
82
|
-
After successful installation:
|
|
83
|
-
- Show the flow name, steps, and description via `present`
|
|
84
|
-
- Remind user they can start it with `flow_start`
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Create a new flow from scratch or migrate an existing workflow to aikit format"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Flow Creation Assistant
|
|
7
|
-
|
|
8
|
-
Create a new development flow or migrate an existing workflow to the aikit flow format.
|
|
9
|
-
|
|
10
|
-
### Mode 1: Create from Scratch
|
|
11
|
-
|
|
12
|
-
Guide the user through building a complete flow:
|
|
13
|
-
|
|
14
|
-
1. **Define the workflow** — Ask what the flow should accomplish (e.g., "TDD workflow", "documentation pipeline", "migration process")
|
|
15
|
-
2. **Design steps** — Break the workflow into sequential steps (3-8 is ideal)
|
|
16
|
-
3. **For each step**:
|
|
17
|
-
- Define the step id, name, and description
|
|
18
|
-
- Write the instruction (README.md content — what the agent should do)
|
|
19
|
-
- Identify what it produces (output artifacts)
|
|
20
|
-
- Identify what it requires (which previous steps must complete first)
|
|
21
|
-
- Optionally assign preferred agents
|
|
22
|
-
4. **Generate flow.json** — Create the manifest with all steps
|
|
23
|
-
5. **Write step READMEs** — Create instruction files for each step
|
|
24
|
-
6. **Install** — Use `flow_add` to install from the local directory
|
|
25
|
-
|
|
26
|
-
### Mode 2: Migrate Existing Workflow
|
|
27
|
-
|
|
28
|
-
If the user has an existing workflow (scripts, docs, runbooks) that they want to convert:
|
|
29
|
-
|
|
30
|
-
1. **Analyze the source** — Read the existing workflow files to understand the process
|
|
31
|
-
2. **Map to steps** — Identify discrete steps with clear inputs/outputs
|
|
32
|
-
3. **Identify gaps** — What's missing for a complete flow? (instructions? ordering? agents?)
|
|
33
|
-
4. **Fill gaps with user** — Ask user to clarify any ambiguous parts
|
|
34
|
-
5. **Generate the flow** — Create flow.json + step READMEs
|
|
35
|
-
6. **Install and validate** — Use `flow_add` and `flow_info` to verify
|
|
36
|
-
|
|
37
|
-
### Flow Structure
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
my-flow/
|
|
41
|
-
flow.json — Flow manifest (name, version, steps, agents)
|
|
42
|
-
steps/
|
|
43
|
-
step-1/
|
|
44
|
-
README.md — Step instructions (what the agent should do)
|
|
45
|
-
step-2/
|
|
46
|
-
README.md
|
|
47
|
-
references/ — Optional reference files for the step
|
|
48
|
-
...
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### flow.json Format
|
|
52
|
-
```json
|
|
53
|
-
{
|
|
54
|
-
"name": "my-flow",
|
|
55
|
-
"version": "1.0.0",
|
|
56
|
-
"description": "What this flow does",
|
|
57
|
-
"steps": [
|
|
58
|
-
{
|
|
59
|
-
"id": "step-id",
|
|
60
|
-
"name": "Human-readable Step Name",
|
|
61
|
-
"instruction": "steps/step-id/README.md",
|
|
62
|
-
"produces": ["artifact-name.md"],
|
|
63
|
-
"requires": [],
|
|
64
|
-
"agents": ["Preferred-Agent"],
|
|
65
|
-
"description": "Brief description of this step"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"agents": [],
|
|
69
|
-
"artifacts_dir": ".spec",
|
|
70
|
-
"install": []
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Step README Format
|
|
75
|
-
Each step README should include:
|
|
76
|
-
- **Goal** — What this step accomplishes
|
|
77
|
-
- **Inputs** — What context/artifacts from prior steps are needed
|
|
78
|
-
- **Instructions** — Detailed steps for the agent to follow
|
|
79
|
-
- **Output** — What artifact(s) to produce and where to save them
|
|
80
|
-
- **Acceptance criteria** — How to know the step is complete
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "List, inspect, update, and remove installed flows"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Flow Management
|
|
7
|
-
|
|
8
|
-
Manage your installed development flows.
|
|
9
|
-
|
|
10
|
-
### Available Actions
|
|
11
|
-
|
|
12
|
-
1. **List flows** — `flow_list` to see all installed flows with status
|
|
13
|
-
2. **Inspect a flow** — `flow_info` to see detailed steps, agents, and artifacts
|
|
14
|
-
3. **Check status** — `flow_status` to see the active flow and current step
|
|
15
|
-
4. **Update a flow** — `flow_update` to pull latest changes for git-installed flows
|
|
16
|
-
5. **Remove a flow** — `flow_remove` to uninstall (builtin flows cannot be removed)
|
|
17
|
-
6. **Start a flow** — `flow_start` to begin executing a flow
|
|
18
|
-
7. **Reset active flow** — `flow_reset` to clear active flow state
|
|
19
|
-
|
|
20
|
-
### Workflow
|
|
21
|
-
1. If no specific action requested, start with `flow_list` and present overview
|
|
22
|
-
2. Use `present` to display flow information in a clear table/card format
|
|
23
|
-
3. For updates, warn if there's an active flow that might be affected
|
|
24
|
-
4. For removals, confirm with user before proceeding
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Full lifecycle implementation: plan → build → review → commit"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Implementation Pipeline
|
|
7
|
-
|
|
8
|
-
Follow the Orchestrator's full workflow:
|
|
9
|
-
|
|
10
|
-
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.
|
|
11
|
-
2. **Phase 1: Planning** — Research, draft plan, present to user for approval
|
|
12
|
-
3. **Phase 2: Implementation** — Execute phases in parallel batches
|
|
13
|
-
4. **Phase 3: Completion** — Final review, docs, persist learnings
|
|
14
|
-
|
|
15
|
-
**🛑 MANDATORY STOPS** — After plan, after each batch, after completion.
|
|
16
|
-
|
|
17
|
-
Refer to the Orchestrator agent's full instructions for the detailed workflow.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Create a detailed TDD implementation plan without executing it"
|
|
3
|
-
agent: "Planner"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Planning Workflow
|
|
7
|
-
|
|
8
|
-
1. **AI Kit Recall** — Search for past plans, architecture decisions
|
|
9
|
-
2. **FORGE Ground** — Classify tier, scope map, seed unknowns
|
|
10
|
-
3. **Research** — Explore codebase, understand subsystems
|
|
11
|
-
4. **Draft Plan** — 3-10 phases with agent assignments, TDD steps
|
|
12
|
-
5. **Dependency Graph** — Group into parallel batches
|
|
13
|
-
6. **Present** — Show plan with open questions
|
|
14
|
-
|
|
15
|
-
**🛑 MANDATORY STOP** — Wait for user approval. Do NOT implement.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Dual-model code + architecture review pipeline"
|
|
3
|
-
agent: "Orchestrator"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Review Pipeline
|
|
7
|
-
|
|
8
|
-
### Step 1: Scope
|
|
9
|
-
Identify changed files and their blast radius.
|
|
10
|
-
|
|
11
|
-
### Step 2: Code Review (parallel)
|
|
12
|
-
Launch Code-Reviewer-Alpha and Code-Reviewer-Beta on the same changeset.
|
|
13
|
-
|
|
14
|
-
### Step 3: Architecture Review (if needed)
|
|
15
|
-
If changes cross service boundaries or modify interfaces, launch Architect-Reviewer-Alpha and Architect-Reviewer-Beta.
|
|
16
|
-
|
|
17
|
-
### Step 4: Synthesis
|
|
18
|
-
Merge findings from both reviewers:
|
|
19
|
-
- **Agreements**: Both found same issue → HIGH confidence
|
|
20
|
-
- **Unique findings**: One found, other didn't → verify
|
|
21
|
-
- **Disagreements**: Contradicting verdicts → present both to user
|
|
22
|
-
|
|
23
|
-
### Step 5: Report
|
|
24
|
-
Present unified review with: verdict, findings by severity, recommended actions.
|