@wbern/claude-instructions 1.7.0 → 1.8.1
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/README.md +1 -0
- package/bin/cli.js +73 -26
- package/downloads/with-beads/add-command.md +27 -0
- package/downloads/with-beads/ask.md +5 -1
- package/downloads/with-beads/beepboop.md +2 -8
- package/downloads/with-beads/busycommit.md +9 -2
- package/downloads/with-beads/commit.md +9 -2
- package/downloads/with-beads/cycle.md +4 -0
- package/downloads/with-beads/gap.md +17 -5
- package/downloads/with-beads/green.md +4 -0
- package/downloads/with-beads/issue.md +12 -3
- package/downloads/with-beads/plan.md +22 -1
- package/downloads/with-beads/red.md +9 -2
- package/downloads/with-beads/refactor.md +6 -0
- package/downloads/with-beads/ship.md +5 -1
- package/downloads/with-beads/show.md +5 -1
- package/downloads/with-beads/spike.md +4 -0
- package/downloads/with-beads/summarize.md +15 -0
- package/downloads/with-beads/tdd.md +3 -0
- package/downloads/with-beads/worktree-add.md +17 -13
- package/downloads/with-beads/worktree-cleanup.md +18 -14
- package/downloads/without-beads/add-command.md +25 -0
- package/downloads/without-beads/ask.md +1 -1
- package/downloads/without-beads/beepboop.md +1 -1
- package/downloads/without-beads/busycommit.md +7 -2
- package/downloads/without-beads/commit.md +7 -2
- package/downloads/without-beads/cycle.md +2 -3
- package/downloads/without-beads/gap.md +11 -1
- package/downloads/without-beads/green.md +2 -3
- package/downloads/without-beads/issue.md +8 -3
- package/downloads/without-beads/plan.md +12 -2
- package/downloads/without-beads/red.md +4 -2
- package/downloads/without-beads/refactor.md +4 -3
- package/downloads/without-beads/ship.md +1 -1
- package/downloads/without-beads/show.md +1 -1
- package/downloads/without-beads/spike.md +2 -3
- package/downloads/without-beads/summarize.md +12 -1
- package/downloads/without-beads/tdd.md +1 -0
- package/downloads/without-beads/worktree-add.md +15 -13
- package/downloads/without-beads/worktree-cleanup.md +16 -14
- package/package.json +2 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: Read, Glob, Grep, Bash(pnpm test:*)
|
|
3
3
|
description: Execute TDD Red Phase - write ONE failing test
|
|
4
|
+
argument-hint: [optional additional info]
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
RED PHASE! Apply the below to the info given by user input here:
|
|
7
8
|
|
|
8
9
|
$ARGUMENTS
|
|
9
10
|
|
|
10
|
-
(If there was no info above, use info from the current context of conversation. If there was not enough info, ask for it.)
|
|
11
|
-
|
|
12
11
|
## General Guidelines
|
|
13
12
|
|
|
14
13
|
### Output Style
|
|
14
|
+
|
|
15
15
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
16
16
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
17
17
|
- The code should speak for itself - TDD is the process, not the product
|
|
18
18
|
|
|
19
|
+
(If there was no info above, fallback to the context of the conversation)
|
|
20
|
+
|
|
19
21
|
## TDD Fundamentals
|
|
20
22
|
|
|
21
23
|
### The TDD Cycle
|
|
@@ -9,13 +9,12 @@ Apply this document (specifically the Refactor phase), to the info given by user
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
15
16
|
|
|
16
|
-
(If there was no info above, fallback to
|
|
17
|
-
1. Context of the conversation, if there's an immediate thing
|
|
18
|
-
2. `bd ready` to see what to work on next and start from there)
|
|
17
|
+
(If there was no info above, fallback to the context of the conversation)
|
|
19
18
|
|
|
20
19
|
## TDD Fundamentals
|
|
21
20
|
|
|
@@ -88,3 +87,5 @@ This phase is **not part of the regular TDD workflow** and must only be applied
|
|
|
88
87
|
- In the refactor phase, it is perfectly fine to refactor both test and implementation code. That said, completely new functionality is not allowed. Types, clean up, abstractions, and helpers are allowed as long as they do not introduce new behavior.
|
|
89
88
|
- Adding types, interfaces, or a constant in order to replace magic values is perfectly fine during refactoring.
|
|
90
89
|
- Provide the agent with helpful directions so that they do not get stuck when blocking them.
|
|
90
|
+
|
|
91
|
+
1. **Consistency check** - Look for inconsistent patterns, naming conventions, or structure across the codebase
|
|
@@ -9,6 +9,7 @@ argument-hint: [optional-commit-message]
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
@@ -86,4 +87,3 @@ If tests fail, linter fails, or changes are large/complex, STOP and suggest:
|
|
|
86
87
|
|
|
87
88
|
- Use `/show` for changes that should be seen but don't need approval
|
|
88
89
|
- Use `/ask` (traditional PR) for complex changes needing discussion
|
|
89
|
-
|
|
@@ -9,6 +9,7 @@ argument-hint: [optional-pr-title-and-description]
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
@@ -102,4 +103,3 @@ Use **Show** when:
|
|
|
102
103
|
Use **/ship** instead if: change is tiny and obvious (typo, formatting)
|
|
103
104
|
|
|
104
105
|
Use **/ask** instead if: change needs discussion, breaks APIs, or you're uncertain
|
|
105
|
-
|
|
@@ -11,13 +11,12 @@ $ARGUMENTS
|
|
|
11
11
|
## General Guidelines
|
|
12
12
|
|
|
13
13
|
### Output Style
|
|
14
|
+
|
|
14
15
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
15
16
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
16
17
|
- The code should speak for itself - TDD is the process, not the product
|
|
17
18
|
|
|
18
|
-
(If there was no info above, fallback to
|
|
19
|
-
1. Context of the conversation, if there's an immediate thing
|
|
20
|
-
2. `bd ready` to see what to work on next and start from there)
|
|
19
|
+
(If there was no info above, fallback to the context of the conversation)
|
|
21
20
|
|
|
22
21
|
## TDD Fundamentals
|
|
23
22
|
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: AskUserQuestion
|
|
3
3
|
description: Summarize conversation progress and next steps
|
|
4
|
+
argument-hint: [optional additional info]
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
## General Guidelines
|
|
8
|
+
|
|
9
|
+
### Output Style
|
|
10
|
+
|
|
11
|
+
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
12
|
+
- Write natural, descriptive code without meta-commentary about the development process
|
|
13
|
+
- The code should speak for itself - TDD is the process, not the product
|
|
14
|
+
|
|
6
15
|
Create a concise summary of the current conversation suitable for transferring context to a new conversation.
|
|
7
16
|
|
|
8
17
|
Additional info: $ARGUMENTS
|
|
@@ -12,16 +21,19 @@ Additional info: $ARGUMENTS
|
|
|
12
21
|
Provide a summary with these sections:
|
|
13
22
|
|
|
14
23
|
### What We Did
|
|
24
|
+
|
|
15
25
|
- Key accomplishments and changes made
|
|
16
26
|
- Important decisions or discoveries
|
|
17
27
|
- Files created, modified, or analyzed
|
|
18
28
|
|
|
19
29
|
### What We're Doing Next
|
|
30
|
+
|
|
20
31
|
- Immediate next steps
|
|
21
32
|
- Pending tasks or work in progress
|
|
22
33
|
- Goals or objectives to continue
|
|
23
34
|
|
|
24
35
|
### Blockers & User Input Needed
|
|
36
|
+
|
|
25
37
|
- Any issues requiring user intervention
|
|
26
38
|
- Decisions that need to be made
|
|
27
39
|
- Missing information or clarifications needed
|
|
@@ -29,4 +41,3 @@ Provide a summary with these sections:
|
|
|
29
41
|
## Output Format
|
|
30
42
|
|
|
31
43
|
Keep the summary concise and actionable - suitable for pasting into a new conversation to quickly restore context without needing the full conversation history.
|
|
32
|
-
|
|
@@ -9,6 +9,7 @@ argument-hint: [optional-response-to-last-message]
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
@@ -9,6 +9,7 @@ argument-hint: <branch-name-or-github-issue-url> [optional-base-branch]
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
@@ -72,7 +73,7 @@ Uncommitted changes: !git status --short`
|
|
|
72
73
|
<input>The user-provided arguments</input>
|
|
73
74
|
<expected_format>branch-name-or-github-url [optional-base-branch]</expected_format>
|
|
74
75
|
<example>fix/issue-123-main-content-area-visually-clipped main</example>
|
|
75
|
-
<example_github_url
|
|
76
|
+
<example_github_url><https://github.com/owner/project/issues/123> main</example_github_url>
|
|
76
77
|
<default_base_branch>main (if not specified)</default_base_branch>
|
|
77
78
|
</step_1>
|
|
78
79
|
|
|
@@ -182,7 +183,7 @@ Uncommitted changes: !git status --short`
|
|
|
182
183
|
- packages/*/.env.local
|
|
183
184
|
- (any other .env.local files found)
|
|
184
185
|
</common_locations>
|
|
185
|
-
<copy_command>find . -name ".env.local" -type f -exec sh -c 'mkdir -p "$(dirname "${parent_path}/${branch_name}/$1")" && cp "$1" "${parent_path}/${branch_name}/$1"' _
|
|
186
|
+
<copy_command>find . -name ".env.local" -type f -exec sh -c 'mkdir -p "$(dirname "${parent_path}/${branch_name}/$1")" && cp "$1" "${parent_path}/${branch_name}/$1"' _{} \;</copy_command>
|
|
186
187
|
<purpose>Preserve local environment configurations for development</purpose>
|
|
187
188
|
<note>Only copies files that exist; ignores missing ones</note>
|
|
188
189
|
</step_9>
|
|
@@ -249,14 +250,15 @@ EOF</create_file_command>
|
|
|
249
250
|
</execution_steps>
|
|
250
251
|
|
|
251
252
|
<important_notes>
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
|
|
254
|
+
- Automatically detects and uses your current IDE (VS Code, VS Code Insiders, Cursor, Zed, etc.)
|
|
255
|
+
- Creates VS Code-specific tasks.json only for VS Code variants (auto-starts Claude on folder open)
|
|
256
|
+
- Branch names with slashes (feat/, fix/, etc.) are fully supported
|
|
257
|
+
- The worktree directory path will match the full branch name including slashes
|
|
258
|
+
- Settings are copied to maintain the same permissions across worktrees
|
|
259
|
+
- Environment files (.env.local) are copied to preserve local configurations
|
|
260
|
+
- Each worktree has its own node_modules installation
|
|
261
|
+
- Uncommitted changes are automatically stashed and moved to the new worktree
|
|
262
|
+
- Your work-in-progress seamlessly transfers to the new branch
|
|
263
|
+
- IDE detection fallback: checks available editors and uses priority order
|
|
264
|
+
</important_notes>
|
|
@@ -9,6 +9,7 @@ argument-hint: (no arguments)
|
|
|
9
9
|
## General Guidelines
|
|
10
10
|
|
|
11
11
|
### Output Style
|
|
12
|
+
|
|
12
13
|
- **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
|
|
13
14
|
- Write natural, descriptive code without meta-commentary about the development process
|
|
14
15
|
- The code should speak for itself - TDD is the process, not the product
|
|
@@ -212,17 +213,18 @@ Current worktrees: !git worktree list`
|
|
|
212
213
|
</execution_steps>
|
|
213
214
|
|
|
214
215
|
<important_notes>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
216
|
+
|
|
217
|
+
- Uses GitHub PR merge status as the ONLY reliable way to verify if a branch was merged
|
|
218
|
+
- DOES NOT use "git branch --merged" command as it's unreliable for merge verification
|
|
219
|
+
- Only processes branches with PRs that were definitively merged to main
|
|
220
|
+
- Skips worktrees without merged PRs and continues to next oldest candidate
|
|
221
|
+
- Checks and optionally closes related GitHub issues
|
|
222
|
+
- Prioritizes oldest worktrees by directory age first for systematic cleanup
|
|
223
|
+
- Warns about very recent worktrees (created within 24 hours) to avoid cleaning active work
|
|
224
|
+
- Preserves useful development settings before deletion
|
|
225
|
+
- Requires explicit confirmation before any destructive actions
|
|
226
|
+
- Handles locked worktrees automatically
|
|
227
|
+
- Processes one worktree at a time to maintain control
|
|
228
|
+
- Must be run from main branch for safety
|
|
229
|
+
- Works with standard GitHub repository URLs (owner/repo format)
|
|
230
|
+
</important_notes>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wbern/claude-instructions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "TDD workflow commands for Claude Code CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./bin/cli.js",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"knip": "^5.70.2",
|
|
51
51
|
"lint-staged": "^16.2.7",
|
|
52
52
|
"markdown-magic": "^4.0.4",
|
|
53
|
+
"markdownlint-cli": "^0.46.0",
|
|
53
54
|
"prettier": "^3.7.2",
|
|
54
55
|
"tsup": "^8.5.1",
|
|
55
56
|
"tsx": "^4.20.6",
|