specialist-agent 2.11.3 → 2.12.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/.claude-plugin/marketplace.json +48 -73
- package/.claude-plugin/plugin.json +8 -14
- package/.codex/INSTALL.md +32 -9
- package/.cursor-plugin/marketplace.json +45 -2
- package/.cursor-plugin/plugin.json +14 -12
- package/.opencode/opencode.json +45 -0
- package/README.md +18 -2
- package/agents/analyst-lite.md +1 -1
- package/agents/analyst.md +5 -1
- package/agents/api.md +1 -0
- package/agents/architect-lite.md +1 -1
- package/agents/architect.md +10 -1
- package/agents/autopilot-lite.md +46 -0
- package/agents/autopilot.md +196 -0
- package/agents/cloud-lite.md +1 -1
- package/agents/cloud.md +2 -1
- package/agents/data.md +1 -0
- package/agents/debugger.md +3 -0
- package/agents/deps-lite.md +1 -1
- package/agents/deps.md +2 -1
- package/agents/designer.md +8 -0
- package/agents/devops-lite.md +1 -1
- package/agents/devops.md +2 -1
- package/agents/docs-lite.md +1 -1
- package/agents/docs.md +2 -1
- package/agents/executor-lite.md +1 -1
- package/agents/executor.md +58 -31
- package/agents/explorer-lite.md +1 -1
- package/agents/explorer.md +14 -1
- package/agents/finance.md +1 -0
- package/agents/i18n.md +1 -0
- package/agents/legal.md +1 -0
- package/agents/marketing.md +9 -0
- package/agents/memory.md +103 -178
- package/agents/orchestrator-lite.md +1 -1
- package/agents/orchestrator.md +62 -39
- package/agents/pair-lite.md +1 -1
- package/agents/pair.md +2 -1
- package/agents/perf.md +1 -0
- package/agents/planner-lite.md +1 -1
- package/agents/planner.md +17 -11
- package/agents/product.md +9 -0
- package/agents/refactor.md +1 -0
- package/agents/ripple-lite.md +1 -1
- package/agents/ripple.md +4 -1
- package/agents/scout-lite.md +1 -1
- package/agents/scout.md +2 -1
- package/agents/security-lite.md +1 -1
- package/agents/security.md +4 -1
- package/agents/sentry-triage-lite.md +1 -1
- package/agents/sentry-triage.md +4 -1
- package/agents/starter-lite.md +1 -1
- package/agents/starter.md +2 -1
- package/agents/support.md +1 -0
- package/agents/tdd.md +3 -0
- package/agents/tester.md +1 -0
- package/cli/index.mjs +1 -1
- package/hooks/hooks.json +61 -76
- package/hooks/lifecycle.json +91 -0
- package/hooks/native/auto-dispatch.mjs +7 -2
- package/hooks/native/session-end.mjs +42 -0
- package/package.json +1 -1
- package/skills/audit/SKILL.md +71 -9
- package/skills/autopilot/SKILL.md +286 -0
- package/skills/brainstorm/SKILL.md +60 -7
- package/skills/codereview/SKILL.md +16 -3
- package/skills/copywriting/SKILL.md +218 -0
- package/skills/cro/SKILL.md +234 -0
- package/skills/design-review/SKILL.md +217 -0
- package/skills/grill/SKILL.md +270 -0
- package/skills/improve-architecture/SKILL.md +205 -0
- package/skills/prd/SKILL.md +241 -0
- package/skills/recall/SKILL.md +36 -74
- package/skills/remember/SKILL.md +41 -91
- package/skills/seo-audit/SKILL.md +240 -0
- package/skills/tdd/SKILL.md +49 -4
- package/skills/write-skill/SKILL.md +18 -6
- package/templates/autopilot/PROMPT.md +39 -0
- package/templates/autopilot/README.md +122 -0
- package/templates/autopilot/devcontainer.json +21 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autopilot
|
|
3
|
+
description: "Use when you want to iteratively build a feature using a PRD as source of truth, with progress tracking and fresh-context iterations - the Autopilot technique for autonomous development."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: "[PRD path or description] [--max-iterations=N]"
|
|
6
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, Agent, TodoWrite
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /autopilot - Iterative Autonomous Development
|
|
10
|
+
|
|
11
|
+
Execute complex features autonomously using the Autopilot technique: PRD as source of truth, progress file for state persistence, and fresh-context iterations to avoid context rot.
|
|
12
|
+
|
|
13
|
+
**Target:** $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
|
|
17
|
+
- Features that require 5+ tasks to implement
|
|
18
|
+
- Overnight or unattended batch execution
|
|
19
|
+
- Migrations (database, framework, architecture)
|
|
20
|
+
- Building MVPs from a PRD
|
|
21
|
+
- Any task where context rot degrades quality over long sessions
|
|
22
|
+
- NOT for: single-file changes (use `@builder`)
|
|
23
|
+
- NOT for: subjective design decisions (need human feedback)
|
|
24
|
+
- NOT for: tasks without clear completion criteria
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
### Step 1: PRD Resolution
|
|
29
|
+
|
|
30
|
+
1. **If argument is a file path** (ends in `.md`): Read it as the PRD
|
|
31
|
+
2. **If argument is a description**: Delegate to `/prd` to generate `docs/PRD-[name].md`
|
|
32
|
+
3. **If PRD already exists** at `.claude/autopilot/progress.md` with a PRD reference: Resume from where it left off
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Check for existing progress
|
|
36
|
+
cat .claude/autopilot/progress.md 2>/dev/null
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**BLOCKED** until a PRD file exists and is readable.
|
|
40
|
+
|
|
41
|
+
### Step 2: Task Extraction & Progress Initialization
|
|
42
|
+
|
|
43
|
+
1. **Parse the PRD** for implementable tasks (look for issue breakdown, task lists, or feature sections)
|
|
44
|
+
2. **Create progress file** at `.claude/autopilot/progress.md`:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# Autopilot Progress
|
|
48
|
+
|
|
49
|
+
## Config
|
|
50
|
+
- PRD: [path/to/PRD.md]
|
|
51
|
+
- Max iterations: [N, default 10]
|
|
52
|
+
- Current iteration: 0
|
|
53
|
+
- Status: IN_PROGRESS
|
|
54
|
+
- Started: [timestamp]
|
|
55
|
+
|
|
56
|
+
## Tasks
|
|
57
|
+
| # | Task | Status | Iteration | Notes |
|
|
58
|
+
|---|------|--------|-----------|-------|
|
|
59
|
+
| 1 | [task from PRD] | PENDING | - | - |
|
|
60
|
+
| 2 | [task from PRD] | PENDING | - | - |
|
|
61
|
+
| 3 | [task from PRD] | PENDING | - | - |
|
|
62
|
+
|
|
63
|
+
## Iteration Log
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
3. **Create git restore point:**
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git add -A 2>/dev/null
|
|
70
|
+
git tag restore-point/ralf-$(date +%Y%m%d-%H%M%S) 2>/dev/null
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
4. **Initialize TodoWrite** with all tasks for live progress tracking.
|
|
74
|
+
|
|
75
|
+
### Step 3: Iteration Loop
|
|
76
|
+
|
|
77
|
+
For each iteration until completion:
|
|
78
|
+
|
|
79
|
+
#### 3a. Read State
|
|
80
|
+
```
|
|
81
|
+
1. READ the PRD (source of truth - may have been updated)
|
|
82
|
+
2. READ .claude/autopilot/progress.md
|
|
83
|
+
3. IDENTIFY next task with Status = PENDING
|
|
84
|
+
4. If no PENDING tasks remain → go to Step 4 (Completion)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### 3b. Execute Task via Fresh-Context Subagent
|
|
88
|
+
|
|
89
|
+
**Critical:** Delegate each task to a subagent using the `Agent` tool. This gives the task a fresh context window, preventing context rot.
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Agent(
|
|
93
|
+
description: "RALF iteration N - task description",
|
|
94
|
+
prompt: "
|
|
95
|
+
You are executing a Autopilot task.
|
|
96
|
+
|
|
97
|
+
## PRD (Source of Truth)
|
|
98
|
+
[inline PRD content]
|
|
99
|
+
|
|
100
|
+
## Current Progress
|
|
101
|
+
[inline progress.md content]
|
|
102
|
+
|
|
103
|
+
## Your Task
|
|
104
|
+
Task #N: [task description]
|
|
105
|
+
|
|
106
|
+
## Instructions
|
|
107
|
+
1. Implement this task completely
|
|
108
|
+
2. Follow existing codebase patterns
|
|
109
|
+
3. Run tests if available
|
|
110
|
+
4. Create a git commit: git add -A && git commit -m 'autopilot: task-N - [description]'
|
|
111
|
+
5. Report what you did and what files changed
|
|
112
|
+
"
|
|
113
|
+
)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### 3c. Verify Result
|
|
117
|
+
|
|
118
|
+
After the subagent returns:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
1. CHECK git log for the commit
|
|
122
|
+
2. RUN tests (if test command exists in package.json)
|
|
123
|
+
3. RUN type check (tsc --noEmit, if TypeScript project)
|
|
124
|
+
4. If PASS → mark task DONE in progress.md
|
|
125
|
+
5. If FAIL → retry (max 2 retries per task)
|
|
126
|
+
6. If still FAIL after retries → mark task BLOCKED, add error notes
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### 3d. Update Progress
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
## Update in progress.md:
|
|
133
|
+
- Increment "Current iteration" counter
|
|
134
|
+
- Update task status (DONE / BLOCKED)
|
|
135
|
+
- Add iteration log entry:
|
|
136
|
+
|
|
137
|
+
### Iteration [N]
|
|
138
|
+
- Task: #[X] [description]
|
|
139
|
+
- Result: DONE | BLOCKED
|
|
140
|
+
- Files changed: [list]
|
|
141
|
+
- Notes: [what happened]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
#### 3e. Create Checkpoint
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
git tag checkpoint/ralf-task-[N] 2>/dev/null
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### 3f. Check Completion
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
- All tasks DONE or BLOCKED? → Exit loop
|
|
154
|
+
- Current iteration >= max iterations? → Exit loop
|
|
155
|
+
- Otherwise → Continue to next iteration (3a)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Step 4: Completion
|
|
159
|
+
|
|
160
|
+
1. **Update progress.md** status to `COMPLETE` or `MAX_ITERATIONS_REACHED`
|
|
161
|
+
2. **Generate summary report**
|
|
162
|
+
3. **Suggest next steps** (`/verify` for validation, `/finish` for branch finalization)
|
|
163
|
+
|
|
164
|
+
## Progress File Format
|
|
165
|
+
|
|
166
|
+
The progress file at `.claude/autopilot/progress.md` is the **state persistence layer** between iterations. It MUST follow this exact format for reliable parsing:
|
|
167
|
+
|
|
168
|
+
```markdown
|
|
169
|
+
# Autopilot Progress
|
|
170
|
+
|
|
171
|
+
## Config
|
|
172
|
+
- PRD: docs/PRD-feature-name.md
|
|
173
|
+
- Max iterations: 10
|
|
174
|
+
- Current iteration: 3
|
|
175
|
+
- Status: IN_PROGRESS | COMPLETE | MAX_ITERATIONS_REACHED
|
|
176
|
+
- Started: 2026-03-16T14:30:00
|
|
177
|
+
|
|
178
|
+
## Tasks
|
|
179
|
+
| # | Task | Status | Iteration | Notes |
|
|
180
|
+
|---|------|--------|-----------|-------|
|
|
181
|
+
| 1 | Create data models | DONE | 1 | Created User, Task models |
|
|
182
|
+
| 2 | Implement API endpoints | DONE | 2 | REST endpoints for CRUD |
|
|
183
|
+
| 3 | Build frontend components | IN_PROGRESS | 3 | Started TaskList component |
|
|
184
|
+
| 4 | Add authentication | PENDING | - | - |
|
|
185
|
+
| 5 | Write integration tests | PENDING | - | - |
|
|
186
|
+
|
|
187
|
+
## Iteration Log
|
|
188
|
+
|
|
189
|
+
### Iteration 1
|
|
190
|
+
- Task: #1 Create data models
|
|
191
|
+
- Result: DONE
|
|
192
|
+
- Files: src/models/user.ts, src/models/task.ts
|
|
193
|
+
- Notes: Followed existing Prisma schema patterns
|
|
194
|
+
|
|
195
|
+
### Iteration 2
|
|
196
|
+
- Task: #2 Implement API endpoints
|
|
197
|
+
- Result: DONE
|
|
198
|
+
- Files: src/api/users.ts, src/api/tasks.ts
|
|
199
|
+
- Notes: RESTful CRUD with validation
|
|
200
|
+
|
|
201
|
+
### Iteration 3
|
|
202
|
+
- Task: #3 Build frontend components
|
|
203
|
+
- Result: IN_PROGRESS
|
|
204
|
+
- Files: src/components/TaskList.tsx
|
|
205
|
+
- Notes: Component created, needs styling
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Execution Modes
|
|
209
|
+
|
|
210
|
+
### Plugin Mode (Default)
|
|
211
|
+
|
|
212
|
+
Runs inside Claude Code using `Agent` tool for fresh-context subagents. Easier to use but doesn't fully reset the outer context window.
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
/autopilot docs/PRD-my-feature.md --max-iterations=10
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Script Mode (Maximum Performance)
|
|
219
|
+
|
|
220
|
+
For the true Autopilot experience with full context reset between iterations, use the bash script:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
./scripts/autopilot.sh docs/PRD-my-feature.md --max-iterations=10 --model=claude-opus-4-6
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The script kills and restarts Claude Code between iterations, giving each iteration a completely fresh context window. Best for:
|
|
227
|
+
- Long-running overnight builds
|
|
228
|
+
- Complex migrations where context rot is noticeable
|
|
229
|
+
- Running inside a DevContainer with `--dangerously-skip-permissions`
|
|
230
|
+
|
|
231
|
+
See `templates/autopilot/README.md` for DevContainer setup.
|
|
232
|
+
|
|
233
|
+
## Integration with Specialist Agent
|
|
234
|
+
|
|
235
|
+
| Component | How Autopilot Uses It |
|
|
236
|
+
|-----------|----------------------|
|
|
237
|
+
| `/prd` | Generates the PRD if user provides a description instead of a file |
|
|
238
|
+
| `/checkpoint` | Creates restore points and per-task checkpoints |
|
|
239
|
+
| `@executor` | Pattern reference for self-healing (max 2 retries) |
|
|
240
|
+
| `@builder` | Subagent for implementation tasks |
|
|
241
|
+
| `after-task` hook | Fires after each iteration completes |
|
|
242
|
+
| TodoWrite | Live progress tracking during plugin mode |
|
|
243
|
+
|
|
244
|
+
## Anti-Rationalization
|
|
245
|
+
|
|
246
|
+
| Excuse | Reality |
|
|
247
|
+
|--------|---------|
|
|
248
|
+
| "I'll just do it in one long session" | Context rot is real. After ~50K tokens, quality degrades measurably. Fresh iterations produce better code. |
|
|
249
|
+
| "The PRD is too detailed, I'll wing it" | Vague PRDs produce vague code. The PRD is the contract. If it's wrong, fix the PRD first. |
|
|
250
|
+
| "I don't need progress tracking" | You are a goldfish with a notepad. Without progress.md, you'll redo completed work or skip critical tasks. |
|
|
251
|
+
| "One more retry will fix it" | After 2 retries, the approach is wrong, not the execution. Mark BLOCKED and move on. A human needs to look at it. |
|
|
252
|
+
| "I can combine multiple tasks per iteration" | One task per iteration. Combining tasks creates entangled commits and makes rollback impossible. |
|
|
253
|
+
| "Script mode is overkill" | For 3 tasks, maybe. For 10+ tasks or overnight runs, script mode's clean context pays for itself in fewer total iterations. |
|
|
254
|
+
|
|
255
|
+
## Rules
|
|
256
|
+
|
|
257
|
+
1. **One task per iteration** - Never combine tasks. Each iteration handles exactly one task.
|
|
258
|
+
2. **PRD is sacred** - Never modify the PRD during execution. If the PRD is wrong, stop and fix it first.
|
|
259
|
+
3. **Progress file is the single source of state** - All iteration state lives in progress.md. No in-memory state.
|
|
260
|
+
4. **Fresh context per task** - Always delegate to a subagent (plugin mode) or restart Claude (script mode).
|
|
261
|
+
5. **Max 2 retries per task** - After 2 failures, mark BLOCKED and continue with the next task.
|
|
262
|
+
6. **Always checkpoint** - Every successful task gets a git tag. No exceptions.
|
|
263
|
+
7. **Verify before marking DONE** - Run tests/type-check. No "should work" claims.
|
|
264
|
+
8. **Resume-safe** - If interrupted, running `/autopilot` again reads progress.md and continues from where it stopped.
|
|
265
|
+
|
|
266
|
+
## Output
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
──── /autopilot ────
|
|
270
|
+
PRD: docs/PRD-[name].md
|
|
271
|
+
Mode: Plugin | Script
|
|
272
|
+
Max Iterations: N
|
|
273
|
+
|
|
274
|
+
[1/N] Task 1: [description]... DONE (iteration 1)
|
|
275
|
+
[2/N] Task 2: [description]... DONE (iteration 2)
|
|
276
|
+
[3/N] Task 3: [description]... BLOCKED (iteration 3-5, retried 2x)
|
|
277
|
+
[4/N] Task 4: [description]... DONE (iteration 6)
|
|
278
|
+
[5/N] Task 5: [description]... PENDING
|
|
279
|
+
|
|
280
|
+
Status: IN_PROGRESS | COMPLETE | MAX_ITERATIONS_REACHED
|
|
281
|
+
Iterations used: X/N
|
|
282
|
+
Tasks: Y DONE, Z BLOCKED, W PENDING
|
|
283
|
+
Progress: .claude/autopilot/progress.md
|
|
284
|
+
|
|
285
|
+
──── Next: /verify or /finish ────
|
|
286
|
+
```
|
|
@@ -106,11 +106,41 @@ Risky assumptions to address: [list]
|
|
|
106
106
|
|
|
107
107
|
**BLOCKED** until at least 5 assumptions are identified and tested.
|
|
108
108
|
|
|
109
|
+
### Step 3.5: Competitive Analysis (Optional)
|
|
110
|
+
|
|
111
|
+
Before generating alternatives, check how others solved similar problems:
|
|
112
|
+
|
|
113
|
+
1. **Scan for existing solutions:**
|
|
114
|
+
- "How do popular open-source projects handle this?"
|
|
115
|
+
- "What patterns do competing products use?"
|
|
116
|
+
- "Are there established libraries that solve this out of the box?"
|
|
117
|
+
2. **Document findings:**
|
|
118
|
+
|
|
119
|
+
```markdown
|
|
120
|
+
## Competitive Analysis
|
|
121
|
+
|
|
122
|
+
| Solution | Approach | Pros | Cons | Applicable? |
|
|
123
|
+
|----------|----------|------|------|------------|
|
|
124
|
+
| [lib/product 1] | [how they solved it] | [pros] | [cons] | [yes/partial/no] |
|
|
125
|
+
| [lib/product 2] | [how they solved it] | [pros] | [cons] | [yes/partial/no] |
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Skip this step if the problem is purely internal or domain-specific with no external parallels.
|
|
129
|
+
|
|
109
130
|
### Step 4: Alternative Generation - Explore Options
|
|
110
131
|
|
|
111
|
-
Generate multiple approaches:
|
|
132
|
+
Generate multiple approaches using ideation frameworks:
|
|
112
133
|
|
|
113
|
-
|
|
134
|
+
**Choose a framework to stimulate thinking:**
|
|
135
|
+
|
|
136
|
+
| Framework | When to Use | How It Works |
|
|
137
|
+
|-----------|-------------|-------------|
|
|
138
|
+
| **First Principles** | Complex technical problems | Decompose to ground truths → rebuild from scratch. "What is fundamentally true here?" |
|
|
139
|
+
| **SCAMPER** | Improving existing solutions | **S**ubstitute, **C**ombine, **A**dapt, **M**odify, **P**ut to other use, **E**liminate, **R**everse |
|
|
140
|
+
| **How Might We** | Reframing constraints | Turn every constraint into an opportunity. "We can't do X" → "How might we achieve the goal without X?" |
|
|
141
|
+
| **Inversion** | When stuck | Ask "How would we guarantee failure?" then invert each answer |
|
|
142
|
+
|
|
143
|
+
1. **Apply the chosen framework** to generate at least 3 alternatives:
|
|
114
144
|
- **Approach A** - The obvious solution
|
|
115
145
|
- **Approach B** - The simpler alternative
|
|
116
146
|
- **Approach C** - The scalable/future-proof option
|
|
@@ -141,12 +171,28 @@ Recommendation: Approach [X] because [rationale]
|
|
|
141
171
|
|
|
142
172
|
### Step 5: Convergence - Synthesize and Validate
|
|
143
173
|
|
|
144
|
-
Present the design for approval
|
|
174
|
+
Present the design for approval using a **Decision Matrix** for objective comparison:
|
|
175
|
+
|
|
176
|
+
1. **Build Decision Matrix** - Score each approach on weighted criteria:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
## Decision Matrix
|
|
180
|
+
|
|
181
|
+
| Criteria | Weight | Approach A | Approach B | Approach C |
|
|
182
|
+
|----------|--------|-----------|-----------|-----------|
|
|
183
|
+
| Effort | 25% | 7 | 9 | 4 |
|
|
184
|
+
| Risk | 20% | 6 | 8 | 5 |
|
|
185
|
+
| Impact | 30% | 8 | 6 | 9 |
|
|
186
|
+
| Alignment | 15% | 7 | 7 | 8 |
|
|
187
|
+
| Maintainability | 10% | 6 | 8 | 7 |
|
|
188
|
+
| **Weighted Score** | | **7.05** | **7.35** | **6.55** |
|
|
189
|
+
|
|
190
|
+
Winner: Approach [X] (score: [N])
|
|
191
|
+
```
|
|
145
192
|
|
|
146
|
-
1. **Synthesize chosen approach** into a design summary
|
|
147
193
|
2. **Present in sections** - Each section gets user approval:
|
|
148
194
|
- Section 1: Problem & scope (approve?)
|
|
149
|
-
- Section 2: Technical approach (approve?)
|
|
195
|
+
- Section 2: Technical approach with decision matrix rationale (approve?)
|
|
150
196
|
- Section 3: Data model / API design (approve?)
|
|
151
197
|
- Section 4: Key decisions & trade-offs (approve?)
|
|
152
198
|
3. **Document final design** - Ready for `/plan` handoff
|
|
@@ -159,7 +205,7 @@ Present the design for approval in digestible sections:
|
|
|
159
205
|
[approved summary]
|
|
160
206
|
|
|
161
207
|
### Section 2: Technical Approach ✓
|
|
162
|
-
[approved summary]
|
|
208
|
+
[approved summary + decision matrix winner]
|
|
163
209
|
|
|
164
210
|
### Section 3: Data Model ✓
|
|
165
211
|
[approved summary]
|
|
@@ -168,7 +214,7 @@ Present the design for approval in digestible sections:
|
|
|
168
214
|
[approved summary]
|
|
169
215
|
```
|
|
170
216
|
|
|
171
|
-
## Integration with
|
|
217
|
+
## Integration with Other Skills
|
|
172
218
|
|
|
173
219
|
```
|
|
174
220
|
IF @planner classifies task as COMPLEX:
|
|
@@ -180,6 +226,11 @@ IF user says "skip brainstorming" or "just plan":
|
|
|
180
226
|
|
|
181
227
|
IF /brainstorm output exists:
|
|
182
228
|
→ @planner uses it as foundation (don't re-ask questions)
|
|
229
|
+
|
|
230
|
+
IF /discovery was already run:
|
|
231
|
+
→ Import discovery output (problem statement, personas, constraints)
|
|
232
|
+
→ Skip Step 1 (Discovery) - already done
|
|
233
|
+
→ Start from Step 2 (Clarification)
|
|
183
234
|
```
|
|
184
235
|
|
|
185
236
|
## Verification Protocol
|
|
@@ -202,6 +253,8 @@ IF /brainstorm output exists:
|
|
|
202
253
|
| "Too many options will paralyze" | 3 options with clear pros/cons ENABLE informed decisions. Analysis paralysis comes from unclear options, not from having them. |
|
|
203
254
|
| "The user already decided" | Clarify what they DECIDED vs what they ASSUMED. Often they assumed more than they decided. |
|
|
204
255
|
| "Questions will frustrate the user" | Users prefer upfront questions over rework later. Frustration comes from building the wrong thing. |
|
|
256
|
+
| "We don't have competitors to analyze" | Every problem has prior art. Open-source libraries, competing products, or academic papers. Search before inventing. |
|
|
257
|
+
| "Frameworks are overkill for brainstorming" | Frameworks prevent blank-page paralysis and ensure coverage. SCAMPER takes 5 minutes and reveals options you'd miss. |
|
|
205
258
|
|
|
206
259
|
## Rules
|
|
207
260
|
|
|
@@ -159,9 +159,20 @@ Merge findings from all 3 perspectives:
|
|
|
159
159
|
|
|
160
160
|
1. **Deduplicate** - Remove findings flagged by multiple perspectives (keep highest severity)
|
|
161
161
|
2. **Cross-reference** - A security finding that also lacks tests is escalated one severity level
|
|
162
|
-
3. **
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
3. **YAGNI Check** - For every new abstraction, interface, or utility introduced in the change:
|
|
163
|
+
- Is it used in more than one place RIGHT NOW? (not "will be useful later")
|
|
164
|
+
- Does it add configurability that isn't required by the current spec?
|
|
165
|
+
- Does it introduce a layer of indirection without clear benefit?
|
|
166
|
+
- Flag unnecessary abstractions as MEDIUM (over-engineering)
|
|
167
|
+
4. **Observability Check** - For code touching critical paths (auth, payments, data, API):
|
|
168
|
+
- Structured logging present? (not just `console.log`)
|
|
169
|
+
- Error tracking with context? (user, request, stack trace)
|
|
170
|
+
- Health check endpoint if it's a new service?
|
|
171
|
+
- Correlation IDs propagated across boundaries?
|
|
172
|
+
- Flag missing observability as MEDIUM (or HIGH for auth/payments)
|
|
173
|
+
5. **Assign severity** - Every finding gets a severity level (see table below)
|
|
174
|
+
6. **Sort** - CRITICAL first, then HIGH, MEDIUM, LOW
|
|
175
|
+
7. **Group** - By file, then by severity within each file
|
|
165
176
|
|
|
166
177
|
### Step 4: Verdict
|
|
167
178
|
|
|
@@ -189,6 +200,8 @@ Apply verdict rules based on the consolidated findings. The verdict is final and
|
|
|
189
200
|
- A security finding without a corresponding test → severity +1 level
|
|
190
201
|
- A finding that recurs from a previous review → severity +1 level
|
|
191
202
|
- A finding in auth, payments, or PII handling → minimum severity HIGH
|
|
203
|
+
- A change touching observability/monitoring code without corresponding tests → severity +1 level
|
|
204
|
+
- A new abstraction used in only one place → flag as YAGNI (MEDIUM)
|
|
192
205
|
|
|
193
206
|
## Verification Protocol
|
|
194
207
|
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: copywriting
|
|
3
|
+
description: "Use when creating marketing copy for landing pages, email campaigns, product descriptions, or social media - with A/B variants and conversion-focused frameworks."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
argument-hint: "[product/feature and target audience]"
|
|
6
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /copywriting - Conversion-Focused Marketing Copy
|
|
10
|
+
|
|
11
|
+
Generate marketing copy using proven copywriting frameworks, with A/B variants and compliance checks - bridging the gap between product features and user motivation.
|
|
12
|
+
|
|
13
|
+
**Target:** $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
|
|
17
|
+
- Writing landing page copy (hero, features, CTA, testimonials)
|
|
18
|
+
- Creating email marketing sequences (welcome, onboarding, re-engagement)
|
|
19
|
+
- Writing product descriptions for e-commerce or SaaS
|
|
20
|
+
- Generating social media content (posts, threads, ads)
|
|
21
|
+
- Crafting ad creative copy (Google Ads, Meta Ads)
|
|
22
|
+
- When `@marketing` Copy mode needs a structured output
|
|
23
|
+
- NOT for: SEO technical optimization (use `/seo-audit`)
|
|
24
|
+
- NOT for: content strategy or keyword research (use `@marketing` SEO mode)
|
|
25
|
+
- NOT for: copyediting existing content (use a proofreading tool)
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
### Step 1: Brief Capture
|
|
30
|
+
|
|
31
|
+
1. **Identify the product/feature** from $ARGUMENTS
|
|
32
|
+
2. **Scan existing copy** in the codebase:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Find existing marketing copy, landing pages, meta descriptions
|
|
36
|
+
grep -rl "hero\|landing\|cta\|pricing\|testimonial" $TARGET --include="*.tsx" --include="*.vue" --include="*.astro" --include="*.mdx" 2>/dev/null | head -10
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
3. **Define the brief:**
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## Brief
|
|
43
|
+
|
|
44
|
+
**Product/Feature:** [what we're writing about]
|
|
45
|
+
**Target Audience:** [who reads this copy]
|
|
46
|
+
**Channel:** [landing page | email | social | ad | product description]
|
|
47
|
+
**Tone of Voice:** [professional | casual | bold | friendly | authoritative]
|
|
48
|
+
**Key Differentiators:** [what makes this unique]
|
|
49
|
+
**CTA Goal:** [signup | purchase | download | contact | share]
|
|
50
|
+
**Constraints:** [character limits, brand guidelines, compliance needs]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**BLOCKED** until brief is complete. Ask the user for missing fields.
|
|
54
|
+
|
|
55
|
+
### Step 2: Framework Selection
|
|
56
|
+
|
|
57
|
+
Select the copywriting framework based on channel:
|
|
58
|
+
|
|
59
|
+
| Channel | Primary Framework | Alternative |
|
|
60
|
+
|---------|------------------|-------------|
|
|
61
|
+
| Landing page (hero) | PAS (Problem-Agitate-Solution) | AIDA (Attention-Interest-Desire-Action) |
|
|
62
|
+
| Landing page (features) | FAB (Features-Advantages-Benefits) | Before/After/Bridge |
|
|
63
|
+
| Email sequence | BAB (Before-After-Bridge) | 4Ps (Promise-Picture-Proof-Push) |
|
|
64
|
+
| Social media | Hook-Story-Offer | PAS (condensed) |
|
|
65
|
+
| Ad creative | Headline formulas | AIDA (condensed) |
|
|
66
|
+
| Product description | FAB | Problem-Solution |
|
|
67
|
+
|
|
68
|
+
**Framework Definitions:**
|
|
69
|
+
|
|
70
|
+
- **PAS:** Identify the Problem → Agitate the pain → Present the Solution
|
|
71
|
+
- **AIDA:** Grab Attention → Build Interest → Create Desire → Call to Action
|
|
72
|
+
- **BAB:** Paint the Before (current pain) → Show the After (desired state) → Bridge (your product)
|
|
73
|
+
- **FAB:** Feature (what it does) → Advantage (why it matters) → Benefit (what user gains)
|
|
74
|
+
- **4Ps:** Promise (hook) → Picture (visualize success) → Proof (evidence) → Push (CTA)
|
|
75
|
+
- **Hook-Story-Offer:** Hook (stop scrolling) → Story (relatable narrative) → Offer (clear CTA)
|
|
76
|
+
|
|
77
|
+
### Step 3: Copy Generation
|
|
78
|
+
|
|
79
|
+
1. **Apply the selected framework** to write primary copy
|
|
80
|
+
2. **Include all required elements** for the channel:
|
|
81
|
+
|
|
82
|
+
**Landing Page Elements:**
|
|
83
|
+
- Headline (max 10 words, clear value proposition)
|
|
84
|
+
- Subheadline (expand on headline, 15-25 words)
|
|
85
|
+
- Hero body (2-3 sentences, pain → solution → benefit)
|
|
86
|
+
- Feature blocks (3-5 features with FAB format)
|
|
87
|
+
- Social proof placement (testimonials, logos, stats)
|
|
88
|
+
- CTA button text (action verb + benefit, max 5 words)
|
|
89
|
+
- Objection handlers (FAQ or trust signals)
|
|
90
|
+
|
|
91
|
+
**Email Elements:**
|
|
92
|
+
- Subject line (max 50 chars, curiosity or benefit)
|
|
93
|
+
- Preview text (max 90 chars, complement subject)
|
|
94
|
+
- Body (framework-structured, single CTA)
|
|
95
|
+
- PS line (urgency or bonus)
|
|
96
|
+
|
|
97
|
+
**Social Media Elements:**
|
|
98
|
+
- Hook (first line that stops scrolling)
|
|
99
|
+
- Body (value or story, framework-structured)
|
|
100
|
+
- CTA (clear next step)
|
|
101
|
+
- Hashtags (3-5 relevant)
|
|
102
|
+
|
|
103
|
+
### Step 4: A/B Variant Generation
|
|
104
|
+
|
|
105
|
+
For each key element, generate 2-3 variants with rationale:
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
## A/B Variants
|
|
109
|
+
|
|
110
|
+
### Headlines
|
|
111
|
+
| Variant | Copy | Strategy |
|
|
112
|
+
|---------|------|----------|
|
|
113
|
+
| A (control) | "[headline]" | Benefit-focused, direct |
|
|
114
|
+
| B | "[headline]" | Curiosity-driven, question |
|
|
115
|
+
| C | "[headline]" | Social proof, authority |
|
|
116
|
+
|
|
117
|
+
### CTAs
|
|
118
|
+
| Variant | Copy | Strategy |
|
|
119
|
+
|---------|------|----------|
|
|
120
|
+
| A (control) | "[CTA text]" | Action + benefit |
|
|
121
|
+
| B | "[CTA text]" | Urgency + action |
|
|
122
|
+
|
|
123
|
+
### Subject Lines (if email)
|
|
124
|
+
| Variant | Copy | Strategy |
|
|
125
|
+
|---------|------|----------|
|
|
126
|
+
| A | "[subject]" | Benefit-focused |
|
|
127
|
+
| B | "[subject]" | Curiosity gap |
|
|
128
|
+
| C | "[subject]" | Personalized |
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Step 5: Compliance Check
|
|
132
|
+
|
|
133
|
+
| Check | Description |
|
|
134
|
+
|-------|-------------|
|
|
135
|
+
| No unsubstantiated claims | Avoid "best", "#1", "guaranteed" without proof |
|
|
136
|
+
| CAN-SPAM compliance | Email includes unsubscribe, physical address (note to implement) |
|
|
137
|
+
| FTC testimonial guidelines | Testimonials must be genuine, disclose material connections |
|
|
138
|
+
| Accessibility | Alt text for images, readable font sizes, color contrast |
|
|
139
|
+
| Brand consistency | Tone matches existing copy in codebase |
|
|
140
|
+
| Legal disclaimers | Financial, health claims need disclaimers |
|
|
141
|
+
|
|
142
|
+
### Step 6: Output Document
|
|
143
|
+
|
|
144
|
+
Write the final copy document:
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
## Copy Deck: [Product/Feature]
|
|
148
|
+
|
|
149
|
+
### Channel: [landing page | email | social | ad]
|
|
150
|
+
### Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
151
|
+
|
|
152
|
+
[Structured copy with all elements]
|
|
153
|
+
|
|
154
|
+
### A/B Variants
|
|
155
|
+
[Variant tables]
|
|
156
|
+
|
|
157
|
+
### Implementation Notes
|
|
158
|
+
- [File paths where copy should be placed]
|
|
159
|
+
- [Component names to update]
|
|
160
|
+
- [i18n keys if applicable]
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Verification Protocol
|
|
164
|
+
|
|
165
|
+
**Before claiming the copy is complete:**
|
|
166
|
+
|
|
167
|
+
1. Brief was completed with all required fields
|
|
168
|
+
2. Appropriate framework was selected for the channel
|
|
169
|
+
3. All required elements for the channel are present
|
|
170
|
+
4. At least 2 A/B variants exist for headline and CTA
|
|
171
|
+
5. Compliance check was performed
|
|
172
|
+
6. Existing copy in codebase was read for tone consistency
|
|
173
|
+
7. Copy is implementation-ready with file paths or component references
|
|
174
|
+
8. No unsubstantiated superlative claims
|
|
175
|
+
|
|
176
|
+
## Anti-Rationalization
|
|
177
|
+
|
|
178
|
+
| Excuse | Reality |
|
|
179
|
+
|--------|---------|
|
|
180
|
+
| "Good copy writes itself" | Good copy follows frameworks refined over decades. Intuition produces mediocre copy. |
|
|
181
|
+
| "We don't need A/B variants" | You can't predict what converts. Testing headlines alone can improve conversion 20-50%. |
|
|
182
|
+
| "The product sells itself" | No product sells itself. Users need to understand value before they buy. That's copy's job. |
|
|
183
|
+
| "Long copy doesn't convert" | Long copy outsells short copy when the reader is problem-aware. Match length to awareness level. |
|
|
184
|
+
| "We'll optimize copy later" | Launch copy sets the baseline. Bad copy means bad data. Start with framework-driven copy. |
|
|
185
|
+
| "Compliance doesn't apply to us" | FTC and CAN-SPAM apply to everyone. One "guaranteed" claim without proof is a legal risk. |
|
|
186
|
+
| "Just use what competitors write" | Competitor copy might not convert either. Use proven frameworks, test your own message. |
|
|
187
|
+
|
|
188
|
+
## Rules
|
|
189
|
+
|
|
190
|
+
1. **Framework first** - Never write copy without selecting a framework
|
|
191
|
+
2. **Brief before writing** - No copy without a complete brief
|
|
192
|
+
3. **Benefits over features** - Users care about outcomes, not specifications
|
|
193
|
+
4. **One CTA per context** - Each page section or email has ONE clear call to action
|
|
194
|
+
5. **Scan existing copy** - Read the codebase for tone, terminology, and brand voice before writing
|
|
195
|
+
6. **Variants are mandatory** - At least 2 headline variants and 2 CTA variants
|
|
196
|
+
7. **Implementation-ready** - Include file paths or component references, not just raw text
|
|
197
|
+
8. **No fluff** - Every sentence must earn its place. Cut filler words ruthlessly.
|
|
198
|
+
|
|
199
|
+
## Output
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
──── /copywriting ────
|
|
203
|
+
Product: [product/feature]
|
|
204
|
+
Channel: [landing page | email | social | ad]
|
|
205
|
+
Framework: [PAS | AIDA | BAB | FAB | 4Ps | Hook-Story-Offer]
|
|
206
|
+
Audience: [target audience]
|
|
207
|
+
|
|
208
|
+
Copy Elements:
|
|
209
|
+
Headlines: [N] variants
|
|
210
|
+
CTAs: [N] variants
|
|
211
|
+
Body sections: [N]
|
|
212
|
+
Subject lines: [N] (if email)
|
|
213
|
+
|
|
214
|
+
Compliance: ✓ checked
|
|
215
|
+
Tone match: ✓ consistent with existing copy
|
|
216
|
+
|
|
217
|
+
──── Copy deck ready for implementation ────
|
|
218
|
+
```
|