@allthingsclaude/blueprints 0.3.0-beta.9 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/agents/a11y.md +402 -0
- package/content/agents/audit.md +15 -2
- package/content/agents/bootstrap.md +10 -8
- package/content/agents/diagram.md +365 -0
- package/content/agents/finalize.md +6 -16
- package/content/agents/i18n.md +388 -0
- package/content/agents/implement.md +49 -5
- package/content/agents/onboard.md +479 -0
- package/content/agents/parallelize.md +66 -10
- package/content/agents/plan.md +100 -19
- package/content/agents/release.md +502 -0
- 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/showcase.md +333 -0
- package/content/agents/storyboard.md +14 -0
- package/content/agents/update.md +347 -0
- package/content/commands/a11y.md +49 -0
- package/content/commands/{auto.md → autopilot.md} +81 -39
- package/content/commands/bootstrap.md +1 -1
- package/content/commands/brainstorm.md +35 -7
- package/content/commands/commit.md +2 -0
- package/content/commands/diagram.md +51 -0
- package/content/commands/history.md +72 -0
- package/content/commands/i18n.md +53 -0
- package/content/commands/implement.md +3 -1
- package/content/commands/kickoff.md +16 -6
- package/content/commands/merge.md +78 -0
- package/content/commands/onboard.md +54 -0
- package/content/commands/plan.md +2 -1
- package/content/commands/release.md +63 -0
- package/content/commands/research.md +7 -7
- package/content/commands/showcase.md +56 -0
- package/content/commands/standup.md +71 -0
- package/content/commands/todo.md +64 -0
- package/content/commands/update.md +43 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/installer.js +1 -1
- package/dist/installer.js.map +1 -1
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ Before brainstorming, quickly assess the current project:
|
|
|
26
26
|
**Is this an empty/new project?** If there are fewer than 5 source files and no meaningful project configuration, this is likely a **new project**. In that case:
|
|
27
27
|
- Mention to the user that this looks like a new project and brainstorming is a great starting point
|
|
28
28
|
- The brainstorm should focus heavily on **tech stack decisions** (see Step 1 below)
|
|
29
|
-
- When brainstorming is complete, suggest `/
|
|
29
|
+
- When brainstorming is complete, suggest `/autopilot` which will handle planning, bootstrapping, and implementation end-to-end
|
|
30
30
|
|
|
31
31
|
## Brainstorming Framework
|
|
32
32
|
|
|
@@ -80,18 +80,46 @@ Start by understanding what the user wants to build, then **always ask about the
|
|
|
80
80
|
- What research or investigation is needed?
|
|
81
81
|
- What would the implementation phases look like?
|
|
82
82
|
|
|
83
|
+
## Critical Thinking (Always Active)
|
|
84
|
+
|
|
85
|
+
Throughout brainstorming, actively use the `/critique`, `/verify`, and `/challenge` commands to stress-test ideas **as they emerge**. Don't wait until the end — run these after each step.
|
|
86
|
+
|
|
87
|
+
### When to invoke each command
|
|
88
|
+
|
|
89
|
+
- **`/critique`** — After exploring approaches (Steps 2-3). Run this against the ideas on the table to get direct, unfiltered feedback on what's wrong or suboptimal.
|
|
90
|
+
- **`/verify`** — After converging on a direction (Steps 3-4). Run this to sanity-check that we're solving the right problem the right way, and to catch gotchas.
|
|
91
|
+
- **`/challenge`** — After the user proposes or agrees to an approach (any step). Run this to question assumptions, surface trade-offs, and suggest alternatives.
|
|
92
|
+
|
|
93
|
+
### How to apply
|
|
94
|
+
|
|
95
|
+
- Invoke these commands naturally throughout the conversation — not as a rigid sequence
|
|
96
|
+
- You can run them multiple times as ideas evolve
|
|
97
|
+
- The goal is **unfiltered, honest exploration** — not polite agreement with whatever the user suggests
|
|
98
|
+
- If an idea survives all three, it's probably solid
|
|
99
|
+
|
|
83
100
|
## Discussion Guidelines
|
|
84
101
|
|
|
85
|
-
- **
|
|
86
|
-
- **
|
|
87
|
-
- **
|
|
102
|
+
- **Be direct** — if an idea is bad, say so and explain why
|
|
103
|
+
- **Ask hard questions** to probe deeper and expose weak spots
|
|
104
|
+
- **Suggest alternatives** even if they contradict the user's initial direction
|
|
88
105
|
- **Think out loud** about trade-offs and implications
|
|
89
106
|
- **Reference existing code** when relevant for context
|
|
90
107
|
- **Draw connections** to similar patterns in the codebase
|
|
91
108
|
- **Be thorough** - we're not rushing to implementation
|
|
109
|
+
- **Don't hedge** — if you're confident something won't work, say it plainly
|
|
110
|
+
|
|
111
|
+
## Collecting Image References
|
|
112
|
+
|
|
113
|
+
If the user shares images during brainstorming (screenshots, mockups, design references, wireframes, inspiration), **track their file paths**. These are critical for downstream plan creation.
|
|
114
|
+
|
|
115
|
+
When brainstorming is complete and you suggest `/plan` or `/autopilot`:
|
|
116
|
+
- Mention the collected image paths in your handoff so the plan agent copies them to `{{TASKS_DIR}}/references/`
|
|
117
|
+
- If images were shared via the conversation (e.g., user provided a file path or pasted a screenshot), note them explicitly in the brainstorm summary
|
|
118
|
+
|
|
119
|
+
This ensures future agents (implement, showcase, parallelize) have the visual context they need to design correctly.
|
|
92
120
|
|
|
93
121
|
## Tools You CAN Use
|
|
94
|
-
- ✅ Read files for context and understanding
|
|
122
|
+
- ✅ Read files for context and understanding (including reading images)
|
|
95
123
|
- ✅ Grep/Glob to explore existing patterns
|
|
96
124
|
- ✅ Bash (read-only: ls, cat, find, git log, etc.)
|
|
97
125
|
- ✅ Research agents for investigation
|
|
@@ -112,14 +140,14 @@ Once we've thoroughly explored the problem space, settled on a tech stack, and c
|
|
|
112
140
|
| Command | What it does |
|
|
113
141
|
|---|---|
|
|
114
142
|
| `/bootstrap {NAME}` | Generate a plan + bootstrap script to scaffold the project. Good when you want to review the scaffolding before building. |
|
|
115
|
-
| `/
|
|
143
|
+
| `/autopilot {NAME}` | Full autonomous loop — planning, bootstrapping, implementation, and commit. Good when you want to go hands-off. |
|
|
116
144
|
|
|
117
145
|
**For existing projects:**
|
|
118
146
|
|
|
119
147
|
| Command | What it does |
|
|
120
148
|
|---|---|
|
|
121
149
|
| `/plan {NAME}` | Capture brainstorming findings into a structured implementation plan. Good when you want to review before implementing. |
|
|
122
|
-
| `/
|
|
150
|
+
| `/autopilot {NAME}` | Full autonomous loop — planning, implementation, validation, and commit. Good when you want to go hands-off. |
|
|
123
151
|
|
|
124
152
|
Always present the relevant options and let the user choose how they want to proceed.
|
|
125
153
|
|
|
@@ -40,6 +40,8 @@ The commit agent will:
|
|
|
40
40
|
- Stage the relevant files and create the commit
|
|
41
41
|
- Verify the commit was created successfully
|
|
42
42
|
|
|
43
|
+
**IMPORTANT: Do NOT add a `Co-Authored-By` line to the commit message.**
|
|
44
|
+
|
|
43
45
|
**This will create a git commit.** The agent will show you the proposed message before committing.
|
|
44
46
|
|
|
45
47
|
Use the Task tool to launch the commit agent (subagent_type="commit") with any additional context from arguments.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate Mermaid diagrams from your codebase
|
|
3
|
+
argument-hint: [architecture | dependency | sequence | er | dataflow | component name or feature]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Generate Diagrams
|
|
8
|
+
|
|
9
|
+
I'll analyze your codebase and generate Mermaid diagrams that visualize architecture, dependencies, data flow, and more.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You need visual documentation — architecture overviews, dependency graphs, sequence diagrams, ER diagrams, or data flow maps. Use `/explain` when you want a text walkthrough of how something works. Use `/docs architecture` for a full architecture document with diagrams embedded.
|
|
12
|
+
|
|
13
|
+
## Current Context
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Project**:
|
|
18
|
+
!`cat package.json 2>/dev/null | head -10 || cat Cargo.toml 2>/dev/null | head -10 || cat pyproject.toml 2>/dev/null | head -10 || cat go.mod 2>/dev/null | head -5`
|
|
19
|
+
|
|
20
|
+
**Structure**:
|
|
21
|
+
!`ls -la src/ 2>/dev/null | head -20 || ls -la lib/ 2>/dev/null | head -20 || ls -la app/ 2>/dev/null | head -20 || ls -la`
|
|
22
|
+
|
|
23
|
+
**Existing Docs**:
|
|
24
|
+
!`ls docs/ 2>/dev/null | head -10; ls *.md 2>/dev/null | head -5`
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Diagram Target
|
|
29
|
+
|
|
30
|
+
$ARGUMENTS
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Launching Diagram Agent
|
|
35
|
+
|
|
36
|
+
The diagram agent will:
|
|
37
|
+
1. **Analyze the codebase** — Trace imports, exports, routes, models, and data flow
|
|
38
|
+
2. **Choose the right diagram type(s)** based on what's requested and what's useful
|
|
39
|
+
3. **Generate Mermaid syntax** — Renderable on GitHub, VS Code, Notion, and most markdown tools
|
|
40
|
+
4. **Write to file** — Saves diagrams as `.md` files (or appends to existing docs)
|
|
41
|
+
|
|
42
|
+
**Diagram types**:
|
|
43
|
+
- `architecture` — High-level system overview (components, layers, boundaries)
|
|
44
|
+
- `dependency` — Module/package dependency graph (imports, who depends on whom)
|
|
45
|
+
- `sequence` — Request/event flow through the system (step-by-step interactions)
|
|
46
|
+
- `er` — Entity-relationship diagram (database models, types, relationships)
|
|
47
|
+
- `dataflow` — How data moves through the system (input → transform → output)
|
|
48
|
+
- `[feature or component]` — Auto-detect the best diagram type for the subject
|
|
49
|
+
- No arguments — Survey the project and generate the most useful overview diagram
|
|
50
|
+
|
|
51
|
+
Use the Task tool to launch the diagram agent (subagent_type="diagram") with the target and any additional context.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Tell the narrative story of a file or function through its git history
|
|
3
|
+
argument-hint: <file path> [optional: :function or symbol name]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# File History
|
|
8
|
+
|
|
9
|
+
Investigating the history of: **$ARGUMENTS**
|
|
10
|
+
|
|
11
|
+
> **When to use**: You want to understand how a file evolved over time — who created it, what major changes shaped it, and whether it's a hot spot or stable code.
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**File Exists**: !`test -f "$ARGUMENTS" && echo "Yes" || echo "File not found — check the path"`
|
|
18
|
+
|
|
19
|
+
**File Size**: !`wc -l < "$ARGUMENTS" 2>/dev/null || echo "N/A"`
|
|
20
|
+
|
|
21
|
+
## Git History
|
|
22
|
+
|
|
23
|
+
**Full Log (following renames)**:
|
|
24
|
+
!`git log --follow --format="%h|%an|%ar|%s" -- "$ARGUMENTS" 2>/dev/null || echo "No git history available"`
|
|
25
|
+
|
|
26
|
+
**File Creation**:
|
|
27
|
+
!`git log --follow --diff-filter=A --format="%h %an (%ar): %s" -- "$ARGUMENTS" 2>/dev/null || echo "Unable to determine creation"`
|
|
28
|
+
|
|
29
|
+
**Contributors**:
|
|
30
|
+
!`git log --follow --format="%an" -- "$ARGUMENTS" 2>/dev/null | sort | uniq -c | sort -rn || echo "N/A"`
|
|
31
|
+
|
|
32
|
+
**Recent Activity (last 30 days)**:
|
|
33
|
+
!`git log --since="30 days ago" --follow --format="%h %s (%ar)" -- "$ARGUMENTS" 2>/dev/null || echo "No recent changes"`
|
|
34
|
+
|
|
35
|
+
**Change Frequency**:
|
|
36
|
+
!`echo "Total commits: $(git log --follow --oneline -- "$ARGUMENTS" 2>/dev/null | wc -l | tr -d ' ')"`
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Instructions
|
|
41
|
+
|
|
42
|
+
Using the git history data above, tell the story of this file as a narrative. Don't just list commits — interpret the history.
|
|
43
|
+
|
|
44
|
+
### 1. Origin
|
|
45
|
+
|
|
46
|
+
When was the file created, by whom, and why? Use the creation commit message and context to explain what purpose it originally served.
|
|
47
|
+
|
|
48
|
+
### 2. Evolution
|
|
49
|
+
|
|
50
|
+
Group commits into phases or themes. For example:
|
|
51
|
+
- "Initial implementation" (first few commits)
|
|
52
|
+
- "Feature expansion" (when significant functionality was added)
|
|
53
|
+
- "Refactoring" (structural changes without new features)
|
|
54
|
+
- "Bug fixes" (corrections and patches)
|
|
55
|
+
|
|
56
|
+
Summarize each phase in 1-2 sentences rather than listing individual commits.
|
|
57
|
+
|
|
58
|
+
### 3. Key Contributors
|
|
59
|
+
|
|
60
|
+
Who has shaped this file the most? Mention the top 2-3 contributors and what kind of work each contributed.
|
|
61
|
+
|
|
62
|
+
### 4. Current State
|
|
63
|
+
|
|
64
|
+
- **Activity level** — Is this file actively changing or has it stabilized?
|
|
65
|
+
- **Hot spot or stable?** — High commit frequency = hot spot (may need attention). Low frequency = stable (likely reliable).
|
|
66
|
+
- **Size context** — Is the file large enough to consider splitting?
|
|
67
|
+
|
|
68
|
+
### 5. Function Focus (if specified)
|
|
69
|
+
|
|
70
|
+
If `$ARGUMENTS` includes a `:function` or symbol name after the file path, narrow the story to just that symbol. Use `git log -p` mentally to focus on commits that touched that specific function.
|
|
71
|
+
|
|
72
|
+
**This is read-only. Do not modify any files.**
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Audit and set up internationalization for your project
|
|
3
|
+
argument-hint: [optional: audit | setup | extract | add-locale <locale> | file path or component]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Internationalization
|
|
8
|
+
|
|
9
|
+
I'll audit your project's internationalization readiness, extract hardcoded strings, and set up or improve your i18n infrastructure.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You want to make your project multilingual — extracting hardcoded strings, setting up i18n libraries, adding new locales, or auditing existing translations for completeness. Use `/a11y` for accessibility issues, or `/docs` for general documentation.
|
|
12
|
+
|
|
13
|
+
## Current Context
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Project**:
|
|
18
|
+
!`cat package.json 2>/dev/null | head -15`
|
|
19
|
+
|
|
20
|
+
**Existing i18n Setup**:
|
|
21
|
+
!`cat package.json 2>/dev/null | grep -i "i18n\|intl\|locale\|next-intl\|react-intl\|react-i18next\|i18next\|vue-i18n\|@formatjs\|lingui\|messageformat\|rosetta\|typesafe-i18n\|paraglide" || echo "No i18n dependencies detected"`
|
|
22
|
+
!`ls -d **/locales/ **/translations/ **/i18n/ **/lang/ **/messages/ src/i18n* src/locales* public/locales* 2>/dev/null || echo "No i18n directories found"`
|
|
23
|
+
!`ls i18n.config* i18next.config* next-i18next.config* lingui.config* 2>/dev/null || echo "No i18n config files found"`
|
|
24
|
+
|
|
25
|
+
**Frontend Files**:
|
|
26
|
+
!`find src/ app/ pages/ components/ -name "*.tsx" -o -name "*.jsx" -o -name "*.vue" -o -name "*.svelte" 2>/dev/null | wc -l`
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## i18n Scope
|
|
31
|
+
|
|
32
|
+
$ARGUMENTS
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Launching i18n Agent
|
|
37
|
+
|
|
38
|
+
The i18n agent will:
|
|
39
|
+
1. **Detect existing i18n setup** — libraries, configs, locale files, translation patterns
|
|
40
|
+
2. **Audit** — Find hardcoded strings, missing translations, inconsistent patterns
|
|
41
|
+
3. **Report findings** with file:line references and proposed fixes
|
|
42
|
+
4. **After confirmation** — Extract strings, create translation keys, set up infrastructure
|
|
43
|
+
5. **Validate** after every change
|
|
44
|
+
|
|
45
|
+
**Workflows**:
|
|
46
|
+
- No argument → Full audit of i18n readiness + recommendations
|
|
47
|
+
- `audit` → Scan for hardcoded strings and missing translations
|
|
48
|
+
- `setup` → Set up i18n from scratch (detect framework, install library, create config)
|
|
49
|
+
- `extract` → Extract hardcoded strings and replace with translation keys
|
|
50
|
+
- `add-locale <locale>` → Add a new locale with translation stubs
|
|
51
|
+
- `[file or component]` → Focused audit and extraction on specific files
|
|
52
|
+
|
|
53
|
+
Use the Task tool to launch the i18n agent (subagent_type="i18n") with the scope and any additional context.
|
|
@@ -31,7 +31,8 @@ Launching the **implement agent** which will work independently in a separate co
|
|
|
31
31
|
|
|
32
32
|
### What the Agent Will Do
|
|
33
33
|
|
|
34
|
-
- ✅ Load `{{PLANS_DIR}}/PLAN_{NAME}.md`
|
|
34
|
+
- ✅ Load `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`
|
|
35
|
+
- ✅ Check `{{TASKS_DIR}}/references/` for design references (images, mockups, wireframes)
|
|
35
36
|
- ✅ Parse all phases, tasks, and dependencies
|
|
36
37
|
- ✅ Create comprehensive task tracking (TodoWrite)
|
|
37
38
|
- ✅ Execute tasks systematically with validation
|
|
@@ -40,6 +41,7 @@ Launching the **implement agent** which will work independently in a separate co
|
|
|
40
41
|
- ✅ Validate each phase before proceeding
|
|
41
42
|
- ✅ Handle blockers (will pause and report)
|
|
42
43
|
- ✅ Adapt plan if better approaches discovered
|
|
44
|
+
- ✅ Run DRY checks after each phase to extract shared patterns
|
|
43
45
|
- ✅ Return comprehensive summary when complete
|
|
44
46
|
|
|
45
47
|
### What You'll See
|
|
@@ -36,11 +36,12 @@ I'll work through this plan collaboratively with you:
|
|
|
36
36
|
|
|
37
37
|
1. **Load & Review**: I'll load the plan and show you a summary
|
|
38
38
|
2. **Environment Check**: Verify git status and project state
|
|
39
|
-
3. **
|
|
40
|
-
4. **
|
|
41
|
-
5. **
|
|
42
|
-
6. **
|
|
43
|
-
7. **
|
|
39
|
+
3. **Convention Discovery**: Scan the codebase for established patterns (error handling, styling, state management, data fetching, test infrastructure) and share findings so we're aligned on which patterns to follow. Look at how existing code is structured — never add inline styles unless absolutely necessary, always use the project's established styling method
|
|
40
|
+
4. **Task Tracking**: Set up TodoWrite for all plan tasks
|
|
41
|
+
5. **Step-by-Step**: Execute tasks one at a time with your input
|
|
42
|
+
6. **Validation**: Run type checks and lints after each task
|
|
43
|
+
7. **Phase Approval**: Ask before moving between phases
|
|
44
|
+
8. **Adapt Together**: Discuss blockers and adjustments as we go
|
|
44
45
|
|
|
45
46
|
### Your Role
|
|
46
47
|
|
|
@@ -51,18 +52,27 @@ I'll work through this plan collaboratively with you:
|
|
|
51
52
|
|
|
52
53
|
**This is collaborative implementation in the main conversation.**
|
|
53
54
|
|
|
55
|
+
### Specialist Agents
|
|
56
|
+
|
|
57
|
+
For tasks involving landing page / marketing page / homepage design, I'll suggest using the **showcase agent** (`/showcase`) which specializes in high-end page design with animations and micro-interactions. You can approve or override this.
|
|
58
|
+
|
|
54
59
|
---
|
|
55
60
|
|
|
56
61
|
Now let me load the plan and we'll get started together.
|
|
57
62
|
|
|
58
|
-
Use
|
|
63
|
+
**Before implementing**, scan the codebase for established conventions (error handling approach, styling method, state management, data fetching patterns, test infrastructure). Share the findings with the user so you're aligned on which patterns to follow throughout implementation. Use Grep/Glob to sample patterns — look for things like toast/notification usage, CSS module vs SCSS vs inline patterns, custom hooks, test frameworks, etc. Present a brief summary of discovered conventions before starting tasks.
|
|
64
|
+
|
|
65
|
+
Use Read to load `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`, display a comprehensive summary with:
|
|
59
66
|
- Objective
|
|
60
67
|
- Phases and task counts
|
|
61
68
|
- Key files involved
|
|
62
69
|
- Any open questions or risks
|
|
70
|
+
- Reference files in `{{TASKS_DIR}}/references/` (if any exist — list them so the user knows what design context is available)
|
|
63
71
|
|
|
64
72
|
Then ask: "Ready to start implementing? Which phase should we tackle first?"
|
|
65
73
|
|
|
66
74
|
Use TodoWrite to create todos for all tasks from the plan once user confirms.
|
|
67
75
|
|
|
68
76
|
Then begin executing tasks step-by-step, staying in the main context, validating as you go.
|
|
77
|
+
|
|
78
|
+
After completing each phase, run `/dry` to check if any repeated patterns or duplicated code should be extracted into shared utilities, components, or constants. Fix any DRY violations before moving to the next phase.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Detect parent branch and merge the current branch into it
|
|
3
|
+
author: "@markoradak"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Merge into Parent Branch
|
|
7
|
+
|
|
8
|
+
I'll detect which branch the current branch was created from, then merge into it.
|
|
9
|
+
|
|
10
|
+
> **When to use**: You're done working on a feature branch and want to merge it back into the parent branch. This detects the parent automatically so you don't have to remember or type it.
|
|
11
|
+
|
|
12
|
+
## Current State
|
|
13
|
+
|
|
14
|
+
**Working Directory**: !`pwd`
|
|
15
|
+
|
|
16
|
+
**Current Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
17
|
+
|
|
18
|
+
**Status**:
|
|
19
|
+
!`git status --short`
|
|
20
|
+
|
|
21
|
+
**Uncommitted Changes**:
|
|
22
|
+
!`git diff --stat`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Steps
|
|
27
|
+
|
|
28
|
+
### 1. Preflight checks
|
|
29
|
+
|
|
30
|
+
- Verify we are in a git repository
|
|
31
|
+
- Verify we are NOT on `main` or `master` (refuse to merge main into itself)
|
|
32
|
+
- If there are uncommitted changes, warn the user and stop — they should commit or stash first
|
|
33
|
+
|
|
34
|
+
### 2. Detect the parent branch
|
|
35
|
+
|
|
36
|
+
Run:
|
|
37
|
+
```
|
|
38
|
+
git reflog show --format='%gs' <current-branch> | grep 'branch: Created from' | head -1
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This extracts the reflog entry recorded when the branch was created (e.g. `branch: Created from main`). Parse the branch name from the end of that line.
|
|
42
|
+
|
|
43
|
+
**Fallback** — if the reflog entry is missing (e.g. branch was fetched, not created locally):
|
|
44
|
+
- Compare merge-base distances to `main` and `master`:
|
|
45
|
+
```
|
|
46
|
+
git merge-base --is-ancestor main HEAD && echo main
|
|
47
|
+
git merge-base --is-ancestor master HEAD && echo master
|
|
48
|
+
```
|
|
49
|
+
- If neither works, ask the user to specify the parent branch manually.
|
|
50
|
+
|
|
51
|
+
### 3. Confirm with the user
|
|
52
|
+
|
|
53
|
+
Show:
|
|
54
|
+
- Current branch name
|
|
55
|
+
- Detected parent branch name
|
|
56
|
+
- Summary of commits that will be merged: `git log --oneline <parent>..<current>`
|
|
57
|
+
|
|
58
|
+
**Ask for explicit confirmation before proceeding.** Do NOT merge without user approval.
|
|
59
|
+
|
|
60
|
+
### 4. Check out parent and pull latest
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git checkout <parent>
|
|
64
|
+
git pull
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 5. Merge the current branch
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git merge <current-branch>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 6. Report result
|
|
74
|
+
|
|
75
|
+
- **Success**: Tell the user the merge completed. Show `git log --oneline -5` so they can see the result.
|
|
76
|
+
- **Conflict**: Tell the user there are merge conflicts. Show `git diff --name-only --diff-filter=U` to list conflicted files. Do NOT attempt to resolve conflicts automatically — let the user decide how to handle them.
|
|
77
|
+
|
|
78
|
+
**Do NOT push. Do NOT delete the feature branch.** Only merge locally. The user can push or clean up when ready.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate a developer onboarding guide for this project
|
|
3
|
+
argument-hint: [optional: focus area like "backend", "frontend", "api", or "contributing"]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Generate Onboarding Guide
|
|
8
|
+
|
|
9
|
+
I'll analyze your project and generate a comprehensive onboarding guide for new developers.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You want to help new team members get up to speed on the project quickly. This is different from `/docs readme` (user-facing documentation) or `/explain` (understanding specific code). This generates a developer-oriented "survival guide" covering setup, architecture, patterns, conventions, and common tasks.
|
|
12
|
+
|
|
13
|
+
## Current Context
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Project**:
|
|
18
|
+
!`cat package.json 2>/dev/null | head -15 || cat Cargo.toml 2>/dev/null | head -15 || cat pyproject.toml 2>/dev/null | head -15 || cat go.mod 2>/dev/null | head -5`
|
|
19
|
+
|
|
20
|
+
**Structure**:
|
|
21
|
+
!`ls -la`
|
|
22
|
+
|
|
23
|
+
**Git Info**:
|
|
24
|
+
!`git log --oneline -5 2>/dev/null; echo "---"; git branch -a 2>/dev/null | head -10`
|
|
25
|
+
|
|
26
|
+
**Existing Docs**:
|
|
27
|
+
!`ls README* CONTRIBUTING* CLAUDE.md docs/ 2>/dev/null | head -10`
|
|
28
|
+
|
|
29
|
+
**Dev Scripts**:
|
|
30
|
+
!`cat package.json 2>/dev/null | grep -A 20 '"scripts"' | head -25`
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Focus Area
|
|
35
|
+
|
|
36
|
+
$ARGUMENTS
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Launching Onboard Agent
|
|
41
|
+
|
|
42
|
+
The onboard agent will:
|
|
43
|
+
1. **Deep-scan the project** — Structure, dependencies, patterns, conventions
|
|
44
|
+
2. **Read existing documentation** — README, CONTRIBUTING, CLAUDE.md, inline docs
|
|
45
|
+
3. **Identify key patterns** — How code is organized, named, and tested
|
|
46
|
+
4. **Discover setup requirements** — Env vars, services, tools, config
|
|
47
|
+
5. **Generate the guide** — A comprehensive ONBOARDING.md covering everything a new dev needs
|
|
48
|
+
|
|
49
|
+
**Workflows**:
|
|
50
|
+
- No argument → Full onboarding guide covering all aspects
|
|
51
|
+
- `backend` / `frontend` / `api` → Focused guide for that area
|
|
52
|
+
- `contributing` → Focus on contribution workflow, PR process, code standards
|
|
53
|
+
|
|
54
|
+
Use the Task tool to launch the onboard agent (subagent_type="onboard") with any focus area and additional context.
|
package/content/commands/plan.md
CHANGED
|
@@ -25,7 +25,7 @@ $ARGUMENTS
|
|
|
25
25
|
|
|
26
26
|
## Generating Plan
|
|
27
27
|
|
|
28
|
-
Launching the plan agent to analyze our conversation and generate `{{PLANS_DIR}}/PLAN_{NAME}.md`...
|
|
28
|
+
Launching the plan agent to analyze our conversation and generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`...
|
|
29
29
|
|
|
30
30
|
The agent will:
|
|
31
31
|
- ✅ Summarize key findings from our discussion
|
|
@@ -34,5 +34,6 @@ The agent will:
|
|
|
34
34
|
- ✅ Break down tasks into actionable steps
|
|
35
35
|
- ✅ Note technical considerations and constraints
|
|
36
36
|
- ✅ List relevant files and references
|
|
37
|
+
- ✅ Copy any reference files (images, videos, mockups) to `{{TASKS_DIR}}/references/` and link them in the plan so implementing agents can consume them
|
|
37
38
|
|
|
38
39
|
Use the Task tool to launch the plan agent (subagent_type="plan") which will autonomously generate the plan document.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create a release — version bump, changelog, tag, and publish
|
|
3
|
+
argument-hint: [optional: major | minor | patch | version number | --dry-run]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Release
|
|
8
|
+
|
|
9
|
+
I'll orchestrate a complete release for your project — detecting existing release scripts and tooling first.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You're ready to cut a release. This handles version bumping, changelog updates, git tagging, and optionally GitHub Releases or publishing. Use `/changelog` if you only want to generate a changelog without releasing. Use `/commit` for a simple commit without release semantics.
|
|
12
|
+
|
|
13
|
+
## Current State
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
|
+
|
|
19
|
+
**Status**:
|
|
20
|
+
!`git status --short`
|
|
21
|
+
|
|
22
|
+
**Current Version**:
|
|
23
|
+
!`cat package.json 2>/dev/null | grep '"version"' | head -1 || cat Cargo.toml 2>/dev/null | grep '^version' | head -1 || cat pyproject.toml 2>/dev/null | grep '^version' | head -1 || echo "Could not detect version"`
|
|
24
|
+
|
|
25
|
+
**Latest Tags**:
|
|
26
|
+
!`git tag --sort=-version:refname 2>/dev/null | head -5 || echo "No tags found"`
|
|
27
|
+
|
|
28
|
+
**Commits Since Last Tag**:
|
|
29
|
+
!`git log $(git describe --tags --abbrev=0 2>/dev/null)..HEAD --oneline 2>/dev/null | head -15 || git log --oneline -10 2>/dev/null`
|
|
30
|
+
|
|
31
|
+
**Release Scripts Detected**:
|
|
32
|
+
!`cat package.json 2>/dev/null | grep -E '"(release|version|bump|publish|prepublish|postpublish|preversion|postversion|prepublishOnly)"' || echo "None in package.json"`
|
|
33
|
+
!`ls .release-it.* .changeset/ .versionrc* lerna.json .releaserc* release.config.* 2>/dev/null || echo "No release tool configs found"`
|
|
34
|
+
!`ls scripts/release* scripts/publish* scripts/version* Makefile 2>/dev/null || echo "No release scripts found"`
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Release Scope
|
|
39
|
+
|
|
40
|
+
$ARGUMENTS
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Launching Release Agent
|
|
45
|
+
|
|
46
|
+
The release agent will:
|
|
47
|
+
1. **Detect existing release infrastructure** — scripts in package.json, release-it, changesets, semantic-release, standard-version, Makefile targets, scripts/ directory, CI workflows
|
|
48
|
+
2. **If existing tooling found** — use it, guiding through any interactive steps
|
|
49
|
+
3. **If no existing tooling** — orchestrate the release manually:
|
|
50
|
+
- Determine version bump from conventional commits (or use the specified version)
|
|
51
|
+
- Update CHANGELOG.md
|
|
52
|
+
- Bump version in manifest files
|
|
53
|
+
- Create git commit and tag
|
|
54
|
+
- Optionally create a GitHub Release
|
|
55
|
+
4. **Confirm every destructive step** before executing
|
|
56
|
+
|
|
57
|
+
**Workflows**:
|
|
58
|
+
- No argument → Auto-detect version bump from commits (major/minor/patch)
|
|
59
|
+
- `major` / `minor` / `patch` → Explicit bump type
|
|
60
|
+
- `1.2.3` → Explicit version number
|
|
61
|
+
- `--dry-run` → Show what would happen without making changes
|
|
62
|
+
|
|
63
|
+
Use the Task tool to launch the release agent (subagent_type="release") with the scope and any additional context.
|
|
@@ -18,27 +18,27 @@ $ARGUMENTS
|
|
|
18
18
|
|
|
19
19
|
Analyze the query to determine the best research agent:
|
|
20
20
|
|
|
21
|
-
**Use `codebase
|
|
21
|
+
**Use `research-codebase` agent when:**
|
|
22
22
|
- Query mentions "in this codebase", "how does X work here", "where is X implemented"
|
|
23
23
|
- Looking for files, components, functions, or code patterns
|
|
24
24
|
- Understanding architecture, structure, or current implementation
|
|
25
25
|
- Keywords: "explore", "find in code", "how does our", "where is", "codebase structure"
|
|
26
26
|
|
|
27
|
-
**Use `docs
|
|
27
|
+
**Use `research-docs` agent when:**
|
|
28
28
|
- Query mentions specific library/framework APIs (React, Next.js, Prisma, tRPC, etc.)
|
|
29
29
|
- Looking for package documentation or how to use a dependency
|
|
30
30
|
- Questions about official API references
|
|
31
31
|
- Keywords: "library docs", "API reference", "how to use [library]", "documentation for"
|
|
32
32
|
- Check package.json first to see if mentioned library is a project dependency
|
|
33
33
|
|
|
34
|
-
**Use `web
|
|
34
|
+
**Use `research-web` agent when:**
|
|
35
35
|
- Query asks for "latest", "best practices", "how to do X"
|
|
36
36
|
- Looking for online tutorials, guides, or examples
|
|
37
37
|
- Researching industry standards or modern approaches
|
|
38
38
|
- No specific library mentioned, or general "how to" questions
|
|
39
39
|
- Keywords: "research online", "best practices", "modern approach", "latest", "tutorial"
|
|
40
40
|
|
|
41
|
-
**Default to `codebase
|
|
41
|
+
**Default to `research-codebase`** if the query is ambiguous and could apply to understanding existing code.
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
@@ -46,9 +46,9 @@ Analyze the query to determine the best research agent:
|
|
|
46
46
|
|
|
47
47
|
Based on the query above, determine which agent to use and launch it with the Task tool:
|
|
48
48
|
|
|
49
|
-
- `subagent_type="codebase
|
|
50
|
-
- `subagent_type="docs
|
|
51
|
-
- `subagent_type="web
|
|
49
|
+
- `subagent_type="research-codebase"` for codebase exploration
|
|
50
|
+
- `subagent_type="research-docs"` for library documentation
|
|
51
|
+
- `subagent_type="research-web"` for web searching
|
|
52
52
|
|
|
53
53
|
Pass the full query as the prompt to the agent.
|
|
54
54
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Design an award-winning landing page with animations and micro-interactions
|
|
3
|
+
argument-hint: [product/project name or description]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Showcase — Landing Page Design
|
|
8
|
+
|
|
9
|
+
I'll design and build a high-end landing page with polished animations, micro-interactions, and visual craft worthy of an Awwwards feature.
|
|
10
|
+
|
|
11
|
+
## Current Context
|
|
12
|
+
|
|
13
|
+
**Working Directory**: !`pwd`
|
|
14
|
+
|
|
15
|
+
**Project Detection**:
|
|
16
|
+
!`ls package.json tsconfig.json next.config.* vite.config.* astro.config.* tailwind.config.* 2>/dev/null || echo "No recognized project files"`
|
|
17
|
+
|
|
18
|
+
**Existing Pages**:
|
|
19
|
+
!`find . -maxdepth 4 -type f \( -name "page.tsx" -o -name "page.jsx" -o -name "index.tsx" -o -name "index.jsx" -o -name "index.html" \) -not -path "*/node_modules/*" 2>/dev/null | head -10`
|
|
20
|
+
|
|
21
|
+
**Reference Files** (images/videos provided):
|
|
22
|
+
!`ls {{TASKS_DIR}}/references/ 2>/dev/null | head -10 || echo "No references found"`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Project / Product
|
|
27
|
+
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## What This Does
|
|
33
|
+
|
|
34
|
+
The showcase agent will design and build a complete, production-ready landing page with:
|
|
35
|
+
|
|
36
|
+
- **Hero section** with striking visual impact and entrance animations
|
|
37
|
+
- **Scroll-driven animations** — elements that reveal, parallax, and transform on scroll
|
|
38
|
+
- **Micro-interactions** — hover states, button feedback, cursor effects, toggle animations
|
|
39
|
+
- **Smooth transitions** — page sections that flow into each other seamlessly
|
|
40
|
+
- **Typography craft** — deliberate type hierarchy, spacing, and rhythm
|
|
41
|
+
- **Responsive design** — fluid layouts that feel intentional at every breakpoint
|
|
42
|
+
- **Performance** — optimized animations that don't tank Core Web Vitals
|
|
43
|
+
|
|
44
|
+
### Style Direction
|
|
45
|
+
|
|
46
|
+
If reference images/videos were provided, the agent will extract the visual direction from them.
|
|
47
|
+
|
|
48
|
+
If no references are provided, the agent will ask you to choose a style direction before designing.
|
|
49
|
+
|
|
50
|
+
### How It Integrates
|
|
51
|
+
|
|
52
|
+
- In `/autopilot` or `/implement` — if the plan includes a landing page task, the showcase agent is used instead of the generic implement agent for that task
|
|
53
|
+
- In `/parallelize` — landing page work can be a dedicated stream using the showcase agent
|
|
54
|
+
- Standalone — run `/showcase` directly to design a landing page from scratch or redesign an existing one
|
|
55
|
+
|
|
56
|
+
Use the Task tool to launch the showcase agent (subagent_type="showcase") with the product/project context and any reference files.
|