@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.
Files changed (142) hide show
  1. package/package.json +9 -1
  2. package/packages/cli/dist/index.js +2 -2
  3. package/packages/cli/dist/{init-D_OGLUN1.js → init-CuRXmyD9.js} +4 -4
  4. package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
  5. package/packages/cli/dist/{templates-DJ7EC5vw.js → templates-ArdAVWoY.js} +13 -3
  6. package/packages/cli/dist/user-vbJwa7x2.js +5 -0
  7. package/packages/dashboard/dist/assets/index-C6D-PCp0.js.map +1 -1
  8. package/packages/flows/dist/index.d.ts +29 -0
  9. package/packages/flows/dist/index.js +1 -1
  10. package/packages/server/dist/index.js +1 -1
  11. package/packages/server/dist/{server-B9Mx1aK-.js → server-CVhVH5cT.js} +127 -127
  12. package/packages/tools/dist/index.d.ts +19 -1
  13. package/packages/tools/dist/index.js +39 -39
  14. package/scaffold/dist/adapters/claude-code.mjs +4 -0
  15. package/scaffold/dist/adapters/copilot.mjs +75 -0
  16. package/scaffold/dist/adapters/flows.mjs +1 -0
  17. package/scaffold/dist/adapters/skills.mjs +1 -0
  18. package/scaffold/dist/compiled/flows-data.mjs +1429 -0
  19. package/scaffold/dist/compiled/skills-data.mjs +9951 -0
  20. package/scaffold/dist/definitions/agents.mjs +9 -0
  21. package/scaffold/{definitions → dist/definitions}/bodies.mjs +6 -229
  22. package/scaffold/dist/definitions/exclusions.mjs +1 -0
  23. package/scaffold/dist/definitions/hooks.mjs +1 -0
  24. package/scaffold/dist/definitions/models.mjs +1 -0
  25. package/scaffold/dist/definitions/plugins.mjs +1 -0
  26. package/scaffold/{definitions → dist/definitions}/prompts.mjs +9 -149
  27. package/scaffold/{definitions → dist/definitions}/protocols.mjs +9 -37
  28. package/scaffold/dist/definitions/tools.mjs +1 -0
  29. package/packages/cli/dist/scaffold-CJwkHf-q.js +0 -2
  30. package/packages/cli/dist/user-BEmVW8Tp.js +0 -5
  31. package/scaffold/adapters/claude-code.mjs +0 -73
  32. package/scaffold/adapters/copilot.mjs +0 -292
  33. package/scaffold/definitions/agents.mjs +0 -266
  34. package/scaffold/definitions/hooks.mjs +0 -43
  35. package/scaffold/definitions/models.mjs +0 -84
  36. package/scaffold/definitions/plugins.mjs +0 -147
  37. package/scaffold/definitions/tools.mjs +0 -250
  38. package/scaffold/flows/_epilogue/steps/docs-sync/README.md +0 -120
  39. package/scaffold/flows/aikit-advanced/README.md +0 -70
  40. package/scaffold/flows/aikit-advanced/flow.json +0 -69
  41. package/scaffold/flows/aikit-advanced/steps/design/README.md +0 -178
  42. package/scaffold/flows/aikit-advanced/steps/execute/README.md +0 -145
  43. package/scaffold/flows/aikit-advanced/steps/plan/README.md +0 -122
  44. package/scaffold/flows/aikit-advanced/steps/spec/README.md +0 -121
  45. package/scaffold/flows/aikit-advanced/steps/task/README.md +0 -119
  46. package/scaffold/flows/aikit-advanced/steps/verify/README.md +0 -145
  47. package/scaffold/flows/aikit-basic/README.md +0 -51
  48. package/scaffold/flows/aikit-basic/flow.json +0 -45
  49. package/scaffold/flows/aikit-basic/steps/assess/README.md +0 -109
  50. package/scaffold/flows/aikit-basic/steps/design/README.md +0 -116
  51. package/scaffold/flows/aikit-basic/steps/implement/README.md +0 -131
  52. package/scaffold/flows/aikit-basic/steps/verify/README.md +0 -123
  53. package/scaffold/general/agents/Architect-Reviewer-Alpha.agent.md +0 -132
  54. package/scaffold/general/agents/Architect-Reviewer-Beta.agent.md +0 -132
  55. package/scaffold/general/agents/Code-Reviewer-Alpha.agent.md +0 -112
  56. package/scaffold/general/agents/Code-Reviewer-Beta.agent.md +0 -112
  57. package/scaffold/general/agents/Debugger.agent.md +0 -412
  58. package/scaffold/general/agents/Documenter.agent.md +0 -468
  59. package/scaffold/general/agents/Explorer.agent.md +0 -76
  60. package/scaffold/general/agents/Frontend.agent.md +0 -440
  61. package/scaffold/general/agents/Implementer.agent.md +0 -425
  62. package/scaffold/general/agents/Orchestrator.agent.md +0 -452
  63. package/scaffold/general/agents/Planner.agent.md +0 -481
  64. package/scaffold/general/agents/README.md +0 -57
  65. package/scaffold/general/agents/Refactor.agent.md +0 -435
  66. package/scaffold/general/agents/Researcher-Alpha.agent.md +0 -151
  67. package/scaffold/general/agents/Researcher-Beta.agent.md +0 -152
  68. package/scaffold/general/agents/Researcher-Delta.agent.md +0 -153
  69. package/scaffold/general/agents/Researcher-Gamma.agent.md +0 -152
  70. package/scaffold/general/agents/Security.agent.md +0 -433
  71. package/scaffold/general/agents/_shared/architect-reviewer-base.md +0 -104
  72. package/scaffold/general/agents/_shared/code-agent-base.md +0 -366
  73. package/scaffold/general/agents/_shared/code-reviewer-base.md +0 -87
  74. package/scaffold/general/agents/_shared/decision-protocol.md +0 -27
  75. package/scaffold/general/agents/_shared/forge-protocol.md +0 -90
  76. package/scaffold/general/agents/_shared/researcher-base.md +0 -114
  77. package/scaffold/general/agents/templates/adr-template.md +0 -28
  78. package/scaffold/general/agents/templates/execution-state.md +0 -26
  79. package/scaffold/general/prompts/aikit-ask.prompt.md +0 -13
  80. package/scaffold/general/prompts/aikit-debug.prompt.md +0 -15
  81. package/scaffold/general/prompts/aikit-design.prompt.md +0 -15
  82. package/scaffold/general/prompts/aikit-flow-add.prompt.md +0 -84
  83. package/scaffold/general/prompts/aikit-flow-create.prompt.md +0 -80
  84. package/scaffold/general/prompts/aikit-flow-manage.prompt.md +0 -24
  85. package/scaffold/general/prompts/aikit-implement.prompt.md +0 -17
  86. package/scaffold/general/prompts/aikit-plan.prompt.md +0 -15
  87. package/scaffold/general/prompts/aikit-review.prompt.md +0 -24
  88. package/scaffold/general/skills/adr-skill/SKILL.md +0 -335
  89. package/scaffold/general/skills/adr-skill/assets/templates/adr-madr.md +0 -89
  90. package/scaffold/general/skills/adr-skill/assets/templates/adr-readme.md +0 -20
  91. package/scaffold/general/skills/adr-skill/assets/templates/adr-simple.md +0 -46
  92. package/scaffold/general/skills/adr-skill/references/adr-conventions.md +0 -95
  93. package/scaffold/general/skills/adr-skill/references/examples.md +0 -193
  94. package/scaffold/general/skills/adr-skill/references/review-checklist.md +0 -77
  95. package/scaffold/general/skills/adr-skill/references/template-variants.md +0 -52
  96. package/scaffold/general/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
  97. package/scaffold/general/skills/adr-skill/scripts/new_adr.js +0 -391
  98. package/scaffold/general/skills/adr-skill/scripts/set_adr_status.js +0 -169
  99. package/scaffold/general/skills/aikit/SKILL.md +0 -754
  100. package/scaffold/general/skills/brainstorming/SKILL.md +0 -265
  101. package/scaffold/general/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  102. package/scaffold/general/skills/c4-architecture/SKILL.md +0 -389
  103. package/scaffold/general/skills/c4-architecture/references/advanced-patterns.md +0 -552
  104. package/scaffold/general/skills/c4-architecture/references/c4-syntax.md +0 -510
  105. package/scaffold/general/skills/c4-architecture/references/common-mistakes.md +0 -437
  106. package/scaffold/general/skills/c4-architecture/references/html-design-system.md +0 -337
  107. package/scaffold/general/skills/c4-architecture/references/html-template.html +0 -627
  108. package/scaffold/general/skills/docs/SKILL.md +0 -553
  109. package/scaffold/general/skills/docs/references/diataxis-anti-patterns.md +0 -147
  110. package/scaffold/general/skills/docs/references/diataxis-compass.md +0 -123
  111. package/scaffold/general/skills/docs/references/diataxis-quadrants.md +0 -192
  112. package/scaffold/general/skills/docs/references/diataxis-quality.md +0 -76
  113. package/scaffold/general/skills/docs/references/diataxis-templates.md +0 -120
  114. package/scaffold/general/skills/docs/references/flow-artifacts-guide.md +0 -70
  115. package/scaffold/general/skills/docs/references/project-knowledge-gotchas.md +0 -32
  116. package/scaffold/general/skills/docs/references/project-knowledge-templates.md +0 -281
  117. package/scaffold/general/skills/docs/references/project-knowledge-workflow.md +0 -80
  118. package/scaffold/general/skills/frontend-design/SKILL.md +0 -237
  119. package/scaffold/general/skills/lesson-learned/SKILL.md +0 -113
  120. package/scaffold/general/skills/lesson-learned/references/anti-patterns.md +0 -55
  121. package/scaffold/general/skills/lesson-learned/references/se-principles.md +0 -109
  122. package/scaffold/general/skills/multi-agents-development/SKILL.md +0 -448
  123. package/scaffold/general/skills/multi-agents-development/architecture-review-prompt.md +0 -81
  124. package/scaffold/general/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
  125. package/scaffold/general/skills/multi-agents-development/implementer-prompt.md +0 -93
  126. package/scaffold/general/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
  127. package/scaffold/general/skills/multi-agents-development/spec-review-prompt.md +0 -81
  128. package/scaffold/general/skills/present/SKILL.md +0 -616
  129. package/scaffold/general/skills/react/SKILL.md +0 -309
  130. package/scaffold/general/skills/repo-access/SKILL.md +0 -178
  131. package/scaffold/general/skills/repo-access/references/error-patterns.md +0 -116
  132. package/scaffold/general/skills/repo-access/references/platform-matrix.md +0 -142
  133. package/scaffold/general/skills/requirements-clarity/SKILL.md +0 -333
  134. package/scaffold/general/skills/session-handoff/SKILL.md +0 -199
  135. package/scaffold/general/skills/session-handoff/references/handoff-template.md +0 -139
  136. package/scaffold/general/skills/session-handoff/references/resume-checklist.md +0 -80
  137. package/scaffold/general/skills/session-handoff/scripts/check_staleness.js +0 -269
  138. package/scaffold/general/skills/session-handoff/scripts/create_handoff.js +0 -299
  139. package/scaffold/general/skills/session-handoff/scripts/list_handoffs.js +0 -113
  140. package/scaffold/general/skills/session-handoff/scripts/validate_handoff.js +0 -241
  141. package/scaffold/general/skills/typescript/SKILL.md +0 -405
  142. package/scaffold/generate.mjs +0 -82
@@ -1,51 +0,0 @@
1
- # aikit:basic — Quick Development Flow
2
-
3
- Quick development flow for **bug fixes, small features, and refactoring**.
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 | **Assessment** | `steps/assess/README.md` | `assessment.md` | `design-decisions.md` | Explorer, Researcher-Alpha |
11
- | 3 | **Implementation** | `steps/implement/README.md` | `progress.md` | `assessment.md` | Implementer, Frontend |
12
- | 4 | **Verification** | `steps/verify/README.md` | `verify-report.md` | `progress.md` | Code-Reviewer-Alpha, Security |
13
-
14
- ## How It Works
15
-
16
- 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.
17
-
18
- ### Step 1: Design Gate
19
- - **Auto-skips** for bug fixes and refactors (produces a minimal `design-decisions.md` noting it was skipped)
20
- - For small features: runs quick brainstorming, FORGE classification, and optional decision protocol
21
- - Read `steps/design/README.md` for the full decision tree
22
-
23
- ### Step 2: Assessment
24
- - Explore the codebase to understand scope and impact
25
- - Use `search`, `scope_map`, `file_summary`, `compact` to gather context
26
- - Identify the approach and produce `assessment.md`
27
-
28
- ### Step 3: Implementation
29
- - Write code following the assessment plan
30
- - The Orchestrator dispatches Implementer/Frontend agents with specific file scopes
31
- - Follow TDD practices where applicable
32
-
33
- ### Step 4: Verification
34
- - Code review, test execution, security check
35
- - Run `check({})` + `test_run({})` + `blast_radius({})`
36
- - Produce `verify-report.md` with findings
37
-
38
- ## Using Skills Inside Steps
39
-
40
- When the Orchestrator activates a step:
41
-
42
- 1. **Read the instruction first** — `flow_read_instruction` returns the README.md for the current step
43
- 2. **Follow step instructions** — the README.md is the primary guide for what to do
44
- 3. **Delegate to listed agents** — each step lists which agents are appropriate
45
- 4. **Produce the required artifact** — the step's `produces` field specifies what file to create in the artifacts directory
46
- 5. **Check dependencies** — the step's `requires` field lists artifacts from previous steps that must exist
47
- 6. **Report status** — agents report `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED` to the Orchestrator
48
-
49
- ## Artifacts
50
-
51
- All artifacts are stored in the run directory under `.flows/{topic}/`. The template variable `{{artifacts_path}}` resolves to the actual path at runtime.
@@ -1,45 +0,0 @@
1
- {
2
- "name": "aikit:basic",
3
- "version": "0.1.0",
4
- "description": "Quick development flow for bug fixes, small features, and refactoring",
5
- "steps": [
6
- {
7
- "id": "design",
8
- "name": "Design Gate",
9
- "instruction": "steps/design/README.md",
10
- "produces": ["design-decisions.md"],
11
- "requires": [],
12
- "agents": ["Researcher-Alpha", "Researcher-Beta", "Researcher-Gamma", "Researcher-Delta"],
13
- "description": "Evaluate task type, run brainstorming for features, FORGE classification. Auto-skips for bug fixes and refactors."
14
- },
15
- {
16
- "id": "assess",
17
- "name": "Assessment",
18
- "instruction": "steps/assess/README.md",
19
- "produces": ["assessment.md"],
20
- "requires": ["design-decisions.md"],
21
- "agents": ["Explorer", "Researcher-Alpha"],
22
- "description": "Understand scope, analyze codebase, identify approach"
23
- },
24
- {
25
- "id": "implement",
26
- "name": "Implementation",
27
- "instruction": "steps/implement/README.md",
28
- "produces": ["progress.md"],
29
- "requires": ["assessment.md"],
30
- "agents": ["Implementer", "Frontend"],
31
- "description": "Write code following the assessment plan"
32
- },
33
- {
34
- "id": "verify",
35
- "name": "Verification",
36
- "instruction": "steps/verify/README.md",
37
- "produces": ["verify-report.md"],
38
- "requires": ["progress.md"],
39
- "agents": ["Code-Reviewer-Alpha", "Security"],
40
- "description": "Review code, run tests, validate changes"
41
- }
42
- ],
43
- "artifacts_dir": ".spec",
44
- "install": []
45
- }
@@ -1,109 +0,0 @@
1
- ---
2
- name: assess
3
- description: Understand scope, analyze the codebase, and identify the implementation approach.
4
- ---
5
-
6
- # Assessment
7
-
8
- ## Purpose
9
-
10
- Analyze the task requirements and codebase to produce a clear, actionable assessment before any code changes begin.
11
-
12
- ## Inputs
13
-
14
- - User's task description or issue reference
15
- - Codebase (accessed via aikit MCP tools)
16
-
17
- ## Prerequisites Check
18
-
19
- Before executing this step, verify:
20
-
21
- - [ ] Design decisions documented (from the design step)
22
- - [ ] FORGE classification determined (tier assigned)
23
- - [ ] If brainstorming was done, session outcomes are recorded
24
-
25
- If any prerequisites are missing or incomplete:
26
- 1. Inform the Orchestrator with specifics about what's missing
27
- 2. Recommend `flow_step({ action: 'redo' })` on the **design** step
28
- 3. Do NOT proceed with partial inputs — quality degrades downstream
29
-
30
- ## Process
31
-
32
- 1. **Parse the goal** — Extract what needs to change, success criteria, and constraints
33
- 2. **Search for prior work** — `search({ query: "<task keywords>" })` to check for existing decisions or related code
34
- 3. **Map affected scope** — `scope_map({ task: "<description>" })` to identify files and modules involved
35
- 4. **Analyze structure** — `file_summary()` on each affected file; `compact()` for deeper sections
36
- 5. **Identify risks** — Note dependencies, breaking change potential, test coverage gaps
37
- 6. **Draft approach** — Outline the implementation strategy in 3–7 steps
38
-
39
- ## Outputs
40
-
41
- Write `{{artifacts_path}}/assessment.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
- # Assessment: <task title>
47
-
48
- ## Goal
49
- <what needs to happen>
50
-
51
- ## Affected Files
52
- <list of files with brief reason>
53
-
54
- ## Approach
55
- <numbered implementation steps>
56
-
57
- ## Risks
58
- <potential issues and mitigations>
59
-
60
- ## Open Questions
61
- <anything that needs clarification before proceeding>
62
- ```
63
-
64
- ## Agents
65
-
66
- | Agent | Role |
67
- |-------|------|
68
- | **Explorer** | Rapid file discovery, dependency tracing, structural context |
69
- | **Researcher-Alpha** | Deep analysis of complex logic, prior decisions, architectural implications |
70
-
71
- Use Explorer first for breadth, then Researcher-Alpha for depth on complex areas.
72
-
73
- ## Foundation Integration
74
-
75
- Load these skills BEFORE executing this step:
76
-
77
- | Skill | Purpose | When |
78
- |-------|---------|------|
79
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
80
- | `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 |
81
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
82
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
83
- | `c4-architecture` | C4 model architecture diagrams — system context, container, component, deployment views | When visualizing system structure during assessment |
84
- | `adr-skill` | Architecture Decision Records — create, review, maintain ADRs | When assessment reveals non-trivial design decisions |
85
-
86
- ### Presentation Rules
87
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
88
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
89
- - Tables, charts, progress tracking, code review findings → always present
90
- - Artifact content and summaries → present with structured layout
91
- - Only use plain text for brief confirmations and simple questions
92
-
93
- ## Completion Criteria
94
-
95
- - [ ] All affected files identified
96
- - [ ] Implementation approach is concrete (not vague)
97
- - [ ] Risks documented with mitigations
98
- - [ ] No unresolved open questions that block implementation
99
- - [ ] `{{artifacts_path}}/assessment.md` written
100
-
101
- ## Knowledge Capture
102
-
103
- Before completing this step, persist important findings using `remember()`:
104
-
105
- - **Codebase discoveries**: File locations, architecture patterns, or dependency relationships found during assessment
106
- - **Problem diagnosis**: Root cause analysis, contributing factors, and affected components
107
- - **Scope decisions**: What's in scope, what's explicitly excluded, and why
108
-
109
- **Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
@@ -1,116 +0,0 @@
1
- # Design Gate — Basic Flow
2
-
3
- Lightweight design gate for bug fixes, small features, and refactoring. Evaluates the task type and determines whether design work is needed before proceeding.
4
-
5
- ## When This Step Runs
6
-
7
- This is the **first step** of the `aikit:basic` flow. It runs before assessment.
8
-
9
- ## Instructions
10
-
11
- ### 1. Task Classification
12
-
13
- Classify the task into one of these categories:
14
-
15
- | Category | Indicators | Action |
16
- |----------|-----------|--------|
17
- | **Bug fix** | Error reports, stack traces, regression, "fix", "broken" | → **Auto-skip** to next step |
18
- | **Refactor** | Code cleanup, rename, restructure, no behavior change | → **Auto-skip** to next step |
19
- | **Small feature** | New behavior, new endpoint, new component, UI change | → Run **Quick Design** below |
20
-
21
- **If the task is a bug fix or refactor**, write `{{artifacts_path}}/design-decisions.md` to disk:
22
- ```markdown
23
- ## Design Decisions
24
- - **Task type**: Bug fix / Refactor
25
- - **Design gate**: Auto-skipped — no design work needed
26
- - **Proceed to**: Assessment
27
- ```
28
- **You MUST create this file on disk** at the exact `{{artifacts_path}}/design-decisions.md` path — do not just present the content in chat.
29
- Then report `DONE` to the Orchestrator so the flow advances.
30
-
31
- ### 2. Quick Design (Small Features Only)
32
-
33
- For small features that need minimal design:
34
-
35
- 1. **FORGE Classify** — Run `forge_classify({ task: "<task description>", files: [<relevant files>] })` to determine complexity tier
36
- 2. **Brainstorming** (if tier ≥ Standard) — Load the `brainstorming` skill and run a focused brainstorming session:
37
- - What is the user trying to achieve?
38
- - What are the constraints?
39
- - What is the simplest approach?
40
- 3. **Decision Protocol** (if technical decisions exist) — Delegate to 2-4 Researcher agents in parallel:
41
- - Each researcher evaluates a different approach
42
- - Synthesize findings into a recommendation
43
- 4. **Write `{{artifacts_path}}/design-decisions.md`** to disk:
44
-
45
- ```markdown
46
- ## Design Decisions
47
-
48
- ### FORGE Assessment
49
- - **Tier**: {Floor | Standard | Critical}
50
- - **Rationale**: {why this tier}
51
-
52
- ### Task Summary
53
- - **Goal**: {what we're building}
54
- - **Approach**: {chosen approach}
55
- - **Key decisions**: {list}
56
-
57
- ### Constraints
58
- - {constraint 1}
59
- - {constraint 2}
60
- ```
61
-
62
- ### 3. Report to Orchestrator
63
-
64
- When complete, report status:
65
- - `DONE` — design decisions captured, ready for assessment
66
- - `DONE_WITH_CONCERNS` — design captured but open questions remain (list them)
67
-
68
- **Do NOT call `flow_step`** — let the Orchestrator advance the flow.
69
-
70
- ## Outputs
71
-
72
- 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.
73
-
74
- ## Produces
75
-
76
- - `{{artifacts_path}}/design-decisions.md` — Task classification, FORGE tier, key design decisions
77
-
78
- ## Agents
79
-
80
- - `Researcher-Alpha`, `Researcher-Beta`, `Researcher-Gamma`, `Researcher-Delta` — for parallel research during decision protocol
81
-
82
- ## Foundation Integration
83
-
84
- Load these skills BEFORE executing this step:
85
-
86
- | Skill | Purpose | When |
87
- |-------|---------|------|
88
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
89
- | `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 |
90
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
91
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
92
- | `c4-architecture` | C4 model architecture diagrams — system context, container, component, deployment views | When visualizing system structure during design |
93
- | `adr-skill` | Architecture Decision Records — create, review, maintain ADRs | When making non-trivial design or technology decisions |
94
-
95
- ### Presentation Rules
96
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
97
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
98
- - Tables, charts, progress tracking, code review findings → always present
99
- - Artifact content and summaries → present with structured layout
100
- - Only use plain text for brief confirmations and simple questions
101
-
102
- ## Completion Criteria
103
-
104
- - [ ] `{{artifacts_path}}/design-decisions.md` written to disk (NOT just presented in chat)
105
- - [ ] FORGE tier determined (for small features)
106
- - [ ] Key design decisions documented
107
-
108
- ## Knowledge Capture
109
-
110
- Before completing this step, persist important findings using `remember()`:
111
-
112
- - **Design decisions**: Chosen approach and alternatives considered with trade-offs
113
- - **Architecture patterns**: New patterns introduced or existing patterns that must be followed
114
- - **Constraints discovered**: Technical limitations, compatibility requirements, or performance boundaries
115
-
116
- **Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
@@ -1,131 +0,0 @@
1
- ---
2
- name: implement
3
- description: Write code following the assessment plan, using TDD practices where applicable.
4
- ---
5
-
6
- # Implementation
7
-
8
- ## Purpose
9
-
10
- Execute the implementation plan from the assessment, writing production code and tests.
11
-
12
- ## Inputs
13
-
14
- - `{{artifacts_path}}/assessment.md` — the approach, affected files, and risks
15
-
16
- ## Prerequisites Check
17
-
18
- Before executing this step, verify:
19
-
20
- - [ ] Assessment complete and scope approved (from the assess step)
21
- - [ ] Files-to-modify list is clear and bounded
22
- - [ ] `check({})` baseline captured (know what currently passes)
23
-
24
- If any prerequisites are missing or incomplete:
25
- 1. Inform the Orchestrator with specifics about what's missing
26
- 2. Recommend `flow_step({ action: 'redo' })` on the **assess** step
27
- 3. Do NOT proceed with partial inputs — quality degrades downstream
28
-
29
- ## Process
30
-
31
- 1. **Read assessment** — Load `{{artifacts_path}}/assessment.md` and internalize the approach
32
- 2. **Set up tests first** — Where applicable, write failing tests that define success
33
- 3. **Implement changes** — Follow the approach steps sequentially
34
- - One logical change per commit-worthy chunk
35
- - Stay within the assessed file scope — do not expand without re-assessment
36
- 4. **Run validation** — `check({})` for type/lint errors, `test_run({})` for test results
37
- 5. **Fix issues** — Iterate until `check` and `test_run` pass (max 3 rounds)
38
- 6. **Document progress** — Write progress artifact with what was done and any deviations
39
-
40
- ## Outputs
41
-
42
- Write `{{artifacts_path}}/progress.md` to disk. **You MUST create this file** using `create_file` or equivalent — do not just present content in chat.
43
-
44
- Template:
45
-
46
- ```markdown
47
- # Implementation Progress: <task title>
48
-
49
- ## Changes Made
50
- <list of files changed with brief description>
51
-
52
- ## Tests
53
- <tests added or modified>
54
-
55
- ## Deviations from Assessment
56
- <any changes to the original plan and why>
57
-
58
- ## Validation
59
- - check: PASS/FAIL
60
- - test_run: PASS/FAIL (<N> passed, <M> failed)
61
-
62
- ## Notes
63
- <anything the reviewer should know>
64
- ```
65
-
66
- ## Agents
67
-
68
- | Agent | Role |
69
- |-------|------|
70
- | **Implementer** | Primary code writer — follows TDD, writes production code and tests |
71
- | **Frontend** | UI/UX specialist — use when changes involve React components, styling, or responsive design |
72
-
73
- Dispatch Implementer for backend/logic changes, Frontend for UI changes. Both can run in parallel if working on different files.
74
-
75
- ## Foundation Integration
76
-
77
- Load these skills BEFORE executing this step:
78
-
79
- | Skill | Purpose | When |
80
- |-------|---------|------|
81
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
82
- | `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 |
83
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
84
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
85
- | `session-handoff` | Context preservation for session transfers | When implementation is long-running and context may fill up |
86
-
87
- ### Presentation Rules
88
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
89
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
90
- - Tables, charts, progress tracking, code review findings → always present
91
- - Artifact content and summaries → present with structured layout
92
- - Only use plain text for brief confirmations and simple questions
93
-
94
- ### Orchestrator Dispatch Protocol
95
-
96
- Follow the `multi-agents-development` skill patterns for dispatch:
97
-
98
- 1. **Independence Check** before parallelizing:
99
- - Same files? → sequential
100
- - Shared mutable state? → sequential
101
- - Execution-order dependent? → sequential
102
- - Need shared new types? → define contract first, then parallel
103
- - All clear? → **parallel dispatch**
104
-
105
- 2. **Subagent Context Template** (each dispatch includes):
106
- - **Scope**: exact files + boundary (do NOT touch)
107
- - **Goal**: acceptance criteria, testable
108
- - **Arch Context**: actual code snippets via `compact()`/`digest()`
109
- - **Constraints**: patterns, conventions, anti-patterns
110
- - **Self-Review**: checklist before declaring DONE
111
-
112
- 3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
113
- 4. **Max 2 retries** per task — then escalate to user
114
-
115
- ## Completion Criteria
116
-
117
- - [ ] All assessment steps implemented
118
- - [ ] `check({})` passes (no type/lint errors)
119
- - [ ] `test_run({})` passes (no test failures)
120
- - [ ] No files modified outside assessed scope
121
- - [ ] `{{artifacts_path}}/progress.md` written
122
-
123
- ## Knowledge Capture
124
-
125
- Before completing this step, persist important findings using `remember()`:
126
-
127
- - **Implementation decisions**: Why specific approaches were chosen over alternatives
128
- - **Patterns established**: New conventions or patterns that future code should follow
129
- - **Gotchas encountered**: Edge cases, workarounds, or non-obvious behaviors discovered during implementation
130
-
131
- **Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.
@@ -1,123 +0,0 @@
1
- ---
2
- name: verify
3
- description: Review code changes, run tests, validate correctness and quality.
4
- ---
5
-
6
- # Verification
7
-
8
- ## Purpose
9
-
10
- Validate that the implementation meets the original requirements, passes all quality gates, and introduces no regressions.
11
-
12
- ## Inputs
13
-
14
- - `{{artifacts_path}}/assessment.md` — original requirements and approach
15
- - `{{artifacts_path}}/progress.md` — what was implemented and any deviations
16
-
17
- ## Prerequisites Check
18
-
19
- Before executing this step, verify:
20
-
21
- - [ ] Implementation complete (from the implement step)
22
- - [ ] `check({})` + `test_run({})` pass at baseline
23
- - [ ] Changed files list is available for blast radius analysis
24
-
25
- If any prerequisites are missing or incomplete:
26
- 1. Inform the Orchestrator with specifics about what's missing
27
- 2. Recommend `flow_step({ action: 'redo' })` on the **implement** step
28
- 3. Do NOT proceed with partial inputs — quality degrades downstream
29
-
30
- ## Process
31
-
32
- 1. **Load context** — Read assessment and progress artifacts
33
- 2. **Code review** — Review all changed files for:
34
- - Correctness against requirements
35
- - Code quality and adherence to project conventions
36
- - Error handling and edge cases
37
- - No unnecessary changes (scope creep)
38
- 3. **Run quality gates** — `check({})` + `test_run({})` must pass
39
- 4. **Blast radius** — `blast_radius({ changed_files: [...] })` to assess impact
40
- 5. **Security scan** — Check for OWASP Top 10 issues in changed code
41
- 6. **Write report** — Document findings with PASS/FAIL verdict
42
-
43
- ## Outputs
44
-
45
- Write `{{artifacts_path}}/verify-report.md` to disk. **You MUST create this file** using `create_file` or equivalent — do not just present content in chat.
46
-
47
- Template:
48
-
49
- ```markdown
50
- # Verification Report: <task title>
51
-
52
- ## Verdict: PASS | FAIL
53
-
54
- ## Quality Gates
55
- - check: PASS/FAIL
56
- - test_run: PASS/FAIL (<N> passed, <M> failed)
57
- - blast_radius: <summary of impact>
58
-
59
- ## Code Review Findings
60
- <issues found, if any, with severity>
61
-
62
- ## Security
63
- <any security concerns>
64
-
65
- ## Recommendation
66
- <APPROVE for commit / REQUEST CHANGES with specific items>
67
- ```
68
-
69
- ## Agents
70
-
71
- | Agent | Role |
72
- |-------|------|
73
- | **Code-Reviewer-Alpha** | Primary code reviewer — correctness, quality, conventions |
74
- | **Security** | Security specialist — vulnerability analysis, OWASP compliance |
75
-
76
- Run both in parallel — they review different aspects of the same changes.
77
-
78
- ## Foundation Integration
79
-
80
- Load these skills BEFORE executing this step:
81
-
82
- | Skill | Purpose | When |
83
- |-------|---------|------|
84
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
85
- | `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 |
86
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
87
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
88
- | `lesson-learned` | Extract engineering lessons from completed work via git history | After verification completes — capture principles from what was built |
89
- | `session-handoff` | Context preservation for session transfers | When verification is the final step and session context should be saved |
90
-
91
- ### Presentation Rules
92
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
93
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
94
- - Tables, charts, progress tracking, code review findings → always present
95
- - Artifact content and summaries → present with structured layout
96
- - Only use plain text for brief confirmations and simple questions
97
-
98
- ### FORGE Quality Gate
99
-
100
- After all reviews complete:
101
- 1. `evidence_map({ action: "gate", task_id: "<slug>" })` → returns YIELD/HOLD/HARD_BLOCK
102
- 2. YIELD → approved, proceed to commit
103
- 3. HOLD → minor issues, fix then re-gate (max 3 rounds)
104
- 4. HARD_BLOCK → critical issues, escalate to user
105
-
106
- ## Completion Criteria
107
-
108
- - [ ] `check({})` passes
109
- - [ ] `test_run({})` passes
110
- - [ ] Code review complete with no blocking issues
111
- - [ ] Security review complete
112
- - [ ] Blast radius assessed
113
- - [ ] `{{artifacts_path}}/verify-report.md` written with clear PASS/FAIL verdict
114
-
115
- ## Knowledge Capture
116
-
117
- Before completing this step, persist important findings using `remember()`:
118
-
119
- - **Test coverage gaps**: Areas that couldn't be fully tested and why
120
- - **Quality findings**: Issues found during verification and their resolutions
121
- - **Session checkpoint**: Summarize what was accomplished, decisions made, and any remaining work
122
-
123
- **Every step produces knowledge worth preserving.** If you discovered something that would help a future session, call `remember()` now.