@namch/agent-assistant 1.3.0 β†’ 1.3.2

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/CHANGELOG.md +24 -1
  2. package/README.md +3 -4
  3. package/agents/backend-engineer.md +3 -3
  4. package/agents/brainstormer.md +3 -3
  5. package/agents/business-analyst.md +3 -3
  6. package/agents/database-architect.md +3 -3
  7. package/agents/debugger.md +2 -2
  8. package/agents/designer.md +2 -2
  9. package/agents/devops-engineer.md +2 -2
  10. package/agents/docs-manager.md +23 -15
  11. package/agents/frontend-engineer.md +3 -3
  12. package/agents/game-engineer.md +3 -3
  13. package/agents/mobile-engineer.md +4 -4
  14. package/agents/performance-engineer.md +3 -3
  15. package/agents/planner.md +4 -4
  16. package/agents/project-manager.md +3 -3
  17. package/agents/researcher.md +3 -3
  18. package/agents/reviewer.md +3 -3
  19. package/agents/scouter.md +3 -3
  20. package/agents/security-engineer.md +3 -3
  21. package/agents/tech-lead.md +3 -3
  22. package/agents/tester.md +2 -2
  23. package/code-assistants/codex-assistant/CODEX.md +1 -2
  24. package/commands/ask/hard.md +1 -1
  25. package/commands/brainstorm/hard.md +1 -1
  26. package/commands/code/hard.md +1 -1
  27. package/commands/code.md +2 -7
  28. package/commands/cook/hard.md +1 -1
  29. package/commands/cook.md +1 -6
  30. package/commands/debug/hard.md +1 -1
  31. package/commands/debug.md +1 -6
  32. package/commands/design/hard.md +1 -1
  33. package/commands/design.md +1 -6
  34. package/commands/docs/audit.md +554 -78
  35. package/commands/docs/business.md +392 -76
  36. package/commands/docs/core.md +573 -74
  37. package/commands/docs.md +62 -61
  38. package/commands/fix/hard.md +1 -1
  39. package/commands/fix.md +1 -6
  40. package/commands/plan/hard.md +1 -1
  41. package/commands/plan.md +1 -6
  42. package/commands/report/fast.md +2 -2
  43. package/commands/report/hard.md +1 -1
  44. package/commands/report.md +2 -7
  45. package/commands/review/hard.md +1 -1
  46. package/commands/test/hard.md +1 -1
  47. package/commands/test.md +1 -6
  48. package/documents/HSOL-ASSESSMENT.md +6 -6
  49. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1 -1
  50. package/documents/business/business-features/00-index.md +101 -0
  51. package/documents/business/business-features/01-feature-inventory.md +341 -0
  52. package/documents/business/business-features/02-prioritization-moscow.md +148 -0
  53. package/documents/business/business-features/03-feature-specifications.md +511 -0
  54. package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
  55. package/documents/business/business-features/05-success-metrics.md +290 -0
  56. package/documents/business/business-glossary/00-index.md +89 -0
  57. package/documents/business/business-glossary/01-canonical-terms.md +428 -0
  58. package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
  59. package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
  60. package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
  61. package/documents/business/business-prd/00-index.md +107 -0
  62. package/documents/business/business-prd/01-executive-summary.md +131 -0
  63. package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
  64. package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
  65. package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
  66. package/documents/business/business-workflows/00-index.md +107 -0
  67. package/documents/business/business-workflows/01-actor-map.md +303 -0
  68. package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
  69. package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
  70. package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
  71. package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
  72. package/documents/knowledge-architecture/00-index.md +159 -0
  73. package/documents/knowledge-architecture/01-system-overview.md +240 -0
  74. package/documents/knowledge-architecture/02-components.md +419 -0
  75. package/documents/knowledge-architecture/03-data-flow.md +368 -0
  76. package/documents/knowledge-architecture/04-design-patterns.md +497 -0
  77. package/documents/knowledge-architecture/05-decisions.md +410 -0
  78. package/documents/knowledge-domain/00-index.md +251 -0
  79. package/documents/knowledge-domain/01-entities.md +582 -0
  80. package/documents/knowledge-domain/02-database-schema.md +138 -0
  81. package/documents/knowledge-domain/03-api-contracts.md +477 -0
  82. package/documents/knowledge-domain/04-business-rules.md +554 -0
  83. package/documents/knowledge-overview/00-index.md +107 -0
  84. package/documents/knowledge-overview/01-project-identity.md +162 -0
  85. package/documents/knowledge-overview/02-tech-stack.md +119 -0
  86. package/documents/knowledge-overview/03-features.md +232 -0
  87. package/documents/knowledge-overview/04-getting-started.md +394 -0
  88. package/documents/knowledge-source-base/00-index.md +107 -0
  89. package/documents/knowledge-source-base/01-directory-structure.md +312 -0
  90. package/documents/knowledge-source-base/02-entry-points.md +346 -0
  91. package/documents/knowledge-source-base/03-key-modules.md +581 -0
  92. package/documents/knowledge-source-base/04-configuration.md +467 -0
  93. package/documents/knowledge-standards/00-index.md +129 -0
  94. package/documents/knowledge-standards/01-code-style.md +161 -0
  95. package/documents/knowledge-standards/02-conventions.md +254 -0
  96. package/documents/knowledge-standards/03-git-workflow.md +228 -0
  97. package/documents/knowledge-standards/04-testing-standards.md +175 -0
  98. package/matrix-skills/_index.yaml +1 -1
  99. package/package.json +1 -1
  100. package/rules/AGENTS.md +1 -1
  101. package/rules/REFERENCE.md +18 -14
  102. package/rules/SKILLS.md +1 -1
  103. package/rules/TEAMS.md +1 -2
  104. package/skills/docs-audit/README.md +10 -8
  105. package/skills/docs-audit/SKILL.md +45 -41
  106. package/skills/docs-audit/references/scoring-framework.md +5 -5
  107. package/skills/docs-core/README.md +19 -14
  108. package/skills/docs-core/SKILL.md +189 -117
  109. package/skills/planning/references/codebase-understanding.md +5 -5
  110. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +0 -18
  111. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +0 -4
  112. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +0 -18
  113. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +0 -4
  114. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +0 -18
  115. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +0 -4
  116. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +0 -18
  117. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +0 -4
  118. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +0 -18
  119. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +0 -4
  120. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +0 -18
  121. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +0 -4
  122. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +0 -18
  123. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +0 -4
  124. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +0 -18
  125. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +0 -4
  126. package/commands/code/focus.md +0 -297
  127. package/commands/cook/focus.md +0 -209
  128. package/commands/debug/focus.md +0 -103
  129. package/commands/design/focus.md +0 -229
  130. package/commands/fix/focus.md +0 -145
  131. package/commands/plan/focus.md +0 -140
  132. package/commands/report/focus.md +0 -107
  133. package/commands/test/focus.md +0 -123
  134. package/documents/business/business-features.md +0 -894
  135. package/documents/business/business-glossary.md +0 -554
  136. package/documents/business/business-prd.md +0 -400
  137. package/documents/business/business-workflows.md +0 -713
  138. package/documents/knowledge-architecture.md +0 -621
  139. package/documents/knowledge-domain.md +0 -602
  140. package/documents/knowledge-overview.md +0 -316
  141. package/documents/knowledge-source-base.md +0 -581
  142. package/documents/knowledge-standards.md +0 -632
@@ -1,229 +0,0 @@
1
- ---
2
- description: πŸ”’ Focused Design β€” Complete design process with enforced context optimization
3
- version: "1.0"
4
- category: design
5
- execution-mode: execute
6
- ---
7
-
8
- # /design:focus β€” Focus Full Design Process
9
-
10
- > **MISSION**: Execute complete design process with **enforced context optimization**.
11
- >
12
- > This variant automatically clears context before implementation handoffβ€”no user prompt required.
13
- > Use when you want guaranteed clean implementation handoff without design exploration noise.
14
-
15
- <request>$ARGUMENTS</request>
16
-
17
- ---
18
-
19
- ## πŸ›‘ PRE-FLIGHT (DO FIRST β€” BLOCKS PHASE 1)
20
-
21
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
-
23
- 1. CORE.md β€” Identity, Laws, Routing
24
- 2. PHASES.md β€” Phase Execution
25
- 3. AGENTS.md β€” Tiered Execution
26
-
27
- **β›” Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
-
29
- **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
-
31
- ---
32
-
33
- ## πŸ”€ TIERED EXECUTION PROTOCOL (MANDATORY)
34
-
35
- > **Reference: AGENTS.md (Tiered Execution)`
36
-
37
- ```yaml
38
- tiered_execution:
39
- principle: "Sub-agent FIRST (Tier 1). EMBODY ONLY on system failure (Tier 2)."
40
- for_each_phase:
41
- TIER_1_MANDATORY: "IF tool exists β†’ MUST use SUB_AGENT_DELEGATION"
42
- TIER_2_FALLBACK: "ONLY on system errorβ€”NOT complexity/preference/speed"
43
- anti_lazy_fallback:
44
- - ❌ NEVER use Tier 2 when Tier 1 tool is available
45
- - βœ… ALWAYS attempt Tier 1 first when tool exists
46
- ```
47
-
48
- ---
49
-
50
- ## ⚠️ CRITICAL: DELIVERABLE FILE RULES
51
-
52
- ```yaml
53
- deliverable_files:
54
- researcher: "./reports/{topic}/researchers/RESEARCH-{request}"
55
- scouter: "./reports/{topic}/scouts/SCOUT-{request}"
56
- designer: "./reports/{topic}/designs/DESIGN-{request}" # MANDATORY OUTPUT
57
-
58
- enforcement:
59
- - Design phase MUST create design file
60
- - Design file is the deliverable for implementation phases
61
- ```
62
-
63
- All files in `./reports/{topic}/` β†’ English only.
64
- **⚠️ Paths above = base names.** Small (≀ 150 lines) β†’ create as `{name}.md`. Large (> 150 lines or β‰₯ 4 sections) β†’ create as `{name}/` folder with `00-index.md` + `01-*.md`, `02-*.md` section files.
65
-
66
- ---
67
-
68
- ## β›” INCREMENTAL EXECUTION (MANDATORY)
69
-
70
- One phase at a time, each phase independent: Phase 1 β†’ then Phase 2 β†’ … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing).
71
-
72
- ---
73
-
74
- ## 🎭 Phase 1: REQUIREMENTS DISCOVERY
75
-
76
- | Attribute | Value |
77
- | --------- | --------------------------- |
78
- | **Agent** | `brainstormer` |
79
- | **Goal** | Clarify design requirements |
80
-
81
- ### ⚑ TIERED EXECUTION
82
-
83
- **TIER 1 (MANDATORY when tool exists):**
84
-
85
- > Invoke runSubagent for `brainstormer`. Context: ISOLATED.
86
-
87
- **TIER 2 (FALLBACK on system error only):**
88
-
89
- > Load `{AGENTS_PATH}/brainstormer.md`
90
- > EMBODY [brainstormer] β€” Requires logged system error justification.
91
-
92
- **Exit Criteria:**
93
-
94
- - [ ] Requirements clear
95
- - [ ] User needs identified
96
- - [ ] Constraints documented
97
- - [ ] **METHODOLOGY CHECK**: Output aligns with `brainstormer` Thinking Protocol
98
-
99
- ---
100
-
101
- ## 🎭 Phase 2: RESEARCH
102
-
103
- | Attribute | Value |
104
- | --------- | ------------------------------- |
105
- | **Agent** | `researcher` |
106
- | **Goal** | Research design patterns and UX |
107
-
108
- ### ⚑ TIERED EXECUTION
109
-
110
- **TIER 1 (MANDATORY when tool exists):**
111
-
112
- > Invoke runSubagent for `researcher`. Context: ISOLATED.
113
-
114
- **TIER 2 (FALLBACK on system error only):**
115
-
116
- > Load `{AGENTS_PATH}/researcher.md`
117
- > EMBODY [researcher] β€” Requires logged system error justification.
118
-
119
- **Exit Criteria:**
120
-
121
- - [ ] Patterns researched
122
- - [ ] Best practices identified
123
- - [ ] **METHODOLOGY CHECK**: Output aligns with `researcher` Thinking Protocol
124
-
125
- ---
126
-
127
- ## 🎭 Phase 3: CODEBASE ANALYSIS
128
-
129
- | Attribute | Value |
130
- | --------- | -------------------------- |
131
- | **Agent** | `scouter` |
132
- | **Goal** | Map existing design system |
133
-
134
- ### ⚑ TIERED EXECUTION
135
-
136
- **TIER 1 (MANDATORY when tool exists):**
137
-
138
- > Invoke runSubagent for `scouter`. Context: ISOLATED.
139
-
140
- **TIER 2 (FALLBACK on system error only):**
141
-
142
- > Load `{AGENTS_PATH}/scouter.md`
143
- > EMBODY [scouter] β€” Requires logged system error justification.
144
-
145
- **Exit Criteria:**
146
-
147
- - [ ] Design system documented
148
- - [ ] Component inventory
149
- - [ ] Integration points
150
- - [ ] **METHODOLOGY CHECK**: Output aligns with `scouter` Thinking Protocol
151
-
152
- ---
153
-
154
- ## 🎭 Phase 4: DESIGN CREATION
155
-
156
- | Attribute | Value |
157
- | --------- | ---------------------- |
158
- | **Agent** | `designer` |
159
- | **Goal** | Full design with specs |
160
-
161
- ### ⚑ TIERED EXECUTION
162
-
163
- **TIER 1 (MANDATORY when tool exists):**
164
-
165
- > Invoke runSubagent for `designer`. Context: ISOLATED.
166
-
167
- **TIER 2 (FALLBACK on system error only):**
168
-
169
- > Load `{AGENTS_PATH}/designer.md`
170
- > EMBODY [designer] β€” Requires logged system error justification.
171
-
172
- **Exit Criteria:**
173
-
174
- - [ ] Design complete
175
- - [ ] All states covered
176
- - [ ] Accessibility verified
177
- - [ ] Specs documented
178
- - [ ] **METHODOLOGY CHECK**: Output aligns with `designer` Thinking Protocol
179
-
180
- ---
181
-
182
- ## ❌ Discarded:
183
- - Design exploration noise
184
- - Rejected alternatives
185
- - Iteration history
186
- - Chat history
187
-
188
- Mode: Clean review start
189
-
190
- Proceeding to Design Review...
191
- ```
192
-
193
- ---
194
-
195
- ## 🎭 Phase 5: DESIGN REVIEW
196
-
197
- | Attribute | Value |
198
- | --------- | --------------------- |
199
- | **Agent** | `reviewer` |
200
- | **Goal** | Review design quality |
201
-
202
- ### ⚑ TIERED EXECUTION
203
-
204
- **TIER 1 (MANDATORY when tool exists):**
205
-
206
- > Invoke runSubagent for `reviewer`. Context: ISOLATED.
207
-
208
- **TIER 2 (FALLBACK on system error only):**
209
-
210
- > Load `{AGENTS_PATH}/reviewer.md`
211
- > EMBODY [reviewer] β€” Requires logged system error justification.
212
-
213
- **Exit Criteria:**
214
-
215
- - [ ] Design reviewed
216
- - [ ] Standards met
217
- - [ ] Approved
218
- - [ ] **METHODOLOGY CHECK**: Output aligns with `reviewer` Thinking Protocol
219
-
220
- ---
221
-
222
- ## COMPLETION
223
-
224
- Present design with:
225
-
226
- 1. βœ… **Done** β€” Design complete (Focus Mode)
227
- 2. πŸ”’ **Context Optimized** β€” Ready for focus implementation
228
- 3. πŸ’» **Implement** β†’ `/code:focus`
229
- 4. πŸ”„ **Iterate** β€” Further refinement
@@ -1,145 +0,0 @@
1
- ---
2
- description: πŸ”’ Focused Fix β€” Complete issue resolution with enforced context optimization
3
- version: "1.0"
4
- category: debugging
5
- execution-mode: execute
6
- ---
7
-
8
- # /fix:focus β€” Focus Issue Resolution
9
-
10
- > **MISSION**: Full resolution workflow with **enforced context optimization**.
11
- >
12
- > This variant automatically clears context before implementationβ€”no user prompt required.
13
- > Use when you want guaranteed clean fix implementation without context rot risk.
14
-
15
- <issue>$ARGUMENTS</issue>
16
-
17
- ---
18
-
19
- ## πŸ›‘ PRE-FLIGHT (DO FIRST β€” BLOCKS PHASE 1)
20
-
21
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
-
23
- 1. CORE.md β€” Identity, Laws, Routing
24
- 2. PHASES.md β€” Phase Execution
25
- 3. AGENTS.md β€” Tiered Execution
26
-
27
- **β›” Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
-
29
- **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
-
31
- ---
32
-
33
- ## πŸ”€ TIERED EXECUTION
34
-
35
- | Tier | When | Action |
36
- | ---------- | ------------------ | ---------------------------- |
37
- | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
38
- | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
39
-
40
- **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
41
-
42
- ---
43
-
44
- ## πŸ“ DELIVERABLE FILES
45
-
46
- | Agent | Output |
47
- | ---------- | ------------------------------------------- |
48
- | debugger | `./reports/{topic}/debugs/DEBUG-{issue}` |
49
- | researcher | `./reports/{topic}/researchers/RESEARCH-{issue}` |
50
-
51
- All files in `./reports/{topic}/` β†’ English only.
52
- **⚠️ Paths above = base names.** Small (≀ 150 lines) β†’ create as `{name}.md`. Large (> 150 lines or β‰₯ 4 sections) β†’ create as `{name}/` folder with `00-index.md` + `01-*.md`, `02-*.md` section files.
53
-
54
- ---
55
-
56
- ## β›” INCREMENTAL EXECUTION (MANDATORY)
57
-
58
- One phase at a time, each phase independent: Phase 1 β†’ then Phase 2 β†’ … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md Β§ Phase output structure.
59
-
60
- ---
61
-
62
- ## 🎭 Phase 1: DEEP ANALYSIS
63
-
64
- | Agent | `debugger` |
65
- | ----- | ---------------------------------------------------------------- |
66
- | Goal | Full root cause analysis |
67
- | Exit | Root cause identified, impact assessed, failure chain documented |
68
-
69
- ---
70
-
71
- ## 🎭 Phase 2: RESEARCH
72
-
73
- | Agent | `researcher` |
74
- | ----- | ---------------------------------------------- |
75
- | Goal | Research solution patterns |
76
- | Exit | Solutions researched, best approach identified |
77
-
78
- ---
79
-
80
- ## 🎭 Phase 3: FIX PLANNING
81
-
82
- | Agent | `planner` |
83
- | ----- | --------------------------------- |
84
- | Goal | Create fix strategy with rollback |
85
- | Exit | Plan created, rollback included |
86
-
87
- ---
88
-
89
- ---
90
-
91
- ## βœ… Reloaded:
92
- - User request (original issue verbatim)
93
- - Acceptance criteria (fix verification checkpoints)
94
- - Fix plan with rollback strategy
95
- - Remaining phases workflow
96
- - Implementation rules summary
97
-
98
- ## ❌ Discarded:
99
- - Debugging hypotheses
100
- - Failed investigation attempts
101
- - Research explorations
102
- - Chat history noise
103
-
104
- Mode: Fresh implementation start
105
-
106
- Proceeding to Implementation...
107
- ```
108
-
109
- ---
110
-
111
- ## 🎭 Phase 4: IMPLEMENTATION
112
-
113
- | Agent | `tech-lead` β†’ specialists |
114
- | ----- | ----------------------------------- |
115
- | Goal | Execute fix plan |
116
- | Exit | Fix implemented, changes documented |
117
-
118
- ---
119
-
120
- ## 🎭 Phase 5: VALIDATION
121
-
122
- | Agent | `tester` |
123
- | ----- | ----------------------------------------- |
124
- | Goal | Comprehensive validation |
125
- | Exit | Issue resolved, tests pass, no regression |
126
-
127
- ---
128
-
129
- ## 🎭 Phase 5.5: ROLLBACK VERIFICATION (IF CRITICAL)
130
-
131
- | Agent | `devops-engineer` |
132
- | ------- | ---------------------------------------------------- |
133
- | Trigger | Fix affects production or is critical |
134
- | Goal | Verify rollback plan |
135
- | Exit | Rollback documented, tested, recovery time estimated |
136
-
137
- ---
138
-
139
- ## COMPLETION
140
-
141
- Present fix report with:
142
-
143
- 1. βœ… **Fixed** β€” Issue resolved (Focus Mode)
144
- 2. πŸ§ͺ **Test** β†’ `/test`
145
- 3. πŸ“ **Docs** β†’ `/docs:core`
@@ -1,140 +0,0 @@
1
- ---
2
- description: πŸ”’ Focused Plan β€” Research-backed planning with enforced context optimization
3
- version: "1.0"
4
- category: planning
5
- execution-mode: execute
6
- ---
7
-
8
- # /plan:focus β€” Focus Comprehensive Planning
9
-
10
- > **MISSION**: Create thorough implementation plan with **enforced context optimization**.
11
- >
12
- > This variant automatically clears context before handoffβ€”no user prompt required.
13
- > Use when you want guaranteed clean plan handoff without context rot risk.
14
-
15
- <task>$ARGUMENTS</task>
16
-
17
- ---
18
-
19
- ## πŸ›‘ PRE-FLIGHT (DO FIRST β€” BLOCKS PHASE 1)
20
-
21
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
-
23
- 1. CORE.md β€” Identity, Laws, Routing
24
- 2. PHASES.md β€” Phase Execution
25
- 3. AGENTS.md β€” Tiered Execution
26
-
27
- **β›” Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
-
29
- **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
-
31
- ---
32
-
33
- ## πŸ”€ TIERED EXECUTION
34
-
35
- | Tier | When | Action |
36
- | ---------- | ------------------ | ---------------------------- |
37
- | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
38
- | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
39
-
40
- ---
41
-
42
- ## πŸ“ DELIVERABLE FILES
43
-
44
- | Agent | Output |
45
- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
46
- | researcher | `./reports/{topic}/researchers/RESEARCH-{task}` |
47
- | scouter | `./reports/{topic}/scouts/SCOUT-{task}` |
48
- | planner | **One** `./reports/{topic}/plans/PLAN-{task}` **OR** multiple `./reports/{topic}/plans/PLAN-{task}-phase1`, `PLAN-{task}-phase2`, … (see **Complexity & plan splitting** below) |
49
-
50
- **Plans are source of truth for implementation.** All files in `./reports/{topic}/` β†’ English only.
51
- **⚠️ Paths above = base names.** Small (≀ 150 lines) β†’ create as `{name}.md`. Large (> 150 lines or β‰₯ 4 sections) β†’ create as `{name}/` folder with `00-index.md` + `01-*.md`, `02-*.md` section files.
52
-
53
- ---
54
-
55
- ## πŸ“ COMPLEXITY & PLAN SPLITTING (MANDATORY FOR PLANNER)
56
-
57
- When the logical plan would have **> 3 phases** or **estimated effort > 3 days**, the planner **MUST** produce **multiple plan files** (one per executable phase or per milestone group), **not** one monolithic file.
58
-
59
- | Condition | Planner output |
60
- | -------------------------- | ---------------------------------------------------------------- |
61
- | ≀ 3 phases, ≀ 3 days | **One** `PLAN-{task}.md` |
62
- | > 3 phases **or** > 3 days | **Multiple** `PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, … |
63
-
64
- **Multi-plan rules:**
65
-
66
- - Naming: `PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, …
67
- - Order: Execute in numeric order; phase N starts only after phase Nβˆ’1 is complete.
68
- - Each file: scope **only** that phase; Prerequisites state "Phase Nβˆ’1 complete" (or prior deliverables); clear handoff to next file.
69
- - Index (optional): planner may add `PLAN-{task}-INDEX.md` listing phases and file names for navigation.
70
-
71
- ---
72
-
73
- ## β›” INCREMENTAL EXECUTION (MANDATORY)
74
-
75
- One phase at a time, each phase independent: Phase 1 β†’ then Phase 2 β†’ … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md Β§ Phase output structure.
76
-
77
- ---
78
-
79
- ## 🎭 Phase 1: RESEARCH
80
-
81
- | Agent | `researcher` |
82
- | ------ | --------------------------------------------- |
83
- | Goal | Research best practices and patterns |
84
- | Output | `./reports/{topic}/researchers/RESEARCH-{task}` |
85
- | Exit | Best practices identified, sources documented |
86
-
87
- ---
88
-
89
- ## 🎭 Phase 2: CODEBASE ANALYSIS
90
-
91
- | Agent | `scouter` |
92
- | ------ | -------------------------------------------- |
93
- | Goal | Full architecture mapping |
94
- | Output | `./reports/{topic}/scouts/SCOUT-{task}` |
95
- | Exit | Architecture understood, dependencies mapped |
96
-
97
- ---
98
-
99
- ## 🎭 Phase 3: DESIGN (IF UI NEEDED)
100
-
101
- | Agent | `designer` |
102
- | ------- | ------------------------------------------------- |
103
- | Trigger | Task involves UI/UX |
104
- | Goal | Design approach input |
105
- | Exit | Design approach defined, accessibility considered |
106
-
107
- ---
108
-
109
- ## 🎭 Phase 4: PLAN CREATION
110
-
111
- | Agent | `planner` |
112
- | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
113
- | Prerequisite | **READ** RESEARCH + SCOUT files (and DESIGN if Phase 3 ran) |
114
- | Goal | Create detailed implementation plan as **one file** or **multiple phase files** (see **Complexity & plan splitting** above) |
115
- | Output | One `./reports/{topic}/plans/PLAN-{task}` **or** multiple `./reports/{topic}/plans/PLAN-{task}-phase1`, `PLAN-{task}-phase2`, … |
116
-
117
- **Directive to planner:** If the task decomposes into **> 3 phases** or **> 3 days** effort, produce **multiple plan files** (one per phase/milestone), each executable in sequence. Otherwise produce a single `PLAN-{task}.md`.
118
-
119
- **CONSTRAINT INHERITANCE:**
120
-
121
- ```
122
- Plan(s) MUST reference prior phases:
123
- - "Based on research finding R1..."
124
- - "Following pattern from Scout..."
125
- - "Per design decision D1..."
126
- ```
127
-
128
- | Exit | One plan file **or** multiple phase plan files created; each has scope, prerequisites, tasks, exit criteria, risks, rollback; order and handoffs clear |
129
-
130
- ---
131
-
132
- ---
133
-
134
- ## COMPLETION
135
-
136
- Present plan with:
137
-
138
- 1. βœ… **Plan Ready** β€” `./reports/{topic}/plans/PLAN-{task}` (single) **or** `PLAN-{task}-phase1`, `PLAN-{task}-phase2`, … (multi-phase, execute in order)
139
- 2. πŸ”’ **Context Optimized** β€” Ready for focus implementation
140
- 3. 🍳 **Implement** β†’ `/code:focus` (run phase-by-phase when multiple plan files exist)
@@ -1,107 +0,0 @@
1
- ---
2
- description: πŸ”’ Focused Report β€” Deep analysis with enforced context optimization
3
- version: "1.0"
4
- category: documentation
5
- execution-mode: execute
6
- ---
7
-
8
- # /report:focus β€” Focused Deep Analysis Report
9
-
10
- > **MISSION**: Generate verifiable, objective output with **enforced context optimization** β€” report, update, or template.
11
-
12
- > This variant automatically clears context before analysisβ€”no user prompt required.
13
- > Use when you want a "clean slate" audit or unbiased analysis. Reporter chooses: **create report**, **update existing files**, or **generate from template** per user intent.
14
-
15
- <task>$ARGUMENTS</task>
16
-
17
- ---
18
-
19
- ## πŸ›‘ PRE-FLIGHT (DO FIRST β€” BLOCKS PHASE 1)
20
-
21
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
22
-
23
- 1. CORE.md β€” Identity, Laws, Routing
24
- 2. PHASES.md β€” Phase Execution
25
- 3. AGENTS.md β€” Tiered Execution
26
-
27
- **β›” Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
28
-
29
- **Skills Resolution**: When delegating, load `SKILLS.md` on-demand for fitness calculation and dynamic discovery (focus variant enables find-skills for superior skill matching).
30
-
31
- ---
32
-
33
- ## πŸ”€ TIERED EXECUTION
34
-
35
- | Tier | When | Action |
36
- | ---------- | ------------------ | ---------------------------- |
37
- | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
38
- | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
39
-
40
- **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
41
-
42
- ---
43
-
44
- ## πŸ“ DELIVERABLES (Reporter chooses from user intent)
45
-
46
- | User intent | Reporter output |
47
- | ----------- | ---------------- |
48
- | **Create report** | `./reports/{topic}/general/REPORT-FOCUS-{date}` or path user asked |
49
- | **Update existing** | **Edit** related files; do **not** create new report unless also asked |
50
- | **From template** | File(s) matching user format/template |
51
-
52
- | Agent | When creating report |
53
- | ---------- | ------------------------------------------------- |
54
- | researcher | (optional) verification checklist |
55
- | scouter | (optional) evidence output |
56
- | reporter | Per table above β€” create / update / from template |
57
-
58
- All files in `./reports/{topic}/` β†’ English only.
59
- **⚠️ Paths above = base names.** Small (≀ 150 lines) β†’ create as `{name}.md`. Large (> 150 lines or β‰₯ 4 sections) β†’ create as `{name}/` folder with `00-index.md` + `01-*.md`, `02-*.md` section files.
60
-
61
- ---
62
-
63
- ## β›” INCREMENTAL EXECUTION (MANDATORY)
64
-
65
- One phase at a time, each phase independent: Phase 1 β†’ then Phase 2 β†’ … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what's happening (announce before doing). Format: rules/PHASES.md Β§ Phase output structure.
66
-
67
- ---
68
-
69
- ---
70
-
71
- ## 🎭 Phase 1: RESEARCH (AUDIT CRITERIA)
72
-
73
- | Agent | `researcher` |
74
- | ------ | ----------------------------------------------------- |
75
- | Goal | Research audit/report criteria and what to verify |
76
- | Exit | Verification checklist and report criteria defined |
77
-
78
- ---
79
-
80
- ## 🎭 Phase 2: EVIDENCE COLLECTION
81
-
82
- | Agent | `scouter` |
83
- | ------ | ------------------------------- |
84
- | Goal | Gather raw, verifiable evidence |
85
- | Exit | Factual state documented, no assumptions |
86
-
87
- ---
88
-
89
- ## 🎭 Phase 3: VERIFICATION & OUTPUT (create / update / from template)
90
-
91
- | Agent | `reporter` |
92
- | ----------- | -------------------------------------------------------------------------- |
93
- | Prerequisite| **USE** Phase 1 criteria + Phase 2 evidence only |
94
- | Goal | From **user intent**: synthesize into (1) new report, (2) **updates** to existing files, or (3) file(s) from template |
95
- | Output | **Create**: `./reports/{topic}/general/REPORT-FOCUS-{date}`. **Update**: edit related files. **Template**: file(s) matching user format. |
96
- | Exit | Deliverable matches intent; every claim cited when creating report. |
97
-
98
- ---
99
-
100
- ## COMPLETION
101
-
102
- Deliverable per **user intent**:
103
-
104
- 1. βœ… **Create report** β†’ `./reports/{topic}/general/REPORT-FOCUS-{date}` (or path user asked)
105
- 2. βœ… **Update existing** β†’ Related files edited; list what was updated
106
- 3. βœ… **From template** β†’ File(s) matching user format; list path(s)
107
- 4. πŸ•΅οΈ **Audit** β†’ `/review:focus` (optional)