@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.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -4
- 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/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/01-feature-inventory.md +5 -5
- package/documents/business/business-features/03-feature-specifications.md +7 -8
- package/documents/business/business-features/04-dependencies-and-release-sequencing.md +3 -3
- package/documents/business/business-features/05-success-metrics.md +2 -2
- package/documents/business/business-prd/03-stakeholders-and-requirements.md +1 -1
- package/documents/business/business-workflows/02-workflow-catalog.md +2 -2
- package/documents/business/business-workflows/03-detailed-workflows.md +5 -5
- package/documents/business/business-workflows/04-decision-rules-and-exceptions.md +2 -2
- package/documents/business/business-workflows/05-sla-and-handoffs.md +1 -1
- package/documents/knowledge-architecture/00-index.md +2 -2
- package/documents/knowledge-architecture/01-system-overview.md +2 -2
- package/documents/knowledge-architecture/02-components.md +8 -8
- package/documents/knowledge-architecture/03-data-flow.md +1 -2
- package/documents/knowledge-architecture/04-design-patterns.md +1 -2
- package/documents/knowledge-architecture/05-decisions.md +3 -3
- package/documents/knowledge-domain/00-index.md +1 -1
- package/documents/knowledge-domain/01-entities.md +9 -10
- package/documents/knowledge-domain/03-api-contracts.md +17 -19
- package/documents/knowledge-domain/04-business-rules.md +0 -1
- package/documents/knowledge-overview/00-index.md +1 -1
- package/documents/knowledge-overview/01-project-identity.md +1 -1
- package/documents/knowledge-overview/03-features.md +2 -3
- package/documents/knowledge-source-base/01-directory-structure.md +9 -9
- package/documents/knowledge-source-base/03-key-modules.md +11 -12
- package/documents/knowledge-source-base/04-configuration.md +1 -1
- package/documents/knowledge-standards/02-conventions.md +0 -1
- package/matrix-skills/_index.yaml +1 -1
- package/package.json +1 -1
- package/rules/AGENTS.md +1 -1
- package/rules/REFERENCE.md +8 -8
- package/rules/SKILLS.md +1 -1
- package/rules/TEAMS.md +1 -2
- 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/rules/TEAMS.md
CHANGED
|
@@ -415,7 +415,7 @@ IS task complex with multiple concerns (security + performance + correctness)?
|
|
|
415
415
|
├─ YES → :team (Golden Triangle)
|
|
416
416
|
└─ NO
|
|
417
417
|
IS task simple and single-domain?
|
|
418
|
-
├─ YES → Single-agent variant (:fast, :hard, :
|
|
418
|
+
├─ YES → Single-agent variant (:fast, :hard, :team)
|
|
419
419
|
└─ NO → Single-agent variant with manual review step
|
|
420
420
|
```
|
|
421
421
|
|
|
@@ -425,7 +425,6 @@ IS task complex with multiple concerns (security + performance + correctness)?
|
|
|
425
425
|
|---------|----------------|--------|------|
|
|
426
426
|
| `:fast` | Single agent | 1 | Speed priority, simple tasks |
|
|
427
427
|
| `:hard` | Single agent | 1 | Standard quality, focused tasks |
|
|
428
|
-
| `:focus` | Single agent | 1 | Clean execution, noise reduction |
|
|
429
428
|
| `:team` | Golden Triangle | 3 | Maximum quality, adversarial review, complex tasks |
|
|
430
429
|
|
|
431
430
|
**⛔ Do NOT use `:team` for**:
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-code-focus
|
|
3
|
-
description: "🔒 Focused Development — Full cycle with enforced context optimization. Use when user types /code:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /code:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/code:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/code/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-cook-focus
|
|
3
|
-
description: "🔒 Focused Feature — Complete development with enforced context optimization. Use when user types /cook:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /cook:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/cook:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/cook/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-debug-focus
|
|
3
|
-
description: "🔒 Focused Debug — Deep investigation with enforced context optimization. Use when user types /debug:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /debug:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/debug:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/debug/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-design-focus
|
|
3
|
-
description: "🔒 Focused Design — Complete design with enforced context optimization. Use when user types /design:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /design:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/design:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/design/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-fix-focus
|
|
3
|
-
description: "🔒 Focused Fix — Complete resolution with enforced context optimization. Use when user types /fix:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /fix:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/fix:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/fix/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-plan-focus
|
|
3
|
-
description: "🔒 Focused Plan — Research-backed planning with enforced context optimization. Use when user types /plan:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /plan:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/plan:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/plan/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-report-focus
|
|
3
|
-
description: "🔒 Focused Report — Deep analysis with enforced context optimization. Use when user types /report:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /report:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/report:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/report/focus.md`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-assistant-test-focus
|
|
3
|
-
description: "🔒 Focused Test — Comprehensive QA with enforced context optimization. Use when user types /test:focus."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /test:focus
|
|
7
|
-
|
|
8
|
-
> Activates Agent Assistant `/test:focus` workflow.
|
|
9
|
-
|
|
10
|
-
## Rules
|
|
11
|
-
|
|
12
|
-
1. **Load first**: `~/.codex/skills/agent-assistant/rules/CORE.md` — follow all 10 Laws
|
|
13
|
-
2. **Agents**: Spawn via Codex native multi-agent (`~/.codex/agents/`)
|
|
14
|
-
3. **Skills**: Resolve from `~/.codex/skills/agent-assistant/matrix-skills/`
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
**Load and follow**: `~/.codex/skills/agent-assistant/commands/test/focus.md`
|
package/commands/code/focus.md
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 🔒 Focused Development — Full development cycle with enforced context optimization
|
|
3
|
-
version: "1.0"
|
|
4
|
-
category: engineering
|
|
5
|
-
execution-mode: execute
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# /code:focus — Focus Development Cycle
|
|
9
|
-
|
|
10
|
-
> **MISSION**: Execute complete development 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 implementation 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
|
-
## 📌 PLAN-ALREADY-PROVIDED: SKIP REDUNDANT PHASES
|
|
34
|
-
|
|
35
|
-
**Before starting Phase 1**, resolve whether the user is **coding from an existing plan**. If yes, **do not** run research, scout, or brainstorm.
|
|
36
|
-
|
|
37
|
-
### Detection
|
|
38
|
-
|
|
39
|
-
- User message references a plan: e.g. `@plan`, `@PLAN-...`, path like `./reports/{topic}/plans/PLAN-{name}`, or phrases like "according to plan", "follow the plan", "code from plan", "implement per plan".
|
|
40
|
-
- Or a plan file already exists for this task at `./reports/{topic}/plans/PLAN-{task}` (derive `{task}` from `$ARGUMENTS` or from the referenced file name).
|
|
41
|
-
|
|
42
|
-
### Resolution
|
|
43
|
-
|
|
44
|
-
1. **CHECK**: Does a valid plan file exist (user-provided path or `./reports/{topic}/plans/PLAN-{task}`)?
|
|
45
|
-
2. **IF YES**:
|
|
46
|
-
- **SKIP** Phase 1 (Requirements/Brainstorm), Phase 2 (Scout), Phase 3 (Planning).
|
|
47
|
-
- **ANNOUNCE**: "✅ Plan provided/found — skipping research, scout, and planning. Proceeding to implementation."
|
|
48
|
-
- **GO TO**: Phase 4 (Implementation) → Phase 5 (Testing) → Phase 6 (Review).
|
|
49
|
-
3. **IF NO**: Run phases in order: Phase 1 → 2 → 3 → 4 → 5 → 6.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 🔀 TIERED EXECUTION PROTOCOL (MANDATORY)
|
|
54
|
-
|
|
55
|
-
> **Reference: AGENTS.md (Tiered Execution)`
|
|
56
|
-
|
|
57
|
-
```yaml
|
|
58
|
-
tiered_execution:
|
|
59
|
-
principle: "Sub-agent FIRST (Tier 1). EMBODY ONLY on system failure (Tier 2)."
|
|
60
|
-
|
|
61
|
-
tool_discovery: "Check runSubagent availability BEFORE first delegation"
|
|
62
|
-
|
|
63
|
-
for_each_phase:
|
|
64
|
-
TIER_1_MANDATORY: "IF tool exists → MUST use SUB_AGENT_DELEGATION"
|
|
65
|
-
TIER_2_FALLBACK: "ONLY on system error—NOT complexity/preference/speed"
|
|
66
|
-
|
|
67
|
-
anti_lazy_fallback:
|
|
68
|
-
- ❌ NEVER use Tier 2 when Tier 1 tool is available
|
|
69
|
-
- ✅ ALWAYS attempt Tier 1 first when tool exists
|
|
70
|
-
- ✅ ALWAYS log justification for Tier 2 fallback
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## ⚠️ CRITICAL: PHASE CONTINUITY RULES
|
|
76
|
-
|
|
77
|
-
```yaml
|
|
78
|
-
phase_continuity:
|
|
79
|
-
rule: "Each phase MUST reference and follow outputs from prior phases"
|
|
80
|
-
|
|
81
|
-
check_for_files:
|
|
82
|
-
- "./reports/{topic}/brainstorms/BRAINSTORM-{task}"
|
|
83
|
-
- "./reports/{topic}/scouts/SCOUT-{task}"
|
|
84
|
-
- "./reports/{topic}/plans/PLAN-{task}"
|
|
85
|
-
|
|
86
|
-
enforcement:
|
|
87
|
-
- Phase 3 (Planning) MUST incorporate Scout findings
|
|
88
|
-
- Phase 4 (Implementation) MUST follow the Plan file exactly
|
|
89
|
-
- Phase 5 (Testing) MUST verify all plan checkpoints
|
|
90
|
-
- If prior phase file missing → Agent MUST create it
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
All files in `./reports/{topic}/` → English only.
|
|
94
|
-
**⚠️ 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.
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## ⛔ INCREMENTAL EXECUTION (MANDATORY)
|
|
99
|
-
|
|
100
|
-
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).
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## 🎭 Phase 1: REQUIREMENTS ANALYSIS
|
|
105
|
-
|
|
106
|
-
| Attribute | Value |
|
|
107
|
-
| ----------- | --------------------------------- |
|
|
108
|
-
| **Agent** | `brainstormer` |
|
|
109
|
-
| **Goal** | Clarify requirements if ambiguous |
|
|
110
|
-
| **Trigger** | If requirements unclear |
|
|
111
|
-
|
|
112
|
-
### ⚡ TIERED EXECUTION
|
|
113
|
-
|
|
114
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
115
|
-
|
|
116
|
-
> Invoke runSubagent for `brainstormer`. Context: ISOLATED.
|
|
117
|
-
|
|
118
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
119
|
-
|
|
120
|
-
> Load `{AGENTS_PATH}/brainstormer.md`
|
|
121
|
-
> EMBODY [brainstormer] — Requires logged system error justification.
|
|
122
|
-
|
|
123
|
-
**Exit Criteria:**
|
|
124
|
-
|
|
125
|
-
- [ ] Requirements clear
|
|
126
|
-
- [ ] Scope defined
|
|
127
|
-
- [ ] Acceptance criteria established
|
|
128
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `brainstormer` Thinking Protocol
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## 🎭 Phase 2: CODEBASE ANALYSIS
|
|
133
|
-
|
|
134
|
-
| Attribute | Value |
|
|
135
|
-
| --------- | ----------------------------- |
|
|
136
|
-
| **Agent** | `scouter` |
|
|
137
|
-
| **Goal** | Full codebase context mapping |
|
|
138
|
-
|
|
139
|
-
### ⚡ TIERED EXECUTION
|
|
140
|
-
|
|
141
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
142
|
-
|
|
143
|
-
> Invoke runSubagent for `scouter`. Context: ISOLATED.
|
|
144
|
-
|
|
145
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
146
|
-
|
|
147
|
-
> Load `{AGENTS_PATH}/scouter.md`
|
|
148
|
-
> EMBODY [scouter] — Requires logged system error justification.
|
|
149
|
-
|
|
150
|
-
**Exit Criteria:**
|
|
151
|
-
|
|
152
|
-
- [ ] Architecture understood
|
|
153
|
-
- [ ] Patterns documented
|
|
154
|
-
- [ ] Integration points identified
|
|
155
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `scouter` Thinking Protocol
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## 🎭 Phase 3: IMPLEMENTATION PLANNING
|
|
160
|
-
|
|
161
|
-
| Attribute | Value |
|
|
162
|
-
| --------- | -------------------------- |
|
|
163
|
-
| **Agent** | `planner` |
|
|
164
|
-
| **Goal** | Create implementation plan |
|
|
165
|
-
|
|
166
|
-
### ⚡ TIERED EXECUTION
|
|
167
|
-
|
|
168
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
169
|
-
|
|
170
|
-
> Invoke runSubagent for `planner`. Context: ISOLATED.
|
|
171
|
-
|
|
172
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
173
|
-
|
|
174
|
-
> Load `{AGENTS_PATH}/planner.md`
|
|
175
|
-
> EMBODY [planner] — Requires logged system error justification.
|
|
176
|
-
|
|
177
|
-
**Exit Criteria:**
|
|
178
|
-
|
|
179
|
-
- [ ] Plan created
|
|
180
|
-
- [ ] Steps defined
|
|
181
|
-
- [ ] Risks identified
|
|
182
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `planner` Thinking Protocol
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
Mode: Fresh implementation start
|
|
187
|
-
|
|
188
|
-
Proceeding to Implementation...
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
## 🎭 Phase 4: IMPLEMENTATION
|
|
194
|
-
|
|
195
|
-
| Attribute | Value |
|
|
196
|
-
| --------- | ----------------------------------- |
|
|
197
|
-
| **Agent** | `tech-lead` → routes to specialists |
|
|
198
|
-
| **Goal** | Execute plan with specialist agents |
|
|
199
|
-
|
|
200
|
-
### ⚡ TIERED EXECUTION
|
|
201
|
-
|
|
202
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
203
|
-
|
|
204
|
-
> Invoke runSubagent for `tech-lead`. Context: ISOLATED.
|
|
205
|
-
> Tech-lead will spawn specialist subagents as needed.
|
|
206
|
-
|
|
207
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
208
|
-
|
|
209
|
-
> Load `{AGENTS_PATH}/tech-lead.md`
|
|
210
|
-
> EMBODY [tech-lead] — Requires logged system error justification.
|
|
211
|
-
> Then recursively EMBODY specialists as needed.
|
|
212
|
-
|
|
213
|
-
### ⚡ FOCUS ADHERENCE DIRECTIVE
|
|
214
|
-
|
|
215
|
-
```
|
|
216
|
-
1. READ plan completely BEFORE any implementation
|
|
217
|
-
2. FOR EACH plan step:
|
|
218
|
-
a. Implement EXACTLY as specified
|
|
219
|
-
b. Mark complete: `- [ ]` → `- [x]`
|
|
220
|
-
3. IF deviation needed:
|
|
221
|
-
a. STOP
|
|
222
|
-
b. REQUEST Re-Planning
|
|
223
|
-
c. DO NOT proceed with own interpretation
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
**Exit Criteria:**
|
|
227
|
-
|
|
228
|
-
- [ ] All plan steps executed
|
|
229
|
-
- [ ] Code complete
|
|
230
|
-
- [ ] Documentation updated
|
|
231
|
-
- [ ] **Each plan step has corresponding implementation**
|
|
232
|
-
- [ ] **No unauthorized deviations**
|
|
233
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `tech-lead` Thinking Protocol
|
|
234
|
-
|
|
235
|
-
---
|
|
236
|
-
|
|
237
|
-
## 🎭 Phase 5: TESTING
|
|
238
|
-
|
|
239
|
-
| Attribute | Value |
|
|
240
|
-
| --------- | --------------------- |
|
|
241
|
-
| **Agent** | `tester` |
|
|
242
|
-
| **Goal** | Comprehensive testing |
|
|
243
|
-
|
|
244
|
-
### ⚡ TIERED EXECUTION
|
|
245
|
-
|
|
246
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
247
|
-
|
|
248
|
-
> Invoke runSubagent for `tester`. Context: ISOLATED.
|
|
249
|
-
|
|
250
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
251
|
-
|
|
252
|
-
> Load `{AGENTS_PATH}/tester.md`
|
|
253
|
-
> EMBODY [tester] — Requires logged system error justification.
|
|
254
|
-
|
|
255
|
-
**Exit Criteria:**
|
|
256
|
-
|
|
257
|
-
- [ ] Tests written
|
|
258
|
-
- [ ] All tests pass
|
|
259
|
-
- [ ] Coverage adequate
|
|
260
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `tester` Thinking Protocol
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
## 🎭 Phase 6: REVIEW
|
|
265
|
-
|
|
266
|
-
| Attribute | Value |
|
|
267
|
-
| --------- | ------------------- |
|
|
268
|
-
| **Agent** | `reviewer` |
|
|
269
|
-
| **Goal** | Code quality review |
|
|
270
|
-
|
|
271
|
-
### ⚡ TIERED EXECUTION
|
|
272
|
-
|
|
273
|
-
**TIER 1 (MANDATORY when tool exists):**
|
|
274
|
-
|
|
275
|
-
> Invoke runSubagent for `reviewer`. Context: ISOLATED.
|
|
276
|
-
|
|
277
|
-
**TIER 2 (FALLBACK on system error only):**
|
|
278
|
-
|
|
279
|
-
> Load `{AGENTS_PATH}/reviewer.md`
|
|
280
|
-
> EMBODY [reviewer] — Requires logged system error justification.
|
|
281
|
-
|
|
282
|
-
**Exit Criteria:**
|
|
283
|
-
|
|
284
|
-
- [ ] Code reviewed
|
|
285
|
-
- [ ] Standards met
|
|
286
|
-
- [ ] No blocking issues
|
|
287
|
-
- [ ] **METHODOLOGY CHECK**: Output aligns with `reviewer` Thinking Protocol
|
|
288
|
-
|
|
289
|
-
---
|
|
290
|
-
|
|
291
|
-
## COMPLETION
|
|
292
|
-
|
|
293
|
-
Present implementation report with:
|
|
294
|
-
|
|
295
|
-
1. ✅ **Done** — Feature complete (Focus Mode)
|
|
296
|
-
2. 🚀 **Deploy** → `/deploy:preview`
|
|
297
|
-
3. 📝 **Docs** → `/docs:core`
|