@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.
- package/package.json +5 -1
- package/packages/cli/dist/index.js +2 -2
- package/packages/cli/dist/{init-DQkar6Es.js → init-CuRXmyD9.js} +1 -1
- package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
- package/packages/cli/dist/{user-CopNWxHP.js → user-vbJwa7x2.js} +1 -1
- 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/{compiled → dist/compiled}/flows-data.mjs +304 -446
- package/scaffold/{compiled → dist/compiled}/skills-data.mjs +554 -2281
- package/scaffold/dist/definitions/agents.mjs +9 -0
- package/scaffold/dist/definitions/bodies.mjs +512 -0
- 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/dist/definitions/prompts.mjs +225 -0
- package/scaffold/dist/definitions/protocols.mjs +835 -0
- package/scaffold/dist/definitions/tools.mjs +1 -0
- package/packages/cli/dist/scaffold-ukCDW3wQ.js +0 -2
- package/scaffold/_preview/agents/Architect-Reviewer-Alpha.agent.md +0 -132
- package/scaffold/_preview/agents/Architect-Reviewer-Beta.agent.md +0 -132
- package/scaffold/_preview/agents/Code-Reviewer-Alpha.agent.md +0 -112
- package/scaffold/_preview/agents/Code-Reviewer-Beta.agent.md +0 -112
- package/scaffold/_preview/agents/Debugger.agent.md +0 -412
- package/scaffold/_preview/agents/Documenter.agent.md +0 -468
- package/scaffold/_preview/agents/Explorer.agent.md +0 -76
- package/scaffold/_preview/agents/Frontend.agent.md +0 -440
- package/scaffold/_preview/agents/Implementer.agent.md +0 -425
- package/scaffold/_preview/agents/Orchestrator.agent.md +0 -452
- package/scaffold/_preview/agents/Planner.agent.md +0 -481
- package/scaffold/_preview/agents/README.md +0 -57
- package/scaffold/_preview/agents/Refactor.agent.md +0 -435
- package/scaffold/_preview/agents/Researcher-Alpha.agent.md +0 -151
- package/scaffold/_preview/agents/Researcher-Beta.agent.md +0 -152
- package/scaffold/_preview/agents/Researcher-Delta.agent.md +0 -153
- package/scaffold/_preview/agents/Researcher-Gamma.agent.md +0 -152
- package/scaffold/_preview/agents/Security.agent.md +0 -433
- package/scaffold/_preview/agents/_shared/architect-reviewer-base.md +0 -104
- package/scaffold/_preview/agents/_shared/code-agent-base.md +0 -366
- package/scaffold/_preview/agents/_shared/code-reviewer-base.md +0 -87
- package/scaffold/_preview/agents/_shared/decision-protocol.md +0 -27
- package/scaffold/_preview/agents/_shared/forge-protocol.md +0 -90
- package/scaffold/_preview/agents/_shared/researcher-base.md +0 -114
- package/scaffold/_preview/agents/templates/adr-template.md +0 -28
- package/scaffold/_preview/agents/templates/execution-state.md +0 -26
- package/scaffold/_preview/flows/_epilogue/steps/docs-sync/README.md +0 -120
- package/scaffold/_preview/flows/aikit-advanced/README.md +0 -70
- package/scaffold/_preview/flows/aikit-advanced/steps/design/README.md +0 -178
- package/scaffold/_preview/flows/aikit-advanced/steps/execute/README.md +0 -145
- package/scaffold/_preview/flows/aikit-advanced/steps/plan/README.md +0 -122
- package/scaffold/_preview/flows/aikit-advanced/steps/spec/README.md +0 -121
- package/scaffold/_preview/flows/aikit-advanced/steps/task/README.md +0 -119
- package/scaffold/_preview/flows/aikit-advanced/steps/verify/README.md +0 -145
- package/scaffold/_preview/flows/aikit-basic/README.md +0 -51
- package/scaffold/_preview/flows/aikit-basic/steps/assess/README.md +0 -109
- package/scaffold/_preview/flows/aikit-basic/steps/design/README.md +0 -116
- package/scaffold/_preview/flows/aikit-basic/steps/implement/README.md +0 -131
- package/scaffold/_preview/flows/aikit-basic/steps/verify/README.md +0 -123
- package/scaffold/_preview/prompts/aikit-ask.prompt.md +0 -13
- package/scaffold/_preview/prompts/aikit-debug.prompt.md +0 -15
- package/scaffold/_preview/prompts/aikit-design.prompt.md +0 -15
- package/scaffold/_preview/prompts/aikit-flow-add.prompt.md +0 -84
- package/scaffold/_preview/prompts/aikit-flow-create.prompt.md +0 -80
- package/scaffold/_preview/prompts/aikit-flow-manage.prompt.md +0 -24
- package/scaffold/_preview/prompts/aikit-implement.prompt.md +0 -17
- package/scaffold/_preview/prompts/aikit-plan.prompt.md +0 -15
- package/scaffold/_preview/prompts/aikit-review.prompt.md +0 -24
- package/scaffold/_preview/skills/adr-skill/SKILL.md +0 -335
- package/scaffold/_preview/skills/adr-skill/assets/templates/adr-madr.md +0 -89
- package/scaffold/_preview/skills/adr-skill/assets/templates/adr-readme.md +0 -20
- package/scaffold/_preview/skills/adr-skill/assets/templates/adr-simple.md +0 -46
- package/scaffold/_preview/skills/adr-skill/references/adr-conventions.md +0 -95
- package/scaffold/_preview/skills/adr-skill/references/examples.md +0 -193
- package/scaffold/_preview/skills/adr-skill/references/review-checklist.md +0 -77
- package/scaffold/_preview/skills/adr-skill/references/template-variants.md +0 -52
- package/scaffold/_preview/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
- package/scaffold/_preview/skills/adr-skill/scripts/new_adr.js +0 -391
- package/scaffold/_preview/skills/adr-skill/scripts/set_adr_status.js +0 -169
- package/scaffold/_preview/skills/aikit/SKILL.md +0 -754
- package/scaffold/_preview/skills/brainstorming/SKILL.md +0 -265
- package/scaffold/_preview/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
- package/scaffold/_preview/skills/c4-architecture/SKILL.md +0 -389
- package/scaffold/_preview/skills/c4-architecture/references/advanced-patterns.md +0 -552
- package/scaffold/_preview/skills/c4-architecture/references/c4-syntax.md +0 -510
- package/scaffold/_preview/skills/c4-architecture/references/common-mistakes.md +0 -437
- package/scaffold/_preview/skills/c4-architecture/references/html-design-system.md +0 -337
- package/scaffold/_preview/skills/c4-architecture/references/html-template.html +0 -627
- package/scaffold/_preview/skills/docs/SKILL.md +0 -553
- package/scaffold/_preview/skills/docs/references/diataxis-anti-patterns.md +0 -147
- package/scaffold/_preview/skills/docs/references/diataxis-compass.md +0 -123
- package/scaffold/_preview/skills/docs/references/diataxis-quadrants.md +0 -192
- package/scaffold/_preview/skills/docs/references/diataxis-quality.md +0 -76
- package/scaffold/_preview/skills/docs/references/diataxis-templates.md +0 -120
- package/scaffold/_preview/skills/docs/references/flow-artifacts-guide.md +0 -70
- package/scaffold/_preview/skills/docs/references/project-knowledge-gotchas.md +0 -32
- package/scaffold/_preview/skills/docs/references/project-knowledge-templates.md +0 -281
- package/scaffold/_preview/skills/docs/references/project-knowledge-workflow.md +0 -80
- package/scaffold/_preview/skills/frontend-design/SKILL.md +0 -237
- package/scaffold/_preview/skills/lesson-learned/SKILL.md +0 -113
- package/scaffold/_preview/skills/lesson-learned/references/anti-patterns.md +0 -55
- package/scaffold/_preview/skills/lesson-learned/references/se-principles.md +0 -109
- package/scaffold/_preview/skills/multi-agents-development/SKILL.md +0 -448
- package/scaffold/_preview/skills/multi-agents-development/architecture-review-prompt.md +0 -81
- package/scaffold/_preview/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
- package/scaffold/_preview/skills/multi-agents-development/implementer-prompt.md +0 -93
- package/scaffold/_preview/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
- package/scaffold/_preview/skills/multi-agents-development/spec-review-prompt.md +0 -81
- package/scaffold/_preview/skills/present/SKILL.md +0 -616
- package/scaffold/_preview/skills/react/SKILL.md +0 -309
- package/scaffold/_preview/skills/repo-access/SKILL.md +0 -178
- package/scaffold/_preview/skills/repo-access/references/error-patterns.md +0 -116
- package/scaffold/_preview/skills/repo-access/references/platform-matrix.md +0 -142
- package/scaffold/_preview/skills/requirements-clarity/SKILL.md +0 -333
- package/scaffold/_preview/skills/session-handoff/SKILL.md +0 -199
- package/scaffold/_preview/skills/session-handoff/references/handoff-template.md +0 -139
- package/scaffold/_preview/skills/session-handoff/references/resume-checklist.md +0 -80
- package/scaffold/_preview/skills/session-handoff/scripts/check_staleness.js +0 -269
- package/scaffold/_preview/skills/session-handoff/scripts/create_handoff.js +0 -299
- package/scaffold/_preview/skills/session-handoff/scripts/list_handoffs.js +0 -113
- package/scaffold/_preview/skills/session-handoff/scripts/validate_handoff.js +0 -241
- package/scaffold/_preview/skills/typescript/SKILL.md +0 -405
- package/scaffold/adapters/claude-code.mjs +0 -73
- package/scaffold/adapters/copilot.mjs +0 -292
- package/scaffold/adapters/flows.mjs +0 -27
- package/scaffold/adapters/skills.mjs +0 -25
- package/scaffold/generate.mjs +0 -92
|
@@ -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,120 +0,0 @@
|
|
|
1
|
-
# Epilogue: Documentation Sync
|
|
2
|
-
|
|
3
|
-
> **This is a mandatory epilogue step.** It runs automatically after every flow completes to keep project documentation synchronized with code changes.
|
|
4
|
-
|
|
5
|
-
## Objective
|
|
6
|
-
|
|
7
|
-
Review the changes made during this flow and update the `docs/` folder using AI Kit analysis tools — never write docs from scratch when a tool can generate the foundation.
|
|
8
|
-
|
|
9
|
-
## Prerequisites
|
|
10
|
-
|
|
11
|
-
Load the `docs` skill before proceeding — it contains the full documentation convention, templates, architecture blueprint workflow, and change-to-doc mapping rules.
|
|
12
|
-
|
|
13
|
-
## Instructions
|
|
14
|
-
|
|
15
|
-
### 0. Gather Flow Artifacts
|
|
16
|
-
|
|
17
|
-
Read all artifacts produced during this flow — they contain design decisions, requirements, and verification results that are the most valuable documentation input.
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
flow_status() # Get artifactsPath
|
|
21
|
-
find({ pattern: "*.md", path: "{{artifacts_path}}" }) # Discover all flow artifacts
|
|
22
|
-
digest({ sources: [ # Compress artifacts for context
|
|
23
|
-
{ path: "<found-artifact-1>" },
|
|
24
|
-
{ path: "<found-artifact-2>" },
|
|
25
|
-
...
|
|
26
|
-
]})
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Map each discovered artifact to documentation actions using the artifact-to-doc mapping from the `docs` skill. Different flows produce different artifacts — read everything `find()` returns and focus on content that contains decisions, requirements, and verification results.
|
|
30
|
-
|
|
31
|
-
If no artifacts exist, proceed to Step 1 in source-only mode.
|
|
32
|
-
|
|
33
|
-
### 1. Assess Changes (tool-driven)
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
git_context({}) # What changed in this flow
|
|
37
|
-
blast_radius({ changed_files: ["<changed-files>"] }) # Impact analysis — which modules affected
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Use the output to classify changes:
|
|
41
|
-
|
|
42
|
-
| Change Signal | Documentation Action |
|
|
43
|
-
|---------------|---------------------|
|
|
44
|
-
| New files in `src/` | Potential new component doc |
|
|
45
|
-
| Modified API surface | Update reference docs |
|
|
46
|
-
| New package or module boundary | Update architecture overview |
|
|
47
|
-
| Architecture decision made | Delegate to `adr-skill` |
|
|
48
|
-
| Test-only or config-only changes | Likely skip |
|
|
49
|
-
|
|
50
|
-
### 2. Apply the Change-to-Doc Mapping
|
|
51
|
-
|
|
52
|
-
Follow the decision tree from the `docs` skill to determine which documentation actions are needed.
|
|
53
|
-
|
|
54
|
-
### 3. Bootstrap `docs/` If Needed (full tool-driven workflow)
|
|
55
|
-
|
|
56
|
-
If `docs/` doesn't exist, run the **Architecture Blueprint Workflow** from the `docs` skill:
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
# Step 1: Generate content with AI Kit tools
|
|
60
|
-
produce_knowledge({ path: "." }) # → Foundation for docs/README.md
|
|
61
|
-
analyze_structure({ path: "." }) # → docs/architecture/overview.md structure
|
|
62
|
-
analyze_diagram({ path: "." }) # → docs/architecture/ Mermaid diagrams
|
|
63
|
-
analyze_dependencies({ path: "." }) # → docs/architecture/overview.md deps section
|
|
64
|
-
analyze_entry_points({ path: "." }) # → docs/reference/api.md foundation
|
|
65
|
-
analyze_patterns({ path: "." }) # → docs/architecture/overview.md patterns
|
|
66
|
-
|
|
67
|
-
# Step 2: Create the docs/ tree from tool outputs
|
|
68
|
-
docs/
|
|
69
|
-
├── README.md ← From produce_knowledge + project context
|
|
70
|
-
├── architecture/
|
|
71
|
-
│ ├── overview.md ← From analyze_structure + analyze_dependencies + analyze_diagram
|
|
72
|
-
│ └── components/ ← From analyze_symbols per major component
|
|
73
|
-
├── decisions/
|
|
74
|
-
│ └── index.md ← ADR log (delegate to adr-skill)
|
|
75
|
-
├── guides/
|
|
76
|
-
│ └── testing.md ← From analyze_patterns test info
|
|
77
|
-
└── reference/
|
|
78
|
-
└── api.md ← From analyze_entry_points
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Use the Architecture Blueprint sections from the `docs` skill as the template for each document.
|
|
82
|
-
|
|
83
|
-
### 4. Update Existing Docs (tool-assisted)
|
|
84
|
-
|
|
85
|
-
When `docs/` already exists:
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
compact({ path: "docs/architecture/overview.md", query: "section to update" }) # Read target section
|
|
89
|
-
blast_radius({ changed_files: ["<files>"] }) # What's affected
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
- **Don't rewrite** — update the relevant sections of existing docs
|
|
93
|
-
- **Don't duplicate** — if the information is in code comments or READMEs, reference it
|
|
94
|
-
- Use `compact` to read existing doc sections before editing
|
|
95
|
-
- Use `blast_radius` output to determine which sections need updating
|
|
96
|
-
|
|
97
|
-
### 5. Delegate When Appropriate
|
|
98
|
-
|
|
99
|
-
- Architecture decisions → `adr-skill` → `docs/decisions/`
|
|
100
|
-
- Architecture diagrams → `c4-architecture` skill → `docs/architecture/`
|
|
101
|
-
- Full architecture refresh → Run the Architecture Blueprint Workflow from `docs` skill
|
|
102
|
-
|
|
103
|
-
### 6. Update Index
|
|
104
|
-
|
|
105
|
-
If documents were added, removed, or renamed, update `docs/README.md` to reflect the current structure.
|
|
106
|
-
|
|
107
|
-
### 7. Skip If Nothing Changed
|
|
108
|
-
|
|
109
|
-
If the flow's changes don't warrant doc updates (e.g., pure bug fix with no revelations), report:
|
|
110
|
-
- "No documentation updates needed"
|
|
111
|
-
- Reason: (brief explanation)
|
|
112
|
-
|
|
113
|
-
## Completion Criteria
|
|
114
|
-
|
|
115
|
-
- [ ] `git_context` + `blast_radius` used to assess changes
|
|
116
|
-
- [ ] Change-to-doc mapping applied from `docs` skill
|
|
117
|
-
- [ ] `docs/` bootstrapped with tool outputs if it didn't exist
|
|
118
|
-
- [ ] Relevant docs created or updated (or skipped with reason)
|
|
119
|
-
- [ ] `docs/README.md` index is current
|
|
120
|
-
- [ ] No placeholder/empty docs created — all content tool-generated or hand-written with purpose
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# aikit:advanced — Full Development Flow
|
|
2
|
-
|
|
3
|
-
Full development flow for **new features, API design, and architecture changes**.
|
|
4
|
-
|
|
5
|
-
## Steps
|
|
6
|
-
|
|
7
|
-
| # | Step | Skill | Produces | Requires | Agents |
|
|
8
|
-
|---|------|-------|----------|----------|--------|
|
|
9
|
-
| 1 | **Design Gate** | `steps/design/README.md` | `design-decisions.md` | — | Researcher-Alpha/Beta/Gamma/Delta |
|
|
10
|
-
| 2 | **Specification** | `steps/spec/README.md` | `spec.md` | `design-decisions.md` | Researcher-Alpha |
|
|
11
|
-
| 3 | **Planning** | `steps/plan/README.md` | `plan.md` | `spec.md` | Planner, Explorer |
|
|
12
|
-
| 4 | **Task Breakdown** | `steps/task/README.md` | `tasks.md` | `plan.md` | Planner, Architect-Reviewer-Alpha |
|
|
13
|
-
| 5 | **Execution** | `steps/execute/README.md` | `progress.md` | `tasks.md` | Orchestrator, Implementer, Frontend, Refactor |
|
|
14
|
-
| 6 | **Verification** | `steps/verify/README.md` | `verify-report.md` | `progress.md` | Code-Reviewer-Alpha/Beta, Architect-Reviewer-Alpha/Beta, Security |
|
|
15
|
-
|
|
16
|
-
## How It Works
|
|
17
|
-
|
|
18
|
-
Each step has a **README.md** file that contains the detailed instructions for the agent(s) executing that step. The Orchestrator reads the README.md via `flow_read_instruction` and delegates work accordingly.
|
|
19
|
-
|
|
20
|
-
### Step 1: Design Gate
|
|
21
|
-
- Full brainstorming session for new features and architectural changes
|
|
22
|
-
- FORGE classification (`forge_classify`) + grounding (`forge_ground`) for complex tasks
|
|
23
|
-
- Parallel 4-researcher decision protocol for non-trivial technical decisions
|
|
24
|
-
- ADR generation for critical-tier tasks
|
|
25
|
-
- **Mandatory user stop** before proceeding — design decisions must be approved
|
|
26
|
-
- Read `steps/design/README.md` for the full protocol
|
|
27
|
-
|
|
28
|
-
### Step 2: Specification
|
|
29
|
-
- Elicit requirements from the user, clarify scope
|
|
30
|
-
- Define acceptance criteria and constraints
|
|
31
|
-
- Build on design decisions from the previous step
|
|
32
|
-
|
|
33
|
-
### Step 3: Planning
|
|
34
|
-
- Deep codebase analysis using `search`, `scope_map`, `trace`, `analyze_*`
|
|
35
|
-
- Design architecture based on spec and design decisions
|
|
36
|
-
- Create comprehensive implementation plan with file-level changes
|
|
37
|
-
|
|
38
|
-
### Step 4: Task Breakdown
|
|
39
|
-
- Break the plan into ordered, atomic implementation tasks
|
|
40
|
-
- Define dependencies between tasks
|
|
41
|
-
- Identify parallel batches for multi-agent execution
|
|
42
|
-
- Architecture review of the task structure
|
|
43
|
-
|
|
44
|
-
### Step 5: Execution
|
|
45
|
-
- Orchestrator dispatches agents in parallel batches per the task breakdown
|
|
46
|
-
- Each agent gets a scoped task (1-3 files) with clear acceptance criteria
|
|
47
|
-
- TDD: write tests first, then implement
|
|
48
|
-
- Per-batch review cycle: Code Review (dual) → Arch Review → Security → Evidence Gate
|
|
49
|
-
|
|
50
|
-
### Step 6: Verification
|
|
51
|
-
- Dual code review (Code-Reviewer-Alpha + Beta)
|
|
52
|
-
- Architecture review (Architect-Reviewer-Alpha + Beta)
|
|
53
|
-
- Security review
|
|
54
|
-
- Run `check({})` + `test_run({})` + `blast_radius({})`
|
|
55
|
-
- `evidence_map({ action: "gate" })` for final quality gate
|
|
56
|
-
|
|
57
|
-
## Using Skills Inside Steps
|
|
58
|
-
|
|
59
|
-
When the Orchestrator activates a step:
|
|
60
|
-
|
|
61
|
-
1. **Read the instruction first** — `flow_read_instruction` returns the README.md for the current step
|
|
62
|
-
2. **Follow step instructions** — the README.md is the primary guide for what to do
|
|
63
|
-
3. **Delegate to listed agents** — each step lists which agents are appropriate
|
|
64
|
-
4. **Produce the required artifact** — the step's `produces` field specifies what file to create in the artifacts directory
|
|
65
|
-
5. **Check dependencies** — the step's `requires` field lists artifacts from previous steps that must exist
|
|
66
|
-
6. **Report status** — agents report `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED` to the Orchestrator
|
|
67
|
-
|
|
68
|
-
## Artifacts
|
|
69
|
-
|
|
70
|
-
All artifacts are stored in the run directory under .flows/{topic}/. The template variable `{{artifacts_path}}` resolves to the actual path at runtime.
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# Design Gate — Advanced Flow
|
|
2
|
-
|
|
3
|
-
Full design gate for new features, API design, and architecture changes. Runs brainstorming, decision protocol, and FORGE classification before specification begins.
|
|
4
|
-
|
|
5
|
-
## When This Step Runs
|
|
6
|
-
|
|
7
|
-
This is the **first step** of the `aikit:advanced` flow. It runs before specification.
|
|
8
|
-
|
|
9
|
-
## Instructions
|
|
10
|
-
|
|
11
|
-
### 1. Task Classification
|
|
12
|
-
|
|
13
|
-
Classify the task:
|
|
14
|
-
|
|
15
|
-
| Category | Indicators | Action |
|
|
16
|
-
|----------|-----------|--------|
|
|
17
|
-
| **Bug fix** | Error, regression, "fix" — wrong flow, should use `aikit:basic` | → Note mismatch, still run Quick Design |
|
|
18
|
-
| **New feature** | New behavior, new API, new component | → Run **Full Design** below |
|
|
19
|
-
| **Architecture change** | Restructure, migration, new pattern, cross-cutting | → Run **Full Design** with architecture focus |
|
|
20
|
-
|
|
21
|
-
### 2. FORGE Classification
|
|
22
|
-
|
|
23
|
-
Run `forge_classify({ task: "<task description>", files: [<relevant files>] })` to determine the complexity tier.
|
|
24
|
-
|
|
25
|
-
| Tier | Meaning | Design Depth |
|
|
26
|
-
|------|---------|-------------|
|
|
27
|
-
| **Floor** | Low risk, well-understood | Quick brainstorm, 1-2 decisions |
|
|
28
|
-
| **Standard** | Moderate complexity | Full brainstorm, parallel research, decision protocol |
|
|
29
|
-
| **Critical** | High risk, contract/security implications | Deep brainstorm, 4-researcher parallel review, ADR required |
|
|
30
|
-
|
|
31
|
-
### 3. Brainstorming Session
|
|
32
|
-
|
|
33
|
-
Load the `brainstorming` skill and conduct a structured brainstorming session:
|
|
34
|
-
|
|
35
|
-
1. **Intent Discovery** — What is the user trying to achieve? What problem does this solve?
|
|
36
|
-
2. **Constraint Mapping** — Technical constraints, time constraints, compatibility requirements
|
|
37
|
-
3. **Approach Exploration** — Generate 2-4 possible approaches
|
|
38
|
-
4. **Trade-off Analysis** — Compare approaches on: complexity, maintainability, performance, risk
|
|
39
|
-
|
|
40
|
-
For **Critical** tier tasks, also explore:
|
|
41
|
-
- Security implications
|
|
42
|
-
- Backward compatibility
|
|
43
|
-
- Migration path
|
|
44
|
-
- Rollback strategy
|
|
45
|
-
|
|
46
|
-
### 4. Decision Protocol (Standard & Critical tiers)
|
|
47
|
-
|
|
48
|
-
When technical decisions need resolution:
|
|
49
|
-
|
|
50
|
-
1. **Identify decisions** — List each decision point with 2+ viable options
|
|
51
|
-
2. **Parallel research** — Delegate to Researcher agents (2 for Standard, 4 for Critical):
|
|
52
|
-
- Researcher-Alpha: Deep analysis of primary approach
|
|
53
|
-
- Researcher-Beta: Trade-offs and edge cases of alternatives
|
|
54
|
-
- Researcher-Gamma: Cross-domain patterns and precedents
|
|
55
|
-
- Researcher-Delta: Feasibility and performance implications
|
|
56
|
-
3. **Synthesize** — Combine researcher findings into a recommendation per decision
|
|
57
|
-
4. **ADR** (Critical tier) — Load `adr-skill` and create an Architecture Decision Record
|
|
58
|
-
|
|
59
|
-
### 5. FORGE Ground (Standard & Critical tiers)
|
|
60
|
-
|
|
61
|
-
Run `forge_ground({ task, root_path: "." })` to:
|
|
62
|
-
- Scope the affected files and modules
|
|
63
|
-
- Identify unknowns and risks
|
|
64
|
-
- Load existing constraints and conventions
|
|
65
|
-
|
|
66
|
-
**Auto-upgrade check**: If `forge_ground` reveals contract-type unknowns or security concerns not caught by initial `forge_classify`, recommend tier upgrade.
|
|
67
|
-
|
|
68
|
-
### 6. Write `{{artifacts_path}}/design-decisions.md` to disk
|
|
69
|
-
|
|
70
|
-
**You MUST create this file on disk** using `create_file` or equivalent — do not just present content in chat.
|
|
71
|
-
|
|
72
|
-
```markdown
|
|
73
|
-
## Design Decisions
|
|
74
|
-
|
|
75
|
-
### FORGE Assessment
|
|
76
|
-
- **Tier**: {Floor | Standard | Critical}
|
|
77
|
-
- **Rationale**: {why this tier}
|
|
78
|
-
- **Auto-upgrade**: {yes/no — if yes, explain}
|
|
79
|
-
|
|
80
|
-
### Task Summary
|
|
81
|
-
- **Goal**: {what we're building}
|
|
82
|
-
- **Problem**: {what problem this solves}
|
|
83
|
-
- **Users affected**: {who is impacted}
|
|
84
|
-
|
|
85
|
-
### Approach
|
|
86
|
-
- **Chosen approach**: {description}
|
|
87
|
-
- **Alternatives considered**: {list with reasons for rejection}
|
|
88
|
-
|
|
89
|
-
### Key Decisions
|
|
90
|
-
| # | Decision | Choice | Rationale |
|
|
91
|
-
|---|----------|--------|-----------|
|
|
92
|
-
| 1 | {decision} | {choice} | {why} |
|
|
93
|
-
|
|
94
|
-
### Constraints
|
|
95
|
-
- {constraint 1}
|
|
96
|
-
- {constraint 2}
|
|
97
|
-
|
|
98
|
-
### Risks
|
|
99
|
-
| Risk | Likelihood | Impact | Mitigation |
|
|
100
|
-
|------|-----------|--------|------------|
|
|
101
|
-
| {risk} | {L/M/H} | {L/M/H} | {mitigation} |
|
|
102
|
-
|
|
103
|
-
### Open Questions
|
|
104
|
-
- {question 1}
|
|
105
|
-
- {question 2}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### 7. Present to User
|
|
109
|
-
|
|
110
|
-
Use `present({ format: "html" })` (or `format: "browser"` in CLI mode) to show:
|
|
111
|
-
- Design decisions summary
|
|
112
|
-
- FORGE tier and rationale
|
|
113
|
-
- Key trade-offs
|
|
114
|
-
- Open questions requiring user input
|
|
115
|
-
|
|
116
|
-
**🛑 MANDATORY STOP** — Wait for user approval of design decisions before proceeding.
|
|
117
|
-
|
|
118
|
-
### 8. Report to Orchestrator
|
|
119
|
-
|
|
120
|
-
After user approves:
|
|
121
|
-
- `DONE` — design decisions approved, ready for specification
|
|
122
|
-
- `DONE_WITH_CONCERNS` — approved with caveats (list them)
|
|
123
|
-
- `NEEDS_CONTEXT` — user raised questions that need more research
|
|
124
|
-
|
|
125
|
-
**Do NOT call `flow_step`** — let the Orchestrator advance the flow.
|
|
126
|
-
|
|
127
|
-
## Outputs
|
|
128
|
-
|
|
129
|
-
Write `{{artifacts_path}}/design-decisions.md` to disk. **You MUST create this file** using `create_file` or equivalent — do not just present content in chat. This file is a prerequisite for the next step.
|
|
130
|
-
|
|
131
|
-
## Produces
|
|
132
|
-
|
|
133
|
-
- `{{artifacts_path}}/design-decisions.md` — FORGE tier, approach, key decisions, constraints, risks
|
|
134
|
-
|
|
135
|
-
## Agents
|
|
136
|
-
|
|
137
|
-
- `Researcher-Alpha` — Deep analysis of primary approach
|
|
138
|
-
- `Researcher-Beta` — Trade-offs and edge cases
|
|
139
|
-
- `Researcher-Gamma` — Cross-domain patterns
|
|
140
|
-
- `Researcher-Delta` — Feasibility and performance
|
|
141
|
-
|
|
142
|
-
## Foundation Integration
|
|
143
|
-
|
|
144
|
-
Load these skills BEFORE executing this step:
|
|
145
|
-
|
|
146
|
-
| Skill | Purpose | When |
|
|
147
|
-
|-------|---------|------|
|
|
148
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
149
|
-
| `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 |
|
|
150
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
151
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
152
|
-
| `c4-architecture` | C4 model diagrams showing system structure changes | When visualizing proposed architecture |
|
|
153
|
-
| `adr-skill` | Architecture Decision Records for non-trivial decisions | Critical tier — document architecture decisions |
|
|
154
|
-
|
|
155
|
-
### Presentation Rules
|
|
156
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
157
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
158
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
159
|
-
- Artifact content and summaries → present with structured layout
|
|
160
|
-
- Only use plain text for brief confirmations and simple questions
|
|
161
|
-
|
|
162
|
-
## Completion Criteria
|
|
163
|
-
|
|
164
|
-
- [ ] `{{artifacts_path}}/design-decisions.md` written to disk (NOT just presented in chat)
|
|
165
|
-
- [ ] FORGE tier determined and documented
|
|
166
|
-
- [ ] Brainstorming session completed (for Standard+ tier)
|
|
167
|
-
- [ ] Key design decisions documented with rationale
|
|
168
|
-
- [ ] User approval received (🛑 MANDATORY STOP)
|
|
169
|
-
|
|
170
|
-
## Knowledge Capture
|
|
171
|
-
|
|
172
|
-
Before completing this step, persist important findings using `remember()`:
|
|
173
|
-
|
|
174
|
-
- **Design decisions**: Chosen approach and alternatives considered with trade-offs
|
|
175
|
-
- **Architecture patterns**: New patterns introduced or existing patterns that must be followed
|
|
176
|
-
- **Constraints discovered**: Technical limitations, compatibility requirements, or performance boundaries
|
|
177
|
-
|
|
178
|
-
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: execute
|
|
3
|
-
description: Implement all tasks from the task breakdown, dispatching agents in parallel where possible.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Execution
|
|
7
|
-
|
|
8
|
-
## Prerequisites Check
|
|
9
|
-
|
|
10
|
-
Before starting this step, verify:
|
|
11
|
-
- [ ] Task breakdown approved with valid task graph
|
|
12
|
-
- [ ] `{{artifacts_path}}/tasks.md` exists with defined batches and dependencies
|
|
13
|
-
|
|
14
|
-
If prerequisites are NOT met -> **backtrack to task step** (`flow_step({ action: 'redo' })` on previous step)
|
|
15
|
-
|
|
16
|
-
## Purpose
|
|
17
|
-
|
|
18
|
-
Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
|
|
19
|
-
|
|
20
|
-
## Inputs
|
|
21
|
-
|
|
22
|
-
- `{{artifacts_path}}/tasks.md` — the atomic task list with dependencies and agent assignments
|
|
23
|
-
|
|
24
|
-
## Process
|
|
25
|
-
|
|
26
|
-
1. **Load tasks** — Read task graph, dependencies, and parallelism map
|
|
27
|
-
2. **Execute by batch** — For each batch in the parallelism map:
|
|
28
|
-
a. Dispatch assigned agents in parallel (different files = safe parallelism)
|
|
29
|
-
b. Each agent receives: task scope, affected files, acceptance criteria, relevant code context via `compact()`/`digest()`
|
|
30
|
-
c. Wait for all agents in batch to complete
|
|
31
|
-
d. Run `check({})` + `test_run({})` after each batch
|
|
32
|
-
e. Fix any failures before proceeding to next batch
|
|
33
|
-
3. **Track progress** — Update task checkboxes as each completes
|
|
34
|
-
4. **Handle failures** — If an agent reports `BLOCKED` or `NEEDS_CONTEXT`:
|
|
35
|
-
- Max 2 retries per task with refined context
|
|
36
|
-
- If still blocked, escalate to user
|
|
37
|
-
5. **Final validation** — After all batches: `check({})` + `test_run({})` must pass
|
|
38
|
-
|
|
39
|
-
## Outputs
|
|
40
|
-
|
|
41
|
-
Write `{{artifacts_path}}/progress.md` to disk. **You MUST create this file** using `create_file` or equivalent — do not just present content in chat.
|
|
42
|
-
|
|
43
|
-
Template:
|
|
44
|
-
|
|
45
|
-
```markdown
|
|
46
|
-
# Execution Progress: <feature title>
|
|
47
|
-
|
|
48
|
-
## Task Status
|
|
49
|
-
- [x] T1.1: <description> — DONE
|
|
50
|
-
- [x] T1.2: <description> — DONE
|
|
51
|
-
- [x] T2.1: <description> — DONE
|
|
52
|
-
- [ ] T2.2: <description> — IN PROGRESS
|
|
53
|
-
...
|
|
54
|
-
|
|
55
|
-
## Changes Made
|
|
56
|
-
| File | Change | Task |
|
|
57
|
-
|------|--------|------|
|
|
58
|
-
| <file> | <description> | T1.1 |
|
|
59
|
-
| ... | ... | ... |
|
|
60
|
-
|
|
61
|
-
## Tests Added/Modified
|
|
62
|
-
<list of test files and what they cover>
|
|
63
|
-
|
|
64
|
-
## Validation
|
|
65
|
-
- check: PASS/FAIL
|
|
66
|
-
- test_run: PASS/FAIL (<N> passed, <M> failed)
|
|
67
|
-
|
|
68
|
-
## Deviations
|
|
69
|
-
<any changes from the task plan and why>
|
|
70
|
-
|
|
71
|
-
## Blocked Items
|
|
72
|
-
<items that needed user intervention, if any>
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Agents
|
|
76
|
-
|
|
77
|
-
| Agent | Role |
|
|
78
|
-
|-------|------|
|
|
79
|
-
| **Orchestrator** | Coordinates batch execution, handles failures and retries |
|
|
80
|
-
| **Implementer** | Primary code writer for backend, logic, and infrastructure tasks |
|
|
81
|
-
| **Frontend** | UI/UX implementation for React components, styling, responsive design |
|
|
82
|
-
| **Refactor** | Code cleanup, restructuring, and pattern alignment tasks |
|
|
83
|
-
|
|
84
|
-
**Parallelism rules**:
|
|
85
|
-
- Read-only agents: unlimited parallelism
|
|
86
|
-
- File-modifying agents: parallel ONLY on completely different files
|
|
87
|
-
- Max 4 concurrent file-modifying agents
|
|
88
|
-
|
|
89
|
-
## Foundation Integration
|
|
90
|
-
|
|
91
|
-
Load these skills BEFORE executing this step:
|
|
92
|
-
|
|
93
|
-
| Skill | Purpose | When |
|
|
94
|
-
|-------|---------|------|
|
|
95
|
-
| `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
|
|
96
|
-
| `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 |
|
|
97
|
-
| `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
|
|
98
|
-
| `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
|
|
99
|
-
| `session-handoff` | Context preservation for long-running execution phases | When execution spans multiple sessions or context is filling |
|
|
100
|
-
|
|
101
|
-
### Presentation Rules
|
|
102
|
-
- Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
|
|
103
|
-
- Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
|
|
104
|
-
- Tables, charts, progress tracking, code review findings → always present
|
|
105
|
-
- Artifact content and summaries → present with structured layout
|
|
106
|
-
- Only use plain text for brief confirmations and simple questions
|
|
107
|
-
|
|
108
|
-
### Orchestrator Dispatch Protocol
|
|
109
|
-
|
|
110
|
-
Follow the `multi-agents-development` skill patterns for dispatch:
|
|
111
|
-
|
|
112
|
-
1. **Independence Check** before parallelizing:
|
|
113
|
-
- Same files? → sequential
|
|
114
|
-
- Shared mutable state? → sequential
|
|
115
|
-
- Execution-order dependent? → sequential
|
|
116
|
-
- Need shared new types? → define contract first, then parallel
|
|
117
|
-
- All clear? → **parallel dispatch**
|
|
118
|
-
|
|
119
|
-
2. **Subagent Context Template** (each dispatch includes):
|
|
120
|
-
- **Scope**: exact files + boundary (do NOT touch)
|
|
121
|
-
- **Goal**: acceptance criteria, testable
|
|
122
|
-
- **Arch Context**: actual code snippets via `compact()`/`digest()`
|
|
123
|
-
- **Constraints**: patterns, conventions, anti-patterns
|
|
124
|
-
- **Self-Review**: checklist before declaring DONE
|
|
125
|
-
|
|
126
|
-
3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
|
|
127
|
-
4. **Max 2 retries** per task — then escalate to user
|
|
128
|
-
|
|
129
|
-
## Completion Criteria
|
|
130
|
-
|
|
131
|
-
- [ ] All tasks marked completed
|
|
132
|
-
- [ ] `check({})` passes
|
|
133
|
-
- [ ] `test_run({})` passes
|
|
134
|
-
- [ ] No blocked items remaining
|
|
135
|
-
- [ ] `{{artifacts_path}}/progress.md` written
|
|
136
|
-
|
|
137
|
-
## Knowledge Capture
|
|
138
|
-
|
|
139
|
-
Before completing this step, persist important findings using `remember()`:
|
|
140
|
-
|
|
141
|
-
- **Implementation decisions**: Why specific approaches were chosen over alternatives
|
|
142
|
-
- **Patterns established**: New conventions or patterns that future code should follow
|
|
143
|
-
- **Gotchas encountered**: Edge cases, workarounds, or non-obvious behaviors discovered during execution
|
|
144
|
-
|
|
145
|
-
**Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
|