@namch/agent-assistant 1.0.3 → 1.1.0
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 +78 -0
- package/README.md +1 -1
- package/agents/planner.md +59 -11
- package/agents/reporter.md +1 -1
- package/cli/install.js +514 -169
- package/code-assistants/antigravity-assistant/AntigravityGlobal.agent.md +38 -135
- package/code-assistants/antigravity-assistant/GEMINI.md +37 -137
- package/code-assistants/claude-assistant/CLAUDE.md +60 -38
- package/code-assistants/copilot-assistant/agent-assistant.agent.md +44 -125
- package/code-assistants/cursor-assistant/.cursorrules +42 -84
- package/code-assistants/cursor-assistant/rules/agent-assistant.mdc +37 -135
- package/commands/ask/fast.md +6 -4
- package/commands/ask/hard.md +6 -4
- package/commands/ask.md +3 -3
- package/commands/auto.md +3 -3
- package/commands/brainstorm/fast.md +6 -4
- package/commands/brainstorm/hard.md +6 -4
- package/commands/brainstorm.md +3 -3
- package/commands/code/fast.md +6 -4
- package/commands/code/focus.md +42 -46
- package/commands/code/hard.md +43 -48
- package/commands/code.md +6 -3
- package/commands/cook/fast.md +5 -3
- package/commands/cook/focus.md +22 -51
- package/commands/cook/hard.md +23 -55
- package/commands/cook.md +3 -3
- package/commands/debug/fast.md +5 -3
- package/commands/debug/focus.md +35 -40
- package/commands/debug/hard.md +38 -16
- package/commands/debug.md +3 -3
- package/commands/deploy/check.md +4 -4
- package/commands/deploy/preview.md +4 -4
- package/commands/deploy/production.md +4 -4
- package/commands/deploy/rollback.md +4 -4
- package/commands/deploy.md +3 -3
- package/commands/design/fast.md +6 -4
- package/commands/design/focus.md +28 -44
- package/commands/design/hard.md +53 -17
- package/commands/design.md +3 -3
- package/commands/docs/audit.md +5 -5
- package/commands/docs/business.md +5 -5
- package/commands/docs/core.md +5 -5
- package/commands/docs.md +3 -3
- package/commands/fix/fast.md +5 -3
- package/commands/fix/focus.md +36 -44
- package/commands/fix/hard.md +23 -37
- package/commands/fix.md +3 -3
- package/commands/plan/fast.md +6 -4
- package/commands/plan/focus.md +6 -4
- package/commands/plan/hard.md +6 -4
- package/commands/plan.md +3 -3
- package/commands/report/fast.md +6 -4
- package/commands/report/focus.md +6 -4
- package/commands/report/hard.md +6 -4
- package/commands/report.md +3 -3
- package/commands/review/fast.md +5 -3
- package/commands/review/hard.md +5 -3
- package/commands/review.md +3 -3
- package/commands/test/fast.md +5 -3
- package/commands/test/focus.md +24 -43
- package/commands/test/hard.md +24 -16
- package/commands/test.md +3 -3
- package/documents/HSOL-ASSESSMENT.md +121 -0
- package/documents/SMART-SKILL-ORCHESTRATION-BLUEPRINT.md +1341 -0
- package/documents/business/business-glossary.md +6 -6
- package/documents/knowledge-architecture.md +81 -1
- package/documents/knowledge-domain.md +4 -3
- package/documents/knowledge-overview.md +1 -1
- package/documents/knowledge-source-base.md +15 -10
- package/package.json +5 -3
- package/rules/AGENTS.md +187 -0
- package/rules/CONTEXT-GATE.md +362 -0
- package/rules/CORE.md +175 -0
- package/rules/ERRORS.md +127 -0
- package/rules/PHASES.md +156 -0
- package/rules/REFERENCE.md +179 -0
- package/rules/SKILLS.md +167 -0
- package/skills/find-skills/SKILL.md +137 -0
- package/rules/ADAPTIVE-EXECUTION.md +0 -271
- package/rules/AGENT-RULES.md +0 -285
- package/rules/BOOTSTRAP.md +0 -301
- package/rules/ERROR-RECOVERY.md +0 -201
- package/rules/EXECUTION-PROTOCOL.md +0 -485
- package/rules/ORCHESTRATION-LAWS.md +0 -218
- package/rules/QUICK-REFERENCE.md +0 -204
- package/rules/SKILL-DISCOVERY.md +0 -370
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
# 🔀 ADAPTIVE EXECUTION
|
|
2
|
-
|
|
3
|
-
> **🚨 CRITICAL — ONE OF THREE**: This file is one of **three** equally authoritative rule files. All must be loaded and followed when running workflows: ORCHESTRATION-LAWS, ADAPTIVE-EXECUTION (this file), EXECUTION-PROTOCOL. Do not skip or approximate; treat every rule as **binding**.
|
|
4
|
-
|
|
5
|
-
> **LOAD CONDITION**: When deciding between sub-agent and EMBODY
|
|
6
|
-
> **PURPOSE**: Tiered execution protocol with guaranteed task completion
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## CORE PRINCIPLE
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
╔═══════════════════════════════════════════════════════════════════════════╗
|
|
14
|
-
║ TIER 1 (SUB-AGENT): MANDATORY when tool exists ║
|
|
15
|
-
║ TIER 2 (EMBODY): FALLBACK only when Tier 1 impossible ║
|
|
16
|
-
║ ║
|
|
17
|
-
║ ❌ FORBIDDEN: Using TIER 2 when runSubagent available ║
|
|
18
|
-
║ ❌ FORBIDDEN: Skipping TIER 1 because task is "simple" ║
|
|
19
|
-
║ ❌ FORBIDDEN: Using TIER 2 for "efficiency" or "preference" ║
|
|
20
|
-
╚═══════════════════════════════════════════════════════════════════════════╝
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## TOOL DISCOVERY (EXECUTE FIRST)
|
|
26
|
-
|
|
27
|
-
```yaml
|
|
28
|
-
mandatory_tool_discovery:
|
|
29
|
-
trigger: "BEFORE first agent delegation"
|
|
30
|
-
|
|
31
|
-
step_1_check_tools:
|
|
32
|
-
look_for:
|
|
33
|
-
- "runSubagent"
|
|
34
|
-
- "Agent" tool
|
|
35
|
-
- "spawn_agent"
|
|
36
|
-
- Any tool with "agent" or "delegate"
|
|
37
|
-
|
|
38
|
-
step_2_classify:
|
|
39
|
-
if_found:
|
|
40
|
-
classification: "TIER_1_CAPABLE"
|
|
41
|
-
action: "LOCK to TIER 1 for entire session"
|
|
42
|
-
if_not_found:
|
|
43
|
-
classification: "TIER_2_ONLY"
|
|
44
|
-
action: "PERMIT TIER 2 with logged justification"
|
|
45
|
-
|
|
46
|
-
step_3_announce:
|
|
47
|
-
output: |
|
|
48
|
-
## 🔍 TOOL DISCOVERY
|
|
49
|
-
| Check | Result |
|
|
50
|
-
|-------|--------|
|
|
51
|
-
| Sub-agent tool | ✅ / ❌ |
|
|
52
|
-
| Tool name | `{name}` or N/A |
|
|
53
|
-
| Execution tier | TIER 1 / TIER 2 |
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## TIER 1: SUB-AGENT DELEGATION (MANDATORY)
|
|
59
|
-
|
|
60
|
-
```yaml
|
|
61
|
-
tier_1_subagent:
|
|
62
|
-
priority: "HIGHEST - Always use when available"
|
|
63
|
-
context_model: "ISOLATED (fresh memory, no pollution)"
|
|
64
|
-
|
|
65
|
-
execution:
|
|
66
|
-
1. Prepare handoff payload:
|
|
67
|
-
include:
|
|
68
|
-
- Original requirements (verbatim)
|
|
69
|
-
- Task-specific instructions
|
|
70
|
-
- Acceptance criteria
|
|
71
|
-
- Constraints from prior phases
|
|
72
|
-
- Selected skills context (if any skills were chosen for this task)
|
|
73
|
-
exclude:
|
|
74
|
-
- Internal reasoning
|
|
75
|
-
- Failed attempts
|
|
76
|
-
- Alternative approaches
|
|
77
|
-
|
|
78
|
-
2. **Skills analysis** (MANDATORY — per EXECUTION-PROTOCOL § SKILLS ACTIVATION):
|
|
79
|
-
- ⛔ STOP and analyze: Is task simple or complex?
|
|
80
|
-
- Check agent's skills[] and {SKILLS_PATH}/ for relevant skills
|
|
81
|
-
- ⛔ OUTPUT REQUIRED: "🎯 Skills Analysis: {simple|complex} → {using X,Y | skipping}"
|
|
82
|
-
- If using: include skill guidelines in handoff context
|
|
83
|
-
|
|
84
|
-
3. Invoke sub-agent:
|
|
85
|
-
- Tool: runSubagent (or equivalent)
|
|
86
|
-
- Agent: {agent_name}
|
|
87
|
-
- Context: handoff payload + skills context
|
|
88
|
-
|
|
89
|
-
4. Receive result:
|
|
90
|
-
- Verify format matches agent spec
|
|
91
|
-
- Check acceptance criteria
|
|
92
|
-
- Store deliverable
|
|
93
|
-
|
|
94
|
-
5. On system error:
|
|
95
|
-
- Log error clearly
|
|
96
|
-
- Fall back to TIER 2
|
|
97
|
-
- Document: "Fallback due to: {error}"
|
|
98
|
-
|
|
99
|
-
announcement: |
|
|
100
|
-
🔀 **TIER 1**: SUB_AGENT_DELEGATION
|
|
101
|
-
├─ Agent: {agent_name}
|
|
102
|
-
├─ Context: ISOLATED
|
|
103
|
-
└─ Action: Invoking sub-agent...
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## TIER 2: EMBODY PATTERN (FALLBACK ONLY)
|
|
109
|
-
|
|
110
|
-
```yaml
|
|
111
|
-
tier_2_embody:
|
|
112
|
-
priority: "FALLBACK - Only when Tier 1 impossible"
|
|
113
|
-
context_model: "SHARED (same memory space)"
|
|
114
|
-
|
|
115
|
-
activation_conditions:
|
|
116
|
-
permitted:
|
|
117
|
-
- Tool Discovery found NO sub-agent tools
|
|
118
|
-
- Sub-agent tool returned system error
|
|
119
|
-
- Platform explicitly rejected request
|
|
120
|
-
forbidden:
|
|
121
|
-
- Task seems "simple"
|
|
122
|
-
- Wanting to "save tokens"
|
|
123
|
-
- "Preserving context"
|
|
124
|
-
- Any reason other than system limitation
|
|
125
|
-
|
|
126
|
-
execution:
|
|
127
|
-
1. Log activation:
|
|
128
|
-
"⚠️ TIER 2 FALLBACK
|
|
129
|
-
Reason: {system_error or no_tool}
|
|
130
|
-
Note: Platform limitation, not optimization"
|
|
131
|
-
|
|
132
|
-
2. Deep embodiment:
|
|
133
|
-
- READ agent file COMPLETELY
|
|
134
|
-
- EXTRACT: Core Directive, Thinking Protocol, Constraints, Format
|
|
135
|
-
- EXTRACT: skills[] from frontmatter
|
|
136
|
-
- BIND constraints as HARD RULES
|
|
137
|
-
- ANNOUNCE: "📋 EMBODIED: {agent}"
|
|
138
|
-
|
|
139
|
-
3. **Skills analysis** (MANDATORY — per EXECUTION-PROTOCOL § SKILLS ACTIVATION):
|
|
140
|
-
- ⛔ STOP and analyze: Is task simple or complex?
|
|
141
|
-
- Check agent's skills[] and {SKILLS_PATH}/ for relevant skills
|
|
142
|
-
- ⛔ OUTPUT REQUIRED: "🎯 Skills Analysis: {simple|complex} → {using X,Y | skipping}"
|
|
143
|
-
- If using: READ {SKILLS_PATH}/{skill}/SKILL.md, apply as guidance
|
|
144
|
-
|
|
145
|
-
4. Execute as agent:
|
|
146
|
-
- Follow THEIR thinking protocol EXACTLY
|
|
147
|
-
- Apply THEIR constraints to every decision
|
|
148
|
-
- Apply skill guidelines if skills were loaded
|
|
149
|
-
- Produce output in THEIR format
|
|
150
|
-
- CHECK every 3-5 actions: "Am I still {agent}?"
|
|
151
|
-
|
|
152
|
-
5. Exit embodiment:
|
|
153
|
-
- Store deliverable
|
|
154
|
-
- Reset to Orchestrator
|
|
155
|
-
- Continue workflow
|
|
156
|
-
|
|
157
|
-
announcement: |
|
|
158
|
-
🔀 **TIER 2**: EMBODY_PATTERN (fallback)
|
|
159
|
-
├─ Agent: {agent_name}
|
|
160
|
-
├─ Context: SHARED
|
|
161
|
-
├─ Reason: {system_error or no_tool}
|
|
162
|
-
└─ Action: Reading agent file...
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## DECISION FLOW
|
|
168
|
-
|
|
169
|
-
```
|
|
170
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
171
|
-
│ STEP 0: TOOL DISCOVERY (first delegation only) │
|
|
172
|
-
│ ├─ Check for sub-agent tools │
|
|
173
|
-
│ └─ Cache result for session │
|
|
174
|
-
├─────────────────────────────────────────────────────────────┤
|
|
175
|
-
│ STEP 1: TIER CHECK │
|
|
176
|
-
│ ├─ IF tool found → MUST use TIER 1 │
|
|
177
|
-
│ └─ IF no tool → USE TIER 2 │
|
|
178
|
-
├─────────────────────────────────────────────────────────────┤
|
|
179
|
-
│ STEP 2A: TIER 1 EXECUTION │
|
|
180
|
-
│ ├─ Prepare handoff │
|
|
181
|
-
│ ├─ Invoke sub-agent │
|
|
182
|
-
│ ├─ IF success → Receive, verify, continue │
|
|
183
|
-
│ └─ IF system error → Fall back to TIER 2 │
|
|
184
|
-
├─────────────────────────────────────────────────────────────┤
|
|
185
|
-
│ STEP 2B: TIER 2 EXECUTION │
|
|
186
|
-
│ ├─ Log reason for fallback │
|
|
187
|
-
│ ├─ Read agent file completely │
|
|
188
|
-
│ ├─ Execute deep embodiment │
|
|
189
|
-
│ └─ Perform task, exit embodiment │
|
|
190
|
-
├─────────────────────────────────────────────────────────────┤
|
|
191
|
-
│ STEP 3: VERIFY & CONTINUE │
|
|
192
|
-
│ ├─ Check deliverable meets criteria │
|
|
193
|
-
│ └─ Proceed to next phase │
|
|
194
|
-
└─────────────────────────────────────────────────────────────┘
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
|
-
## ANTI-LAZY-FALLBACK ENFORCEMENT
|
|
200
|
-
|
|
201
|
-
```yaml
|
|
202
|
-
anti_lazy_fallback:
|
|
203
|
-
definition: |
|
|
204
|
-
Using EMBODY when sub-agent tool IS available,
|
|
205
|
-
based on subjective reasons like "task is simple"
|
|
206
|
-
|
|
207
|
-
detection:
|
|
208
|
-
- EMBODY used without Tool Discovery
|
|
209
|
-
- EMBODY used when discovery confirmed TIER_1
|
|
210
|
-
- Justifying EMBODY with task complexity
|
|
211
|
-
- Mentioning "efficiency" when choosing EMBODY
|
|
212
|
-
|
|
213
|
-
correction:
|
|
214
|
-
1. STOP
|
|
215
|
-
2. Log: "⚠️ LAZY FALLBACK DETECTED"
|
|
216
|
-
3. Use sub-agent instead
|
|
217
|
-
4. Continue with TIER 1
|
|
218
|
-
|
|
219
|
-
strict_rules:
|
|
220
|
-
❌ NEVER assess task as "too simple" for sub-agent
|
|
221
|
-
❌ NEVER prioritize tokens over context isolation
|
|
222
|
-
❌ NEVER assume EMBODY is "good enough"
|
|
223
|
-
✅ ALWAYS use sub-agent when tool exists
|
|
224
|
-
✅ ALWAYS log sub-agent attempt before any EMBODY
|
|
225
|
-
✅ ALWAYS document system error if falling back
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## CONTEXT MODEL COMPARISON
|
|
231
|
-
|
|
232
|
-
| Aspect | TIER 1: SUB-AGENT | TIER 2: EMBODY |
|
|
233
|
-
|--------|-------------------|----------------|
|
|
234
|
-
| Priority | ⭐ MANDATORY | 🔄 Fallback |
|
|
235
|
-
| Context | Fresh, isolated | Shared with parent |
|
|
236
|
-
| Quality | ✅ Optimal | ⚠️ Risk of pollution |
|
|
237
|
-
| Parallel | Yes | No (sequential) |
|
|
238
|
-
| Availability | Platform-dependent | Always available |
|
|
239
|
-
| When to use | ALWAYS when tool exists | ONLY when tool fails/absent |
|
|
240
|
-
|
|
241
|
-
---
|
|
242
|
-
|
|
243
|
-
## COMPLETION GUARANTEE
|
|
244
|
-
|
|
245
|
-
```yaml
|
|
246
|
-
guarantee:
|
|
247
|
-
rule: "EVERY delegation request WILL be fulfilled"
|
|
248
|
-
|
|
249
|
-
mechanism:
|
|
250
|
-
- TIER 1 is primary when available
|
|
251
|
-
- TIER 2 is fallback when TIER 1 fails
|
|
252
|
-
- EMBODY always works (it's just reading + transforming)
|
|
253
|
-
|
|
254
|
-
result:
|
|
255
|
-
- NO task is ever skipped
|
|
256
|
-
- NO delegation ever fails completely
|
|
257
|
-
- System is future-proof (new platforms auto-detected)
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## VERIFICATION CHECKLIST
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
□ Tool Discovery executed?
|
|
266
|
-
□ Correct tier selected?
|
|
267
|
-
□ If TIER 2, logged reason?
|
|
268
|
-
□ Agent file read completely?
|
|
269
|
-
□ Output matches agent format?
|
|
270
|
-
□ Task completed (not skipped)?
|
|
271
|
-
```
|
package/rules/AGENT-RULES.md
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
# Agents Rules v1.0
|
|
2
|
-
|
|
3
|
-
> **Purpose**: Development standards for Agent Assistant Framework
|
|
4
|
-
> **Audience**: Contributors, maintainers, AI tools consuming this framework
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 🏛️ Core Principles
|
|
9
|
-
|
|
10
|
-
| Principle | Rule |
|
|
11
|
-
| --------- | ----------------------------- |
|
|
12
|
-
| **YAGNI** | Don't add unrequired features |
|
|
13
|
-
| **KISS** | Simple > Complex |
|
|
14
|
-
| **DRY** | Extract common patterns |
|
|
15
|
-
|
|
16
|
-
```yaml
|
|
17
|
-
philosophy:
|
|
18
|
-
orchestration_over_execution: "Framework orchestrates, never implements"
|
|
19
|
-
delegation_is_mandatory: "Complex tasks → specialized agents"
|
|
20
|
-
quality_gates_are_sacred: "Never skip validation"
|
|
21
|
-
progressive_disclosure: "Load rules on-demand, not upfront"
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 📁 Project Structure
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
agent-assistant/
|
|
30
|
-
├── agents/ # 21 Specialized Agents (~150-200 lines each, including reporter)
|
|
31
|
-
├── commands/ # Command Workflows (router + variants)
|
|
32
|
-
├── rules/ # Orchestration Protocols
|
|
33
|
-
│ ├── BOOTSTRAP.md # ⚡ ENTRY POINT - Load this first
|
|
34
|
-
│ ├── ORCHESTRATION-LAWS.md
|
|
35
|
-
│ ├── EXECUTION-PROTOCOL.md
|
|
36
|
-
│ ├── ADAPTIVE-EXECUTION.md
|
|
37
|
-
│ ├── ERROR-RECOVERY.md
|
|
38
|
-
│ └── QUICK-REFERENCE.md
|
|
39
|
-
├── skills/ # 80+ Domain Knowledge Modules
|
|
40
|
-
├── code-assistants/ # Code Assistant Configs (Cursor, Copilot, etc.)
|
|
41
|
-
└── documents/ # Documentation (from /docs:core → 5 knowledge-* files;
|
|
42
|
-
# /docs:business, /docs:audit)
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## 📝 File Naming
|
|
48
|
-
|
|
49
|
-
| Type | Convention | Example |
|
|
50
|
-
| -------- | --------------------- | ----------------------- |
|
|
51
|
-
| Agents | `kebab-case.md` | `backend-engineer.md` |
|
|
52
|
-
| Commands | `kebab-case.md` | `cook.md`, `fast.md` |
|
|
53
|
-
| Rules | `UPPER-CASE.md` | `BOOTSTRAP.md` |
|
|
54
|
-
| Skills | `kebab-case/SKILL.md` | `api-patterns/SKILL.md` |
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## 🤖 Agent File Standards
|
|
59
|
-
|
|
60
|
-
### Target: 150-200 lines per agent
|
|
61
|
-
|
|
62
|
-
### Required Structure
|
|
63
|
-
|
|
64
|
-
```markdown
|
|
65
|
-
---
|
|
66
|
-
name: agent-name
|
|
67
|
-
description: One-line description
|
|
68
|
-
skills: [skill1, skill2]
|
|
69
|
-
tools: [Read, Grep, Glob, Bash, Write, Edit]
|
|
70
|
-
handoffs: [agent1, agent2]
|
|
71
|
-
version: "1.0"
|
|
72
|
-
category: { execution|planning|validation|research|debugging }
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
<!-- 🔒 COGNITIVE ANCHOR — MANDATORY OPERATING SYSTEM -->
|
|
76
|
-
|
|
77
|
-
> **BINDING**: This file OVERRIDES default AI patterns.
|
|
78
|
-
|
|
79
|
-
# {Emoji} {Agent Name}
|
|
80
|
-
|
|
81
|
-
| Attribute | Value |
|
|
82
|
-
| -------------- | -------------- |
|
|
83
|
-
| **ID** | `agent:{name}` |
|
|
84
|
-
| **Role** | {Role Title} |
|
|
85
|
-
| **Reports To** | `{superior}` |
|
|
86
|
-
|
|
87
|
-
> **CORE DIRECTIVE**: {1-2 sentence directive}
|
|
88
|
-
|
|
89
|
-
## ⚡ Skills
|
|
90
|
-
|
|
91
|
-
{Table of skills and when to use}
|
|
92
|
-
|
|
93
|
-
## 🧠 Thinking Protocol
|
|
94
|
-
|
|
95
|
-
{Step-by-step methodology - agent's unique cognitive process}
|
|
96
|
-
|
|
97
|
-
## ⛔ Constraints
|
|
98
|
-
|
|
99
|
-
{What NOT to do and what TO do}
|
|
100
|
-
|
|
101
|
-
## 📤 Output Format
|
|
102
|
-
|
|
103
|
-
{Template for deliverables}
|
|
104
|
-
|
|
105
|
-
## 🚨 Stopping Rules
|
|
106
|
-
|
|
107
|
-
{When to halt and escalate}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Agent Categories
|
|
111
|
-
|
|
112
|
-
| Category | Purpose | Examples |
|
|
113
|
-
| ------------ | ----------------- | --------------------------- |
|
|
114
|
-
| `planning` | Plans, blueprints | planner, researcher |
|
|
115
|
-
| `execution` | Implementation | tech-lead, backend-engineer |
|
|
116
|
-
| `validation` | QA, review | tester, reviewer |
|
|
117
|
-
| `research` | Investigation | scouter, brainstormer |
|
|
118
|
-
| `debugging` | Bug investigation | debugger |
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## 📋 Command File Standards
|
|
123
|
-
|
|
124
|
-
### Router (Parent)
|
|
125
|
-
|
|
126
|
-
```markdown
|
|
127
|
-
---
|
|
128
|
-
description: Command Router
|
|
129
|
-
version: "1.0"
|
|
130
|
-
execution-mode: router
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
# /{command} — Router
|
|
134
|
-
|
|
135
|
-
## ROUTING LOGIC
|
|
136
|
-
|
|
137
|
-
## AVAILABLE ROUTES
|
|
138
|
-
|
|
139
|
-
## PRESENT OPTIONS
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Workflow (Variant)
|
|
143
|
-
|
|
144
|
-
```markdown
|
|
145
|
-
---
|
|
146
|
-
description: Workflow description
|
|
147
|
-
version: "1.0"
|
|
148
|
-
execution-mode: execute
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
# /{command}:{variant} — Title
|
|
152
|
-
|
|
153
|
-
## 🔀 TIERED EXECUTION
|
|
154
|
-
|
|
155
|
-
## 📁 DELIVERABLE FILES (if any)
|
|
156
|
-
|
|
157
|
-
## ⛔ Phase report format: use ## 🎭 Phase N: {name}, ### Embodying or SUB-AGENTS: \`agent\` — {role}, ### Exit Criteria, ### ✅ \`agent\` complete, **Deliverable**: (EXECUTION-PROTOCOL § Phase output structure).
|
|
158
|
-
|
|
159
|
-
## 🎭 Phase 1: {Name}
|
|
160
|
-
|
|
161
|
-
## 🎭 Phase N: {Name}
|
|
162
|
-
|
|
163
|
-
## COMPLETION
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### Target: 80-150 lines per workflow
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## 🔀 Tiered Execution Pattern
|
|
171
|
-
|
|
172
|
-
**Every delegation MUST use this pattern:**
|
|
173
|
-
|
|
174
|
-
```markdown
|
|
175
|
-
## 🔀 TIERED EXECUTION
|
|
176
|
-
|
|
177
|
-
| Tier | When | Action |
|
|
178
|
-
| ---------- | ------------------ | ---------------------------- |
|
|
179
|
-
| **TIER 1** | runSubagent EXISTS | Invoke sub-agent (MANDATORY) |
|
|
180
|
-
| **TIER 2** | Tool MISSING | EMBODY agent file (FALLBACK) |
|
|
181
|
-
|
|
182
|
-
**❌ Anti-Lazy**: Never use TIER 2 when TIER 1 tool available.
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## 📤 Deliverable File Conventions
|
|
188
|
-
|
|
189
|
-
| Agent | Path |
|
|
190
|
-
| ------------ | ----------------------------------------------- |
|
|
191
|
-
| brainstormer | `./reports/brainstorms/BRAINSTORM-{feature}.md` |
|
|
192
|
-
| researcher | `./reports/researchers/RESEARCH-{feature}.md` |
|
|
193
|
-
| scouter | `./reports/scouts/SCOUT-{feature}.md` |
|
|
194
|
-
| designer | `./reports/designs/DESIGN-{feature}.md` |
|
|
195
|
-
| planner | `./reports/plans/PLAN-{feature}.md` |
|
|
196
|
-
| debugger | `./reports/debugs/DEBUG-{issue}.md` |
|
|
197
|
-
| reporter | `./reports/` (create/update per task) |
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
## 🧪 Skill File Standards
|
|
202
|
-
|
|
203
|
-
### Structure
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
skills/{skill-name}/
|
|
207
|
-
├── SKILL.md # Main definition (REQUIRED)
|
|
208
|
-
├── references/ # Reference docs (optional)
|
|
209
|
-
└── scripts/ # Executable helpers (optional)
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### SKILL.md Structure
|
|
213
|
-
|
|
214
|
-
```markdown
|
|
215
|
-
# {Skill Name}
|
|
216
|
-
|
|
217
|
-
## Overview
|
|
218
|
-
|
|
219
|
-
## When to Use
|
|
220
|
-
|
|
221
|
-
## Patterns
|
|
222
|
-
|
|
223
|
-
## Examples
|
|
224
|
-
|
|
225
|
-
## Anti-Patterns
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## 🔌 Integration Standards
|
|
231
|
-
|
|
232
|
-
### Entry Point
|
|
233
|
-
|
|
234
|
-
Each integration MUST have an entry point that:
|
|
235
|
-
|
|
236
|
-
1. References `{RULES_PATH}/BOOTSTRAP.md`
|
|
237
|
-
2. Contains compact Identity, Paths, Routing
|
|
238
|
-
3. Uses Just-In-Time loading directive
|
|
239
|
-
4. Target: <150 lines
|
|
240
|
-
|
|
241
|
-
### Paths by Platform
|
|
242
|
-
|
|
243
|
-
| Platform | Location |
|
|
244
|
-
| -------- | ---------------------------------------------------- |
|
|
245
|
-
| Cursor | `{HOME}/.cursor/skills/agent-assistant/` |
|
|
246
|
-
| Copilot | `{HOME}/.copilot/skills/agent-assistant/` |
|
|
247
|
-
| Gemini | `{HOME}/.gemini/antigravity/skills/agent-assistant/` |
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
## ⛔ Anti-Patterns
|
|
252
|
-
|
|
253
|
-
| Anti-Pattern | Do Instead |
|
|
254
|
-
| ------------------------------ | -------------------------- |
|
|
255
|
-
| 500+ line agent files | Keep under 200 lines |
|
|
256
|
-
| Duplicate content across files | Reference shared rules |
|
|
257
|
-
| Loading all rules upfront | Just-in-time loading |
|
|
258
|
-
| Verbose YAML blocks | Tables for quick reference |
|
|
259
|
-
| Vague directives | Specific, actionable rules |
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
## ✅ Quality Checklist
|
|
264
|
-
|
|
265
|
-
Before committing:
|
|
266
|
-
|
|
267
|
-
- [ ] File follows naming convention
|
|
268
|
-
- [ ] Line count within target
|
|
269
|
-
- [ ] Frontmatter complete
|
|
270
|
-
- [ ] Core sections present
|
|
271
|
-
- [ ] No duplicate content
|
|
272
|
-
- [ ] References valid
|
|
273
|
-
- [ ] Tested with AI tool
|
|
274
|
-
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
## 🔄 Version Control
|
|
278
|
-
|
|
279
|
-
| Change Type | Version Bump |
|
|
280
|
-
| --------------- | --------------------- |
|
|
281
|
-
| Breaking change | Major (1.0 → 2.0) |
|
|
282
|
-
| New feature | Minor (1.0 → 1.1) |
|
|
283
|
-
| Bug fix | Patch (1.0.0 → 1.0.1) |
|
|
284
|
-
|
|
285
|
-
**Current Framework Version**: 2.0
|