Skip to content
Development
Skill

/statusline-config

Customize Claude Code statusline. Use when: user says 'statusline', 'status line', 'customize statusline', 'modify statusline', 'statusline settings', 'statusline theme', 'change theme', 'color scheme', wants to add/remove/change segments (cost, git, model, context), switch

From plugin
sd0x-dev-flow
195102 skills16 agents5 hooks

Claude Code

$ npx -y skills add sd0xdev/sd0x-harness --skill statusline-config --agent claude-code

SKILL.md

statusline-config.SKILL.md
name: statusline-config
description: "Customize Claude Code statusline. Use when: user says 'statusline', 'status line', 'customize statusline', 'modify statusline', 'statusline settings', 'statusline theme', 'change theme', 'color scheme', wants to add/remove/change segments (cost, git, model, context), switch color themes (catppuccin, dracula, nord), or asks what can be shown in the statusline."

StatusLine Config

Customize `~/.claude/statusline-command.sh` — segments, themes, and colors.

When NOT to Use

| Scenario | Use Instead | |----------|-------------| | Setting statusline for the first time (no customization needed) | Built-in `statusline-setup` agent (Claude Code agent type) — applies defaults automatically | | Editing `settings.json` directly | Manual edit — this skill manages `statusline-command.sh`, not `settings.json` | | Debugging Claude Code startup issues | `/claude-health` — config health check |

Segments

| Segment | JSON Field | Default | Notes | | ----------- | ------------------------------------- | ---------------- | ------------------------------------- | | Directory | `workspace.current_dir` | ON | Truncate deep paths: `~/.../last-dir` | | Git branch | shell `git` | ON | `--no-optional-locks`, cache 5s | | Agent | `agent.name` | ON (conditional) | Show when present; color: `C_MODEL` | | Model | `model.display_name` + `context_window.context_window_size` | ON | Smart tier suffix: `Opus 4.6 (1M)` — auto-skip if display_name already contains context info | | Context % | `context_window.remaining_percentage` + `context_window_size` | ON | `ctx 60% left (600k/1M)` — Green >40%, Yellow 20-40%, Red <=20% | | Token Usage | `context_window.total_input_tokens` + `total_output_tokens` | ON (conditional) | `{in}k/{out}k` session cumulative; color: `C_COST` | | Cost | `cost.total_cost_usd` | ON | Show when >= $0.005, `est $X.XX` | | Rate Limits | `rate_limits.five_hour.used_percentage` + `seven_day.used_percentage` | ON (conditional) | `5h: 85% left · 7d: 82% left` — displays remaining (100 - used); color thresholds match context %: Green >40%, Yellow 20-40%, Red <=20%; OAuth users only | | Worktree | `worktree.name` + `worktree.branch` | ON (conditional) | `[WT:{name}] {branch}` or `[WT:{name}]` if branch absent; **replaces** Directory + Git branch when present; color: `C_BRANCH` |

For full JSON schema, see [json-schema.md](references/json-schema.md).

Themes

| Theme | Type | Default | Notes | | ------------------ | --------- | ------- | ------------------------------------- | | `ansi-default` | ANSI 16 | ✅ | Safe fallback, works everywhere | | `catppuccin-mocha` | TrueColor | — | Recommended — pastel, WCAG AA >=4.5:1 | | `dracula` | TrueColor | — | Vibrant purple/pink accents | | `nord` | TrueColor | — | Arctic blue, muted tones | | `none` | — | — | No colors (`NO_COLOR` auto-triggers) |

Switch via: `export CLAUDE_STATUSLINE_THEME=catppuccin-mocha`

For complete token→hex mappings, see [themes.md](references/themes.md).

Semantic Tokens

Scripts use semantic tokens instead of hardcoded colors:

| Token | Role | Example | | ------------ | -------------------- | ------------------- | | `C_CWD` | Directory path | blue / sapphire | | `C_BRANCH` | Git branch name | magenta / mauve | | `C_MODEL` | Model display name | cyan / teal | | `C_CTX_OK` | Context >= 41% | green | | `C_CTX_WARN` | Context 21-40% | yellow | | `C_CTX_BAD` | Context <= 20% | red | | `C_COST` | Cost display | muted text | | `C_ALERT` | >200k token warning (legacy, segment removed) | orange/peach + bold | | `C_SEP` | Pipe separator `\|` | dim/overlay | | `C_MUTED` | Secondary info | subtext | | `C_TEXT` | General text | foreground | | `C_RESET` | Reset all formatting | `\033[0m` |

Workflow

**No args** → Apply best-practice defaults (all ON segments + `ansi-default` theme). Go to step 4.

**Theme change** (e.g. "use catppuccin-mocha", "switch to dracula") → Read [themes.md](references/themes.md), apply requested theme. Go to step 4. Aliases: `catppuccin` → `catppuccin-mocha`.

**Custom requests** (e.g. "add cost", "remove git", "no colors") → Interactive flow:

1. Read current script: `cat ~/.claude/statusline-command.sh` 2. Ask segments to enable/disable (AskUserQuestion multiSelect) 3. Ask theme preference (AskUserQuestion with theme options) 4. Generate script following Script Rules + selected theme from [themes.md](references/themes.md) 5. Write to `~/.claude/statusline-command.sh` 6. Verify: `echo '{"model":{"display_name":"Opus 4.6"},"workspace":{"current_dir":"/tmp/test"},"context_window":{"remaining_percentage":55},"cost":{"total_cost_usd":0.42},"exceeds_200k_tokens":false}' | ~/.claude/statusline-command.sh`

Script Rules

  • Shebang: `#!/bin/sh` (POSIX)
  • Read stdin: `input=$(cat)`
  • Parse JSON: `jq -r '.field // fallback'`
  • Theme from env: `theme="${CLAUDE_STATUSLINE_THEME:-ansi-default}"`
  • NO_COLOR: `[ -n "${NO_COLOR:-}" ] && theme="none"`
  • Theme aliases: `catppuccin` → `catppuccin-mocha`
  • Invalid theme: fallback to `ansi-default`
  • Color output: `printf "%b"` for ANSI/TrueColor, `printf "%s"` for none
  • TrueColor format: `\033[38;2;R;G;Bm` (24-bit foreground)
  • Git: `git --no-optional-locks -C "$dir"`
  • Git cache: `/tmp/claude-statusline-git-cache-$(id -u)`, 5s TTL, `stat -f %m` (macOS) / `stat -c %Y` (Linux)
  • CWD truncation: depth >2 → `~/.../base
Read more
@sd0xdev
Ships withsd0x-dev-flow

Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.

195102 skills16 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
195
Star history of sd0xdev/sd0x-dev-flow on GitHub, a chart by star-history.com

Other skills on sd0x-dev-flow.

adr

adr

Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…

agentctl-setup

agentctl-setup

Install and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free…

architecture

architecture

Architecture design and documentation. Produces 3-architecture.md with component diagrams, data flow, integration points, and…

ask

ask

Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or…

best-practices

best-practices

Industry best practices conformance audit with mandatory adversarial debate. Produces audit artifact: verdict (OK/WARN/FAIL) +…

bug-fix

bug-fix

Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev),…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about statusline-config.

Which coding agents can use statusline-config?
statusline-config installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.