@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.
- package/CHANGELOG.md +24 -1
- package/README.md +3 -4
- package/agents/backend-engineer.md +3 -3
- package/agents/brainstormer.md +3 -3
- package/agents/business-analyst.md +3 -3
- package/agents/database-architect.md +3 -3
- package/agents/debugger.md +2 -2
- package/agents/designer.md +2 -2
- package/agents/devops-engineer.md +2 -2
- package/agents/docs-manager.md +23 -15
- package/agents/frontend-engineer.md +3 -3
- package/agents/game-engineer.md +3 -3
- package/agents/mobile-engineer.md +4 -4
- package/agents/performance-engineer.md +3 -3
- package/agents/planner.md +4 -4
- package/agents/project-manager.md +3 -3
- package/agents/researcher.md +3 -3
- package/agents/reviewer.md +3 -3
- package/agents/scouter.md +3 -3
- package/agents/security-engineer.md +3 -3
- package/agents/tech-lead.md +3 -3
- package/agents/tester.md +2 -2
- package/code-assistants/codex-assistant/CODEX.md +1 -2
- package/commands/ask/hard.md +1 -1
- package/commands/brainstorm/hard.md +1 -1
- package/commands/code/hard.md +1 -1
- package/commands/code.md +2 -7
- package/commands/cook/hard.md +1 -1
- package/commands/cook.md +1 -6
- package/commands/debug/hard.md +1 -1
- package/commands/debug.md +1 -6
- package/commands/design/hard.md +1 -1
- package/commands/design.md +1 -6
- package/commands/docs/audit.md +554 -78
- package/commands/docs/business.md +392 -76
- package/commands/docs/core.md +573 -74
- package/commands/docs.md +62 -61
- package/commands/fix/hard.md +1 -1
- package/commands/fix.md +1 -6
- package/commands/plan/hard.md +1 -1
- package/commands/plan.md +1 -6
- package/commands/report/fast.md +2 -2
- package/commands/report/hard.md +1 -1
- package/commands/report.md +2 -7
- package/commands/review/hard.md +1 -1
- package/commands/test/hard.md +1 -1
- package/commands/test.md +1 -6
- package/documents/HSOL-ASSESSMENT.md +6 -6
- package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1 -1
- package/documents/business/business-features/00-index.md +101 -0
- package/documents/business/business-features/01-feature-inventory.md +341 -0
- package/documents/business/business-features/02-prioritization-moscow.md +148 -0
- package/documents/business/business-features/03-feature-specifications.md +511 -0
- package/documents/business/business-features/04-dependencies-and-release-sequencing.md +313 -0
- package/documents/business/business-features/05-success-metrics.md +290 -0
- package/documents/business/business-glossary/00-index.md +89 -0
- package/documents/business/business-glossary/01-canonical-terms.md +428 -0
- package/documents/business/business-glossary/02-synonyms-and-deprecated-terms.md +180 -0
- package/documents/business/business-glossary/03-domain-entities-and-events.md +395 -0
- package/documents/business/business-glossary/04-api-term-mapping.md +173 -0
- package/documents/business/business-prd/00-index.md +107 -0
- package/documents/business/business-prd/01-executive-summary.md +131 -0
- package/documents/business/business-prd/02-problem-goals-and-scope.md +204 -0
- package/documents/business/business-prd/03-stakeholders-and-requirements.md +210 -0
- package/documents/business/business-prd/04-acceptance-risks-assumptions.md +246 -0
- package/documents/business/business-workflows/00-index.md +107 -0
- package/documents/business/business-workflows/01-actor-map.md +303 -0
- package/documents/business/business-workflows/02-workflow-catalog.md +252 -0
- package/documents/business/business-workflows/03-detailed-workflows.md +641 -0
- package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +216 -0
- package/documents/business/business-workflows/05-sla-and-handoffs.md +253 -0
- package/documents/knowledge-architecture/00-index.md +159 -0
- package/documents/knowledge-architecture/01-system-overview.md +240 -0
- package/documents/knowledge-architecture/02-components.md +419 -0
- package/documents/knowledge-architecture/03-data-flow.md +368 -0
- package/documents/knowledge-architecture/04-design-patterns.md +497 -0
- package/documents/knowledge-architecture/05-decisions.md +410 -0
- package/documents/knowledge-domain/00-index.md +251 -0
- package/documents/knowledge-domain/01-entities.md +582 -0
- package/documents/knowledge-domain/02-database-schema.md +138 -0
- package/documents/knowledge-domain/03-api-contracts.md +477 -0
- package/documents/knowledge-domain/04-business-rules.md +554 -0
- package/documents/knowledge-overview/00-index.md +107 -0
- package/documents/knowledge-overview/01-project-identity.md +162 -0
- package/documents/knowledge-overview/02-tech-stack.md +119 -0
- package/documents/knowledge-overview/03-features.md +232 -0
- package/documents/knowledge-overview/04-getting-started.md +394 -0
- package/documents/knowledge-source-base/00-index.md +107 -0
- package/documents/knowledge-source-base/01-directory-structure.md +312 -0
- package/documents/knowledge-source-base/02-entry-points.md +346 -0
- package/documents/knowledge-source-base/03-key-modules.md +581 -0
- package/documents/knowledge-source-base/04-configuration.md +467 -0
- package/documents/knowledge-standards/00-index.md +129 -0
- package/documents/knowledge-standards/01-code-style.md +161 -0
- package/documents/knowledge-standards/02-conventions.md +254 -0
- package/documents/knowledge-standards/03-git-workflow.md +228 -0
- package/documents/knowledge-standards/04-testing-standards.md +175 -0
- package/matrix-skills/_index.yaml +1 -1
- package/package.json +1 -1
- package/rules/AGENTS.md +1 -1
- package/rules/REFERENCE.md +18 -14
- package/rules/SKILLS.md +1 -1
- package/rules/TEAMS.md +1 -2
- package/skills/docs-audit/README.md +10 -8
- package/skills/docs-audit/SKILL.md +45 -41
- package/skills/docs-audit/references/scoring-framework.md +5 -5
- package/skills/docs-core/README.md +19 -14
- package/skills/docs-core/SKILL.md +189 -117
- package/skills/planning/references/codebase-understanding.md +5 -5
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +0 -4
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +0 -18
- package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +0 -4
- package/commands/code/focus.md +0 -297
- package/commands/cook/focus.md +0 -209
- package/commands/debug/focus.md +0 -103
- package/commands/design/focus.md +0 -229
- package/commands/fix/focus.md +0 -145
- package/commands/plan/focus.md +0 -140
- package/commands/report/focus.md +0 -107
- package/commands/test/focus.md +0 -123
- package/documents/business/business-features.md +0 -894
- package/documents/business/business-glossary.md +0 -554
- package/documents/business/business-prd.md +0 -400
- package/documents/business/business-workflows.md +0 -713
- package/documents/knowledge-architecture.md +0 -621
- package/documents/knowledge-domain.md +0 -602
- package/documents/knowledge-overview.md +0 -316
- package/documents/knowledge-source-base.md +0 -581
- package/documents/knowledge-standards.md +0 -632
package/commands/design/focus.md
DELETED
|
@@ -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
|
package/commands/fix/focus.md
DELETED
|
@@ -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`
|
package/commands/plan/focus.md
DELETED
|
@@ -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)
|
package/commands/report/focus.md
DELETED
|
@@ -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)
|