@wbern/claude-instructions 1.8.1 → 1.10.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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -11
  3. package/bin/cli.js +796 -47
  4. package/downloads/with-beads/ask.md +1 -4
  5. package/downloads/with-beads/beepboop.md +0 -1
  6. package/downloads/with-beads/busycommit.md +16 -1
  7. package/downloads/with-beads/code-review.md +248 -0
  8. package/downloads/with-beads/commands-metadata.json +57 -15
  9. package/downloads/with-beads/commit.md +16 -1
  10. package/downloads/with-beads/cycle.md +0 -1
  11. package/downloads/with-beads/gap.md +1 -0
  12. package/downloads/with-beads/green.md +0 -1
  13. package/downloads/with-beads/issue.md +0 -1
  14. package/downloads/with-beads/plan.md +1 -3
  15. package/downloads/with-beads/pr.md +82 -0
  16. package/downloads/with-beads/red.md +0 -1
  17. package/downloads/with-beads/refactor.md +0 -1
  18. package/downloads/with-beads/ship.md +1 -4
  19. package/downloads/with-beads/show.md +1 -4
  20. package/downloads/with-beads/spike.md +0 -1
  21. package/downloads/with-beads/summarize.md +0 -1
  22. package/downloads/with-beads/tdd.md +0 -1
  23. package/downloads/with-beads/worktree-add.md +0 -1
  24. package/downloads/with-beads/worktree-cleanup.md +0 -1
  25. package/downloads/without-beads/ask.md +1 -4
  26. package/downloads/without-beads/beepboop.md +0 -1
  27. package/downloads/without-beads/busycommit.md +16 -1
  28. package/downloads/without-beads/code-review.md +246 -0
  29. package/downloads/without-beads/commands-metadata.json +57 -15
  30. package/downloads/without-beads/commit.md +16 -1
  31. package/downloads/without-beads/cycle.md +0 -1
  32. package/downloads/without-beads/gap.md +1 -0
  33. package/downloads/without-beads/green.md +0 -1
  34. package/downloads/without-beads/issue.md +0 -1
  35. package/downloads/without-beads/plan.md +0 -1
  36. package/downloads/without-beads/pr.md +70 -0
  37. package/downloads/without-beads/red.md +0 -1
  38. package/downloads/without-beads/refactor.md +0 -1
  39. package/downloads/without-beads/ship.md +1 -4
  40. package/downloads/without-beads/show.md +1 -4
  41. package/downloads/without-beads/spike.md +0 -1
  42. package/downloads/without-beads/summarize.md +0 -1
  43. package/downloads/without-beads/tdd.md +0 -1
  44. package/downloads/without-beads/worktree-add.md +0 -1
  45. package/downloads/without-beads/worktree-cleanup.md +0 -1
  46. package/package.json +7 -3
@@ -1,6 +1,5 @@
1
1
  ---
2
- allowed-tools: mcp__github__create_pull_request, mcp__github__update_pull_request, Bash(git status:*), Bash(git log:*), Bash(git push:*), Bash(git branch:*)
3
- description: Request team review and approval - for complex changes needing discussion (OK fine, traditional PRs still have their place - Cursor)
2
+ description: Request team review and approval - for complex changes needing discussion
4
3
  argument-hint: [optional-pr-title-and-description]
5
4
  ---
6
5
 
@@ -18,8 +17,6 @@ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues
18
17
 
19
18
  **Ship/Show/Ask Pattern - ASK**
20
19
 
21
- > 💭 **Cursor says**: Fine, SOME things still need traditional PRs. But be intentional about it.
22
-
23
20
  Ask is for complex changes that need team discussion and approval. Examples:
24
21
 
25
22
  - Breaking API changes
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Grep, Glob
3
2
  description: Communicate AI-generated content with transparent attribution
4
3
  argument-hint: <task-description>
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Bash(pnpm test:*), Bash(pnpm lint:*)
3
2
  description: Create multiple atomic git commits, one logical change at a time
4
3
  argument-hint: [optional-commit-description]
5
4
  ---
@@ -18,6 +17,22 @@ Create multiple atomic git commits, committing the smallest possible logical uni
18
17
 
19
18
  Include any of the following info if specified: $ARGUMENTS
20
19
 
20
+ ## Commit Message Rules
21
+
22
+ Follows [Conventional Commits](https://www.conventionalcommits.org/) standard.
23
+
24
+ 1. **Format**: `type(#issue): description`
25
+ - Use `#123` for local repo issues
26
+ - Use `owner/repo#123` for cross-repo issues
27
+ - Common types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`
28
+
29
+ 2. **AI Credits**: **NEVER include AI credits in commit messages**
30
+ - No "Generated with Claude Code"
31
+ - No "Co-Authored-By: Claude" or "Co-Authored-By: Happy"
32
+ - Focus on the actual changes made, not conversation history
33
+
34
+ 3. **Content**: Write clear, concise commit messages describing what changed and why
35
+
21
36
  ## Process
22
37
 
23
38
  1. Run `git status` and `git diff` to review changes
@@ -0,0 +1,248 @@
1
+ ---
2
+ description: Code review using dynamic category detection and domain-specific analysis
3
+ argument-hint: (optional) [branch, PR#, or PR URL] - defaults to current branch
4
+ - Bash(git diff:*)
5
+ - Bash(git status:*)
6
+ - Bash(git log:*)
7
+ - Bash(git rev-parse:*)
8
+ - Bash(git merge-base:*)
9
+ - Bash(git branch:*)
10
+ ---
11
+
12
+ ## General Guidelines
13
+
14
+ ### Output Style
15
+
16
+ - **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
17
+ - Write natural, descriptive code without meta-commentary about the development process
18
+ - The code should speak for itself - TDD is the process, not the product
19
+
20
+ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues (the user interacts via `bd` commands).
21
+
22
+ # Code Review
23
+
24
+ Perform a code review using dynamic category detection.
25
+
26
+ ## Phase 0: Setup & Categorization
27
+
28
+ ### Determine What to Review
29
+
30
+ Parse the argument to determine the review target:
31
+
32
+ | Input | Action |
33
+ |-------|--------|
34
+ | No argument | Detect divergence point, confirm scope with user |
35
+ | Branch name | Use specified branch as base |
36
+ | PR number (e.g., `123`) | Fetch PR diff from GitHub |
37
+ | PR URL (e.g., `https://github.com/owner/repo/pull/123`) | Extract PR number and fetch diff |
38
+
39
+ **For GitHub PRs:**
40
+
41
+ 1. Try GitHub MCP first: `mcp__github__pull_request_read` with `method: "get_diff"`
42
+ 2. Fall back to `gh` CLI: `gh pr diff <number>`
43
+ 3. If neither works, report error and stop
44
+
45
+ **For local branches (no argument or branch name provided):**
46
+
47
+ 1. **Get current branch**: `git rev-parse --abbrev-ref HEAD`
48
+
49
+ 2. **Check for uncommitted changes**: `git status --porcelain`
50
+ - If output is non-empty, note that uncommitted changes exist
51
+
52
+ 3. **Detect divergence point** (skip if branch name was provided as argument):
53
+ - Get all local branches except current: `git branch --format='%(refname:short)'`
54
+ - For each branch, find merge-base: `git merge-base HEAD <branch>`
55
+ - Count commits from merge-base to HEAD: `git rev-list --count <merge-base>..HEAD`
56
+ - The branch with the **fewest commits back** (closest merge-base) is the likely parent
57
+ - If no other branches exist, fall back to `main`, `master`, or `develop` if they exist as remote tracking branches
58
+
59
+ 4. **Confirm scope with user** using `AskUserQuestion`:
60
+
61
+ **Question 1 - "Review scope"** (header: "Base branch"):
62
+ - Option A: `From <detected-branch>` — "Review N commits since diverging from <branch>"
63
+ - Option B: `Different branch` — "Specify another branch to compare against"
64
+ - Option C: `Uncommitted only` — "Review only staged/unstaged changes, skip committed work"
65
+
66
+ **Question 2 - "Include uncommitted?"** (header: "Uncommitted", only ask if uncommitted changes exist AND user didn't pick option C):
67
+ - Option A: `Yes` — "Include N staged/unstaged files in review"
68
+ - Option B: `No` — "Review only committed changes"
69
+
70
+ 5. **Collect changed files** based on user selection:
71
+ - From branch: `git diff --name-only <base>...HEAD`
72
+ - Uncommitted unstaged: `git diff --name-only`
73
+ - Uncommitted staged: `git diff --name-only --cached`
74
+ - Combine and deduplicate the file list
75
+
76
+ 6. **If no changes**: Report "Nothing to review" and stop
77
+
78
+ ### Categorize Files
79
+
80
+ Check for CLAUDE.md - if it exists, note any project-specific review patterns.
81
+
82
+ Categorize each changed file into ONE primary category based on these patterns:
83
+
84
+ | Category | File Patterns |
85
+ |----------|---------------|
86
+ | Frontend/UI | `*.tsx`, `*.jsx`, `components/`, `pages/`, `views/`, `*.vue` |
87
+ | Frontend/Styling | `*.css`, `*.scss`, `*.less`, `styles/`, `*.tailwind*`, `*.styled.*` |
88
+ | Backend/API | `routes/`, `api/`, `controllers/`, `services/`, `*.controller.*`, `*.service.*`, `*.resolver.*` |
89
+ | Backend/Data | `migrations/`, `models/`, `prisma/`, `schema.*`, `*.model.*`, `*.entity.*` |
90
+ | Tooling/Config | `scripts/`, `*.config.*`, `package.json`, `tsconfig.*`, `vite.*`, `webpack.*`, `eslint.*` |
91
+ | CI/CD | `.github/`, `.gitlab-ci.*`, `Dockerfile`, `docker-compose.*`, `*.yml` in CI paths |
92
+ | Tests | `*.test.*`, `*.spec.*`, `__tests__/`, `__mocks__/`, `*.stories.*` |
93
+ | Docs | `*.md`, `docs/`, `README*`, `CHANGELOG*` |
94
+
95
+ Output the categorization:
96
+
97
+ ```
98
+ ## Categorization
99
+
100
+ Base branch: <branch>
101
+ Total files changed: <n>
102
+
103
+ | Category | Files |
104
+ |----------|-------|
105
+ | <category> | <count> |
106
+ ...
107
+ ```
108
+
109
+ ## Phase 1: Branch Brief
110
+
111
+ From the diff and recent commit messages (`git log <base>...HEAD --oneline`), infer:
112
+
113
+ - **Goal**: What this branch accomplishes (1-3 sentences)
114
+ - **Constraints**: Any implied requirements (security, performance, backwards compatibility)
115
+ - **Success checklist**: What must work after this change, what must not break
116
+
117
+ ```
118
+ ## Branch Brief
119
+
120
+ **Goal**: ...
121
+ **Constraints**: ...
122
+ **Checklist**:
123
+ - [ ] ...
124
+ ```
125
+
126
+ ## Phase 2: Category Reviews
127
+
128
+ For each detected category with changes, run a targeted review. Skip categories with no changes.
129
+
130
+ ### Frontend/UI Review Criteria
131
+
132
+ - Accessibility: ARIA attributes, keyboard navigation, screen reader support
133
+ - Component patterns: Composition, prop drilling, context usage
134
+ - State management: Unnecessary re-renders, stale closures
135
+ - Performance: memo/useMemo/useCallback usage, lazy loading, bundle impact
136
+
137
+ ### Frontend/Styling Review Criteria
138
+
139
+ - Responsive design: Breakpoints, mobile-first
140
+ - Design system: Token usage, consistent spacing/colors
141
+ - CSS specificity: Overly specific selectors, !important usage
142
+ - Theme support: Dark mode, CSS variables
143
+
144
+ ### Backend/API Review Criteria
145
+
146
+ - Input validation: Sanitization, type checking, bounds
147
+ - Security: Authentication checks, authorization, injection risks
148
+ - Error handling: Proper status codes, meaningful messages, logging
149
+ - Performance: N+1 queries, missing indexes, pagination
150
+
151
+ ### Backend/Data Review Criteria
152
+
153
+ - Migration safety: Reversibility, data preservation
154
+ - Data integrity: Constraints, foreign keys, nullability
155
+ - Index usage: Queries have appropriate indexes
156
+ - Backwards compatibility: Existing data still works
157
+
158
+ ### Tooling/Config Review Criteria
159
+
160
+ - Breaking changes: Does this affect developer workflow?
161
+ - Dependency compatibility: Version conflicts, peer deps
162
+ - Build performance: Added build time, bundle size
163
+
164
+ ### CI/CD Review Criteria
165
+
166
+ - Secrets exposure: Credentials in logs, env vars
167
+ - Pipeline efficiency: Caching, parallelization
168
+ - Failure handling: Notifications, rollback strategy
169
+
170
+ ### Tests Review Criteria
171
+
172
+ - Coverage: Edge cases, error paths, boundaries
173
+ - Assertion quality: Specific assertions, not just "no error"
174
+ - Flaky patterns: Timing dependencies, order dependencies, shared state
175
+
176
+ ### Docs Review Criteria
177
+
178
+ - Technical accuracy: Code examples work, APIs documented correctly
179
+ - Completeness: All new features documented
180
+ - Clarity: Easy to follow, good examples
181
+
182
+ **Output format per category:**
183
+
184
+ ```
185
+ ## <Category> Review (<n> files)
186
+
187
+ ### file:line - [blocker|risky|nit] Title
188
+ Description of the issue and why it matters.
189
+ Suggested fix or question to investigate.
190
+
191
+ ...
192
+ ```
193
+
194
+ ## Phase 3: Cross-Cutting Analysis
195
+
196
+ After reviewing all categories, check for cross-cutting issues:
197
+
198
+ - API changed but tests didn't update?
199
+ - New feature but no documentation?
200
+ - Migration added but no rollback tested?
201
+ - Config changed but README not updated?
202
+ - Security-sensitive code without corresponding test?
203
+
204
+ ```
205
+ ## Cross-Cutting Issues
206
+
207
+ - [ ] <issue description>
208
+ ...
209
+ ```
210
+
211
+ ## Phase 4: Summary
212
+
213
+ ### PR Description (draft)
214
+
215
+ Provide a ready-to-paste PR description:
216
+
217
+ ```
218
+ ## What changed
219
+ - <by category, 1-2 bullets each>
220
+
221
+ ## Why
222
+ - <motivation>
223
+
224
+ ## Testing
225
+ - <how to verify>
226
+
227
+ ## Notes
228
+ - <migration steps, breaking changes, etc.>
229
+ ```
230
+
231
+ ### Review Checklist
232
+
233
+ ```
234
+ ## Before Merge
235
+
236
+ ### Blockers (must fix)
237
+ - [ ] ...
238
+
239
+ ### Risky (highlight to reviewers)
240
+ - [ ] ...
241
+
242
+ ### Follow-ups (can defer)
243
+ - [ ] ...
244
+ ```
245
+
246
+ ---
247
+
248
+ Review target (branch name, PR number, or PR URL - leave empty for current branch): $ARGUMENTS
@@ -1,96 +1,138 @@
1
1
  {
2
2
  "add-command.md": {
3
3
  "description": "Guide for creating new slash commands",
4
+ "hint": "Create command",
4
5
  "category": "Utilities",
5
6
  "order": 3
6
7
  },
7
8
  "ask.md": {
8
- "description": "Request team review and approval - for complex changes needing discussion (OK fine, traditional PRs still have their place - Cursor)",
9
- "category": "Workflow",
10
- "order": 4
9
+ "description": "Request team review and approval - for complex changes needing discussion",
10
+ "hint": "Request review",
11
+ "category": "Ship / Show / Ask",
12
+ "order": 3,
13
+ "selectedByDefault": false
11
14
  },
12
15
  "beepboop.md": {
13
16
  "description": "Communicate AI-generated content with transparent attribution",
17
+ "hint": "AI attribution",
14
18
  "category": "Utilities",
15
19
  "order": 2
16
20
  },
17
21
  "busycommit.md": {
18
22
  "description": "Create multiple atomic git commits, one logical change at a time",
23
+ "hint": "Atomic commits",
19
24
  "category": "Workflow",
20
25
  "order": 2
21
26
  },
27
+ "code-review.md": {
28
+ "description": "Code review using dynamic category detection and domain-specific analysis",
29
+ "hint": "Review code",
30
+ "category": "Workflow",
31
+ "order": 35,
32
+ "_requested-tools": [
33
+ "Bash(git diff:*)",
34
+ "Bash(git status:*)",
35
+ "Bash(git log:*)",
36
+ "Bash(git rev-parse:*)",
37
+ "Bash(git merge-base:*)",
38
+ "Bash(git branch:*)"
39
+ ]
40
+ },
22
41
  "commit.md": {
23
42
  "description": "Create a git commit following project standards",
43
+ "hint": "Git commit",
24
44
  "category": "Workflow",
25
45
  "order": 1
26
46
  },
27
47
  "cycle.md": {
28
48
  "description": "Execute complete TDD cycle - Red, Green, and Refactor phases in sequence",
29
- "category": "TDD Cycle",
49
+ "hint": "Full TDD cycle",
50
+ "category": "Test-Driven Development",
30
51
  "order": 5
31
52
  },
32
53
  "gap.md": {
33
54
  "description": "Analyze conversation context for unaddressed items and gaps",
55
+ "hint": "Find gaps",
34
56
  "category": "Workflow",
35
57
  "order": 11
36
58
  },
37
59
  "green.md": {
38
60
  "description": "Execute TDD Green Phase - write minimal implementation to pass the failing test",
39
- "category": "TDD Cycle",
61
+ "hint": "Make it pass",
62
+ "category": "Test-Driven Development",
40
63
  "order": 3
41
64
  },
42
65
  "issue.md": {
43
66
  "description": "Analyze GitHub issue and create TDD implementation plan",
67
+ "hint": "Analyze issue",
44
68
  "category": "Planning",
45
69
  "order": 1
46
70
  },
47
71
  "plan.md": {
48
72
  "description": "Create implementation plan from feature/requirement with PRD-style discovery and TDD acceptance criteria",
73
+ "hint": "Plan feature",
49
74
  "category": "Planning",
50
75
  "order": 2
51
76
  },
77
+ "pr.md": {
78
+ "description": "Creates a pull request using GitHub MCP",
79
+ "hint": "Create PR",
80
+ "category": "Workflow",
81
+ "order": 5
82
+ },
52
83
  "red.md": {
53
84
  "description": "Execute TDD Red Phase - write ONE failing test",
54
- "category": "TDD Cycle",
85
+ "hint": "Failing test",
86
+ "category": "Test-Driven Development",
55
87
  "order": 2
56
88
  },
57
89
  "refactor.md": {
58
90
  "description": "Execute TDD Refactor Phase - improve code structure while keeping tests green",
59
- "category": "TDD Cycle",
91
+ "hint": "Clean up code",
92
+ "category": "Test-Driven Development",
60
93
  "order": 4
61
94
  },
62
95
  "ship.md": {
63
- "description": "Ship code directly to main - for small, obvious changes that don't need review (Cursor's modern alternative to PRs)",
64
- "category": "Workflow",
65
- "order": 2
96
+ "description": "Ship code directly to main - for small, obvious changes that don't need review",
97
+ "hint": "Direct to main",
98
+ "category": "Ship / Show / Ask",
99
+ "order": 1,
100
+ "selectedByDefault": false
66
101
  },
67
102
  "show.md": {
68
- "description": "Show code to team with auto-merge - for changes that should be visible but don't need approval (Cursor's modern workflow)",
69
- "category": "Workflow",
70
- "order": 3
103
+ "description": "Show code to team with auto-merge - for changes that should be visible but don't need approval",
104
+ "hint": "Auto-merge PR",
105
+ "category": "Ship / Show / Ask",
106
+ "order": 2,
107
+ "selectedByDefault": false
71
108
  },
72
109
  "spike.md": {
73
110
  "description": "Execute TDD Spike Phase - exploratory coding to understand problem space before TDD",
74
- "category": "TDD Cycle",
111
+ "hint": "Explore first",
112
+ "category": "Test-Driven Development",
75
113
  "order": 1
76
114
  },
77
115
  "summarize.md": {
78
116
  "description": "Summarize conversation progress and next steps",
117
+ "hint": "Summarize chat",
79
118
  "category": "Workflow",
80
119
  "order": 10
81
120
  },
82
121
  "tdd.md": {
83
122
  "description": "Remind agent about TDD approach and continue conversation",
84
- "category": "Utilities",
123
+ "hint": "TDD reminder",
124
+ "category": "Test-Driven Development",
85
125
  "order": 1
86
126
  },
87
127
  "worktree-add.md": {
88
128
  "description": "Add a new git worktree from branch name or GitHub issue URL, copy settings, install deps, and open in current IDE",
129
+ "hint": "Add worktree",
89
130
  "category": "Worktree Management",
90
131
  "order": 1
91
132
  },
92
133
  "worktree-cleanup.md": {
93
134
  "description": "Clean up merged worktrees by verifying PR/issue status, consolidating settings, and removing stale worktrees",
135
+ "hint": "Cleanup worktree",
94
136
  "category": "Worktree Management",
95
137
  "order": 2
96
138
  }
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Bash(pnpm test:*), Bash(pnpm lint:*)
3
2
  description: Create a git commit following project standards
4
3
  argument-hint: [optional-commit-description]
5
4
  ---
@@ -18,6 +17,22 @@ Create a git commit following project standards
18
17
 
19
18
  Include any of the following info if specified: $ARGUMENTS
20
19
 
20
+ ## Commit Message Rules
21
+
22
+ Follows [Conventional Commits](https://www.conventionalcommits.org/) standard.
23
+
24
+ 1. **Format**: `type(#issue): description`
25
+ - Use `#123` for local repo issues
26
+ - Use `owner/repo#123` for cross-repo issues
27
+ - Common types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`
28
+
29
+ 2. **AI Credits**: **NEVER include AI credits in commit messages**
30
+ - No "Generated with Claude Code"
31
+ - No "Co-Authored-By: Claude" or "Co-Authored-By: Happy"
32
+ - Focus on the actual changes made, not conversation history
33
+
34
+ 3. **Content**: Write clear, concise commit messages describing what changed and why
35
+
21
36
  ## Process
22
37
 
23
38
  1. Run `git status` and `git diff` to review changes
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Bash(pnpm test:*)
3
2
  description: Execute complete TDD cycle - Red, Green, and Refactor phases in sequence
4
3
  argument-hint: <feature or requirement description>
5
4
  ---
@@ -19,6 +19,7 @@ Analyze the current conversation context and identify things that have not yet b
19
19
  2. **Unused variables/results** - Values that were captured but never used
20
20
  3. **Missing tests** - Functionality without test coverage
21
21
  4. **Open issues** - Beads issues that are still open or in progress
22
+
22
23
  5. **User requests** - Things the user asked for that weren't fully completed
23
24
  6. **TODO comments** - Any TODOs mentioned in conversation
24
25
  7. **Error handling gaps** - Missing error cases or edge cases
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Bash(pnpm test:*)
3
2
  description: Execute TDD Green Phase - write minimal implementation to pass the failing test
4
3
  argument-hint: <implementation description>
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: mcp__github__issue_read, mcp__github__get_issue, Task
3
2
  description: Analyze GitHub issue and create TDD implementation plan
4
3
  argument-hint: [optional-issue-number]
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Task, AskUserQuestion, mcp__github__issue_read, mcp__github__search_issues
3
2
  description: Create implementation plan from feature/requirement with PRD-style discovery and TDD acceptance criteria
4
3
  argument-hint: <feature/requirement description or GitHub issue URL/number>
5
4
  ---
@@ -22,8 +21,7 @@ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues
22
21
 
23
22
  $ARGUMENTS
24
23
 
25
- (If no input provided, check conversation context or run `bd ready` to see existing work
26
- )
24
+ (If no input provided, check conversation context or run `bd ready` to see existing work)
27
25
 
28
26
  ## Input Processing
29
27
 
@@ -0,0 +1,82 @@
1
+ ---
2
+ description: Creates a pull request using GitHub MCP
3
+ argument-hint: [optional-pr-title-and-description]
4
+ ---
5
+
6
+ # Create Pull Request
7
+
8
+ ## General Guidelines
9
+
10
+ ### Output Style
11
+
12
+ - **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
13
+ - Write natural, descriptive code without meta-commentary about the development process
14
+ - The code should speak for itself - TDD is the process, not the product
15
+
16
+ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues (the user interacts via `bd` commands).
17
+
18
+ Create a pull request for the current branch using GitHub MCP tools.
19
+
20
+ ## Workflow
21
+
22
+ Current branch status:
23
+ !`git status`
24
+
25
+ Recent commits:
26
+ !`git log --oneline -5`
27
+
28
+ Arguments: $ARGUMENTS
29
+
30
+ **Process:**
31
+
32
+ 1. **Ensure Branch is Ready**:
33
+ !`git status`
34
+ - Commit all changes
35
+ - Push to remote: `git push origin [branch-name]`
36
+
37
+ 2. **Create PR**: Create a well-formatted pull request
38
+
39
+ Title: conventional commits format, like `feat(#123): add user authentication`
40
+
41
+ Description template:
42
+
43
+ ```markdown
44
+ <!--
45
+ Are there any relevant issues / PRs / mailing lists discussions?
46
+ Please reference them here.
47
+ -->
48
+
49
+ ## References
50
+
51
+ - [links to github issues referenced in commit messages]
52
+
53
+ ## Summary
54
+
55
+ [Brief description of changes]
56
+
57
+ ## Test Plan
58
+
59
+ - [ ] Tests pass
60
+ - [ ] Manual testing completed
61
+ ```
62
+
63
+ 3. **Set Base Branch**: Default to main unless specified otherwise
64
+
65
+ 4. **Link Issues**: Reference related issues found in commit messages
66
+
67
+ ## Use GitHub MCP Tools
68
+
69
+ 1. Check current branch and ensure it's pushed
70
+ 2. Create a well-formatted pull request with proper title and description
71
+ 3. Set the base branch (default: main)
72
+ 4. Include relevant issue references if found in commit messages
73
+
74
+ ### Beads Integration
75
+
76
+ Use Beads MCP to:
77
+
78
+ - Track work with `bd ready` to find next task
79
+ - Create issues with `bd create "description"`
80
+ - Track dependencies with `bd dep add`
81
+
82
+ See <https://github.com/steveyegge/beads> for more information.
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Bash(pnpm test:*)
3
2
  description: Execute TDD Red Phase - write ONE failing test
4
3
  argument-hint: [optional additional info]
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Bash(pnpm test:*)
3
2
  description: Execute TDD Refactor Phase - improve code structure while keeping tests green
4
3
  argument-hint: <refactoring description>
5
4
  ---
@@ -1,6 +1,5 @@
1
1
  ---
2
- allowed-tools: Bash(git status:*), Bash(git log:*), Bash(git diff:*), Bash(git checkout:*), Bash(git pull:*), Bash(git merge:*), Bash(git push:*), Bash(git branch:*)
3
- description: Ship code directly to main - for small, obvious changes that don't need review (Cursor's modern alternative to PRs)
2
+ description: Ship code directly to main - for small, obvious changes that don't need review
4
3
  argument-hint: [optional-commit-message]
5
4
  ---
6
5
 
@@ -18,8 +17,6 @@ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues
18
17
 
19
18
  **Ship/Show/Ask Pattern - SHIP**
20
19
 
21
- > 🎯 **Cursor says**: It's 2025! Not everything needs a PR. Ship small, obvious changes directly.
22
-
23
20
  Ship is for small, obvious changes that don't need code review. Examples:
24
21
 
25
22
  - Typo fixes
@@ -1,6 +1,5 @@
1
1
  ---
2
- allowed-tools: mcp__github__create_pull_request, mcp__github__update_pull_request, Bash(git status:*), Bash(git log:*), Bash(git push:*), Bash(git branch:*)
3
- description: Show code to team with auto-merge - for changes that should be visible but don't need approval (Cursor's modern workflow)
2
+ description: Show code to team with auto-merge - for changes that should be visible but don't need approval
4
3
  argument-hint: [optional-pr-title-and-description]
5
4
  ---
6
5
 
@@ -18,8 +17,6 @@ Beads is available for task tracking. Use `mcp__beads__*` tools to manage issues
18
17
 
19
18
  **Ship/Show/Ask Pattern - SHOW**
20
19
 
21
- > 🚀 **Cursor says**: Not every change needs a traditional review. Show your work, then merge.
22
-
23
20
  Show is for changes that teammates should see, but don't require approval. Examples:
24
21
 
25
22
  - Refactoring with test coverage
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: Read, Glob, Grep, Task
3
2
  description: Execute TDD Spike Phase - exploratory coding to understand problem space before TDD
4
3
  argument-hint: <exploration description>
5
4
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- allowed-tools: AskUserQuestion
3
2
  description: Summarize conversation progress and next steps
4
3
  argument-hint: [optional additional info]
5
4
  ---