@namch/agent-assistant 1.0.1 → 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 +103 -40
  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
@@ -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)
@@ -0,0 +1,112 @@
1
+ ---
2
+ description: ⚡ Detailed Report — Comprehensive project analysis and documentation
3
+ version: "1.0"
4
+ category: documentation
5
+ execution-mode: execute
6
+ ---
7
+
8
+ # /report:hard — Comprehensive Project Report
9
+
10
+ > **MISSION**: Generate detailed output for **any topic** — reports, doc updates, or template-based files.
11
+ >
12
+ > Use for: sprint reviews, technical docs, any-topic reports, updating existing files, or generating from user format/template.
13
+
14
+ <task>$ARGUMENTS</task>
15
+
16
+ ---
17
+
18
+ ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS PHASE 1)
19
+
20
+ **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
21
+
22
+ 1. ORCHESTRATION-LAWS.md
23
+ 2. ADAPTIVE-EXECUTION.md
24
+ 3. EXECUTION-PROTOCOL.md
25
+
26
+ **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
27
+
28
+ ---
29
+
30
+ ## 🔀 TIERED EXECUTION
31
+
32
+ | Tier | When | Action |
33
+ | ---------- | ------------------ | ---------------------------- |
34
+ | **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
35
+ | **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
36
+
37
+ **❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
38
+
39
+ ---
40
+
41
+ ## 📁 DELIVERABLES (Reporter chooses from user intent)
42
+
43
+ | User intent | Reporter output |
44
+ | ----------- | ---------------- |
45
+ | **Create report** | New file: `./reports/general/REPORT-{type}-{date}.md` (or path user asks) |
46
+ | **Update existing** | **Edit** related files (docs, README, etc.); do **not** create new report unless also asked |
47
+ | **From template** | New file(s) matching user format/template (e.g. after scouting source) |
48
+
49
+ | Agent | Output (when creating) |
50
+ | ---------- | ------------------------------------------------ |
51
+ | researcher | `./reports/researchers/RESEARCH-{task}.md` (optional) |
52
+ | scouter | `./reports/scouts/SCOUT-{task}.md` (optional) |
53
+ | reporter | Per table above — create report **or** update existing **or** generate from template |
54
+
55
+ All files in `./reports/` → English only.
56
+
57
+ ---
58
+
59
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
60
+
61
+ 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.
62
+
63
+ ---
64
+
65
+ ## 🎭 Phase 1: RESEARCH
66
+
67
+ | Agent | `researcher` |
68
+ | ------ | ---------------------------------------------------------- |
69
+ | Goal | Research report scope, audience, and best practices for project/technical reports |
70
+ | Output | `./reports/researchers/RESEARCH-{task}.md` (optional) |
71
+ | Exit | Report scope and criteria defined, templates identified |
72
+
73
+ ---
74
+
75
+ ## 🎭 Phase 2: DEEP SCAN
76
+
77
+ | Agent | `scouter` |
78
+ | ------ | --------------------------------- |
79
+ | Goal | Full codebase structural analysis |
80
+ | Output | `./reports/scouts/SCOUT-{task}.md` |
81
+ | Exit | Architecture and recent changes documented |
82
+
83
+ ---
84
+
85
+ ## 🎭 Phase 3: DATA SYNTHESIS
86
+
87
+ | Agent | `reporter` |
88
+ | ----------- | ------------------------------------------------ |
89
+ | Prerequisite| **READ** RESEARCH + SCOUT outputs if present |
90
+ | Goal | Aggregate data from Scouter, Plans, and History; identify discrepancies and milestones |
91
+ | Exit | Data synthesized, gaps and milestones identified |
92
+
93
+ ---
94
+
95
+ ## 🎭 Phase 4: OUTPUT (create / update / from template)
96
+
97
+ | Agent | `reporter` |
98
+ | ----- | --------------------------------------------------------------------------- |
99
+ | Goal | From **user intent**: (1) create new report, (2) **update** existing files, or (3) generate from template/format |
100
+ | Output| **Create**: `./reports/general/REPORT-{type}-{date}.md` or path user asked. **Update**: edit related files. **Template**: file(s) matching user format. |
101
+ | Exit | Deliverable matches intent — report file, updated docs, or template-based file(s). |
102
+
103
+ ---
104
+
105
+ ## COMPLETION
106
+
107
+ Deliverable per **user intent**:
108
+
109
+ 1. ✅ **Create report** → `./reports/general/REPORT-{type}-{date}.md` (or path user asked)
110
+ 2. ✅ **Update existing** → Related files edited; list what was updated
111
+ 3. ✅ **From template** → File(s) matching user format; list path(s)
112
+ 4. 📢 **Share** → `/internal-comms` (optional)
@@ -0,0 +1,89 @@
1
+ ---
2
+ description: 📝 Report Router — Multi-purpose reporting (create report, update docs, or generate from template)
3
+ version: "1.0"
4
+ category: documentation
5
+ execution-mode: router
6
+ ---
7
+
8
+ # /report — Reporting Router
9
+
10
+ > **ROUTER DIRECTIVE**: Analyze reporting needs and route to appropriate reporting workflow.
11
+ >
12
+ > **MULTI-PURPOSE**: Report supports any topic and three output modes — create new report, update existing files, or generate from user template/format.
13
+
14
+ <task>$ARGUMENTS</task>
15
+
16
+ ---
17
+
18
+ ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
19
+
20
+ **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
21
+
22
+ 1. ORCHESTRATION-LAWS.md
23
+ 2. ADAPTIVE-EXECUTION.md
24
+ 3. EXECUTION-PROTOCOL.md
25
+
26
+ **⛔ 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.
27
+
28
+ ---
29
+
30
+ ## OUTPUT MODES (infer from user request)
31
+
32
+ Reporter **infers** the mode from what the user asks for — no fixed phrase list. Choose by **intent**:
33
+
34
+ | Mode | User intent | Reporter action |
35
+ |------|-------------|-----------------|
36
+ | **Create report** | User wants a **new** deliverable (report, summary, analysis, documentation). | Scout/synthesize → write **new** file under `./reports/` or path user specifies. |
37
+ | **Update existing** | User wants **changes reflected in existing** files (docs, README, specs, etc.). | Scout → identify related files → **edit** those files. Do not create a new report unless also asked. |
38
+ | **From template** | User provides a **format, template, or structure** to follow. | Use that format/structure → generate file(s) matching it (e.g. after scouting source). |
39
+
40
+ **Topic-agnostic**: Subject is whatever the user asks for — infer from the request; not limited to status or technical only.
41
+
42
+ ---
43
+
44
+ ## ROUTING LOGIC
45
+
46
+ ```
47
+ IF task is simple status update OR summary:
48
+ → Route to /report:fast
49
+
50
+ IF task is comprehensive analysis OR deep dive OR any non-trivial topic (infer from request):
51
+ → Route to /report:hard
52
+
53
+ IF task requires absolute context clarity OR "clean slate" analysis:
54
+ → Route to /report:focus
55
+
56
+ IF user explicitly asks to UPDATE existing files (not create report):
57
+ → Still use /report:hard or /report:focus; reporter OUTPUT MODE = update existing files
58
+
59
+ IF unsure:
60
+ → Default to /report:fast (escalate if needed)
61
+ ```
62
+
63
+ ---
64
+
65
+ ## AVAILABLE ROUTES
66
+
67
+ | Route | When to Use |
68
+ | --------------- | --------------------------------------------------------------------------- |
69
+ | `/report:fast` | Quick status updates, daily summaries |
70
+ | `/report:hard` | Detailed analysis, any topic (algorithms, docs, changes), template-based |
71
+ | `/report:focus` | Deep analysis with **enforced context optimization**; update or create |
72
+
73
+ ---
74
+
75
+ ## PRESENT OPTIONS
76
+
77
+ ```markdown
78
+ ## 📝 Reporting Mode Selection
79
+
80
+ **Task**: [parsed task]
81
+
82
+ **Choose workflow:**
83
+
84
+ 1. ⚡ **Fast** → `/report:fast` — Quick summary
85
+ 2. ⚡⚡⚡ **Hard** → `/report:hard` — Full analysis, any topic; create report **or** update existing files / use template
86
+ 3. 🎯 **Focus** → `/report:focus` — Deep analysis with **automatic context clearing**; create or update per task
87
+
88
+ ⏳ Awaiting selection...
89
+ ```
@@ -0,0 +1,165 @@
1
+ ---
2
+ description: 🔒 Focused Test — Comprehensive QA with enforced context optimization
3
+ version: "1.0"
4
+ category: validation
5
+ execution-mode: execute
6
+ ---
7
+
8
+ # /test:focus — Focus Comprehensive Testing
9
+
10
+ > **MISSION**: Full QA workflow with **enforced context optimization**.
11
+ >
12
+ > This variant automatically clears context before test execution—no user prompt required.
13
+ > Use when you want guaranteed focused test execution without strategy noise.
14
+
15
+ <scope>$ARGUMENTS</scope>
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
+ ## 📁 PLAN CHECKPOINT VERIFICATION
41
+
42
+ ```
43
+ IF ./reports/plans/PLAN-{scope}.md exists:
44
+ 1. READ plan completely
45
+ 2. EXTRACT all checkpoints
46
+ 3. FOR EACH checkpoint → Create test
47
+ 4. OUTPUT: "Checkpoint Coverage: X/Y"
48
+ ```
49
+
50
+ ---
51
+
52
+ ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
53
+
54
+ 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).
55
+
56
+ ---
57
+
58
+ ## 🎭 Phase 1: TEST STRATEGY
59
+
60
+ | Agent | `tester` |
61
+ | ----- | --------------------------------------- |
62
+ | Goal | Design test strategy |
63
+ | Exit | Strategy defined, test types identified |
64
+
65
+ ---
66
+
67
+ ## 🛡️ STRICT CONTEXT GATE — Automatic Context Optimization
68
+
69
+ > **⚡ FOCUS MODE**: This checkpoint executes automatically. NO user input required.
70
+ >
71
+ > **PURPOSE**: Prevent "context rot" by forcibly clearing strategy discussion noise.
72
+ > This acts as a mandatory "firewall" before test execution phases.
73
+
74
+ ### 🔒 AUTOMATIC EXECUTION (NO PROMPT)
75
+
76
+ ```yaml
77
+ strict_context_gate:
78
+ mode: "AUTOMATIC - No user interaction"
79
+ behavior: "Force Clear context & Execute"
80
+
81
+ execution:
82
+ 1. ANNOUNCE: |
83
+ ## 🛡️ Strict Context Gate — Automatic
84
+
85
+ ✅ **Test Strategy Complete**: Strategy defined, test types identified.
86
+ 🔒 **Focus Mode**: Automatically clearing context for test execution.
87
+
88
+ ⚡ Executing: **Clear context & Execute**...
89
+
90
+ 2. CONTEXT_DIRECTIVE: |
91
+ ╔══════════════════════════════════════════════════════════════════╗
92
+ ║ ⛔ MANDATORY CONTEXT RESET — FOCUS MODE ║
93
+ ╠══════════════════════════════════════════════════════════════════╣
94
+ ║ IGNORE: All strategy discussions, rejected approaches, ║
95
+ ║ and intermediate test planning reasoning. ║
96
+ ║ ║
97
+ ║ SOLE SOURCE OF TRUTH: Finalized test strategy. ║
98
+ ║ ║
99
+ ║ PROCEED: Execute test phases with FRESH context mindset. ║
100
+ ║ Focus purely on test execution and verification. ║
101
+ ╚══════════════════════════════════════════════════════════════════╝
102
+
103
+ 3. LOAD: Finalized test strategy as if seeing it for the first time
104
+
105
+ 4. PROCEED: Start Phase 2 (Dependency Mapping) immediately
106
+ ```
107
+
108
+ ### 📋 Post-Gate Status
109
+
110
+ ```markdown
111
+ 🔒 **Context Gate Passed**
112
+ - Previous context: DISCARDED
113
+ - Active context: Test strategy only
114
+ - Mode: Fresh execution start
115
+
116
+ Proceeding to Test Execution...
117
+ ```
118
+
119
+ ---
120
+
121
+ ## 🎭 Phase 2: DEPENDENCY MAPPING
122
+
123
+ | Agent | `scouter` |
124
+ | ----- | -------------------------------------- |
125
+ | Goal | Map test dependencies |
126
+ | Exit | Dependencies mapped, environment ready |
127
+
128
+ ---
129
+
130
+ ## 🎭 Phase 3: TEST EXECUTION
131
+
132
+ | Agent | `tester` |
133
+ | ------------ | --------------------------------------------------------------- |
134
+ | Prerequisite | READ PLAN file if exists |
135
+ | Goal | Run full test suite |
136
+ | Exit | All tests run, coverage measured, checkpoint mapping documented |
137
+
138
+ ---
139
+
140
+ ## 🎭 Phase 4: FAILURE ANALYSIS (IF FAILURES)
141
+
142
+ | Agent | `debugger` |
143
+ | ------- | ---------------------- |
144
+ | Trigger | If failures exist |
145
+ | Goal | Analyze failures |
146
+ | Exit | Root causes identified |
147
+
148
+ ---
149
+
150
+ ## 🎭 Phase 5: QUALITY GATES
151
+
152
+ | Agent | `tester` |
153
+ | ----- | --------------------------------- |
154
+ | Goal | Verify quality gates |
155
+ | Exit | All gates pass, coverage adequate |
156
+
157
+ ---
158
+
159
+ ## COMPLETION
160
+
161
+ Present test report with:
162
+
163
+ 1. ✅ **Pass** — All tests green (Focus Mode)
164
+ 2. 🔧 **Fix** → `/fix:fast`
165
+ 3. 📝 **Review** → `/review`
@@ -61,6 +61,59 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
61
61
 
62
62
  ---
63
63
 
64
+ ## 🛡️ VERIFICATION CHECKPOINT — Context Optimization
65
+
66
+ > **PURPOSE**: Prevent "context rot" by clearing strategy discussion before test execution.
67
+ >
68
+ > Test strategy discussions may include rejected approaches that can confuse execution.
69
+ > This checkpoint ensures clean handoff to test execution phases.
70
+
71
+ ### ⚡ OPTIONS (Present to User)
72
+
73
+ ```markdown
74
+ ## 🛡️ Context Optimization Checkpoint
75
+
76
+ **Test Strategy Complete** — Strategy defined, ready for execution.
77
+
78
+ **Choose how to proceed:**
79
+
80
+ | Option | Action | Description |
81
+ |--------|--------|-------------|
82
+ | **1. 🚀 Clear context & Execute** | `RECOMMENDED` | Fresh start: Focus on strategy, ignore discussion history |
83
+ | **2. ⏸️ Review Strategy** | `SAFE` | Clear context, show strategy summary, wait for approval |
84
+ | **3. ⚠️ Continue (No Clear)** | `RISKY` | Keep full history (may affect test focus) |
85
+
86
+ ⏳ Awaiting selection...
87
+ ```
88
+
89
+ ### 🔄 EXECUTION BEHAVIOR
90
+
91
+ ```yaml
92
+ option_1_clear_execute:
93
+ behavior: "RECOMMENDED - Clean execution"
94
+ steps:
95
+ 1. ACKNOWLEDGE: "🚀 Context optimized. Executing test strategy."
96
+ 2. CONTEXT_DIRECTIVE: |
97
+ ⛔ IGNORE strategy discussion and rejected approaches.
98
+ ✅ FINALIZED STRATEGY is SOLE SOURCE OF TRUTH.
99
+ 3. PROCEED: Continue to test execution phases
100
+
101
+ option_2_review_strategy:
102
+ behavior: "Clear and show summary"
103
+ steps:
104
+ 1. ACKNOWLEDGE: "⏸️ Context cleared."
105
+ 2. OUTPUT: Display strategy summary
106
+ 3. WAIT: For user approval
107
+
108
+ option_3_continue_no_clear:
109
+ behavior: "Proceed with caution"
110
+ steps:
111
+ 1. WARN: "⚠️ Discussion history retained."
112
+ 2. PROCEED: Continue with existing context
113
+ ```
114
+
115
+ ---
116
+
64
117
  ## 🎭 Phase 2: DEPENDENCY MAPPING
65
118
 
66
119
  | Agent | `scouter` |
package/commands/test.md CHANGED
@@ -33,6 +33,9 @@ IF scope is limited (unit tests, quick check):
33
33
  IF scope is comprehensive (full suite, E2E):
34
34
  → Route to /test:hard
35
35
 
36
+ IF scope is comprehensive AND clean execution focus is critical:
37
+ → Route to /test:focus
38
+
36
39
  IF unsure:
37
40
  → Default to /test:fast
38
41
  ```
@@ -41,10 +44,11 @@ IF unsure:
41
44
 
42
45
  ## AVAILABLE ROUTES
43
46
 
44
- | Route | When to Use |
45
- | ------------ | ----------------------- |
46
- | `/test:fast` | Quick tests, unit tests |
47
- | `/test:hard` | Full test suite, E2E |
47
+ | Route | When to Use |
48
+ | -------------- | -------------------------------------------------- |
49
+ | `/test:fast` | Quick tests, unit tests |
50
+ | `/test:hard` | Full test suite, E2E |
51
+ | `/test:focus` | Full testing with **enforced context optimization** |
48
52
 
49
53
  ---
50
54
 
@@ -59,6 +63,7 @@ IF unsure:
59
63
 
60
64
  1. ⚡ **Fast** → `/test:fast` — Quick tests
61
65
  2. ⚡⚡⚡ **Hard** → `/test:hard` — Comprehensive testing
66
+ 3. 🔒 **Focus** → `/test:focus` — Comprehensive testing with **automatic context clearing** (focused execution)
62
67
 
63
68
  ⏳ Awaiting selection...
64
69
  ```