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