From ai-helpers
Design Claude Code output styles: persona, tone, and behavioral rules that replace the default system prompt. Invoke whenever task involves any interaction with output styles — creating, editing, evaluating, or changing how Claude communicates.
npx claudepluginhub xobotyi/cc-foundry --plugin ai-helpersThis skill uses the workspace's default tool permissions.
Output styles replace Claude Code's system prompt, transforming the main agent's personality while retaining all tools
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Output styles replace Claude Code's system prompt, transforming the main agent's personality while retaining all tools and capabilities.
**Output styles are system prompts.** Before creating or improving an output style, invoke `prompt-engineering` to load instruction design techniques.Skill(ai-helpers:prompt-engineering)
Skip only for trivial edits (typos, formatting).
${CLAUDE_SKILL_DIR}/references/spec.md] Frontmatter field
details, storage paths, activation methods, file naming rules${CLAUDE_SKILL_DIR}/references/creation.md] Full style templates by pattern,
testing prompts, creation workflow steps${CLAUDE_SKILL_DIR}/references/evaluation.md] Per-dimension scoring rubrics (1-10),
weighted scoring formula, testing protocol${CLAUDE_SKILL_DIR}/references/iteration.md] Detailed fix patterns with
before/after, refinement techniques, version control${CLAUDE_SKILL_DIR}/references/examples.md] 5 complete styles with
dimensional scoring and improvement notesprompt-engineering skill Instruction design fundamentalsOutput styles replace the default system prompt — they don't augment it.
Replaced:
keep-coding-instructions: true)Preserved:
Key distinction from other features:
| Feature | Purpose | System Prompt Impact |
|---|---|---|
| Output Style | Replace main agent personality | Replaces entirely |
| CLAUDE.md | Add project context | Added as user message after |
--append-system-prompt | Add instructions | Appends to system prompt |
| Custom Agents | Specialized sub-tasks | Separate agent context |
| Skills | On-demand task workflows | Loads when triggered |
Output styles are the ONLY way to change the main agent's core personality.
keep-coding-instructionsThis field controls whether Claude retains its software engineering guidance.
false: Non-coding domain (research, content) — remove irrelevant coding guidancetrue: Coding with different tone — keep coding skills, change personalitytrue: Teaching/learning coding — need coding knowledge for lessonsfalse: General assistant — broader focus, no coding biasDefault is false. Set true when the style is a personality adjustment for coding work rather than a domain shift.
~/.claude/output-styles/ # User-level (all projects)
my-style.md
.claude/output-styles/ # Project-level (this repo)
team-style.md
Filename becomes the style identifier (without .md). Activate with /output-style style-name or via settings.
Project-level styles with the same name override user-level.
Full format details, frontmatter fields, activation methods: see ${CLAUDE_SKILL_DIR}/references/spec.md.
Output styles are system prompts. Five components determine quality:
The persona is the single highest-leverage element. A vague persona produces inconsistent behavior; a clear one anchors every response.
Vague (fails): "Be helpful and professional."
Clear (works):
You are a senior technical architect who communicates directly and
values precision over politeness.
The test: could two people reading this persona imagine the same character? If not, add specificity.
Abstract instructions ("communicate clearly") get ignored. Concrete behaviors are testable and unambiguous.
## Communication Rules
- Acknowledge valid points with "Correct" or "Valid point"
- State disagreements as "I see it differently because..."
- Never use "I'd be happy to" or "Great question"
- Open with the answer, not pleasantries
Each rule should be verifiable: you can check whether a response complies or not. If you can't verify it, make it more specific.
Examples are the most reliable way to communicate expected behavior. Show contrast between default Claude and the target style:
## Tone Examples
User: "Can you help me with this code?"
Default Claude (avoid):
"Of course! I'd be happy to help you with your code.
Let me take a look at what you've got..."
This Style (use):
"Looking at the code now. Three issues:
1. [specific issue]
2. [specific issue]
3. [specific issue]"
Include at least one contrast example. Cover the interaction types most likely to trigger default behavior (greetings, requests for help, disagreements).
Without format guidance, response structure varies unpredictably. Provide templates for common response types:
## Response Format
When providing solutions:
1. State the problem as you understand it
2. List constraints and assumptions
3. Provide recommendation with rationale
4. Note alternatives considered
Styles drift mid-conversation. Explicit persistence language prevents reversion:
## Consistency
Maintain this style throughout the entire conversation. Do not
revert to default patterns even if:
- The topic changes
- The user asks follow-up questions
- Multiple turns have passed
- The task becomes complex or frustrating
If uncertain, default to MORE adherence to this style, not less.
Instructions near the end of the prompt are followed more reliably. Place the rules you absolutely cannot afford to have ignored last:
## Critical Rules
These rules override all other guidance:
- Never apologize for limitations
- Never use emoji unless user does first
- Always surface concerns before proceeding
When a style has rules that could conflict (e.g., "be concise" vs. "explain your reasoning"), add an explicit priority order:
## Priority Hierarchy
When rules conflict, follow this order:
1. Safety and accuracy
2. Style persona
3. Format requirements
4. Length constraints
Direct Professional: Remove sycophancy, focus on substance over pleasantries. Set keep-coding-instructions: true.
Domain Specialist: Replace coding expertise with domain-specific knowledge (content strategy, research analysis, UX
design). Set keep-coding-instructions: false.
Interaction Mode: Change how Claude engages (voice-first, educational quiz, pair programming mentor). Set
keep-coding-instructions based on whether the mode involves coding.
Full templates for each pattern: see ${CLAUDE_SKILL_DIR}/references/creation.md. Scored examples: see
${CLAUDE_SKILL_DIR}/references/examples.md.
Six dimensions, three weighted 2x (high-leverage):
keep-coding-instructions set right? Does the style know what it's for?Must have (critical): Persona defined, core behaviors listed, at least one tone example, output format specified.
Should have: Multiple contrast examples, explicit "avoid" list, format templates, keep-coding-instructions
considered.
Detailed per-dimension scoring rubrics and testing protocol: see ${CLAUDE_SKILL_DIR}/references/evaluation.md.
Observe → Diagnose → Hypothesize → Modify (ONE change) → Test → Repeat
Make ONE targeted change per iteration. Multiple changes make debugging impossible.
Iterate when the core concept is sound, issues are specific, and the style works in most cases.
Rewrite when the persona is wrong for the use case, more than 50% of tests fail, or conflicting rules have made the style unmaintainable.
Detailed fix patterns with before/after examples: see ${CLAUDE_SKILL_DIR}/references/iteration.md.
TODO(human) markersmkdir -p ~/.claude/output-styles
Create style-name.md:
---
name: Style Display Name
description: Brief description for the menu
---
# Style Name
[Who Claude is in this style]
## Core Behaviors
- [Explicit rules]
## Examples
[Input/output pairs showing tone contrast]
## Consistency
Maintain this style throughout the entire conversation.
## Critical Rules
[Most important rules — placement at end improves compliance]
Activate: /output-style style-name
Before deploying:
keep-coding-instructions set appropriatelyprompt-engineering — load first for instruction design techniques (output styles are system prompts)skill-engineering — skills extend capabilities; output styles change personality — different mechanisms,
complementarysubagent-engineering — subagents have their own system prompts; output styles modify the main agent'sclaude-code-sdk — consult for output style frontmatter fields, activation methods, and keep-coding-instructions
details