Statusline Generator
Installs, switches, and debugs the Claude Code statusline with one script, two layouts, and a four-layer self-verification health check.
UtilitiesBeginner★ 1,323⑂ 212AI score 9/10Last updated: Aug 8, 2026
What it does
- Installs a single statusline script to
~/.claude/statusline.sh, backs up existing files, and wires thestatusLineblock insettings.jsonviajq. - Offers two layouts switched by
CLAUDE_STATUSLINE_LAYOUT:minimal(path, git branch, model, absolute token counts) andfull(ccusage session/daily cost, color-coded context percentage, git dirty markers). - Ships
health_check.shthat verifies executable bit, settings wiring, mock stdin cases, and real stdin replay — printing a one-line fix for each failure. - Encodes performance rules: reads the branch straight from
.git/HEADwith zero forks and forbidsnpx/bunx @latestin the refresh hot path.
Who it's for
- Claude Code users who want real token counts (e.g.
ctx 108K / 1M) instead of a percentage. - Anyone whose statusline is blank, stuck, or throwing "permission denied" after a script edit (usually a missing
chmod +x). - Heavy multi-session users worried about CPU churn and battery drain from a chatty statusline.
Examples
- "Set up my statusline" → runs
scripts/install_statusline.shand only reports success after the health check passes. - "My status line isn't showing" →
scripts/health_check.shpinpoints the missing executable bit or a settings.json path mismatch. - "Add cost and git state" → export
CLAUDE_STATUSLINE_LAYOUT=fulland verify ccusage integration. - "Show me the JSON Claude Code sends" → set
CLAUDE_STATUSLINE_DEBUG=1and inspect/tmp/.claude-statusline-last-stdin.jsonwithjq.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/daymade/claude-code-skills/HEAD/daymade-claude-code/statusline-generator/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the daymade-claude-code/statusline-generator folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/statusline-generator/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs && mkdir -p ~/.claude/skills && cp -r /tmp/ccs/daymade-claude-code/statusline-generator ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/ccs/daymade-claude-code/statusline-generator ~/.claude/skills/ - Install prerequisites: macOS
brew install jq; Debian/Ubuntusudo apt install jq(awkis already present). - Restart Claude Code and ask it to "configure my statusline" so it runs the installer plus the mandatory health check.
- To change layouts, add
export CLAUDE_STATUSLINE_LAYOUT=fullto~/.zshrcor~/.bashrc, then reopen your shell and send a new message.
View source on GitHub ↗License: MIT