/claude-ui-kit:statuslinefrom claude-ui-kit
Use when the user invokes /statusline or asks to inspect, customize, or reset their Claude Code status line. Do NOT use for unrelated UI customization.
Ships in claude-ui-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Inspect and customize the Claude Code status line. The plugin ships an opinionated default; this skill helps the user change it without forcing a vocabulary on them.
Identify the active statusLine. Read settings.json layers in precedence order (highest first):
<project>/.claude/settings.local.json<project>/.claude/settings.json~/.claude/settings.jsonThe first one with a statusLine.command is the active script. If none, before offering to install claude-ui-kit's default, check that bootstrap has provisioned the plugin: the synced script ~/.claude/plugins/data/plugins-kit/claude-ui-kit/scripts/statusline.sh (equivalently the plugin's ~/.claude/plugins/data/plugins-kit/claude-ui-kit/bootstrap.log) must exist. If it is missing, do not offer the default -- tell the user "the bootstrap plugin hasn't provisioned claude-ui-kit -- install/enable plugins-kit:bootstrap and start a new session" and stop. Only when the synced script is present, tell the user there is no statusLine configured and offer to install claude-ui-kit's default.
Read the script at that command path. Identify what it displays (components) and how (colors, thresholds, separators). Summarize for the user in plain language. Example:
Your current status line shows directory, context %, 5-hour usage, and 7-day usage, separated by
│. All three percentages are capacity remaining (higher is better). The context number turns orange at or below 70% and red at or below 30%; the 5-hour and 7-day numbers turn orange at or below 30% and red at or below 10%.
Ask if they want to change anything. Don't suggest specific changes ("would you like a gradient?"). Just: "Want to customize anything?"
Wait for the user. If they ask for a specific change, apply it (see Editing rules below). If they decline, stop.
When the user requests a change:
/claude-ui-kit/scripts/), do NOT edit it in place -- bootstrap will overwrite it on the next session. Instead:
~/.claude/statusline.sh (or <project>/.claude/statusline.sh if the user wants a project-scoped version). The script resolves its segments directory relative to its OWN location (BASH_SOURCE), so a copy outside the plugin data dir loses every plugin-provided segment silently. Set STATUSLINE_SEGMENTS_DIR (env var in settings.json) to ~/.claude/plugins/data/plugins-kit/claude-ui-kit/segments to keep them.statusLine.command to the new path.<plugin_data_dir>/customized.flag so bootstrap stops trying to manage it. The data dir is ~/.claude/plugins/data/plugins-kit/claude-ui-kit/.DATA=$(cat), jq parses session JSON from stdin) and the basic output discipline (single line, ANSI escapes, printf '%s' -- not echo -e, which interprets backslashes in the DATA, not just in the color codes, and corrupts a Windows cwd like D:\dev\env-config).<project>/.claude/; if it shouldn't, it doesn't. Specifically:
systemmessage.*.txt) -> <cwd>/.local-data/claude-ui-kit/.customized.flag) -> ~/.claude/plugins/data/plugins-kit/claude-ui-kit/.settings.local.json is the one exception: machine-specific but lives in .claude/ because the Claude Code harness reads it from there./tmp or other ad-hoc paths.statusLine.command on every platform -- the exact string
scripts/install_statusline.py emits:
bash ~/.claude/plugins/data/plugins-kit/claude-ui-kit/scripts/statusline.sh.
No absolute home, no drive letter, no .exe, and the ~ unquoted.
~/.claude/settings.json is shared across machines; an absolute form makes
every machine rewrite it and the file never stops going dirty. The
installer's self-heal rewrites any other form of our command back to this
one on the next SessionStart, so a hand-written absolute Git Bash command
never sticks -- it only churns. The bash prefix is deliberate: it runs
under Git Bash and under a non-shell launcher alike. Which launcher Claude
Code uses on Windows is undocumented; if a Windows user reports a blank bar
with this string in place, fix _build_command in the installer, do not
diverge here.The user's request is the source of truth for what to change. Don't invent extra features. Examples of good behavior:
| User says | Do |
|---|---|
| "Make the context bar a yellow progress bar" | Replace the 🧠 NN% text with a 10-cell filled-block bar in yellow (ANSI 226). Keep everything else. |
| "Drop the 7-day percentage" | Remove the 📅 block. Don't ask if they also want to reformat the others. |
| "Use a powerline arrow instead of the pipe" | Swap │ for (powerline arrow) wherever it appears. Don't redesign. |
| "Reset to default" | Delete the user-owned script and the customized.flag, point settings.json back at <data_dir>/scripts/statusline.sh (claude-ui-kit's data dir). |
Don't ask about themes, gradients, or other concepts the user hasn't mentioned. The reference docs below list common patterns -- load them only when the user's request is specific enough to need them.
technique_skill:
_schema_version: "1"
trigger_model: user-only
identity: Help the user inspect and customize their Claude Code status line script.
scope:
covers:
- explaining what the current statusline displays
- applying user-requested edits to the script (components, colors, thresholds, separators)
- resetting back to claude-ui-kit's default
- copying the plugin default into a user-owned location for editing
excludes:
- volunteering styling concepts the user hasn't mentioned
- editing the script in the plugin data dir (bootstrap overwrites it)
- changing settings.json layers other than the one holding the active statusLine
techniques:
- id: inspect
name: Inspect current statusline
keywords: [/statusline, what is my statusline, current statusline, explain my statusline]
goal: Tell the user what their current statusline displays, in plain language.
steps:
- n: 1
action: Walk settings.json layers (project-local -> project -> user) and find the first one with statusLine.command.
- n: 2
action: Read the script at that path and identify components, colors, thresholds, separators.
- n: 3
action: Summarize in plain language and ask whether they want to change anything.
gotchas:
- Do not suggest specific changes; just ask "Want to customize anything?".
- If no statusLine is configured anywhere, offer to install claude-ui-kit's default -- but ONLY if the synced script ~/.claude/plugins/data/plugins-kit/claude-ui-kit/scripts/statusline.sh (or the plugin's bootstrap.log) exists. If it is missing, bootstrap hasn't provisioned claude-ui-kit: tell the user to install/enable plugins-kit:bootstrap and start a new session, and stop -- do not offer a default that isn't on disk.
- id: edit
name: Apply a user-requested edit
keywords: [change, customize, edit, swap, replace, drop, add, color, threshold, progress bar, separator]
goal: Apply exactly the change the user requested, without volunteering extras.
steps:
- n: 1
action: If the active script lives in the plugin data dir, copy it to a user-owned location and point settings.json at the copy.
- n: 2
action: Touch customized.flag in the plugin data dir so bootstrap stops managing it.
- n: 3
action: Apply the requested edit, preserving the input contract (DATA=$(cat); jq from stdin) and single-line output.
- n: 4
action: Verify by piping a small fake JSON payload through the script and showing the rendered output.
gotchas:
- Never edit the in-plugin script in place; bootstrap overwrites it.
- Do not invent extra features (themes, gradients, etc.) the user did not ask for.
- Project-specific data goes under <cwd>/.local-data/claude-ui-kit/, not /tmp.
- id: reset
name: Reset to claude-ui-kit default
keywords: [reset, restore default, undo customization, default statusline]
goal: Restore the plugin default statusline cleanly.
steps:
- n: 1
action: Delete the user-owned statusline script and the customized.flag.
- n: 2
action: Repoint the relevant settings.json layer's statusLine.command back at the plugin's default script.
- n: 3
action: Verify the new active statusline by re-running inspection.
gotchas:
- Confirm with the user before deleting their customized script.
- Update the same settings.json layer that currently holds the active statusLine; do not touch other layers.
conditional_loading:
components_keywords:
keywords: [component, field, segment, what can i show, available data, model, branch, git, cost, tokens, time, duration, memory, working directory, context window, rate limit]
load_references:
- references/components.md
segments_keywords:
keywords: [segment, segments dir, contributed cell, cell cut off, missing cell, add a cell, another plugin's cell, STATUSLINE_SEGMENTS_DIR, timeout]
load_references:
- references/segments.md
styling_keywords:
keywords: [color, theme, gradient, progress bar, threshold, ansi, hex, truecolor, separator, powerline, icon, emoji, nerd font, bold, italic, dim]
load_references:
- references/styling.md
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kitaekatt/plugins-kit --plugin claude-ui-kit