@wbern/claude-instructions 2.2.0 → 2.3.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/README.md CHANGED
@@ -145,10 +145,10 @@ flowchart TB
145
145
  Start --> Step1[<b>1. PLAN</b>]
146
146
 
147
147
  Step1 --> Issue[📋 /issue<br/>Have GitHub issue<br/><i>Requires: GitHub MCP</i>]
148
- Step1 --> Plan[📝 /plan<br/>No issue yet<br/><i>Optional: Beads MCP</i>]
148
+ Step1 --> CreateIssues[📝 /create-issues<br/>No issue yet<br/><i>Optional: Beads MCP</i>]
149
149
 
150
150
  Issue --> Step2[<b>2. CODE with TDD</b>]
151
- Plan --> Step2
151
+ CreateIssues --> Step2
152
152
 
153
153
  Step2 -->|Manual| Red[🔴 /red<br/>Write failing test]
154
154
  Red --> Green[🟢 /green<br/>Make it pass]
@@ -186,7 +186,7 @@ flowchart TB
186
186
  ### Planning
187
187
 
188
188
  - `/issue` - Analyze GitHub issue and create TDD implementation plan
189
- - `/plan` - Create implementation plan from feature/requirement with PRD-style discovery and TDD acceptance criteria
189
+ - `/create-issues` - Create implementation plan from feature/requirement with PRD-style discovery and TDD acceptance criteria
190
190
 
191
191
  ### Test-Driven Development
192
192
 
package/bin/cli.js CHANGED
@@ -1336,9 +1336,15 @@ async function main(args) {
1336
1336
 
1337
1337
  If Claude Code is already running, restart it to pick up the new commands.
1338
1338
 
1339
- Try it out: /red clicking submit with empty email shows validation error
1339
+ Try it out:
1340
1340
 
1341
- Happy TDD'ing!`
1341
+ /kata \u2192 Pick a practice challenge
1342
+ /red 1 returns "1" \u2192 Write first failing test for your kata
1343
+ /green \u2192 Make it pass
1344
+
1345
+ See a full example: https://github.com/wbern/claude-instructions#example-conversations
1346
+
1347
+ Happy coding!`
1342
1348
  );
1343
1349
  }
1344
1350
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wbern/claude-instructions",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "TDD workflow commands for Claude Code CLI",
5
5
  "type": "module",
6
6
  "bin": "./bin/cli.js",
@@ -29,7 +29,7 @@
29
29
  "scripts": {
30
30
  "build": "pnpm build:readme && pnpm build:commands && pnpm exec markdownlint --fix .claude/commands/*.md",
31
31
  "build:readme": "tsx scripts/build.ts",
32
- "build:commands": "pnpm build:cli && node bin/cli.js --scope=project --flags=beads,no-plan-files --include-contrib-commands --overwrite",
32
+ "build:commands": "pnpm build:cli && rm -f .claude/commands/*.md && node bin/cli.js --scope=project --flags=beads,no-plan-files --include-contrib-commands --overwrite",
33
33
  "build:cli": "tsup",
34
34
  "test:manual": "pnpm build:cli && TMPDIR=$(mktemp -d) && pnpm pack --pack-destination $TMPDIR && cd $TMPDIR && tar -xzf *.tgz && cd package && pnpm i && node bin/cli.js",
35
35
  "test:quick-manual": "pnpm build:cli && node bin/cli.js",
@@ -45,6 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@eslint/js": "^9.39.1",
48
+ "@semantic-release/git": "^10.0.1",
48
49
  "@types/fs-extra": "^11.0.4",
49
50
  "@types/node": "^24.10.1",
50
51
  "@vitest/coverage-v8": "^4.0.15",
@@ -57,6 +58,7 @@
57
58
  "markdownlint-cli": "^0.46.0",
58
59
  "picocolors": "^1.1.1",
59
60
  "prettier": "^3.7.2",
61
+ "semantic-release": "^25.0.2",
60
62
  "tsup": "^8.5.1",
61
63
  "tsx": "^4.20.6",
62
64
  "typescript": "^5.9.3",
@@ -77,7 +79,16 @@
77
79
  "@semantic-release/commit-analyzer",
78
80
  "@semantic-release/release-notes-generator",
79
81
  "@semantic-release/npm",
80
- "@semantic-release/github"
82
+ "@semantic-release/github",
83
+ [
84
+ "@semantic-release/git",
85
+ {
86
+ "assets": [
87
+ "package.json"
88
+ ],
89
+ "message": "chore(release): ${nextRelease.version}"
90
+ }
91
+ ]
81
92
  ]
82
93
  }
83
94
  }
package/src/README.md CHANGED
@@ -135,10 +135,10 @@ flowchart TB
135
135
  Start --> Step1[<b>1. PLAN</b>]
136
136
 
137
137
  Step1 --> Issue[📋 /issue<br/>Have GitHub issue<br/><i>Requires: GitHub MCP</i>]
138
- Step1 --> Plan[📝 /plan<br/>No issue yet<br/><i>Optional: Beads MCP</i>]
138
+ Step1 --> CreateIssues[📝 /create-issues<br/>No issue yet<br/><i>Optional: Beads MCP</i>]
139
139
 
140
140
  Issue --> Step2[<b>2. CODE with TDD</b>]
141
- Plan --> Step2
141
+ CreateIssues --> Step2
142
142
 
143
143
  Step2 -->|Manual| Red[🔴 /red<br/>Write failing test]
144
144
  Red --> Green[🟢 /green<br/>Make it pass]
@@ -9,6 +9,12 @@ _order: 99
9
9
  <!-- docs INCLUDE path='src/fragments/universal-guidelines.md' -->
10
10
  <!-- /docs -->
11
11
 
12
+ <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
+ <!-- /docs -->
14
+
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
12
18
  Create a new custom command in `src/sources/` following the patterns below. Assess the structure carefully using the below info but also researching the repo.
13
19
 
14
20
  Command to create: $ARGUMENTS
@@ -12,6 +12,9 @@ _order: 3
12
12
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
13
  <!-- /docs -->
14
14
 
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
15
18
  # Slash Command Creator Guide
16
19
 
17
20
  ## How This Command Works
@@ -15,6 +15,9 @@ _selectedByDefault: false
15
15
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
16
16
  <!-- /docs -->
17
17
 
18
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
19
+ <!-- /docs -->
20
+
18
21
  **Ship/Show/Ask Pattern - ASK**
19
22
 
20
23
  Ask is for complex changes that need team discussion and approval. Examples:
@@ -16,6 +16,9 @@ Execute the user's requested task (e.g., posting PR comments, GitHub issue comme
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  ## Instructions
20
23
 
21
24
  Arguments: $ARGUMENTS
@@ -12,6 +12,9 @@ _order: 2
12
12
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
13
  <!-- /docs -->
14
14
 
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
15
18
  Create multiple atomic git commits, committing the smallest possible logical unit at a time
16
19
 
17
20
  Include any of the following info if specified: $ARGUMENTS
@@ -19,6 +19,9 @@ _requested-tools:
19
19
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
20
20
  <!-- /docs -->
21
21
 
22
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
23
+ <!-- /docs -->
24
+
22
25
  # Code Review
23
26
 
24
27
  Perform a code review using dynamic category detection.
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  description: Create implementation plan from feature/requirement with PRD-style discovery and TDD acceptance criteria
3
3
  argument-hint: <feature/requirement description or GitHub issue URL/number>
4
- _hint: Plan feature
4
+ _hint: Create issues
5
5
  _category: Planning
6
6
  _order: 2
7
7
  ---
8
8
 
9
- # Plan: PRD-Informed Task Planning for TDD
9
+ # Create Issues: PRD-Informed Task Planning for TDD
10
10
 
11
11
  Create structured implementation plan that bridges product thinking (PRD) with test-driven development.
12
12
 
@@ -16,11 +16,14 @@ Create structured implementation plan that bridges product thinking (PRD) with t
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  ## Input
20
23
 
21
24
  $ARGUMENTS
22
25
 
23
- (If no input provided, check conversation context<!-- docs INCLUDE path='src/fragments/plan-beads-context-hint.md' featureFlag='beads' -->
26
+ (If no input provided, check conversation context<!-- docs INCLUDE path='src/fragments/create-issues-beads-context-hint.md' featureFlag='beads' -->
24
27
  <!-- /docs -->)
25
28
 
26
29
  ## Input Processing
@@ -69,7 +72,7 @@ Extract from GitHub issue:
69
72
  <!-- docs INCLUDE path='src/fragments/discovery-phase.md' -->
70
73
  <!-- /docs -->
71
74
 
72
- <!-- docs INCLUDE path='src/fragments/plan-beads-details.md' featureFlag='beads' -->
75
+ <!-- docs INCLUDE path='src/fragments/create-issues-beads-details.md' featureFlag='beads' -->
73
76
  <!-- /docs -->
74
77
 
75
78
  ## Key Principles
@@ -89,7 +92,7 @@ Extract from GitHub issue:
89
92
 
90
93
  ## Integration with Other Commands
91
94
 
92
- - **Before /plan**: Use `/spike` if you need technical exploration first
93
- - **After /plan**: Use `/red` to start TDD on first task
94
- <!-- docs INCLUDE path='src/fragments/plan-beads-integration.md' featureFlag='beads' -->
95
+ - **Before /create-issues**: Use `/spike` if you need technical exploration first
96
+ - **After /create-issues**: Use `/red` to start TDD on first task
97
+ <!-- docs INCLUDE path='src/fragments/create-issues-beads-integration.md' featureFlag='beads' -->
95
98
  <!-- /docs -->
@@ -16,6 +16,9 @@ $ARGUMENTS
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
20
23
  <!-- /docs -->
21
24
 
@@ -12,6 +12,9 @@ _order: 11
12
12
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
13
  <!-- /docs -->
14
14
 
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
15
18
  Analyze the current conversation context and identify things that have not yet been addressed. Look for:
16
19
 
17
20
  1. **Incomplete implementations** - Code that was started but not finished
@@ -16,6 +16,9 @@ $ARGUMENTS
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
20
23
  <!-- /docs -->
21
24
 
@@ -14,6 +14,9 @@ Analyze GitHub issue and create TDD implementation plan.
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  Process:
18
21
 
19
22
  1. Get Issue Number
@@ -22,6 +22,9 @@ Generate a complete TDD practice setup:
22
22
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
23
23
  <!-- /docs -->
24
24
 
25
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
26
+ <!-- /docs -->
27
+
25
28
  ## Input
26
29
 
27
30
  $ARGUMENTS
package/src/sources/pr.md CHANGED
@@ -14,6 +14,9 @@ _order: 5
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  Create a pull request for the current branch using GitHub MCP tools.
18
21
 
19
22
  ## Workflow
@@ -16,6 +16,9 @@ $ARGUMENTS
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
20
23
  <!-- /docs -->
21
24
 
@@ -14,6 +14,9 @@ Apply this document (specifically the Refactor phase), to the info given by user
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
18
21
  <!-- /docs -->
19
22
 
@@ -15,6 +15,9 @@ _selectedByDefault: false
15
15
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
16
16
  <!-- /docs -->
17
17
 
18
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
19
+ <!-- /docs -->
20
+
18
21
  **Ship/Show/Ask Pattern - SHIP**
19
22
 
20
23
  Ship is for small, obvious changes that don't need code review. Examples:
@@ -15,6 +15,9 @@ _selectedByDefault: false
15
15
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
16
16
  <!-- /docs -->
17
17
 
18
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
19
+ <!-- /docs -->
20
+
18
21
  **Ship/Show/Ask Pattern - SHOW**
19
22
 
20
23
  Show is for changes that teammates should see, but don't require approval. Examples:
@@ -16,6 +16,9 @@ $ARGUMENTS
16
16
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
17
17
  <!-- /docs -->
18
18
 
19
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
20
+ <!-- /docs -->
21
+
19
22
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
20
23
  <!-- /docs -->
21
24
 
@@ -12,6 +12,9 @@ _order: 10
12
12
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
13
  <!-- /docs -->
14
14
 
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
15
18
  Create a concise summary of the current conversation suitable for transferring context to a new conversation.
16
19
 
17
20
  Additional info: $ARGUMENTS
@@ -12,6 +12,9 @@ _order: 45
12
12
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
13
13
  <!-- /docs -->
14
14
 
15
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
16
+ <!-- /docs -->
17
+
15
18
  <!-- docs INCLUDE path='src/fragments/fallback-arguments-beads.md' featureFlag='beads' elsePath='src/fragments/fallback-arguments.md' -->
16
19
  <!-- /docs -->
17
20
 
@@ -14,6 +14,9 @@ _order: 1
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  <!-- docs INCLUDE path='src/fragments/tdd-fundamentals.md' -->
18
21
  <!-- /docs -->
19
22
 
@@ -14,6 +14,9 @@ _order: 1
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  Create a new git worktree for branch: $ARGUMENTS
18
21
 
19
22
  <current_state>
@@ -14,6 +14,9 @@ _order: 2
14
14
  <!-- docs INCLUDE path='src/fragments/beads-awareness.md' featureFlag='beads' -->
15
15
  <!-- /docs -->
16
16
 
17
+ <!-- docs INCLUDE path='src/fragments/no-plan-files.md' featureFlag='no-plan-files' -->
18
+ <!-- /docs -->
19
+
17
20
  Clean up merged worktrees by finding the oldest merged branch, consolidating settings, and removing stale worktrees.
18
21
 
19
22
  Additional info: $ARGUMENTS