@namch/agent-assistant 1.3.1 → 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 (81) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +3 -4
  3. package/code-assistants/codex-assistant/CODEX.md +1 -2
  4. package/commands/ask/hard.md +1 -1
  5. package/commands/brainstorm/hard.md +1 -1
  6. package/commands/code/hard.md +1 -1
  7. package/commands/code.md +2 -7
  8. package/commands/cook/hard.md +1 -1
  9. package/commands/cook.md +1 -6
  10. package/commands/debug/hard.md +1 -1
  11. package/commands/debug.md +1 -6
  12. package/commands/design/hard.md +1 -1
  13. package/commands/design.md +1 -6
  14. package/commands/fix/hard.md +1 -1
  15. package/commands/fix.md +1 -6
  16. package/commands/plan/hard.md +1 -1
  17. package/commands/plan.md +1 -6
  18. package/commands/report/fast.md +2 -2
  19. package/commands/report/hard.md +1 -1
  20. package/commands/report.md +2 -7
  21. package/commands/review/hard.md +1 -1
  22. package/commands/test/hard.md +1 -1
  23. package/commands/test.md +1 -6
  24. package/documents/HSOL-ASSESSMENT.md +6 -6
  25. package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1 -1
  26. package/documents/business/business-features/01-feature-inventory.md +5 -5
  27. package/documents/business/business-features/03-feature-specifications.md +7 -8
  28. package/documents/business/business-features/04-dependencies-and-release-sequencing.md +3 -3
  29. package/documents/business/business-features/05-success-metrics.md +2 -2
  30. package/documents/business/business-prd/03-stakeholders-and-requirements.md +1 -1
  31. package/documents/business/business-workflows/02-workflow-catalog.md +2 -2
  32. package/documents/business/business-workflows/03-detailed-workflows.md +5 -5
  33. package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +2 -2
  34. package/documents/business/business-workflows/05-sla-and-handoffs.md +1 -1
  35. package/documents/knowledge-architecture/00-index.md +2 -2
  36. package/documents/knowledge-architecture/01-system-overview.md +2 -2
  37. package/documents/knowledge-architecture/02-components.md +8 -8
  38. package/documents/knowledge-architecture/03-data-flow.md +1 -2
  39. package/documents/knowledge-architecture/04-design-patterns.md +1 -2
  40. package/documents/knowledge-architecture/05-decisions.md +3 -3
  41. package/documents/knowledge-domain/00-index.md +1 -1
  42. package/documents/knowledge-domain/01-entities.md +9 -10
  43. package/documents/knowledge-domain/03-api-contracts.md +17 -19
  44. package/documents/knowledge-domain/04-business-rules.md +0 -1
  45. package/documents/knowledge-overview/00-index.md +1 -1
  46. package/documents/knowledge-overview/01-project-identity.md +1 -1
  47. package/documents/knowledge-overview/03-features.md +2 -3
  48. package/documents/knowledge-source-base/01-directory-structure.md +9 -9
  49. package/documents/knowledge-source-base/03-key-modules.md +11 -12
  50. package/documents/knowledge-source-base/04-configuration.md +1 -1
  51. package/documents/knowledge-standards/02-conventions.md +0 -1
  52. package/matrix-skills/_index.yaml +1 -1
  53. package/package.json +1 -1
  54. package/rules/AGENTS.md +1 -1
  55. package/rules/REFERENCE.md +8 -8
  56. package/rules/SKILLS.md +1 -1
  57. package/rules/TEAMS.md +1 -2
  58. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/SKILL.md +0 -18
  59. package/code-assistants/codex-assistant/skills/agent-assistant-code-focus/agents/openai.yaml +0 -4
  60. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/SKILL.md +0 -18
  61. package/code-assistants/codex-assistant/skills/agent-assistant-cook-focus/agents/openai.yaml +0 -4
  62. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/SKILL.md +0 -18
  63. package/code-assistants/codex-assistant/skills/agent-assistant-debug-focus/agents/openai.yaml +0 -4
  64. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/SKILL.md +0 -18
  65. package/code-assistants/codex-assistant/skills/agent-assistant-design-focus/agents/openai.yaml +0 -4
  66. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/SKILL.md +0 -18
  67. package/code-assistants/codex-assistant/skills/agent-assistant-fix-focus/agents/openai.yaml +0 -4
  68. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/SKILL.md +0 -18
  69. package/code-assistants/codex-assistant/skills/agent-assistant-plan-focus/agents/openai.yaml +0 -4
  70. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/SKILL.md +0 -18
  71. package/code-assistants/codex-assistant/skills/agent-assistant-report-focus/agents/openai.yaml +0 -4
  72. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/SKILL.md +0 -18
  73. package/code-assistants/codex-assistant/skills/agent-assistant-test-focus/agents/openai.yaml +0 -4
  74. package/commands/code/focus.md +0 -297
  75. package/commands/cook/focus.md +0 -209
  76. package/commands/debug/focus.md +0 -103
  77. package/commands/design/focus.md +0 -229
  78. package/commands/fix/focus.md +0 -145
  79. package/commands/plan/focus.md +0 -140
  80. package/commands/report/focus.md +0 -107
  81. package/commands/test/focus.md +0 -123
@@ -1,209 +0,0 @@
1
- ---
2
- description: 🔒 Focused Feature — Complete development with enforced context optimization
3
- version: "1.0"
4
- category: engineering
5
- execution-mode: execute
6
- ---
7
-
8
- # /cook:focus — Focus Feature Development
9
-
10
- > **MISSION**: Full feature development with **enforced context optimization**.
11
- >
12
- > This variant automatically clears context before implementation—no user prompt required.
13
- > Use when you want guaranteed clean implementation without context rot risk.
14
-
15
- <feature>$ARGUMENTS</feature>
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
- > Reference: AGENTS.md (Tiered Execution)`
36
-
37
- | Tier | When | Action |
38
- | ---------- | ----------------------------- | ---------------------------- |
39
- | **TIER 1** | runSubagent/Agent Tool EXISTS | Invoke sub-agent (MANDATORY) |
40
- | **TIER 2** | Tool MISSING or SYSTEM error | EMBODY agent file (FALLBACK) |
41
-
42
- **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
43
-
44
- ---
45
-
46
- ## 📁 DELIVERABLE FILES
47
-
48
- | Agent | Output |
49
- | ------------ | ----------------------------------------------- |
50
- | brainstormer | `./reports/{topic}/brainstorms/BRAINSTORM-{feature}` |
51
- | researcher | `./reports/{topic}/researchers/RESEARCH-{feature}` |
52
- | scouter | `./reports/{topic}/scouts/SCOUT-{feature}` |
53
- | designer | `./reports/{topic}/designs/DESIGN-{feature}` |
54
- | planner | `./reports/{topic}/plans/PLAN-{feature}` |
55
-
56
- All files in `./reports/{topic}/` → English only.
57
- **⚠️ 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.
58
-
59
- ---
60
-
61
- ## 🔗 PHASE DEPENDENCIES
62
-
63
- | Phase | Requires | Blocking |
64
- | ------------------ | ---------------------- | ----------- |
65
- | P1: Brainstorm | User request | No |
66
- | P2: Research | User request | No |
67
- | P3: Scout | User request | No |
68
- | P3.5: DB Design | Data requirements | Conditional |
69
- | P4: Design | Scout findings | Conditional |
70
- | P5: Planning | RESEARCH + SCOUT files | **YES** |
71
- | P5.5: Context Gate | **PLAN file** | **AUTO** |
72
- | P6: Implementation | **PLAN file** | **YES** |
73
- | P7: Testing | PLAN + Code | **YES** |
74
- | P8: Review | PLAN + Code + Tests | **YES** |
75
-
76
- **⛔ Blocking**: If input missing → STOP → Create it first → Resume
77
-
78
- ---
79
-
80
- ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
81
-
82
- 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.
83
-
84
- ---
85
-
86
- ## 🎭 Phase 1: REQUIREMENTS CLARIFICATION
87
-
88
- | Agent | `brainstormer` |
89
- | ----- | -------------------------------------------------------------------- |
90
- | Goal | Full requirements discovery |
91
- | Exit | Requirements clear, constraints identified, success criteria defined |
92
-
93
- ---
94
-
95
- ## 🎭 Phase 2: RESEARCH
96
-
97
- | Agent | `researcher` |
98
- | ----- | -------------------------------------------------------------------------- |
99
- | Goal | Research best practices and patterns |
100
- | Exit | Patterns researched, best practices identified, recommendations documented |
101
-
102
- ---
103
-
104
- ## 🎭 Phase 3: CODEBASE ANALYSIS
105
-
106
- | Agent | `scouter` |
107
- | ----- | ----------------------------------------------------------------------- |
108
- | Goal | Map architecture and integration points |
109
- | Exit | Architecture understood, integration points mapped, patterns documented |
110
-
111
- ---
112
-
113
- ## 🎭 Phase 3.5: DATABASE DESIGN (IF DATA CHANGES)
114
-
115
- | Agent | `database-architect` |
116
- | ------- | ----------------------------------------------------------- |
117
- | Trigger | Feature involves database changes/migrations |
118
- | Goal | Schema design and data modeling |
119
- | Exit | Schema designed, migrations planned, query patterns defined |
120
-
121
- ---
122
-
123
- ## 🎭 Phase 4: DESIGN (IF UI NEEDED)
124
-
125
- | Agent | `designer` |
126
- | ------- | ----------------------------------------------------- |
127
- | Trigger | Feature has UI components |
128
- | Goal | UI/UX design |
129
- | Exit | Design created, accessibility considered, specs ready |
130
-
131
- ---
132
-
133
- ## 🎭 Phase 5: PLANNING
134
-
135
- | Agent | `planner` |
136
- | ------------ | --------------------------------------------------- |
137
- | Prerequisite | **READ** RESEARCH + SCOUT + DESIGN files |
138
- | Goal | Create detailed implementation plan |
139
- | Output | `./reports/{topic}/plans/PLAN-{feature}` |
140
- | Exit | Plan file created, phases defined, risks identified |
141
-
142
- ---
143
-
144
- ## 🎭 Phase 6: IMPLEMENTATION
145
-
146
- | Agent | `tech-lead` → routes to specialists |
147
- | ------------ | ------------------------------------------------------- |
148
- | Prerequisite | **READ and FOLLOW** `./reports/{topic}/plans/PLAN-{feature}` |
149
- | Goal | Execute implementation plan |
150
-
151
- **FOCUS ADHERENCE:**
152
-
153
- ```
154
- 1. READ plan FIRST
155
- 2. FOR EACH step:
156
- - Implement EXACTLY as specified
157
- - Mark step complete: [ ] → [x]
158
- 3. IF step seems wrong:
159
- - STOP → Document → Request Re-Planning
160
- - DO NOT implement your own interpretation
161
- ```
162
-
163
- | Exit | All plan phases complete, no unauthorized deviations |
164
-
165
- ---
166
-
167
- ## 🎭 Phase 7: TESTING
168
-
169
- | Agent | `tester` |
170
- | ------------ | ---------------------------- |
171
- | Prerequisite | **READ** PLAN + Code changes |
172
- | Goal | Comprehensive testing |
173
-
174
- **PLAN CHECKPOINT VERIFICATION:**
175
-
176
- ```
177
- FOR EACH checkpoint in PLAN:
178
- - Write test that verifies criteria
179
- - Document: "Checkpoint X → Test Y"
180
- ```
181
-
182
- | Exit | All tests pass, each plan checkpoint has test |
183
-
184
- ---
185
-
186
- ## 🎭 Phase 8: REVIEW
187
-
188
- | Agent | `reviewer` |
189
- | ------------ | -------------------------------- |
190
- | Prerequisite | **READ** PLAN + Code + Tests |
191
- | Goal | Quality review + Plan compliance |
192
-
193
- **REVIEW CHECKLIST:**
194
-
195
- - Does code implement plan specification?
196
- - Any unauthorized deviations?
197
- - All plan phases reflected in code?
198
-
199
- | Exit | Code matches plan intent, standards met, approved |
200
-
201
- ---
202
-
203
- ## COMPLETION
204
-
205
- Present feature report with:
206
-
207
- 1. ✅ **Done** — Feature complete (Focus Mode)
208
- 2. 🚀 **Deploy** → `/deploy:preview`
209
- 3. 📝 **Docs** → `/docs:core`
@@ -1,103 +0,0 @@
1
- ---
2
- description: 🔒 Focused Debug — Deep investigation with enforced context optimization
3
- version: "1.0"
4
- category: debugging
5
- execution-mode: execute
6
- ---
7
-
8
- # /debug:focus — Focus Deep Investigation
9
-
10
- > **MISSION**: Thorough investigation with **enforced context optimization**.
11
- >
12
- > This variant automatically clears context before fix handoff—no user prompt required.
13
- > Use when you want guaranteed clean fix handoff without hypothesis drift.
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
- ---
41
-
42
- ## 📁 DELIVERABLE FILES
43
-
44
- | Agent | Output |
45
- | -------- | ----------------------------------- |
46
- | debugger | `./reports/{topic}/debugs/DEBUG-{issue}` |
47
-
48
- All files in `./reports/{topic}/` → English only.
49
- **⚠️ 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.
50
-
51
- ---
52
-
53
- ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
54
-
55
- 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).
56
-
57
- ---
58
-
59
- ## 🎭 Phase 1: INFORMATION GATHERING
60
-
61
- | Agent | `scouter` |
62
- | ----- | ----------------------------------------- |
63
- | Goal | Gather context and reproduction steps |
64
- | Exit | Context gathered, reproduction documented |
65
-
66
- ---
67
-
68
- ## 🎭 Phase 2: HYPOTHESIS FORMATION
69
-
70
- | Agent | `debugger` |
71
- | ----- | ----------------------------------- |
72
- | Goal | Form and rank hypotheses |
73
- | Exit | Hypotheses documented with evidence |
74
-
75
- ---
76
-
77
- ## 🎭 Phase 3: ROOT CAUSE ANALYSIS
78
-
79
- | Agent | `debugger` |
80
- | ------ | ----------------------------------------------- |
81
- | Goal | Deep investigation |
82
- | Output | `./reports/{topic}/debugs/DEBUG-{issue}` |
83
- | Exit | Root cause identified, failure chain documented |
84
-
85
- ---
86
-
87
- ## 🎭 Phase 4: SOLUTION DESIGN
88
-
89
- | Agent | `planner` |
90
- | ----- | --------------------------------------- |
91
- | Goal | Design fix strategy |
92
- | Exit | Fix approach defined with rollback plan |
93
-
94
- ---
95
-
96
- ## COMPLETION
97
-
98
- Present findings with:
99
-
100
- 1. ✅ **Root Cause** — Identified (Focus Mode)
101
- 2. 🔒 **Context Optimized** — Ready for focus fix
102
- 3. 🔧 **Fix** → `/fix:focus`
103
- 4. 📝 **Document** → `/docs:core`
@@ -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`