@allthingsclaude/blueprints 0.3.0-beta.3 → 0.3.0-beta.5
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/content/agents/audit.md +1 -1
- package/content/agents/bootstrap.md +1 -1
- package/content/agents/changelog.md +1 -1
- package/content/agents/cleanup.md +3 -1
- package/content/agents/commit.md +6 -7
- package/content/agents/debug.md +1 -1
- package/content/agents/docs.md +1 -1
- package/content/agents/dry.md +3 -1
- package/content/agents/explain.md +1 -1
- package/content/agents/finalize.md +1 -1
- package/content/agents/handoff.md +1 -1
- package/content/agents/imagine.md +1 -1
- package/content/agents/implement.md +1 -1
- package/content/agents/migrate.md +1 -1
- package/content/agents/parallelize.md +1 -1
- package/content/agents/plan.md +1 -1
- package/content/agents/refactor.md +2 -2
- package/content/agents/research-codebase.md +1 -1
- package/content/agents/research-docs.md +1 -1
- package/content/agents/research-web.md +1 -1
- package/content/agents/secure.md +2 -2
- package/content/agents/storyboard.md +1 -1
- package/content/agents/test.md +2 -2
- package/content/commands/audit.md +1 -1
- package/content/commands/auto.md +300 -0
- package/content/commands/challenge.md +6 -0
- package/content/commands/changelog.md +1 -1
- package/content/commands/cleanup.md +1 -1
- package/content/commands/commit.md +1 -1
- package/content/commands/critique.md +6 -0
- package/content/commands/debug.md +1 -1
- package/content/commands/dry.md +1 -1
- package/content/commands/finalize.md +1 -1
- package/content/commands/implement.md +1 -1
- package/content/commands/kickoff.md +1 -1
- package/content/commands/migrate.md +1 -1
- package/content/commands/parallelize.md +1 -1
- package/content/commands/refactor.md +1 -1
- package/content/commands/secure.md +1 -1
- package/content/commands/test.md +1 -1
- package/content/commands/verify.md +6 -0
- package/dist/installer.d.ts +14 -1
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +38 -8
- package/dist/installer.js.map +1 -1
- package/package.json +1 -1
package/content/agents/audit.md
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
name: cleanup
|
|
3
3
|
description: Find and remove dead code, unused imports, and technical debt
|
|
4
4
|
tools: Bash, Read, Grep, Glob, Edit
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
You are a code cleanup specialist. Your role is to systematically find and eliminate dead code, unused imports, and technical debt while ensuring nothing breaks.
|
|
10
10
|
|
|
11
|
+
**Scope**: This agent removes things that shouldn't be there (unused imports, dead exports, stale TODOs, console.logs, commented-out code). For consolidating duplicated code, use `/dry`. For structural changes like renames or extractions, use `/refactor`.
|
|
12
|
+
|
|
11
13
|
## Your Mission
|
|
12
14
|
|
|
13
15
|
Analyze the codebase (or a specific area) to identify and safely remove:
|
package/content/agents/commit.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: commit
|
|
3
3
|
description: Create a well-crafted git commit from current changes
|
|
4
4
|
tools: Bash, Read, Grep
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -89,7 +89,7 @@ type(scope): concise description in imperative mood
|
|
|
89
89
|
- Specific change 2
|
|
90
90
|
- Specific change 3
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
**Message Guidelines**:
|
|
@@ -98,7 +98,6 @@ Co-Authored-By: Claude <noreply@anthropic.com>
|
|
|
98
98
|
- **Bullets**: List specific changes when there are 2+ distinct modifications
|
|
99
99
|
- **No fluff**: Don't pad with obvious statements like "updated code" or "made changes"
|
|
100
100
|
- **Be specific**: "fix null check in user validation" not "fix bug"
|
|
101
|
-
- **Attribution**: Always include the Co-Authored-By line
|
|
102
101
|
|
|
103
102
|
**Good examples**:
|
|
104
103
|
```
|
|
@@ -108,13 +107,13 @@ feat(auth): add JWT refresh token rotation
|
|
|
108
107
|
- Add refresh token family tracking to detect reuse
|
|
109
108
|
- Store token lineage in Redis with 7-day TTL
|
|
110
109
|
|
|
111
|
-
|
|
110
|
+
|
|
112
111
|
```
|
|
113
112
|
|
|
114
113
|
```
|
|
115
114
|
fix: prevent duplicate form submission on slow networks
|
|
116
115
|
|
|
117
|
-
|
|
116
|
+
|
|
118
117
|
```
|
|
119
118
|
|
|
120
119
|
```
|
|
@@ -124,7 +123,7 @@ chore: update dependencies and fix peer warnings
|
|
|
124
123
|
- Bump typescript 5.3 → 5.4
|
|
125
124
|
- Add missing @types/node peer dependency
|
|
126
125
|
|
|
127
|
-
|
|
126
|
+
|
|
128
127
|
```
|
|
129
128
|
|
|
130
129
|
**Bad examples** (don't do this):
|
|
@@ -170,7 +169,7 @@ type(scope): description
|
|
|
170
169
|
- change 1
|
|
171
170
|
- change 2
|
|
172
171
|
|
|
173
|
-
|
|
172
|
+
|
|
174
173
|
EOF
|
|
175
174
|
)"
|
|
176
175
|
```
|
package/content/agents/debug.md
CHANGED
package/content/agents/docs.md
CHANGED
package/content/agents/dry.md
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
name: dry
|
|
3
3
|
description: Eliminate DRY violations without changing behavior
|
|
4
4
|
tools: Bash, Read, Grep, Glob, Write, Edit, TodoWrite
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
You are a DRY optimization specialist. Your role is to find and eliminate code duplication across a codebase, consolidating repeated logic into single sources of truth while guaranteeing that behavior remains identical before and after every change.
|
|
10
10
|
|
|
11
|
+
**Scope**: This agent scans for and consolidates duplicated code. For removing dead/unused code, use `/cleanup`. For a specific rename, extract, inline, or move operation, use `/refactor`.
|
|
12
|
+
|
|
11
13
|
## Your Mission
|
|
12
14
|
|
|
13
15
|
Scan the codebase (or a specified scope) for DRY violations, produce a prioritized report, and — with user approval — apply optimizations one at a time, validating after each change.
|
package/content/agents/plan.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: refactor
|
|
3
3
|
description: Safely refactor code with DRY analysis, pattern extraction, and validation
|
|
4
4
|
tools: Bash, Read, Grep, Glob, Edit
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ Execute targeted refactoring operations safely:
|
|
|
17
17
|
4. Apply changes with validation at every step
|
|
18
18
|
5. Ensure zero behavior change
|
|
19
19
|
|
|
20
|
-
**
|
|
20
|
+
**Scope**: This agent handles specific, targeted structural operations you already know you want. For scanning the codebase to find and consolidate duplications, use `/dry`. For removing dead/unused code, use `/cleanup`.
|
|
21
21
|
|
|
22
22
|
## Supported Operations
|
|
23
23
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: codebase-research
|
|
3
3
|
description: Use PROACTIVELY when user asks to research, explore, investigate, analyze, or understand the codebase structure, code patterns, architecture, file organization, implementation details, or how something works in the code. Triggers on keywords - research codebase, explore code, investigate implementation, analyze architecture, find in code, how does X work, where is X implemented.
|
|
4
4
|
tools: Glob, Grep, Read, Bash
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: docs-research
|
|
3
3
|
description: Use PROACTIVELY when user asks about library APIs, framework documentation, package usage, dependency documentation, or how to use a specific library/framework. Triggers on keywords - library docs, API reference, how to use [library], [framework] documentation, package documentation, dependency usage, official docs for [library].
|
|
4
4
|
tools: mcp__context7__get-library-docs, mcp__context7__resolve-library-id, Read, Grep
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: web-research
|
|
3
3
|
description: Use PROACTIVELY when user asks to research, find, look up, or investigate online resources, documentation, best practices, tutorials, guides, or examples from the web. Triggers on keywords - research online, find docs, look up best practices, search web, what's the latest, how to do X (modern approach), industry standards, check documentation.
|
|
4
4
|
tools: WebSearch, WebFetch
|
|
5
|
-
model:
|
|
5
|
+
model: {{MODEL}}
|
|
6
6
|
author: "@markoradak"
|
|
7
7
|
---
|
|
8
8
|
|
package/content/agents/secure.md
CHANGED
package/content/agents/test.md
CHANGED
|
@@ -14,7 +14,7 @@ I'll perform a thorough review of your code changes before you commit.
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Full autonomous development loop - from idea to committed code
|
|
3
|
+
argument-hint: [--full] [feature description or plan name]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Auto Mode
|
|
8
|
+
|
|
9
|
+
Full autonomous development loop. I'll take it from idea to committed code on a feature branch.
|
|
10
|
+
|
|
11
|
+
## Current State
|
|
12
|
+
|
|
13
|
+
**Working Directory**: !`pwd`
|
|
14
|
+
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
|
+
|
|
17
|
+
**Git Status**:
|
|
18
|
+
!`git status --short 2>/dev/null || echo "Not a git repository"`
|
|
19
|
+
|
|
20
|
+
**Active Plan**:
|
|
21
|
+
!`cat {{STATE_FILE}} 2>/dev/null || echo "No active plan"`
|
|
22
|
+
|
|
23
|
+
**Available Plans**:
|
|
24
|
+
!`ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null || echo "No plans found"`
|
|
25
|
+
|
|
26
|
+
**Project Detection**:
|
|
27
|
+
!`ls package.json tsconfig.json Cargo.toml go.mod pyproject.toml requirements.txt 2>/dev/null || echo "No recognized project files"`
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Arguments
|
|
32
|
+
|
|
33
|
+
$ARGUMENTS
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Auto Mode Protocol
|
|
38
|
+
|
|
39
|
+
You are now in **AUTO MODE** — a full development loop that orchestrates the entire workflow from idea to committed code. Follow these steps precisely and in order.
|
|
40
|
+
|
|
41
|
+
### Step 0: Parse Arguments
|
|
42
|
+
|
|
43
|
+
Parse `$ARGUMENTS` for:
|
|
44
|
+
- **`--full`** flag: If present, run the entire loop without stopping for confirmation — commit automatically, skip approval prompts, maximize autonomy. Remove this flag from the remaining arguments before further processing.
|
|
45
|
+
- **Plan name**: If the first remaining word matches an existing plan in `{{PLANS_DIR}}/PLAN_{NAME}.md`, treat it as a plan name to execute.
|
|
46
|
+
- **Feature description**: Otherwise, treat remaining arguments as a feature description for brainstorming.
|
|
47
|
+
|
|
48
|
+
Store the `--full` preference — you'll check it at every decision point (Step 6 commit, and any future gates).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### Step 1: Determine What to Work On
|
|
53
|
+
|
|
54
|
+
Follow this decision tree **in order**:
|
|
55
|
+
|
|
56
|
+
#### 1a. Check for Active Plan in STATE.md
|
|
57
|
+
|
|
58
|
+
Read `{{STATE_FILE}}`. If it contains an active plan (status is `In Progress` or `Paused`):
|
|
59
|
+
- Load the plan file referenced in STATE.md
|
|
60
|
+
- Check which phase we're on and what tasks remain
|
|
61
|
+
- **If there are uncompleted tasks** → skip to **Step 3** (branch) then **Step 4** (execute)
|
|
62
|
+
- Report: "Resuming active plan: {NAME}, Phase {N}"
|
|
63
|
+
|
|
64
|
+
#### 1b. Check if Arguments Match an Existing Plan
|
|
65
|
+
|
|
66
|
+
If a plan name was provided and `{{PLANS_DIR}}/PLAN_{NAME}.md` exists:
|
|
67
|
+
- Load that plan
|
|
68
|
+
- Update `{{STATE_FILE}}` to set it as active
|
|
69
|
+
- Skip to **Step 3** (branch) then **Step 4** (execute)
|
|
70
|
+
|
|
71
|
+
#### 1c. No Active Work — Enter Brainstorm
|
|
72
|
+
|
|
73
|
+
If there's nothing to resume:
|
|
74
|
+
|
|
75
|
+
**If arguments contain a feature description:**
|
|
76
|
+
Enter brainstorm mode. You are exploring the idea, NOT implementing. Your goals:
|
|
77
|
+
1. Understand the user's intent
|
|
78
|
+
2. Ask 2-4 focused followup questions to clarify scope, approach, and constraints
|
|
79
|
+
3. Explore the codebase for relevant context (use Read, Grep, Glob)
|
|
80
|
+
4. Converge on a clear approach
|
|
81
|
+
|
|
82
|
+
**If no arguments at all:**
|
|
83
|
+
Ask the user: "What would you like to build? Describe the feature or change you have in mind."
|
|
84
|
+
Then proceed with brainstorm as above once they respond.
|
|
85
|
+
|
|
86
|
+
**Brainstorm rules:**
|
|
87
|
+
- DO NOT create, modify, or implement any code
|
|
88
|
+
- DO ask clarifying questions (scope, approach, edge cases)
|
|
89
|
+
- DO explore existing code for context
|
|
90
|
+
- Keep it to 2-3 rounds of questions max, then converge
|
|
91
|
+
- Once the approach is clear, move to Step 2
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### Step 2: Create the Plan
|
|
96
|
+
|
|
97
|
+
After brainstorming, determine which planning mode to use:
|
|
98
|
+
|
|
99
|
+
#### Detect Project Type
|
|
100
|
+
|
|
101
|
+
Check if this is a **new project** (needs bootstrapping) or an **existing project** (needs a plan):
|
|
102
|
+
|
|
103
|
+
**New project indicators** (if most are true):
|
|
104
|
+
- No `src/` or `app/` or `lib/` directory
|
|
105
|
+
- No or nearly empty `package.json` / `Cargo.toml` / `go.mod` etc.
|
|
106
|
+
- Very few source files (< 5)
|
|
107
|
+
- The user explicitly said "new project" or "start from scratch"
|
|
108
|
+
|
|
109
|
+
**If new project:**
|
|
110
|
+
Use the Task tool to launch the bootstrap agent (`subagent_type="bootstrap"`) with the feature name and brainstorm context. This will generate both a plan and a bootstrap.sh script.
|
|
111
|
+
|
|
112
|
+
After the bootstrap agent completes, ask the user: "Bootstrap script is ready. Should I run it to set up the project?"
|
|
113
|
+
- If yes → run `bash bootstrap.sh`
|
|
114
|
+
- If no → note it and continue
|
|
115
|
+
|
|
116
|
+
**If existing project:**
|
|
117
|
+
Use the Task tool to launch the plan agent (`subagent_type="plan"`) with the feature name and brainstorm context. This will generate `{{PLANS_DIR}}/PLAN_{NAME}.md` and update `{{STATE_FILE}}`.
|
|
118
|
+
|
|
119
|
+
Wait for the plan agent to complete, then load and display a brief summary of the plan.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### Step 3: Create Feature Branch
|
|
124
|
+
|
|
125
|
+
Before starting implementation, create a feature branch:
|
|
126
|
+
|
|
127
|
+
1. Determine the branch name from the plan name:
|
|
128
|
+
- Convert plan name to lowercase kebab-case
|
|
129
|
+
- Prefix with `feat/` (e.g., plan "USER_AUTH" → branch `feat/user-auth`)
|
|
130
|
+
2. Check if the branch already exists:
|
|
131
|
+
- If yes and we're resuming → switch to it: `git checkout feat/{name}`
|
|
132
|
+
- If yes and NOT resuming → switch to it (it may have prior work)
|
|
133
|
+
- If no → create it: `git checkout -b feat/{name}`
|
|
134
|
+
3. Confirm the branch: `git branch --show-current`
|
|
135
|
+
|
|
136
|
+
Report: "Working on branch: `feat/{name}`"
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### Step 4: Execute the Plan
|
|
141
|
+
|
|
142
|
+
Load the plan from `{{PLANS_DIR}}/PLAN_{NAME}.md` and assess its size:
|
|
143
|
+
|
|
144
|
+
#### Count Tasks
|
|
145
|
+
|
|
146
|
+
Parse all `- [ ]` uncompleted tasks across all phases.
|
|
147
|
+
|
|
148
|
+
#### Choose Execution Mode
|
|
149
|
+
|
|
150
|
+
| Uncompleted Tasks | Mode | Rationale |
|
|
151
|
+
|---|---|---|
|
|
152
|
+
| 1-5 tasks | `/implement` | Small enough for a single agent |
|
|
153
|
+
| 6+ tasks | `/parallelize` | Benefits from concurrent execution |
|
|
154
|
+
|
|
155
|
+
**For `/implement` mode:**
|
|
156
|
+
Use the Task tool to launch the implement agent (`subagent_type="implement"`) with the plan name. Let it work autonomously.
|
|
157
|
+
|
|
158
|
+
**For `/parallelize` mode:**
|
|
159
|
+
Use the Task tool to launch the parallelize orchestrator (`subagent_type="parallelize"`) with the plan name. Let it analyze dependencies and spawn worker agents.
|
|
160
|
+
|
|
161
|
+
Wait for the execution agent(s) to complete. Review their summary report.
|
|
162
|
+
|
|
163
|
+
**If the agent reports blockers:**
|
|
164
|
+
Present the blockers to the user and ask how to proceed. Do NOT continue to Step 5 until blockers are resolved or the user says to skip them.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### Step 5: Validate
|
|
169
|
+
|
|
170
|
+
After implementation completes, run validation in sequence. Each step uses a subagent:
|
|
171
|
+
|
|
172
|
+
#### 5a. Audit
|
|
173
|
+
|
|
174
|
+
Use the Task tool to launch the audit agent (`subagent_type="audit"`).
|
|
175
|
+
|
|
176
|
+
Review the audit report. If it finds **critical or important issues**:
|
|
177
|
+
- Attempt auto-fix (the audit agent can do this)
|
|
178
|
+
- Re-run typecheck/lint after fixes
|
|
179
|
+
- If issues persist after 2 fix attempts → report to user and ask whether to proceed
|
|
180
|
+
|
|
181
|
+
#### 5b. Test
|
|
182
|
+
|
|
183
|
+
Use the Task tool to launch the test agent (`subagent_type="test"`).
|
|
184
|
+
|
|
185
|
+
Review test results:
|
|
186
|
+
- If all tests pass → continue
|
|
187
|
+
- If tests fail → attempt to fix (max 2 attempts)
|
|
188
|
+
- If tests still fail → report to user with failure details and ask whether to proceed
|
|
189
|
+
|
|
190
|
+
#### 5c. Security
|
|
191
|
+
|
|
192
|
+
Use the Task tool to launch the secure agent (`subagent_type="secure"`).
|
|
193
|
+
|
|
194
|
+
Review security report:
|
|
195
|
+
- If no critical/high findings → continue
|
|
196
|
+
- If critical findings → attempt to fix and re-scan (max 2 attempts)
|
|
197
|
+
- If still failing → report to user and ask whether to proceed
|
|
198
|
+
|
|
199
|
+
**If ALL validation passes cleanly**, report:
|
|
200
|
+
```markdown
|
|
201
|
+
**Validation Complete**
|
|
202
|
+
- Audit: Passed
|
|
203
|
+
- Tests: Passed
|
|
204
|
+
- Security: Passed
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
### Step 6: Commit
|
|
210
|
+
|
|
211
|
+
Check the auto-commit preference from Step 0.
|
|
212
|
+
|
|
213
|
+
#### If `--full` was set:
|
|
214
|
+
|
|
215
|
+
Use the Task tool to launch the commit agent (`subagent_type="commit"`) with context about what was implemented (plan name, phases completed, key changes).
|
|
216
|
+
|
|
217
|
+
#### If `--full` was NOT set (default):
|
|
218
|
+
|
|
219
|
+
Show the user a summary of everything that was done:
|
|
220
|
+
|
|
221
|
+
```markdown
|
|
222
|
+
**Ready to Commit**
|
|
223
|
+
|
|
224
|
+
**Branch**: `feat/{name}`
|
|
225
|
+
**Plan**: {NAME}
|
|
226
|
+
**Phases Completed**: {X}/{Y}
|
|
227
|
+
**Files Changed**: {count}
|
|
228
|
+
|
|
229
|
+
**Summary**:
|
|
230
|
+
- [Key change 1]
|
|
231
|
+
- [Key change 2]
|
|
232
|
+
- [Key change 3]
|
|
233
|
+
|
|
234
|
+
**Validation**:
|
|
235
|
+
- Audit: {status}
|
|
236
|
+
- Tests: {status}
|
|
237
|
+
- Security: {status}
|
|
238
|
+
|
|
239
|
+
Commit these changes? (yes / no / review first)
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
- If **yes** → launch commit agent
|
|
243
|
+
- If **review first** → show `git diff --stat` and wait for confirmation
|
|
244
|
+
- If **no** → stop here, changes are uncommitted on the feature branch
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
### Step 7: Report
|
|
249
|
+
|
|
250
|
+
After everything is done (or stopped), provide a final summary:
|
|
251
|
+
|
|
252
|
+
```markdown
|
|
253
|
+
**Auto Mode Complete**
|
|
254
|
+
|
|
255
|
+
**Branch**: `feat/{name}`
|
|
256
|
+
**Plan**: {NAME}
|
|
257
|
+
**Status**: {Committed / Uncommitted / Partially Complete}
|
|
258
|
+
|
|
259
|
+
**What Was Done**:
|
|
260
|
+
- [Phase 1 summary]
|
|
261
|
+
- [Phase 2 summary]
|
|
262
|
+
|
|
263
|
+
**Validation Results**:
|
|
264
|
+
- Audit: {result}
|
|
265
|
+
- Tests: {result}
|
|
266
|
+
- Security: {result}
|
|
267
|
+
|
|
268
|
+
**Next Steps**:
|
|
269
|
+
- Review changes: `git diff main..feat/{name}`
|
|
270
|
+
- Create PR when ready: `gh pr create`
|
|
271
|
+
- Or continue working: `/auto` (will resume from STATE.md)
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Critical Guidelines
|
|
277
|
+
|
|
278
|
+
### Be Autonomous But Not Reckless
|
|
279
|
+
- Execute the full loop without unnecessary user prompts
|
|
280
|
+
- BUT always stop for: blockers, validation failures that can't be auto-fixed, commit confirmation (unless --full)
|
|
281
|
+
- Never force-push, delete branches, or make destructive changes without asking
|
|
282
|
+
|
|
283
|
+
### Compose Existing Agents
|
|
284
|
+
- Use the existing subagent types: `bootstrap`, `plan`, `implement`, `parallelize`, `audit`, `test`, `secure`, `commit`
|
|
285
|
+
- Do NOT try to do their jobs inline — delegate to specialists
|
|
286
|
+
|
|
287
|
+
### Handle Failures Gracefully
|
|
288
|
+
- Max 2 auto-fix retry attempts per validation step
|
|
289
|
+
- After 2 failures, stop and ask the user
|
|
290
|
+
- Never silently skip failing validation
|
|
291
|
+
|
|
292
|
+
### Track State
|
|
293
|
+
- STATE.md should always reflect current progress
|
|
294
|
+
- Plan document checkboxes should be updated by the implement/parallelize agents
|
|
295
|
+
- If interrupted, `/auto` can resume from where it left off
|
|
296
|
+
|
|
297
|
+
### Keep the User Informed
|
|
298
|
+
- Brief status updates between major steps
|
|
299
|
+
- Detailed reports only at the end or when asking for decisions
|
|
300
|
+
- Don't flood with intermediate output — the subagents handle that internally
|
|
@@ -24,4 +24,10 @@ You are now in "challenge mode." Before implementing any task or answering quest
|
|
|
24
24
|
## Example Response Pattern
|
|
25
25
|
"Before I implement this, I want to make sure we're solving the right problem. [Question about the real need]. Also, have you considered [alternative approach] which might be more [benefit]? The approach you've outlined will work, but it does mean [trade-off]. Should I proceed with your original plan or would you like to explore the alternative?"
|
|
26
26
|
|
|
27
|
+
## Scope
|
|
28
|
+
|
|
29
|
+
This mode applies to the current task or topic. Once the challenge is addressed, normal conversation resumes.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
27
33
|
$ARGUMENTS
|
|
@@ -14,7 +14,7 @@ I'll analyze your git history and generate a well-structured changelog.
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Latest Tags**:
|
|
20
20
|
!`git tag --sort=-version:refname 2>/dev/null | head -5 || echo "No tags found"`
|
|
@@ -14,7 +14,7 @@ I'll scan your codebase for dead code, unused imports, and technical debt.
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Files to Analyze**:
|
|
20
20
|
!`find . -maxdepth 5 -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" 2>/dev/null | grep -v node_modules | wc -l` source files
|
|
@@ -14,7 +14,7 @@ I'll analyze your changes and create a clean, well-structured git commit.
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
|
@@ -32,4 +32,10 @@ You are now in "CRITIQUE" mode. Provide direct, unfiltered feedback without suga
|
|
|
32
32
|
- Unrealistic expectations or timelines
|
|
33
33
|
- Missing critical considerations
|
|
34
34
|
|
|
35
|
+
## Scope
|
|
36
|
+
|
|
37
|
+
This mode applies to the current task or topic. Once the critique is delivered, normal conversation resumes.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
35
41
|
$ARGUMENTS
|
|
@@ -12,7 +12,7 @@ I'll systematically investigate and diagnose the issue you're experiencing.
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Recent Changes** (potential cause):
|
|
18
18
|
!`git log --oneline -5`
|
package/content/commands/dry.md
CHANGED
|
@@ -14,7 +14,7 @@ I'll find and eliminate DRY violations across your codebase while guaranteeing i
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
|
@@ -12,7 +12,7 @@ I'll finalize your work session by updating plans, creating a comprehensive git
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Status**:
|
|
18
18
|
!`git status --short`
|
|
@@ -19,7 +19,7 @@ $ARGUMENTS
|
|
|
19
19
|
**Plans in {{PLANS_DIR}}/**:
|
|
20
20
|
!`ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null || echo "No plans found"`
|
|
21
21
|
|
|
22
|
-
**Current Branch**: !`git branch --show-current`
|
|
22
|
+
**Current Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
23
23
|
|
|
24
24
|
**Working Directory**: !`pwd`
|
|
25
25
|
|
|
@@ -22,7 +22,7 @@ $ARGUMENTS
|
|
|
22
22
|
**Plans in {{PLANS_DIR}}/**:
|
|
23
23
|
!`ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null || echo "No plans found"`
|
|
24
24
|
|
|
25
|
-
**Current Branch**: !`git branch --show-current`
|
|
25
|
+
**Current Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
26
26
|
|
|
27
27
|
**Working Directory**: !`pwd`
|
|
28
28
|
|
|
@@ -14,7 +14,7 @@ I'll help you upgrade dependencies or migrate between framework versions safely.
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
|
@@ -12,7 +12,7 @@ I'll analyze your plan or task, identify parallelization opportunities, and spaw
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Available Plans**:
|
|
18
18
|
!`ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null || echo "No plans found"`
|
|
@@ -14,7 +14,7 @@ I'll help you safely restructure code — renaming, extracting, inlining, or mov
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
|
@@ -14,7 +14,7 @@ I'll perform a focused security audit of your codebase, checking for vulnerabili
|
|
|
14
14
|
|
|
15
15
|
**Working Directory**: !`pwd`
|
|
16
16
|
|
|
17
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
18
|
|
|
19
19
|
**Status**:
|
|
20
20
|
!`git status --short`
|
package/content/commands/test.md
CHANGED
|
@@ -12,7 +12,7 @@ I'll help you run tests, analyze failures, and generate missing test coverage.
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Test Configuration**:
|
|
18
18
|
!`ls -la vitest.config.* jest.config.* playwright.config.* 2>/dev/null || echo "No test config found"`
|
|
@@ -14,4 +14,10 @@ Before proceeding with this task, perform a quick verification check:
|
|
|
14
14
|
|
|
15
15
|
Keep it brief - just enough to make sure we're on the right track.
|
|
16
16
|
|
|
17
|
+
## Scope
|
|
18
|
+
|
|
19
|
+
This mode applies to the current task or topic. Once verification is done, normal conversation resumes.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
17
23
|
$ARGUMENTS
|
package/dist/installer.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export interface InstallResult {
|
|
|
16
16
|
export type AgentPowerLevel = 1 | 2 | 3 | 4 | 5;
|
|
17
17
|
export declare const POWER_LEVEL_LABELS: Record<AgentPowerLevel, string>;
|
|
18
18
|
export declare const RESEARCH_AGENTS: string[];
|
|
19
|
+
export declare const LIGHTWEIGHT_AGENTS: string[];
|
|
20
|
+
export declare const HEAVYWEIGHT_AGENTS: string[];
|
|
21
|
+
export type AgentTier = 'lightweight' | 'research' | 'standard' | 'heavyweight';
|
|
19
22
|
export declare const DEFAULT_TASKS_DIR = "tasks";
|
|
20
23
|
export declare function buildTemplateVars(tasksDir?: string): Record<string, string>;
|
|
21
24
|
export declare const TEMPLATE_VARS: Record<string, string>;
|
|
@@ -47,7 +50,17 @@ export declare function ensureDir(dirPath: string): void;
|
|
|
47
50
|
*/
|
|
48
51
|
export declare function copyDirectory(srcDir: string, destDir: string, tasksDir?: string): number;
|
|
49
52
|
/**
|
|
50
|
-
*
|
|
53
|
+
* Determine the tier for an agent based on its filename
|
|
54
|
+
*/
|
|
55
|
+
export declare function getAgentTier(filename: string): AgentTier;
|
|
56
|
+
/**
|
|
57
|
+
* Get the model to use for a given agent file based on power level and tier
|
|
58
|
+
*
|
|
59
|
+
* Tiers:
|
|
60
|
+
* - lightweight: commit, changelog, handoff, cleanup, imagine (rote tasks)
|
|
61
|
+
* - research: codebase/docs/web research (search + synthesize)
|
|
62
|
+
* - standard: refactor, test, plan, implement, etc. (balanced)
|
|
63
|
+
* - heavyweight: audit, debug, secure (deep reasoning, high stakes)
|
|
51
64
|
*/
|
|
52
65
|
export declare function getModelForAgent(filename: string, powerLevel: AgentPowerLevel): 'haiku' | 'sonnet' | 'opus';
|
|
53
66
|
/**
|
package/dist/installer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["../src/installer.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,E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CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CA2BhI;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAS1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAyBvE;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,GAAE,eAAmB,EAAE,QAAQ,GAAE,MAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAuCzJ;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,CASlF"}
|
package/dist/installer.js
CHANGED
|
@@ -16,6 +16,18 @@ export const RESEARCH_AGENTS = [
|
|
|
16
16
|
'research-docs.md',
|
|
17
17
|
'research-web.md',
|
|
18
18
|
];
|
|
19
|
+
export const LIGHTWEIGHT_AGENTS = [
|
|
20
|
+
'commit.md',
|
|
21
|
+
'changelog.md',
|
|
22
|
+
'handoff.md',
|
|
23
|
+
'cleanup.md',
|
|
24
|
+
'imagine.md',
|
|
25
|
+
];
|
|
26
|
+
export const HEAVYWEIGHT_AGENTS = [
|
|
27
|
+
'audit.md',
|
|
28
|
+
'debug.md',
|
|
29
|
+
'secure.md',
|
|
30
|
+
];
|
|
19
31
|
export const DEFAULT_TASKS_DIR = 'tasks';
|
|
20
32
|
export function buildTemplateVars(tasksDir = DEFAULT_TASKS_DIR) {
|
|
21
33
|
return {
|
|
@@ -122,18 +134,36 @@ export function copyDirectory(srcDir, destDir, tasksDir) {
|
|
|
122
134
|
return copiedCount;
|
|
123
135
|
}
|
|
124
136
|
/**
|
|
125
|
-
*
|
|
137
|
+
* Determine the tier for an agent based on its filename
|
|
138
|
+
*/
|
|
139
|
+
export function getAgentTier(filename) {
|
|
140
|
+
if (LIGHTWEIGHT_AGENTS.includes(filename))
|
|
141
|
+
return 'lightweight';
|
|
142
|
+
if (RESEARCH_AGENTS.includes(filename))
|
|
143
|
+
return 'research';
|
|
144
|
+
if (HEAVYWEIGHT_AGENTS.includes(filename))
|
|
145
|
+
return 'heavyweight';
|
|
146
|
+
return 'standard';
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get the model to use for a given agent file based on power level and tier
|
|
150
|
+
*
|
|
151
|
+
* Tiers:
|
|
152
|
+
* - lightweight: commit, changelog, handoff, cleanup, imagine (rote tasks)
|
|
153
|
+
* - research: codebase/docs/web research (search + synthesize)
|
|
154
|
+
* - standard: refactor, test, plan, implement, etc. (balanced)
|
|
155
|
+
* - heavyweight: audit, debug, secure (deep reasoning, high stakes)
|
|
126
156
|
*/
|
|
127
157
|
export function getModelForAgent(filename, powerLevel) {
|
|
128
|
-
const
|
|
158
|
+
const tier = getAgentTier(filename);
|
|
129
159
|
const modelMap = {
|
|
130
|
-
1: { research: 'haiku',
|
|
131
|
-
2: { research: 'haiku',
|
|
132
|
-
3: { research: 'sonnet',
|
|
133
|
-
4: { research: 'sonnet',
|
|
134
|
-
5: { research: 'opus',
|
|
160
|
+
1: { lightweight: 'haiku', research: 'haiku', standard: 'haiku', heavyweight: 'sonnet' },
|
|
161
|
+
2: { lightweight: 'haiku', research: 'haiku', standard: 'sonnet', heavyweight: 'sonnet' },
|
|
162
|
+
3: { lightweight: 'haiku', research: 'sonnet', standard: 'sonnet', heavyweight: 'sonnet' },
|
|
163
|
+
4: { lightweight: 'sonnet', research: 'sonnet', standard: 'sonnet', heavyweight: 'opus' },
|
|
164
|
+
5: { lightweight: 'opus', research: 'opus', standard: 'opus', heavyweight: 'opus' },
|
|
135
165
|
};
|
|
136
|
-
return
|
|
166
|
+
return modelMap[powerLevel][tier];
|
|
137
167
|
}
|
|
138
168
|
/**
|
|
139
169
|
* Copy agent files with model rewritten based on power level
|
package/dist/installer.js.map
CHANGED
|
@@ -1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