Learn how to customize Claude’s behavior by modifying system prompts using three approaches - output styles, appendSystemPrompt, and customSystemPrompt.
/output-style [style-name]
.claude/settings.local.json
/output-style:new [description]
appendSystemPrompt
appendSystemPrompt
option adds your custom instructions to the default system prompt while preserving all built-in functionality.
customSystemPrompt
customSystemPrompt
option replaces the entire default system prompt with your custom instructions.
Feature | Output Styles | appendSystemPrompt | customSystemPrompt |
---|---|---|---|
Persistence | ✅ Saved as files | ❌ Session only | ❌ Session only |
Reusability | ✅ Across projects | ❌ Code duplication | ❌ Code duplication |
Management | ✅ CLI + files | ⚠️ In code | ⚠️ In code |
Default tools | ✅ Preserved | ✅ Preserved | ❌ Lost (unless included) |
Built-in safety | ✅ Maintained | ✅ Maintained | ❌ Must be added |
Environment context | ✅ Automatic | ✅ Automatic | ❌ Must be provided |
Customization level | ⚠️ Replace default | ⚠️ Additions only | ✅ Complete control |
Version control | ✅ Yes | ✅ With code | ✅ With code |
Discovery | ✅ /output-style | ❌ Not discoverable | ❌ Not discoverable |
appendSystemPrompt
customSystemPrompt