@namch/agent-assistant 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +24 -9
  2. package/agents/reporter.md +177 -0
  3. package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +3 -1
  4. package/code-assistants/antigravity-assistant/GEMINI.md +2 -0
  5. package/code-assistants/copilot-assistant/agent-assistant.agent.md +5 -0
  6. package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +3 -1
  7. package/commands/code/focus.md +323 -0
  8. package/commands/code/hard.md +59 -0
  9. package/commands/code.md +13 -7
  10. package/commands/cook/focus.md +262 -0
  11. package/commands/cook/hard.md +59 -0
  12. package/commands/cook.md +13 -7
  13. package/commands/debug/focus.md +155 -0
  14. package/commands/debug/hard.md +53 -0
  15. package/commands/debug.md +9 -4
  16. package/commands/design/focus.md +267 -0
  17. package/commands/design/hard.md +53 -0
  18. package/commands/design.md +13 -7
  19. package/commands/fix/focus.md +175 -0
  20. package/commands/fix/hard.md +57 -0
  21. package/commands/fix.md +13 -7
  22. package/commands/plan/focus.md +190 -0
  23. package/commands/plan/hard.md +56 -0
  24. package/commands/plan.md +13 -7
  25. package/commands/report/fast.md +71 -0
  26. package/commands/report/focus.md +156 -0
  27. package/commands/report/hard.md +112 -0
  28. package/commands/report.md +89 -0
  29. package/commands/test/focus.md +165 -0
  30. package/commands/test/hard.md +53 -0
  31. package/commands/test.md +9 -4
  32. package/documents/business/business-features.md +1 -1
  33. package/documents/business/business-glossary.md +9 -8
  34. package/documents/business/business-prd.md +8 -8
  35. package/documents/knowledge-architecture.md +1 -1
  36. package/documents/knowledge-domain.md +5 -4
  37. package/documents/knowledge-overview.md +7 -6
  38. package/documents/knowledge-source-base.md +9 -9
  39. package/package.json +1 -1
  40. package/rules/AGENT-RULES.md +2 -1
  41. package/rules/BOOTSTRAP.md +3 -0
  42. package/rules/QUICK-REFERENCE.md +8 -0
@@ -79,6 +79,63 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
79
79
 
80
80
  ---
81
81
 
82
+ ## 🛡️ VERIFICATION CHECKPOINT — Context Optimization
83
+
84
+ > **PURPOSE**: Prevent "context rot" by clearing noisy debugging/planning history before implementation.
85
+ >
86
+ > Long-running analysis sessions fill context with noise that degrades code generation quality.
87
+ > This checkpoint acts as a "firewall" between Planning and Implementation phases.
88
+
89
+ ### ⚡ OPTIONS (Present to User)
90
+
91
+ ```markdown
92
+ ## 🛡️ Context Optimization Checkpoint
93
+
94
+ **Planning Complete** — Fix plan created with rollback strategy.
95
+
96
+ **Choose how to proceed with implementation:**
97
+
98
+ | Option | Action | Description |
99
+ |--------|--------|-------------|
100
+ | **1. 🚀 Clear context & Auto-Implement** | `RECOMMENDED` | Fresh start: Reload Plan, ignore chat history, begin fix immediately |
101
+ | **2. ⏸️ Clear context & Manual** | `SAFE` | Clear context, reload Plan, pause for your command before coding |
102
+ | **3. ⚠️ Continue (No Clear)** | `RISKY` | Proceed with full history attached (may cause hallucination) |
103
+
104
+ ⏳ Awaiting selection...
105
+ ```
106
+
107
+ ### 🔄 EXECUTION BEHAVIOR
108
+
109
+ ```yaml
110
+ option_1_clear_auto_implement:
111
+ behavior: "RECOMMENDED - Simulate fresh start"
112
+ steps:
113
+ 1. ACKNOWLEDGE: "🚀 Executing Clear context & Auto-Implement..."
114
+ 2. CONTEXT_DIRECTIVE: |
115
+ ⛔ IGNORE all previous chat messages and reasoning chains.
116
+ ✅ RELOAD: Fix plan as SOLE SOURCE OF TRUTH.
117
+ ✅ PROCEED: Begin Phase 4 (Implementation) immediately.
118
+ 3. EXECUTE: Start Implementation phase with fresh context mindset
119
+
120
+ option_2_clear_manual:
121
+ behavior: "Clear and wait for explicit command"
122
+ steps:
123
+ 1. ACKNOWLEDGE: "⏸️ Context cleared. Plan reloaded."
124
+ 2. CONTEXT_DIRECTIVE: |
125
+ ⛔ IGNORE all previous chat messages and reasoning chains.
126
+ ✅ RELOAD: Fix plan as SOLE SOURCE OF TRUTH.
127
+ 3. OUTPUT: "Ready for fix implementation. Type `/continue` or give specific instructions."
128
+ 4. WAIT: For user command before proceeding
129
+
130
+ option_3_continue_no_clear:
131
+ behavior: "Proceed with caution - context rot risk"
132
+ steps:
133
+ 1. WARN: "⚠️ Continuing with full history. Higher hallucination risk."
134
+ 2. PROCEED: Continue to Phase 4 with existing context
135
+ ```
136
+
137
+ ---
138
+
82
139
  ## 🎭 Phase 4: IMPLEMENTATION
83
140
 
84
141
  | Agent | `tech-lead` → specialists |
package/commands/fix.md CHANGED
@@ -16,9 +16,10 @@ execution-mode: router
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+
20
+ 1. ORCHESTRATION-LAWS.md
21
+ 2. ADAPTIVE-EXECUTION.md
22
+ 3. EXECUTION-PROTOCOL.md
22
23
 
23
24
  **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant workflow, and execute it.
24
25
 
@@ -33,6 +34,9 @@ IF issue is simple (clear cause, quick fix):
33
34
  IF issue is complex (research needed, multi-file):
34
35
  → Route to /fix:hard
35
36
 
37
+ IF issue is complex AND context optimization is critical:
38
+ → Route to /fix:focus
39
+
36
40
  IF unsure:
37
41
  → Default to /fix:fast (escalate if needed)
38
42
  ```
@@ -41,10 +45,11 @@ IF unsure:
41
45
 
42
46
  ## AVAILABLE ROUTES
43
47
 
44
- | Route | When to Use |
45
- | ----------- | ------------------------------- |
46
- | `/fix:fast` | Quick fixes, clear issues |
47
- | `/fix:hard` | Complex issues, research needed |
48
+ | Route | When to Use |
49
+ | ------------ | ----------------------------------------------------- |
50
+ | `/fix:fast` | Quick fixes, clear issues |
51
+ | `/fix:hard` | Complex issues, research needed |
52
+ | `/fix:focus` | Complex issues with **enforced context optimization** |
48
53
 
49
54
  ---
50
55
 
@@ -59,6 +64,7 @@ IF unsure:
59
64
 
60
65
  1. ⚡ **Fast** → `/fix:fast` — Quick fix
61
66
  2. ⚡⚡⚡ **Hard** → `/fix:hard` — Full resolution
67
+ 3. 🎯 **Focus** → `/fix:focus` — Full resolution with **automatic context clearing** (prevents hallucination)
62
68
 
63
69
  ⏳ Awaiting selection...
64
70
  ```
@@ -0,0 +1,190 @@
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. ORCHESTRATION-LAWS.md
24
+ 2. ADAPTIVE-EXECUTION.md
25
+ 3. EXECUTION-PROTOCOL.md
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
+ ---
30
+
31
+ ## 🔀 TIERED EXECUTION
32
+
33
+ | Tier | When | Action |
34
+ | ---------- | ------------------ | ---------------------------- |
35
+ | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
36
+ | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
37
+
38
+ ---
39
+
40
+ ## 📁 DELIVERABLE FILES
41
+
42
+ | Agent | Output |
43
+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
44
+ | researcher | `./reports/researchers/RESEARCH-{task}.md` |
45
+ | scouter | `./reports/scouts/SCOUT-{task}.md` |
46
+ | planner | **One** `./reports/plans/PLAN-{task}.md` **OR** multiple `./reports/plans/PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, … (see **Complexity & plan splitting** below) |
47
+
48
+ **Plans are source of truth for implementation.** All files in `./reports/` → English only.
49
+
50
+ ---
51
+
52
+ ## 📐 COMPLEXITY & PLAN SPLITTING (MANDATORY FOR PLANNER)
53
+
54
+ 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.
55
+
56
+ | Condition | Planner output |
57
+ | -------------------------- | ---------------------------------------------------------------- |
58
+ | ≤ 3 phases, ≤ 3 days | **One** `PLAN-{task}.md` |
59
+ | > 3 phases **or** > 3 days | **Multiple** `PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, … |
60
+
61
+ **Multi-plan rules:**
62
+
63
+ - Naming: `PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, …
64
+ - Order: Execute in numeric order; phase N starts only after phase N−1 is complete.
65
+ - Each file: scope **only** that phase; Prerequisites state "Phase N−1 complete" (or prior deliverables); clear handoff to next file.
66
+ - Index (optional): planner may add `PLAN-{task}-INDEX.md` listing phases and file names for navigation.
67
+
68
+ ---
69
+
70
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
71
+
72
+ 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/EXECUTION-PROTOCOL.md § Phase output structure.
73
+
74
+ ---
75
+
76
+ ## 🎭 Phase 1: RESEARCH
77
+
78
+ | Agent | `researcher` |
79
+ | ------ | --------------------------------------------- |
80
+ | Goal | Research best practices and patterns |
81
+ | Output | `./reports/researchers/RESEARCH-{task}.md` |
82
+ | Exit | Best practices identified, sources documented |
83
+
84
+ ---
85
+
86
+ ## 🎭 Phase 2: CODEBASE ANALYSIS
87
+
88
+ | Agent | `scouter` |
89
+ | ------ | -------------------------------------------- |
90
+ | Goal | Full architecture mapping |
91
+ | Output | `./reports/scouts/SCOUT-{task}.md` |
92
+ | Exit | Architecture understood, dependencies mapped |
93
+
94
+ ---
95
+
96
+ ## 🎭 Phase 3: DESIGN (IF UI NEEDED)
97
+
98
+ | Agent | `designer` |
99
+ | ------- | ------------------------------------------------- |
100
+ | Trigger | Task involves UI/UX |
101
+ | Goal | Design approach input |
102
+ | Exit | Design approach defined, accessibility considered |
103
+
104
+ ---
105
+
106
+ ## 🎭 Phase 4: PLAN CREATION
107
+
108
+ | Agent | `planner` |
109
+ | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
110
+ | Prerequisite | **READ** RESEARCH + SCOUT files (and DESIGN if Phase 3 ran) |
111
+ | Goal | Create detailed implementation plan as **one file** or **multiple phase files** (see **Complexity & plan splitting** above) |
112
+ | Output | One `./reports/plans/PLAN-{task}.md` **or** multiple `./reports/plans/PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, … |
113
+
114
+ **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`.
115
+
116
+ **CONSTRAINT INHERITANCE:**
117
+
118
+ ```
119
+ Plan(s) MUST reference prior phases:
120
+ - "Based on research finding R1..."
121
+ - "Following pattern from Scout..."
122
+ - "Per design decision D1..."
123
+ ```
124
+
125
+ | Exit | One plan file **or** multiple phase plan files created; each has scope, prerequisites, tasks, exit criteria, risks, rollback; order and handoffs clear |
126
+
127
+ ---
128
+
129
+ ## 🛡️ STRICT CONTEXT GATE — Automatic Context Optimization
130
+
131
+ > **⚡ FOCUS MODE**: This checkpoint executes automatically. NO user input required.
132
+ >
133
+ > **PURPOSE**: Prevent "context rot" by forcibly clearing noisy research/planning history.
134
+ > This acts as a mandatory "firewall" before handoff to implementation workflows.
135
+
136
+ ### 🔒 AUTOMATIC EXECUTION (NO PROMPT)
137
+
138
+ ```yaml
139
+ strict_context_gate:
140
+ mode: "AUTOMATIC - No user interaction"
141
+ behavior: "Force Clear context & Ready"
142
+
143
+ execution:
144
+ 1. ANNOUNCE: |
145
+ ## 🛡️ Strict Context Gate — Automatic
146
+
147
+ ✅ **Plan Complete**: Plan file(s) created.
148
+ 🔒 **Focus Mode**: Automatically clearing context for implementation handoff.
149
+
150
+ ⚡ Executing: **Clear context & Ready**...
151
+
152
+ 2. CONTEXT_DIRECTIVE: |
153
+ ╔══════════════════════════════════════════════════════════════════╗
154
+ ║ ⛔ MANDATORY CONTEXT RESET — FOCUS MODE ║
155
+ ╠══════════════════════════════════════════════════════════════════╣
156
+ ║ IGNORE: All previous research discussions, exploration paths, ║
157
+ ║ rejected alternatives, and intermediate reasoning. ║
158
+ ║ ║
159
+ ║ SOLE SOURCE OF TRUTH: Plan file(s) in ./reports/plans/ ║
160
+ ║ ║
161
+ ║ HANDOFF: Plan is ready for `/code:focus` implementation. ║
162
+ ║ Implementation should treat Plan as fresh context. ║
163
+ ╚══════════════════════════════════════════════════════════════════╝
164
+
165
+ 3. OUTPUT: Plan summary for user
166
+
167
+ 4. PROCEED: To COMPLETION
168
+ ```
169
+
170
+ ### 📋 Post-Gate Status
171
+
172
+ ```markdown
173
+ 🔒 **Context Gate Passed**
174
+
175
+ - Previous context: DISCARDED
176
+ - Active context: Plan file(s) only
177
+ - Mode: Clean handoff ready
178
+
179
+ Plan ready for implementation...
180
+ ```
181
+
182
+ ---
183
+
184
+ ## COMPLETION
185
+
186
+ Present plan with:
187
+
188
+ 1. ✅ **Plan Ready** — `./reports/plans/PLAN-{task}.md` (single) **or** `PLAN-{task}-phase1.md`, `PLAN-{task}-phase2.md`, … (multi-phase, execute in order)
189
+ 2. 🔒 **Context Optimized** — Ready for focus implementation
190
+ 3. 🍳 **Implement** → `/code:focus` (run phase-by-phase when multiple plan files exist)
@@ -123,6 +123,62 @@ Plan(s) MUST reference prior phases:
123
123
 
124
124
  ---
125
125
 
126
+ ## 🛡️ VERIFICATION CHECKPOINT — Context Optimization
127
+
128
+ > **PURPOSE**: Prevent "context rot" by clearing noisy research/planning history before implementation.
129
+ >
130
+ > Long-running planning sessions fill context with noise that degrades implementation quality.
131
+ > This checkpoint acts as a "firewall" before handing off to implementation workflows.
132
+
133
+ ### ⚡ OPTIONS (Present to User)
134
+
135
+ ```markdown
136
+ ## 🛡️ Context Optimization Checkpoint
137
+
138
+ **Planning Complete** — Plan file(s) created.
139
+
140
+ **Choose how to proceed:**
141
+
142
+ | Option | Action | Description |
143
+ |--------|--------|-------------|
144
+ | **1. 🚀 Clear context & Ready** | `RECOMMENDED` | Fresh start for implementation: Reload Plan, ignore planning history |
145
+ | **2. ⏸️ Review First** | `SAFE` | Clear context, show plan summary, wait for approval |
146
+ | **3. ⚠️ Continue (No Clear)** | `RISKY` | Keep full history (may affect `/cook:hard` quality) |
147
+
148
+ ⏳ Awaiting selection...
149
+ ```
150
+
151
+ ### 🔄 EXECUTION BEHAVIOR
152
+
153
+ ```yaml
154
+ option_1_clear_ready:
155
+ behavior: "RECOMMENDED - Prepare clean handoff"
156
+ steps:
157
+ 1. ACKNOWLEDGE: "🚀 Context optimized. Plan ready for implementation."
158
+ 2. CONTEXT_DIRECTIVE: |
159
+ ⛔ IGNORE all previous research/planning reasoning chains.
160
+ ✅ PLAN FILE is SOLE SOURCE OF TRUTH for implementation.
161
+ 3. OUTPUT: "Run `/code:focus` to implement with clean context."
162
+
163
+ option_2_review_first:
164
+ behavior: "Clear and show summary"
165
+ steps:
166
+ 1. ACKNOWLEDGE: "⏸️ Context cleared."
167
+ 2. CONTEXT_DIRECTIVE: |
168
+ ⛔ IGNORE all previous research/planning reasoning chains.
169
+ ✅ PLAN FILE is SOLE SOURCE OF TRUTH.
170
+ 3. OUTPUT: Display plan summary for user review
171
+ 4. WAIT: For user approval before proceeding
172
+
173
+ option_3_continue_no_clear:
174
+ behavior: "Proceed with caution - context rot risk"
175
+ steps:
176
+ 1. WARN: "⚠️ Continuing with full history. May affect implementation quality."
177
+ 2. PROCEED: Complete workflow with existing context
178
+ ```
179
+
180
+ ---
181
+
126
182
  ## COMPLETION
127
183
 
128
184
  Present plan with:
package/commands/plan.md CHANGED
@@ -16,9 +16,10 @@ execution-mode: router
16
16
  ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
17
17
 
18
18
  **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
- 1. ORCHESTRATION-LAWS.md
20
- 2. ADAPTIVE-EXECUTION.md
21
- 3. EXECUTION-PROTOCOL.md
19
+
20
+ 1. ORCHESTRATION-LAWS.md
21
+ 2. ADAPTIVE-EXECUTION.md
22
+ 3. EXECUTION-PROTOCOL.md
22
23
 
23
24
  **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant (e.g. plan/hard.md), and execute it.
24
25
 
@@ -33,6 +34,9 @@ IF task is clear (known approach, codebase-only):
33
34
  IF task is complex (research needed, architectural):
34
35
  → Route to /plan:hard
35
36
 
37
+ IF task is complex AND clean implementation handoff is critical:
38
+ → Route to /plan:focus
39
+
36
40
  IF unsure:
37
41
  → Default to /plan:fast
38
42
  ```
@@ -41,10 +45,11 @@ IF unsure:
41
45
 
42
46
  ## AVAILABLE ROUTES
43
47
 
44
- | Route | When to Use |
45
- | ------------ | ------------------------------- |
46
- | `/plan:fast` | Quick planning without research |
47
- | `/plan:hard` | Full planning with research |
48
+ | Route | When to Use |
49
+ | ------------- | ---------------------------------------------------- |
50
+ | `/plan:fast` | Quick planning without research |
51
+ | `/plan:hard` | Full planning with research |
52
+ | `/plan:focus` | Full planning with **enforced context optimization** |
48
53
 
49
54
  ---
50
55
 
@@ -59,6 +64,7 @@ IF unsure:
59
64
 
60
65
  1. ⚡ **Fast** → `/plan:fast` — Quick plan
61
66
  2. ⚡⚡⚡ **Hard** → `/plan:hard` — Full research-backed plan
67
+ 3. 🎯 **Focus** → `/plan:focus` — Full plan with **automatic context clearing** (clean implementation handoff)
62
68
 
63
69
  ⏳ Awaiting selection...
64
70
  ```
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: ⚡ Fast Report — Quick status updates and summaries
3
+ version: "1.0"
4
+ category: documentation
5
+ execution-mode: execute
6
+ ---
7
+
8
+ # /report:fast — Quick Status Report
9
+
10
+ > **MISSION**: Generate concise, actionable status reports and summaries.
11
+ >
12
+ > Use for daily standups, progress checks, and high-level overviews.
13
+ > For **update existing files** or **generate from template**, use `/report:hard` or `/report:focus`.
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. ORCHESTRATION-LAWS.md
24
+ 2. ADAPTIVE-EXECUTION.md
25
+ 3. EXECUTION-PROTOCOL.md
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
+ ---
30
+
31
+ ## 🔀 TIERED EXECUTION
32
+
33
+ | Tier | When | Action |
34
+ | ---------- | ------------------ | ---------------------------- |
35
+ | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
36
+ | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
37
+
38
+ **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
39
+
40
+ ---
41
+
42
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
43
+
44
+ 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/EXECUTION-PROTOCOL.md § Phase output structure.
45
+
46
+ ---
47
+
48
+ ## 🎭 Phase 1: INFORMATION GATHERING
49
+
50
+ | Agent | `reporter` |
51
+ | ----- | ---------------------------------------- |
52
+ | Goal | Scan current state and recent activities |
53
+ | Exit | Progress summarized, key sources scanned |
54
+
55
+ ---
56
+
57
+ ## 🎭 Phase 2: REPORT GENERATION
58
+
59
+ | Agent | `reporter` |
60
+ | ----- | -------------------------------------------------------------------------- |
61
+ | Goal | Infer intent; if **create report** → generate concise status report |
62
+ | Exit | Report with Summary, Key Changes, Next Steps — or recommend `/report:hard`/`/report:focus` if user intent is update/template |
63
+
64
+ ---
65
+
66
+ ## COMPLETION
67
+
68
+ Present report:
69
+
70
+ 1. ✅ **Report Ready** — Displayed in chat
71
+ 2. 📄 **Save?** → If user wants to save: `./reports/general/REPORT-status-{YYYY-MM-DD}.md`
@@ -0,0 +1,156 @@
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. ORCHESTRATION-LAWS.md
24
+ 2. ADAPTIVE-EXECUTION.md
25
+ 3. EXECUTION-PROTOCOL.md
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
+ ---
30
+
31
+ ## 🔀 TIERED EXECUTION
32
+
33
+ | Tier | When | Action |
34
+ | ---------- | ------------------ | ---------------------------- |
35
+ | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
36
+ | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
37
+
38
+ **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
39
+
40
+ ---
41
+
42
+ ## 📁 DELIVERABLES (Reporter chooses from user intent)
43
+
44
+ | User intent | Reporter output |
45
+ | ----------- | ---------------- |
46
+ | **Create report** | `./reports/general/REPORT-FOCUS-{date}.md` or path user asked |
47
+ | **Update existing** | **Edit** related files; do **not** create new report unless also asked |
48
+ | **From template** | File(s) matching user format/template |
49
+
50
+ | Agent | When creating report |
51
+ | ---------- | ------------------------------------------------- |
52
+ | researcher | (optional) verification checklist |
53
+ | scouter | (optional) evidence output |
54
+ | reporter | Per table above — create / update / from template |
55
+
56
+ All files in `./reports/` → English only.
57
+
58
+ ---
59
+
60
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
61
+
62
+ 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/EXECUTION-PROTOCOL.md § Phase output structure.
63
+
64
+ ---
65
+
66
+ ## 🛡️ FOCUS CONTEXT GATE — Automatic Context Optimization
67
+
68
+ > **⚡ FOCUS MODE**: This checkpoint executes automatically. NO user input required.
69
+ >
70
+ > **PURPOSE**: Ensure report is based ONLY on facts, not conversation hallucinations.
71
+ > This acts as a mandatory "firewall" before analysis begins.
72
+
73
+ ### 🔒 AUTOMATIC EXECUTION (NO PROMPT)
74
+
75
+ ```yaml
76
+ focus_context_gate:
77
+ mode: "AUTOMATIC - No user interaction"
78
+ behavior: "Force Clear context & Analyze"
79
+
80
+ execution:
81
+ 1. ANNOUNCE: |
82
+ ## 🛡️ Focus Context Gate — Automatic
83
+
84
+ ✅ **Target Defined**: Analysis target identified.
85
+ 🔒 **Focus Mode**: Automatically clearing context for objective analysis.
86
+
87
+ ⚡ Executing: **Clear context & Analyze**...
88
+
89
+ 2. CONTEXT_DIRECTIVE: |
90
+ ╔══════════════════════════════════════════════════════════════════╗
91
+ ║ ⛔ MANDATORY CONTEXT RESET — FOCUS MODE ║
92
+ ╠══════════════════════════════════════════════════════════════════╣
93
+ ║ IGNORE: All previous chat assumptions, unverified claims, ║
94
+ ║ and subjective contextual bias. ║
95
+ ║ ║
96
+ ║ SOLE SOURCE OF TRUTH: The actual Codebase and Documentation. ║
97
+ ║ ║
98
+ ║ PROCEED: Begin Analysis phase with FRESH, OBJECTIVE mindset. ║
99
+ ╚══════════════════════════════════════════════════════════════════╝
100
+
101
+ 3. LOAD: Read specified target files as if seeing them for the first time
102
+
103
+ 4. PROCEED: Start Phase 1 (Objective Analysis) immediately
104
+ ```
105
+
106
+ ### 📋 Post-Gate Status
107
+
108
+ ```markdown
109
+ 🔒 **Context Gate Passed**
110
+
111
+ - Previous context: DISCARDED
112
+ - Active context: Target files / codebase only
113
+ - Mode: Fresh objective analysis
114
+
115
+ Proceeding to Phase 1...
116
+ ```
117
+
118
+ ---
119
+
120
+ ## 🎭 Phase 1: RESEARCH (AUDIT CRITERIA)
121
+
122
+ | Agent | `researcher` |
123
+ | ------ | ----------------------------------------------------- |
124
+ | Goal | Research audit/report criteria and what to verify |
125
+ | Exit | Verification checklist and report criteria defined |
126
+
127
+ ---
128
+
129
+ ## 🎭 Phase 2: EVIDENCE COLLECTION
130
+
131
+ | Agent | `scouter` |
132
+ | ------ | ------------------------------- |
133
+ | Goal | Gather raw, verifiable evidence |
134
+ | Exit | Factual state documented, no assumptions |
135
+
136
+ ---
137
+
138
+ ## 🎭 Phase 3: VERIFICATION & OUTPUT (create / update / from template)
139
+
140
+ | Agent | `reporter` |
141
+ | ----------- | -------------------------------------------------------------------------- |
142
+ | Prerequisite| **USE** Phase 1 criteria + Phase 2 evidence only |
143
+ | Goal | From **user intent**: synthesize into (1) new report, (2) **updates** to existing files, or (3) file(s) from template |
144
+ | Output | **Create**: `./reports/general/REPORT-FOCUS-{date}.md`. **Update**: edit related files. **Template**: file(s) matching user format. |
145
+ | Exit | Deliverable matches intent; every claim cited when creating report. |
146
+
147
+ ---
148
+
149
+ ## COMPLETION
150
+
151
+ Deliverable per **user intent**:
152
+
153
+ 1. ✅ **Create report** → `./reports/general/REPORT-FOCUS-{date}.md` (or path user asked)
154
+ 2. ✅ **Update existing** → Related files edited; list what was updated
155
+ 3. ✅ **From template** → File(s) matching user format; list path(s)
156
+ 4. 🕵️ **Audit** → `/review:focus` (optional)