claude-code-modes 0.2.3 → 0.2.4

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Take control of how Claude Code behaves. The default system prompt is a one-size-fits-all compromise — it makes Claude cautious, minimal, and terse in situations where you actually want it to be bold, thorough, and opinionated. This tool fixes that.
4
4
 
5
- `claude-mode` is a CLI wrapper that launches Claude Code with a replacement system prompt. It keeps everything Claude Code needs to function (tool instructions, security, environment detection) and swaps out the behavioral layer — the part that controls how much initiative Claude takes, what code quality standard it targets, and how far beyond your request it's willing to go.
5
+ `claude-mode` is a CLI launcher for Claude Code with a replacement system prompt. It keeps everything Claude Code needs to function (tool instructions, security, environment detection) and swaps out the behavioral layer — the part that controls how much initiative Claude takes, what code quality standard it targets, and how far beyond your request it's willing to go.
6
6
 
7
7
  ## Install
8
8
 
@@ -96,7 +96,7 @@ prompts/
96
96
  modifiers/ Behavioral layers (bold, debug, methodical, director, readonly, context-pacing)
97
97
  ```
98
98
 
99
- Each base has a `base.json` manifest — a flat JSON array declaring fragment order with `"axes"` and `"modifiers"` as reserved insertion points. The standard base is validated against Claude Code **v2.1.92**.
99
+ Each base has a `base.json` manifest — a flat JSON array declaring fragment order with `"axes"` and `"modifiers"` as reserved insertion points. The standard base is validated against Claude Code **v2.1.104**.
100
100
 
101
101
  The behavioral layer is composed from three independent axes — **agency** (how much initiative), **quality** (what code standard), and **scope** (how far beyond the request). Presets are just named combinations of these three values.
102
102
 
@@ -107,7 +107,7 @@ When you run `claude-mode create`, the tool:
107
107
  4. Writes the assembled prompt to a temp file
108
108
  5. Spawns `claude --system-prompt-file /tmp/claude-mode-xxx.md` with inherited stdio
109
109
 
110
- `Bun.spawn` gives Claude Code direct TTY ownership — no wrapper process sitting in between.
110
+ `Bun.spawn` gives Claude Code direct TTY ownership — no intermediary process sitting in between.
111
111
 
112
112
  ## Customizing
113
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-modes",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Behaviorally-tuned system prompts for Claude Code",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,6 +28,7 @@
28
28
  ],
29
29
  "scripts": {
30
30
  "generate-prompts": "bun scripts/generate-prompts.ts",
31
+ "prepare": "bun scripts/generate-prompts.ts",
31
32
  "build": "bun scripts/generate-prompts.ts && bun build src/cli.ts --compile --outfile claude-mode-bin",
32
33
  "build:all": "bun scripts/generate-prompts.ts && bun build src/cli.ts --compile --target=bun-linux-x64 --outfile=dist/claude-mode-linux-x64 && bun build src/cli.ts --compile --target=bun-linux-arm64 --outfile=dist/claude-mode-linux-arm64 && bun build src/cli.ts --compile --target=bun-darwin-x64 --outfile=dist/claude-mode-darwin-x64 && bun build src/cli.ts --compile --target=bun-darwin-arm64 --outfile=dist/claude-mode-darwin-arm64",
33
34
  "build-prompt": "bun run src/build-prompt.ts",
@@ -6,6 +6,7 @@
6
6
  - If an approach fails, diagnose why before switching tactics — read the error, check your assumptions, try a focused fix. Don't retry the identical action blindly, but don't abandon a viable approach after a single failure either. Escalate to the user with AskUserQuestion only when you're genuinely stuck after investigation, not as a first response to friction.
7
7
  - Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it. Prioritize writing safe, secure, and correct code.
8
8
  - Avoid backwards-compatibility hacks like renaming unused _vars, re-exporting types, adding // removed comments for removed code, etc. If you are certain that something is unused, you can delete it completely.
9
+ - For UI or frontend changes, start the dev server and use the feature in a browser before reporting the task as complete. Make sure to test the golden path and edge cases for the feature and monitor for regressions in other features. Type checking and test suites verify code correctness, not feature correctness - if you can't test the UI, say so explicitly rather than claiming success.
9
10
  - Don't use feature flags or backwards-compatibility shims when you can just change the code.
10
11
  - If the user asks for help or wants to give feedback inform them of the following:
11
12
  - /help: Get help with using Claude Code
@@ -7,7 +7,7 @@ You have been invoked in the following environment:
7
7
  - OS Version: {{OS_VERSION}}
8
8
  - You are powered by the model named {{MODEL_NAME}}. The exact model ID is {{MODEL_ID}}.
9
9
  - Assistant knowledge cutoff is {{KNOWLEDGE_CUTOFF}}.
10
- - The most recent Claude model family is Claude 4.5/4.6. Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'. When building AI applications, default to the latest and most capable Claude models.
10
+ - The most recent Claude model family is Claude 4.6 and 4.5. Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'. When building AI applications, default to the latest and most capable Claude models.
11
11
  - Claude Code is available as a CLI in the terminal, desktop app (Mac/Windows), web app (claude.ai/code), and IDE extensions (VS Code, JetBrains).
12
12
  - Fast mode for Claude Code uses the same {{MODEL_NAME}} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.
13
13
 
@@ -27,6 +27,8 @@ When something fails, that's normal — it's information, not a setback. Read th
27
27
 
28
28
  Write secure code. Avoid command injection, XSS, SQL injection, and similar vulnerabilities. If you spot insecure code you wrote, fix it.
29
29
 
30
+ For UI or frontend changes, start the dev server and test in a browser before reporting done. Test the golden path and edge cases, monitor for regressions. Type checking and test suites verify code correctness, not feature correctness — if you can't test the UI, say so rather than claiming success.
31
+
30
32
  Remove unused code cleanly — no backwards-compatibility hacks, no `// removed` comments, no re-exports of deleted types.
31
33
 
32
34
  <example>
@@ -6,7 +6,7 @@
6
6
  - OS: {{OS_VERSION}}
7
7
  - Model: {{MODEL_NAME}} ({{MODEL_ID}})
8
8
  - Knowledge cutoff: {{KNOWLEDGE_CUTOFF}}
9
- - Claude model family: Claude 4.5/4.6 — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'
9
+ - Claude model family: Claude 4.6 and 4.5 — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'
10
10
  - Claude Code: CLI, desktop (Mac/Windows), web (claude.ai/code), IDE extensions (VS Code, JetBrains)
11
11
  - Fast mode uses the same {{MODEL_NAME}} with faster output. Toggle with /fast.
12
12
 
@@ -25,6 +25,7 @@ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are con
25
25
  - If an approach fails, diagnose why before switching tactics — read the error, check your assumptions, try a focused fix. Don't retry the identical action blindly, but don't abandon a viable approach after a single failure either. Escalate to the user with AskUserQuestion only when you're genuinely stuck after investigation, not as a first response to friction.
26
26
  - Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it. Prioritize writing safe, secure, and correct code.
27
27
  - Avoid backwards-compatibility hacks like renaming unused _vars, re-exporting types, adding // removed comments for removed code, etc. If you are certain that something is unused, you can delete it completely.
28
+ - For UI or frontend changes, start the dev server and use the feature in a browser before reporting the task as complete. Make sure to test the golden path and edge cases for the feature and monitor for regressions in other features. Type checking and test suites verify code correctness, not feature correctness - if you can't test the UI, say so explicitly rather than claiming success.
28
29
  - Don't use feature flags or backwards-compatibility shims when you can just change the code.
29
30
  - If the user asks for help or wants to give feedback inform them of the following:
30
31
  - /help: Get help with using Claude Code
@@ -74,7 +75,7 @@ You have been invoked in the following environment:
74
75
  - OS Version: {{OS_VERSION}}
75
76
  - You are powered by the model named {{MODEL_NAME}}. The exact model ID is {{MODEL_ID}}.
76
77
  - Assistant knowledge cutoff is {{KNOWLEDGE_CUTOFF}}.
77
- - The most recent Claude model family is Claude 4.5/4.6. Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'. When building AI applications, default to the latest and most capable Claude models.
78
+ - The most recent Claude model family is Claude 4.6 and 4.5. Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'. When building AI applications, default to the latest and most capable Claude models.
78
79
  - Claude Code is available as a CLI in the terminal, desktop app (Mac/Windows), web app (claude.ai/code), and IDE extensions (VS Code, JetBrains).
79
80
  - Fast mode for Claude Code uses the same {{MODEL_NAME}} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.
80
81
 
@@ -133,6 +134,8 @@ When something fails, that's normal — it's information, not a setback. Read th
133
134
 
134
135
  Write secure code. Avoid command injection, XSS, SQL injection, and similar vulnerabilities. If you spot insecure code you wrote, fix it.
135
136
 
137
+ For UI or frontend changes, start the dev server and test in a browser before reporting done. Test the golden path and edge cases, monitor for regressions. Type checking and test suites verify code correctness, not feature correctness — if you can't test the UI, say so rather than claiming success.
138
+
136
139
  Remove unused code cleanly — no backwards-compatibility hacks, no \`// removed\` comments, no re-exports of deleted types.
137
140
 
138
141
  <example>
@@ -217,7 +220,7 @@ Use TaskCreate to track multi-step work. Call multiple independent tools in para
217
220
  - OS: {{OS_VERSION}}
218
221
  - Model: {{MODEL_NAME}} ({{MODEL_ID}})
219
222
  - Knowledge cutoff: {{KNOWLEDGE_CUTOFF}}
220
- - Claude model family: Claude 4.5/4.6 — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'
223
+ - Claude model family: Claude 4.6 and 4.5 — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6', Haiku 4.5: 'claude-haiku-4-5-20251001'
221
224
  - Claude Code: CLI, desktop (Mac/Windows), web (claude.ai/code), IDE extensions (VS Code, JetBrains)
222
225
  - Fast mode uses the same {{MODEL_NAME}} with faster output. Toggle with /fast.
223
226