Skip to content
daymade avatar

Statusline Generator

Single-source statusline script for Claude Code with minimal and full layouts, self-verifying install and health checks.

CCM score
69 of 100
skills.sh installs
1.5K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the minimal one-line layout (short path, zero-fork git branch, model, absolute token counts) and the multi-line full layout with cost and color-coded context
  • Includes scripts/install_statusline.sh and scripts/health_check.sh, which back up settings, set chmod +x, and check four layers
  • Enforces a zero-subprocess-per-refresh budget, reading .git/HEAD directly and limiting forks to one jq and one awk
  • Designed for users fixing a blank, silent, or stalled statusline, or switching layouts via CLAUDE_STATUSLINE_LAYOUT

Install

$ npx -y skills add daymade/claude-code-skills --skill statusline-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

bash scripts/health_check.sh

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 CLAUDE_STATUSLINE_DEBUG=1.

Each failure prints a one-line fix command — you don't have to read documentation to recover.

Quick install

bash scripts/install_statusline.sh

Details

Repository
github.com/daymade/claude-code-skills
Category
CLI & Terminal
First seen
Jun 3, 2026

More from daymade/claude-code-skills

All 50

Similar to Statusline Generator

More CLI & Terminal