/lej-output-fixer:stylefrom lej-output-fixer
Lets users pick, switch, clear, or create Claude Code output styles to control tone, verbosity, readability, and formatting.
Ships in lej-output-fixer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are helping the user choose or create an output style. Output styles are native Claude Code features — the chosen style replaces the tone/formatting section of the system prompt. Your job: show a menu, apply the choice, confirm.
Resolve the user's configuration directory once: use the nonempty CLAUDE_CONFIG_DIR environment variable when set, otherwise ~/.claude. Call it USER_CONFIG below; it is a resolved path, not a new environment variable to persist. Use this same directory for user settings, user style discovery and preset creation. A custom profile must not read or edit the inactive ~/.claude profile.
Use Claude Code's resolved catalog rather than maintaining a second list of style names. Check claude --version first. On v2.1.269 or newer, run this read-only local command from the current project directory:
claude --print --no-session-persistence --output-format json --plugin-dir "${CLAUDE_PLUGIN_ROOT}" /output-style
Read the JSON result: it lists the available built-in, plugin, user and project styles, their descriptions, and the current style. Keep each exact reference with its menu entry, including any plugin namespace. The catalog resolves names and precedence for this Claude Code version. Treat its default entry as No output style. Listing styles makes no model request; do not replace the command with a natural-language prompt.
On older versions, gather the catalog from files: read this plugin's output-styles/*.md under ${CLAUDE_PLUGIN_ROOT} and its name from .claude-plugin/plugin.json; add the older built-ins Explanatory and Learning; then read user USER_CONFIG/output-styles/ and project .claude/output-styles/ files, including project directories between the working directory and repository root. Use frontmatter name and description when present; otherwise use the filename without .md as the name. Files without frontmatter are valid styles. For bundled entries, form <plugin-name>:<style-name> references; user and built-in entries use plain names.
Record the actual settings sources for this session and their outputStyle values: project-local overrides shared project overrides USER_CONFIG/settings.json. Do not assume the local file is relative to the working directory: current Claude Code can use the repository root, or the main checkout for a worktree, and also read a legacy local file in the starting directory. Follow the installed host's settings-location rules; identify the controlling file before editing or clearing it. Managed or session overrides may also win; do not change those to force a choice. The catalog can echo a configured reference that no longer exists: if that reference is absent from the available entries, explain that it is unavailable rather than marking it active.
Prefer the AskUserQuestion tool. If it is unavailable or the user prefers text, present the same choices as a numbered list and accept a number or a short answer. Keep the exact catalog reference attached to each choice; the user need not type a namespaced reference.
If the user dismisses the question or asks to cancel, stop without applying the highlighted option or changing settings. If the catalog changes before applying a choice, refresh it, explain any unavailable selection and ask again rather than choosing a substitute silently. For an ambiguous or invalid text reply, clarify the choice without writing settings or making the user re-enter a full reference.
"outputStyle": "<reference>" into USER_CONFIG/settings.json (applies across projects using that profile). Re-read the file immediately before editing and preserve all existing keys with jq or a small python3 round-trip, never a blind overwrite./output-style <reference> as its single command argument, passing the exact selected reference as data, with proper argument quoting. This delegates the local-file location and JSON update to Claude Code. Check the JSON result for errors. On older hosts, edit only the actual project-local settings file identified in Step 1, preserving all other keys. Do not use the native selector for a user-wide choice: it saves at project-local scope.lej-output-fixer:Scannable); bare plugin style names silently do nothing. Built-in and user-created styles use plain names. Do not reconstruct the reference from an abbreviated menu label.outputStyle (local overrides project overrides user), tell the user their choice won't take effect until that override is removed, and offer to remove it.outputStyle key from the identified user/project settings sources, re-reading each file before editing. Confirm with the user before touching a project-level file they may share with a team. Removing a higher-precedence key can expose another style underneath; recheck after each change. Do not delete presets or restore an old whole-file settings snapshot.Interview the user conversationally — a few quick questions, not a form:
Save the agreed answers with scripts/create_preset.py, using Python 3 and a JSON object on stdin. Serialize the answers as JSON; keep user text out of shell arguments. For example:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/style/scripts/create_preset.py" <<'JSON'
{"name":"Their Name","description":"One line, shown in pickers","instructions":"- Max 3 sentences per paragraph.\n- Define unfamiliar terms."}
JSON
The helper quotes metadata, keeps coding instructions by default, and creates a new file in USER_CONFIG/output-styles/. It preserves existing presets and settings. On success, read its JSON path and reference and say that the preset was saved. Separately refresh the catalog and controlling settings to report the effective selection: an existing setting may already name the newly available preset. Offer activation through Step 3 if needed; saving alone does not prove which style is effective. A filename rename does not change a frontmatter name; a deleted preset can leave a stale settings reference. Use the refreshed catalog rather than deriving a new reference from a filename or automatically repairing settings after an update or rollback.
Keep the agreed name, description, instructions and coding-instruction choice in this conversation until the user finishes or cancels. After a failed save, identify the affected field or file in plain text, explain the known correction and say whether a save was confirmed. A raw traceback or color alone is not the user-facing error. Do not start the interview over or ask for unchanged answers again.
Before each retry, summarize just the correction and wait for the user's choice. After a confirmed save, refresh and report the effective selection, then offer activation with the exact reference if needed. If the user cancels, make no further writes; say whether a preset was already saved and that cancellation does not remove it. Do not promise recovery of interview answers across a closed session.
Only pass "keep_coding_instructions": false if the user explicitly wants to replace Claude Code's software-engineering instructions entirely (warn them that's what false does). Write their rules as clear imperatives: "Max 3 sentences per paragraph" beats "be concise".
If Python 3 is unavailable, write the same file directly: encode the name and description as quoted YAML strings, keep keep-coding-instructions: true by default, and create a new file without overwriting an existing path. Save only in USER_CONFIG/output-styles/, never in this plugin, so their preset survives updates. Refresh the catalog to verify the exact name before offering activation.
force-for-plugin on anything.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub justfinethanku/lej-output-fixer --plugin lej-output-fixerOther plugins' skills for the same job