Generate custom output style files for Claude Code with proper structure and YAML frontmatter.
Generates custom output style files for Claude Code with YAML frontmatter and structured instructions.
/plugin marketplace add alexanderop/claude-code-builder/plugin install claude-code-builder@claude-code-builderGenerate custom output style files for Claude Code with proper structure and YAML frontmatter.
Inputs:
$1 — STYLE_NAME (optional: name for the output style)--user — Save to user-level directory (~/.claude/output-styles)--project — Save to project-level directory (.claude/output-styles)--description "..." — Brief description of the output styleOutputs: STATUS=<OK|FAIL> PATH=<path> SCOPE=<user|project>
Determine scope:
--user is provided: save to ~/.claude/output-styles/--project is provided: save to .claude/output-styles/--user (user-level)Gather information:
--description, ask user what behavior they wantGenerate output style file using this template:
---
name: {{STYLE_NAME}}
description: {{DESCRIPTION}}
---
# {{STYLE_NAME}} Instructions
You are an interactive CLI tool that helps users with software engineering tasks.
{{CUSTOM_INSTRUCTIONS}}
## Specific Behaviors
{{SPECIFIC_BEHAVIORS}}
## Key Principles
- {{PRINCIPLE_1}}
- {{PRINCIPLE_2}}
- {{PRINCIPLE_3}}
Create the file:
STATUS=OK PATH=<full-path> SCOPE=<user|project>Inform user:
/output-style [style-name]Example 1: Basic usage
/create-output-style
# Claude will ask for style name and description interactively
Example 2: Full specification
/create-output-style "Teaching Assistant" --project --description "Explains concepts step by step with examples"
# STATUS=OK PATH=.claude/output-styles/teaching-assistant.md SCOPE=project
Example 3: User-level style
/create-output-style "Code Reviewer" --user --description "Focuses on thorough code review with best practices"
# STATUS=OK PATH=~/.claude/output-styles/code-reviewer.md SCOPE=user