From Burnbar — Claude Code Statusline
Configure, restore, or check the status of the Burnbar statusline. Use when the user invokes `/burnbar`, asks to configure the statusline, restore a previous statusline, or check Burnbar settings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/burnbar:burnbar [restore|status|configure][restore|status|configure]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You manage the Burnbar statusline configuration for Claude Code.
You manage the Burnbar statusline configuration for Claude Code.
All paths are relative to the Claude config directory $CONFIG_DIR. Resolve it first: it is $CLAUDE_CONFIG_DIR if that environment variable is set (secondary Claude profiles), otherwise ~/.claude. Check with echo "${CLAUDE_CONFIG_DIR:-$HOME/.claude}".
$CONFIG_DIR/settings.json (the statusLine key)$CONFIG_DIR/burnbar-statusline.sh (stable copy of the statusline script)$CONFIG_DIR/burnbar-previous-statusline.json (previous statusline config, if any)Determine the user's intent from their message:
The user wants to switch to Burnbar (e.g., "configure Burnbar", "activate Burnbar", "use Burnbar", or just /burnbar with no other context).
$CONFIG_DIR/settings.jsonstatusLine.command already contains "burnbar" → if so, tell the user it's already active and show current configstatusLine object and write it to $CONFIG_DIR/burnbar-previous-statusline.json/burnbar restorestatusLine to:
{
"type": "command",
"command": "bash \"<config-dir>/burnbar-statusline.sh\"",
"refreshInterval": 1
}
(Replace <config-dir> with the resolved config dir as a literal absolute path — e.g. /home/user/.claude — never a ~ or a variable reference. refreshInterval: 1 is required for the real-time cache timer.)The user wants to restore their previous statusline (e.g., "restore statusline", "undo Burnbar", /burnbar restore).
$CONFIG_DIR/burnbar-previous-statusline.json exists$CONFIG_DIR/settings.json, replace the statusLine key with the backup content, and write it backThe user wants to know the current state (e.g., "Burnbar status", "is Burnbar active?").
$CONFIG_DIR/settings.json and show the current statusLine config$CONFIG_DIR/burnbar-previous-statusline.json exists and mention it if so$CONFIG_DIR/burnbar-statusline.sh existsThe user wants to change the statusline layout (e.g., "hide costs", "show only bar", "use a custom format", "configure Burnbar format").
Available tags: {user}, {host}, {cwd}, {model}, {bar}, {pct}, {ctx}, {next}, {total}, {spark}, {delta}, {cache}
Use \n for newlines and \033[...]m...\033[00m for ANSI colors in the format string.
$CONFIG_DIR/settings.jsonstatusLine.command to prepend BURNBAR_FORMAT='...' before the bash commandBURNBAR_BAR_WIDTH=N (context bar) or BURNBAR_CACHE_WIDTH=N (cache bar, default 10)BURNBAR_SPARK=auto|braille|octant|blocks|none (rendering mode) or BURNBAR_SPARK_WIDTH=N (width in cells, default 8; braille/octant fit 2 turns per cell)CRITICAL: the format string must be single-quoted in the command to prevent shell expansion.
Example commands (/home/user/.claude stands for the resolved config dir):
# Default (all elements, colored header)
BURNBAR_FORMAT='\033[01;32m{user}@{host}\033[00m:\033[01;34m{cwd}\033[00m\n{model} {bar} {pct} {ctx} {next} {total} {cache}' bash "/home/user/.claude/burnbar-statusline.sh"
# Hide costs (screen sharing)
BURNBAR_FORMAT='\033[01;32m{user}@{host}\033[00m:\033[01;34m{cwd}\033[00m\n{model} {bar} {pct} {ctx}' bash "/home/user/.claude/burnbar-statusline.sh"
# Minimal
BURNBAR_FORMAT='{bar} {pct}' bash "/home/user/.claude/burnbar-statusline.sh"
# Costs only
BURNBAR_FORMAT='{next} {total}' bash "/home/user/.claude/burnbar-statusline.sh"
$CONFIG_DIR/settings.json$HOME expanded (the actual path like /home/username/), not literal ~ in file paths for tool callsstatusLineCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub devnix/burnbar --plugin burnbar