@vpxa/aikit 0.1.1 → 0.1.3

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 (150) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
  3. package/packages/aikit-client/dist/types.d.ts +3 -3
  4. package/packages/cli/dist/aikit-init.d.ts +1 -1
  5. package/packages/cli/dist/aikit-init.js +1 -1
  6. package/packages/cli/dist/commands/context-cmds.js +1 -1
  7. package/packages/cli/dist/commands/environment.js +1 -1
  8. package/packages/cli/dist/commands/init/config.d.ts +1 -1
  9. package/packages/cli/dist/commands/init/config.js +2 -2
  10. package/packages/cli/dist/commands/init/constants.d.ts +3 -3
  11. package/packages/cli/dist/commands/init/index.d.ts +4 -4
  12. package/packages/cli/dist/commands/init/index.js +4 -4
  13. package/packages/cli/dist/commands/init/templates.js +12 -12
  14. package/packages/cli/dist/commands/init/user.d.ts +3 -3
  15. package/packages/cli/dist/commands/init/user.js +2 -2
  16. package/packages/cli/dist/commands/search.js +1 -1
  17. package/packages/cli/dist/commands/system.js +4 -4
  18. package/packages/cli/dist/commands/upgrade.js +1 -1
  19. package/packages/cli/dist/commands/workspace.js +1 -1
  20. package/packages/cli/dist/helpers.js +1 -1
  21. package/packages/cli/dist/index.d.ts +1 -1
  22. package/packages/core/dist/constants.d.ts +3 -3
  23. package/packages/core/dist/global-registry.d.ts +7 -1
  24. package/packages/core/dist/global-registry.js +1 -1
  25. package/packages/core/dist/index.d.ts +2 -2
  26. package/packages/core/dist/index.js +1 -1
  27. package/packages/core/dist/types.d.ts +6 -2
  28. package/packages/dashboard/dist/assets/{index-BjA4YODs.js → index-CO2S9BKY.js} +2 -2
  29. package/packages/dashboard/dist/assets/index-CO2S9BKY.js.map +1 -0
  30. package/packages/dashboard/dist/index.html +2 -2
  31. package/packages/enterprise-bridge/dist/er-client.d.ts +1 -1
  32. package/packages/flows/dist/git.js +1 -1
  33. package/packages/flows/dist/registry.d.ts +3 -3
  34. package/packages/flows/dist/registry.js +1 -1
  35. package/packages/flows/dist/symlinks.js +1 -1
  36. package/packages/indexer/dist/filesystem-crawler.js +1 -1
  37. package/packages/indexer/dist/hash-cache.js +1 -1
  38. package/packages/indexer/dist/incremental-indexer.js +1 -1
  39. package/packages/kb-client/dist/direct-client.d.ts +37 -0
  40. package/packages/kb-client/dist/direct-client.js +1 -0
  41. package/packages/kb-client/dist/index.d.ts +5 -0
  42. package/packages/kb-client/dist/index.js +1 -0
  43. package/packages/kb-client/dist/mcp-client.d.ts +19 -0
  44. package/packages/kb-client/dist/mcp-client.js +4 -0
  45. package/packages/kb-client/dist/parsers.d.ts +35 -0
  46. package/packages/kb-client/dist/parsers.js +2 -0
  47. package/packages/kb-client/dist/types.d.ts +62 -0
  48. package/packages/kb-client/dist/types.js +1 -0
  49. package/packages/present/dist/index.html +28 -28
  50. package/packages/server/dist/background-task.d.ts +47 -0
  51. package/packages/server/dist/background-task.js +1 -0
  52. package/packages/server/dist/config.js +1 -1
  53. package/packages/server/dist/idle-timer.d.ts +33 -0
  54. package/packages/server/dist/idle-timer.js +1 -0
  55. package/packages/server/dist/index.js +1 -1
  56. package/packages/server/dist/memory-monitor.d.ts +37 -0
  57. package/packages/server/dist/memory-monitor.js +1 -0
  58. package/packages/server/dist/prompts.js +5 -5
  59. package/packages/server/dist/resource-links.d.ts +1 -1
  60. package/packages/server/dist/resource-links.js +1 -1
  61. package/packages/server/dist/resources/curated-resources.d.ts +2 -2
  62. package/packages/server/dist/resources/curated-resources.js +2 -2
  63. package/packages/server/dist/resources/resource-notifier.d.ts +1 -1
  64. package/packages/server/dist/resources/resource-notifier.js +1 -1
  65. package/packages/server/dist/resources/resources.js +1 -1
  66. package/packages/server/dist/server.d.ts +4 -2
  67. package/packages/server/dist/server.js +3 -3
  68. package/packages/server/dist/tool-metadata.d.ts +1 -1
  69. package/packages/server/dist/tool-metadata.js +1 -1
  70. package/packages/server/dist/tool-timeout.d.ts +27 -0
  71. package/packages/server/dist/tool-timeout.js +1 -0
  72. package/packages/server/dist/tools/bridge.tools.d.ts +1 -1
  73. package/packages/server/dist/tools/bridge.tools.js +3 -3
  74. package/packages/server/dist/tools/config.tool.d.ts +8 -0
  75. package/packages/server/dist/tools/config.tool.js +12 -0
  76. package/packages/server/dist/tools/evolution.tools.js +1 -1
  77. package/packages/server/dist/tools/flow.tools.js +1 -1
  78. package/packages/server/dist/tools/infra.tools.js +1 -1
  79. package/packages/server/dist/tools/onboard.tool.js +1 -1
  80. package/packages/server/dist/tools/present/browser.js +9 -9
  81. package/packages/server/dist/tools/present/tool.js +4 -4
  82. package/packages/server/dist/tools/reindex.tool.js +1 -1
  83. package/packages/server/dist/tools/search.tool.js +4 -4
  84. package/packages/server/dist/tools/status.tool.d.ts +1 -1
  85. package/packages/server/dist/tools/status.tool.js +3 -3
  86. package/packages/store/dist/sqlite-graph-store.d.ts +3 -0
  87. package/packages/store/dist/sqlite-graph-store.js +3 -3
  88. package/packages/tools/dist/checkpoint.js +1 -1
  89. package/packages/tools/dist/config-extractor.js +1 -1
  90. package/packages/tools/dist/evidence-map.js +1 -1
  91. package/packages/tools/dist/find.d.ts +1 -1
  92. package/packages/tools/dist/forge-ground.d.ts +1 -1
  93. package/packages/tools/dist/guide.js +1 -1
  94. package/packages/tools/dist/lane.js +1 -1
  95. package/packages/tools/dist/onboard.d.ts +2 -2
  96. package/packages/tools/dist/onboard.js +2 -2
  97. package/packages/tools/dist/queue.js +1 -1
  98. package/packages/tools/dist/replay.js +1 -1
  99. package/packages/tools/dist/response-envelope.d.ts +1 -1
  100. package/packages/tools/dist/restore-points.js +1 -1
  101. package/packages/tools/dist/schema-validate.js +1 -1
  102. package/packages/tools/dist/snippet.js +1 -1
  103. package/packages/tools/dist/stash.js +1 -1
  104. package/packages/tools/dist/synthesis-engine.js +2 -2
  105. package/packages/tools/dist/workset.js +1 -1
  106. package/packages/tui/dist/{App-DU2KEylW.js → App-DpjN3iS-.js} +1 -1
  107. package/packages/tui/dist/App.d.ts +1 -1
  108. package/packages/tui/dist/App.js +1 -1
  109. package/packages/tui/dist/LogPanel-Db-SeZhR.js +3 -0
  110. package/packages/tui/dist/hooks/useKBClient.d.ts +1 -1
  111. package/packages/tui/dist/{index-BXafekwr.d.ts → index-MXJeXmCf.d.ts} +3 -3
  112. package/packages/tui/dist/index.d.ts +1 -1
  113. package/packages/tui/dist/index.js +1 -1
  114. package/packages/tui/dist/panels/LogPanel.js +1 -1
  115. package/scaffold/README.md +192 -192
  116. package/scaffold/definitions/bodies.mjs +16 -16
  117. package/scaffold/definitions/plugins.mjs +1 -1
  118. package/scaffold/definitions/prompts.mjs +6 -6
  119. package/scaffold/definitions/protocols.mjs +12 -12
  120. package/scaffold/definitions/tools.mjs +1 -1
  121. package/scaffold/flows/aikit-advanced/skills/execute/SKILL.md +124 -124
  122. package/scaffold/flows/aikit-advanced/skills/plan/SKILL.md +100 -100
  123. package/scaffold/flows/aikit-advanced/skills/spec/SKILL.md +100 -100
  124. package/scaffold/flows/aikit-advanced/skills/task/SKILL.md +99 -99
  125. package/scaffold/flows/aikit-advanced/skills/verify/SKILL.md +122 -122
  126. package/scaffold/flows/aikit-basic/skills/assess/SKILL.md +82 -82
  127. package/scaffold/flows/aikit-basic/skills/implement/SKILL.md +105 -105
  128. package/scaffold/flows/aikit-basic/skills/verify/SKILL.md +96 -96
  129. package/scaffold/general/agents/Debugger.agent.md +2 -2
  130. package/scaffold/general/agents/Documenter.agent.md +2 -2
  131. package/scaffold/general/agents/Explorer.agent.md +2 -2
  132. package/scaffold/general/agents/Frontend.agent.md +1 -1
  133. package/scaffold/general/agents/Implementer.agent.md +2 -2
  134. package/scaffold/general/agents/Orchestrator.agent.md +1 -1
  135. package/scaffold/general/agents/Planner.agent.md +2 -2
  136. package/scaffold/general/agents/Refactor.agent.md +2 -2
  137. package/scaffold/general/agents/Security.agent.md +2 -2
  138. package/scaffold/general/agents/_shared/architect-reviewer-base.md +1 -1
  139. package/scaffold/general/agents/_shared/code-agent-base.md +6 -6
  140. package/scaffold/general/agents/_shared/code-reviewer-base.md +1 -1
  141. package/scaffold/general/agents/_shared/forge-protocol.md +1 -1
  142. package/scaffold/general/agents/_shared/researcher-base.md +3 -3
  143. package/scaffold/general/prompts/ask.prompt.md +4 -4
  144. package/scaffold/general/prompts/debug.prompt.md +1 -1
  145. package/scaffold/general/prompts/plan.prompt.md +1 -1
  146. package/scaffold/general/skills/aikit/SKILL.md +5 -5
  147. package/scaffold/general/skills/multi-agents-development/SKILL.md +435 -435
  148. package/scaffold/general/skills/present/SKILL.md +424 -424
  149. package/packages/dashboard/dist/assets/index-BjA4YODs.js.map +0 -1
  150. package/packages/tui/dist/LogPanel-Bo8a8QXB.js +0 -3
@@ -1,100 +1,100 @@
1
- ---
2
- name: plan
3
- description: Analyze the codebase, design the architecture, and create a detailed implementation plan.
4
- ---
5
-
6
- # Planning
7
-
8
- ## Purpose
9
-
10
- Translate the specification into a concrete, phased implementation plan with architecture decisions, file-level scope, and dependency ordering.
11
-
12
- ## Inputs
13
-
14
- - `.spec/<slug>/spec.md` — the validated specification
15
-
16
- ## Process
17
-
18
- 1. **Load spec** — Read and internalize all requirements and acceptance criteria
19
- 2. **Codebase analysis** — `scope_map({ task: "<feature>" })` to identify affected subsystems
20
- 3. **Deep dive** — `file_summary()` + `compact()` on each affected module
21
- 4. **Architecture design** — Decide on:
22
- - Where new code lives (new files vs extensions)
23
- - API surface changes
24
- - Data model changes
25
- - Integration patterns
26
- 5. **ADR for non-trivial decisions** — Use `adr-skill` for decisions that affect future development
27
- 6. **Phase decomposition** — Break work into 3–10 ordered phases, each independently testable
28
- 7. **Dependency graph** — Map which phases depend on others and which can parallelize
29
- 8. **Risk assessment** — Identify implementation risks per phase
30
-
31
- ## Outputs
32
-
33
- Produce `.spec/<slug>/plan.md` with:
34
-
35
- ```markdown
36
- # Implementation Plan: <feature title>
37
-
38
- ## Architecture Overview
39
- <high-level design with rationale>
40
-
41
- ## Affected Modules
42
- | Module | Changes | Risk |
43
- |--------|---------|------|
44
- | <module> | <what changes> | low/medium/high |
45
-
46
- ## Phases
47
- ### Phase 1: <name>
48
- - **Files**: <list>
49
- - **Changes**: <description>
50
- - **Tests**: <what to test>
51
- - **Depends on**: none
52
- - **Parallelizable with**: Phase 2
53
-
54
- ### Phase 2: <name>
55
- ...
56
-
57
- ## Architecture Decisions
58
- - ADR-<N>: <title> — <chosen option and rationale>
59
-
60
- ## Risks
61
- | Risk | Likelihood | Impact | Mitigation |
62
- |------|-----------|--------|------------|
63
- | <risk> | low/medium/high | <impact> | <mitigation> |
64
- ```
65
-
66
- ## Agents
67
-
68
- | Agent | Role |
69
- |-------|------|
70
- | **Planner** | Creates comprehensive TDD implementation plans with phase decomposition |
71
- | **Explorer** | Rapid codebase exploration for discovery of affected files and dependencies |
72
-
73
- Use Explorer for initial breadth (file discovery, dependency tracing), then Planner for depth (phase design, ordering).
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
-
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 spec requirements have corresponding plan phases
96
- - [ ] Each phase has explicit file scope and test strategy
97
- - [ ] Architecture decisions documented with rationale
98
- - [ ] Dependency graph has no circular dependencies
99
- - [ ] Risks identified with mitigations
100
- - [ ] `.spec/<slug>/plan.md` written
1
+ ---
2
+ name: plan
3
+ description: Analyze the codebase, design the architecture, and create a detailed implementation plan.
4
+ ---
5
+
6
+ # Planning
7
+
8
+ ## Purpose
9
+
10
+ Translate the specification into a concrete, phased implementation plan with architecture decisions, file-level scope, and dependency ordering.
11
+
12
+ ## Inputs
13
+
14
+ - `.spec/<slug>/spec.md` — the validated specification
15
+
16
+ ## Process
17
+
18
+ 1. **Load spec** — Read and internalize all requirements and acceptance criteria
19
+ 2. **Codebase analysis** — `scope_map({ task: "<feature>" })` to identify affected subsystems
20
+ 3. **Deep dive** — `file_summary()` + `compact()` on each affected module
21
+ 4. **Architecture design** — Decide on:
22
+ - Where new code lives (new files vs extensions)
23
+ - API surface changes
24
+ - Data model changes
25
+ - Integration patterns
26
+ 5. **ADR for non-trivial decisions** — Use `adr-skill` for decisions that affect future development
27
+ 6. **Phase decomposition** — Break work into 3–10 ordered phases, each independently testable
28
+ 7. **Dependency graph** — Map which phases depend on others and which can parallelize
29
+ 8. **Risk assessment** — Identify implementation risks per phase
30
+
31
+ ## Outputs
32
+
33
+ Produce `.spec/<slug>/plan.md` with:
34
+
35
+ ```markdown
36
+ # Implementation Plan: <feature title>
37
+
38
+ ## Architecture Overview
39
+ <high-level design with rationale>
40
+
41
+ ## Affected Modules
42
+ | Module | Changes | Risk |
43
+ |--------|---------|------|
44
+ | <module> | <what changes> | low/medium/high |
45
+
46
+ ## Phases
47
+ ### Phase 1: <name>
48
+ - **Files**: <list>
49
+ - **Changes**: <description>
50
+ - **Tests**: <what to test>
51
+ - **Depends on**: none
52
+ - **Parallelizable with**: Phase 2
53
+
54
+ ### Phase 2: <name>
55
+ ...
56
+
57
+ ## Architecture Decisions
58
+ - ADR-<N>: <title> — <chosen option and rationale>
59
+
60
+ ## Risks
61
+ | Risk | Likelihood | Impact | Mitigation |
62
+ |------|-----------|--------|------------|
63
+ | <risk> | low/medium/high | <impact> | <mitigation> |
64
+ ```
65
+
66
+ ## Agents
67
+
68
+ | Agent | Role |
69
+ |-------|------|
70
+ | **Planner** | Creates comprehensive TDD implementation plans with phase decomposition |
71
+ | **Explorer** | Rapid codebase exploration for discovery of affected files and dependencies |
72
+
73
+ Use Explorer for initial breadth (file discovery, dependency tracing), then Planner for depth (phase design, ordering).
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
+
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 spec requirements have corresponding plan phases
96
+ - [ ] Each phase has explicit file scope and test strategy
97
+ - [ ] Architecture decisions documented with rationale
98
+ - [ ] Dependency graph has no circular dependencies
99
+ - [ ] Risks identified with mitigations
100
+ - [ ] `.spec/<slug>/plan.md` written
@@ -1,100 +1,100 @@
1
- ---
2
- name: spec
3
- description: Elicit requirements, clarify scope, and define acceptance criteria through structured dialogue.
4
- ---
5
-
6
- # Specification
7
-
8
- ## Purpose
9
-
10
- Transform a vague or broad feature request into a precise, testable specification through requirements elicitation and stakeholder dialogue.
11
-
12
- ## Inputs
13
-
14
- - User's feature request, issue, or idea
15
- - Codebase context (accessed via aikit MCP tools)
16
-
17
- ## Process
18
-
19
- 1. **Understand intent** — Parse what the user wants and why
20
- 2. **Search for context** — `search()` for related prior decisions, existing patterns, and similar features
21
- 3. **Elicit requirements** — Ask structured questions to clarify:
22
- - **Functional**: What must the system do?
23
- - **Non-functional**: Performance, security, accessibility constraints
24
- - **Scope boundaries**: What is explicitly out of scope?
25
- - **Acceptance criteria**: How do we know it's done?
26
- 4. **Score clarity** — Use the `requirements-clarity` skill to score 0–100. Iterate questions until ≥ 90.
27
- 5. **Draft specification** — Write formal spec with all requirements resolved
28
-
29
- ## Outputs
30
-
31
- Produce `.spec/<slug>/spec.md` with:
32
-
33
- ```markdown
34
- # Specification: <feature title>
35
-
36
- ## Summary
37
- <1-2 sentence description>
38
-
39
- ## Motivation
40
- <why this feature is needed>
41
-
42
- ## Functional Requirements
43
- 1. <requirement with acceptance criterion>
44
- 2. ...
45
-
46
- ## Non-Functional Requirements
47
- - Performance: <constraints>
48
- - Security: <constraints>
49
- - Accessibility: <constraints>
50
-
51
- ## Scope
52
- ### In Scope
53
- - <item>
54
-
55
- ### Out of Scope
56
- - <item>
57
-
58
- ## Acceptance Criteria
59
- - [ ] <testable criterion>
60
- - [ ] ...
61
-
62
- ## Open Questions
63
- <none — all resolved during elicitation>
64
-
65
- ## Clarity Score: <N>/100
66
- ```
67
-
68
- ## Agents
69
-
70
- | Agent | Role |
71
- |-------|------|
72
- | **Researcher-Alpha** | Deep analysis of existing codebase patterns, prior decisions, and technical constraints |
73
-
74
- Use the `brainstorming` skill for creative/design exploration before formalizing requirements. Use `requirements-clarity` skill to score and iterate until the spec is unambiguous.
75
-
76
- ## Foundation Integration
77
-
78
- Load these skills BEFORE executing this step:
79
-
80
- | Skill | Purpose | When |
81
- |-------|---------|------|
82
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
83
- | `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 |
84
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
85
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
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
- ## Completion Criteria
95
-
96
- - [ ] All functional requirements have acceptance criteria
97
- - [ ] Scope boundaries are explicit
98
- - [ ] Requirements clarity score ≥ 90
99
- - [ ] No open questions remain
100
- - [ ] `.spec/<slug>/spec.md` written
1
+ ---
2
+ name: spec
3
+ description: Elicit requirements, clarify scope, and define acceptance criteria through structured dialogue.
4
+ ---
5
+
6
+ # Specification
7
+
8
+ ## Purpose
9
+
10
+ Transform a vague or broad feature request into a precise, testable specification through requirements elicitation and stakeholder dialogue.
11
+
12
+ ## Inputs
13
+
14
+ - User's feature request, issue, or idea
15
+ - Codebase context (accessed via aikit MCP tools)
16
+
17
+ ## Process
18
+
19
+ 1. **Understand intent** — Parse what the user wants and why
20
+ 2. **Search for context** — `search()` for related prior decisions, existing patterns, and similar features
21
+ 3. **Elicit requirements** — Ask structured questions to clarify:
22
+ - **Functional**: What must the system do?
23
+ - **Non-functional**: Performance, security, accessibility constraints
24
+ - **Scope boundaries**: What is explicitly out of scope?
25
+ - **Acceptance criteria**: How do we know it's done?
26
+ 4. **Score clarity** — Use the `requirements-clarity` skill to score 0–100. Iterate questions until ≥ 90.
27
+ 5. **Draft specification** — Write formal spec with all requirements resolved
28
+
29
+ ## Outputs
30
+
31
+ Produce `.spec/<slug>/spec.md` with:
32
+
33
+ ```markdown
34
+ # Specification: <feature title>
35
+
36
+ ## Summary
37
+ <1-2 sentence description>
38
+
39
+ ## Motivation
40
+ <why this feature is needed>
41
+
42
+ ## Functional Requirements
43
+ 1. <requirement with acceptance criterion>
44
+ 2. ...
45
+
46
+ ## Non-Functional Requirements
47
+ - Performance: <constraints>
48
+ - Security: <constraints>
49
+ - Accessibility: <constraints>
50
+
51
+ ## Scope
52
+ ### In Scope
53
+ - <item>
54
+
55
+ ### Out of Scope
56
+ - <item>
57
+
58
+ ## Acceptance Criteria
59
+ - [ ] <testable criterion>
60
+ - [ ] ...
61
+
62
+ ## Open Questions
63
+ <none — all resolved during elicitation>
64
+
65
+ ## Clarity Score: <N>/100
66
+ ```
67
+
68
+ ## Agents
69
+
70
+ | Agent | Role |
71
+ |-------|------|
72
+ | **Researcher-Alpha** | Deep analysis of existing codebase patterns, prior decisions, and technical constraints |
73
+
74
+ Use the `brainstorming` skill for creative/design exploration before formalizing requirements. Use `requirements-clarity` skill to score and iterate until the spec is unambiguous.
75
+
76
+ ## Foundation Integration
77
+
78
+ Load these skills BEFORE executing this step:
79
+
80
+ | Skill | Purpose | When |
81
+ |-------|---------|------|
82
+ | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
83
+ | `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 |
84
+ | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
85
+ | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
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
+ ## Completion Criteria
95
+
96
+ - [ ] All functional requirements have acceptance criteria
97
+ - [ ] Scope boundaries are explicit
98
+ - [ ] Requirements clarity score ≥ 90
99
+ - [ ] No open questions remain
100
+ - [ ] `.spec/<slug>/spec.md` written
@@ -1,99 +1,99 @@
1
- ---
2
- name: task
3
- description: Break the implementation plan into ordered, atomic tasks with dependencies and agent assignments.
4
- ---
5
-
6
- # Task Breakdown
7
-
8
- ## Purpose
9
-
10
- Decompose the implementation plan into small, atomic tasks that agents can execute independently, with clear dependency ordering and acceptance criteria per task.
11
-
12
- ## Inputs
13
-
14
- - `.spec/<slug>/plan.md` — the phased implementation plan
15
-
16
- ## Process
17
-
18
- 1. **Load plan** — Read phases, file scope, and dependency graph
19
- 2. **Decompose phases into tasks** — Each task should:
20
- - Touch 1–3 files maximum
21
- - Have a single, testable outcome
22
- - Take one agent one focused session
23
- 3. **Define dependencies** — Map task-to-task dependencies (not just phase-to-phase)
24
- 4. **Assign agents** — Match each task to the best-fit agent based on scope
25
- 5. **Identify parallelism** — Mark which tasks can run simultaneously
26
- 6. **Architecture review** — Have Architect-Reviewer validate task ordering won't create integration issues
27
-
28
- ## Outputs
29
-
30
- Produce `.spec/<slug>/tasks.md` with:
31
-
32
- ```markdown
33
- # Task Breakdown: <feature title>
34
-
35
- ## Task Graph
36
-
37
- ### Phase 1: <name>
38
- - [ ] **T1.1**: <description>
39
- - Files: <list>
40
- - Agent: <agent name>
41
- - Depends on: none
42
- - Acceptance: <testable criterion>
43
-
44
- - [ ] **T1.2**: <description>
45
- - Files: <list>
46
- - Agent: <agent name>
47
- - Depends on: T1.1
48
- - Acceptance: <testable criterion>
49
-
50
- ### Phase 2: <name>
51
- - [ ] **T2.1**: <description> (can parallel with T1.2)
52
- ...
53
-
54
- ## Parallelism Map
55
- | Batch | Tasks | Agents |
56
- |-------|-------|--------|
57
- | 1 | T1.1 | Implementer |
58
- | 2 | T1.2, T2.1 | Implementer, Frontend |
59
- | 3 | T2.2 | Implementer |
60
- | ... | ... | ... |
61
-
62
- ## Estimated Batches: <N>
63
- ```
64
-
65
- ## Agents
66
-
67
- | Agent | Role |
68
- |-------|------|
69
- | **Planner** | Decomposes plan phases into atomic tasks with dependency ordering |
70
- | **Architect-Reviewer-Alpha** | Validates task decomposition won't cause integration issues |
71
-
72
- Planner does the decomposition, then Architect-Reviewer validates the task graph.
73
-
74
- ## Foundation Integration
75
-
76
- Load these skills BEFORE executing this step:
77
-
78
- | Skill | Purpose | When |
79
- |-------|---------|------|
80
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
81
- | `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 |
82
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
83
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
84
-
85
- ### Presentation Rules
86
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
87
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
88
- - Tables, charts, progress tracking, code review findings → always present
89
- - Artifact content and summaries → present with structured layout
90
- - Only use plain text for brief confirmations and simple questions
91
-
92
- ## Completion Criteria
93
-
94
- - [ ] Every plan phase maps to ≥1 task
95
- - [ ] Each task touches ≤3 files
96
- - [ ] Dependencies form a DAG (no cycles)
97
- - [ ] Parallelism opportunities identified
98
- - [ ] Architect review confirms no integration risks
99
- - [ ] `.spec/<slug>/tasks.md` written
1
+ ---
2
+ name: task
3
+ description: Break the implementation plan into ordered, atomic tasks with dependencies and agent assignments.
4
+ ---
5
+
6
+ # Task Breakdown
7
+
8
+ ## Purpose
9
+
10
+ Decompose the implementation plan into small, atomic tasks that agents can execute independently, with clear dependency ordering and acceptance criteria per task.
11
+
12
+ ## Inputs
13
+
14
+ - `.spec/<slug>/plan.md` — the phased implementation plan
15
+
16
+ ## Process
17
+
18
+ 1. **Load plan** — Read phases, file scope, and dependency graph
19
+ 2. **Decompose phases into tasks** — Each task should:
20
+ - Touch 1–3 files maximum
21
+ - Have a single, testable outcome
22
+ - Take one agent one focused session
23
+ 3. **Define dependencies** — Map task-to-task dependencies (not just phase-to-phase)
24
+ 4. **Assign agents** — Match each task to the best-fit agent based on scope
25
+ 5. **Identify parallelism** — Mark which tasks can run simultaneously
26
+ 6. **Architecture review** — Have Architect-Reviewer validate task ordering won't create integration issues
27
+
28
+ ## Outputs
29
+
30
+ Produce `.spec/<slug>/tasks.md` with:
31
+
32
+ ```markdown
33
+ # Task Breakdown: <feature title>
34
+
35
+ ## Task Graph
36
+
37
+ ### Phase 1: <name>
38
+ - [ ] **T1.1**: <description>
39
+ - Files: <list>
40
+ - Agent: <agent name>
41
+ - Depends on: none
42
+ - Acceptance: <testable criterion>
43
+
44
+ - [ ] **T1.2**: <description>
45
+ - Files: <list>
46
+ - Agent: <agent name>
47
+ - Depends on: T1.1
48
+ - Acceptance: <testable criterion>
49
+
50
+ ### Phase 2: <name>
51
+ - [ ] **T2.1**: <description> (can parallel with T1.2)
52
+ ...
53
+
54
+ ## Parallelism Map
55
+ | Batch | Tasks | Agents |
56
+ |-------|-------|--------|
57
+ | 1 | T1.1 | Implementer |
58
+ | 2 | T1.2, T2.1 | Implementer, Frontend |
59
+ | 3 | T2.2 | Implementer |
60
+ | ... | ... | ... |
61
+
62
+ ## Estimated Batches: <N>
63
+ ```
64
+
65
+ ## Agents
66
+
67
+ | Agent | Role |
68
+ |-------|------|
69
+ | **Planner** | Decomposes plan phases into atomic tasks with dependency ordering |
70
+ | **Architect-Reviewer-Alpha** | Validates task decomposition won't cause integration issues |
71
+
72
+ Planner does the decomposition, then Architect-Reviewer validates the task graph.
73
+
74
+ ## Foundation Integration
75
+
76
+ Load these skills BEFORE executing this step:
77
+
78
+ | Skill | Purpose | When |
79
+ |-------|---------|------|
80
+ | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
81
+ | `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 |
82
+ | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
83
+ | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
84
+
85
+ ### Presentation Rules
86
+ - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
87
+ - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
88
+ - Tables, charts, progress tracking, code review findings → always present
89
+ - Artifact content and summaries → present with structured layout
90
+ - Only use plain text for brief confirmations and simple questions
91
+
92
+ ## Completion Criteria
93
+
94
+ - [ ] Every plan phase maps to ≥1 task
95
+ - [ ] Each task touches ≤3 files
96
+ - [ ] Dependencies form a DAG (no cycles)
97
+ - [ ] Parallelism opportunities identified
98
+ - [ ] Architect review confirms no integration risks
99
+ - [ ] `.spec/<slug>/tasks.md` written