Agent skill · software engineering · daymade
statusline-generator
Installs, configures, customizes, or troubleshoots the Claude Code statusline (cwd, model, token counts). Use when the user wants to set up or change the statusline, switch minimal vs full layouts, show absolute token counts instead of a percentage, add cost via ccusage, or fix a statusline that is blank, silent, stuck, or stopped updating. Trigger phrases: 状态栏, 状态栏不显示, 状态栏空白, "statusline blank", "statusline broken".
Why this skill is useful
Adds a complete installation and health check script for configuring the Claude Code statusline, which includes executable scripts and specific configuration patterns not commonly found in public documentation.
What it needs
Requires jq installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 1,320 stars on the source repository.
What this skill does
Statusline Generator A single-source-of-truth statusline for Claude Code. One script, two layouts, end-to-end self-verification. Quick health check (start here when something is wrong) Run this first whenever the statusline misbehaves. It catches the silent failures that account for most "configured but not working" reports: It validates four layers: 1. ~/.claude/statusline.sh exists and is executable. Missing chmod +x is the single most common silent-failure cause — Claude Code runs the script, exec fails, statusline goes blank. 2. ~/.claude/settings.json has a valid statusLine block pointing at the script. 3. Mock stdin tests covering complete data, zero tokens, missing fields, $HOME path shortening, and zero-fork git-branch rendering (via a synthetic .git/HEAD — no git binary required). 4. Real stdin replay from /tmp/.claude-statusline-last-stdin.json if you previously ran with CLAUDESTATUSLINEDEBUG=1. Each failure prints a one-line fix command — you don't have to read documentation to recover. Quick install This script: Backs up any existing ~/.claude/statusline.sh and settings.json. Copies generatestatusline.sh to ~/.claude/statusline.sh and chmod +xs it. Updates settings.json statusLine block via jq (preserves other settings). Mandatorily runs healthcheck.sh and shows the result — installation is not "complete" until verification passes. Restart Claude Code (or send any new message) to see the statusline update. What you get Default — minimal one-line layout Just the essentials: short path, git branch, model name, absolute token counts. No colors, no cost, no percentage. The branch is read zero-fork — the script reads .git/HEAD as a plain file (with worktree/submodule gitdir: indirection and detached-HEAD short-sha handling) instead of spawning git, so it costs nothing and works even on hosts without a git binary. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills daymade/statusline-generator