Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Statusline Generator

Installs, switches, and debugs the Claude Code statusline with one script, two layouts, and a four-layer self-verification health check.

UtilitiesBeginner1,323212AI 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 the statusLine block in settings.json via jq.
  • Offers two layouts switched by CLAUDE_STATUSLINE_LAYOUT: minimal (path, git branch, model, absolute token counts) and full (ccusage session/daily cost, color-coded context percentage, git dirty markers).
  • Ships health_check.sh that 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/HEAD with zero forks and forbids npx/bunx @latest in 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

  1. "Set up my statusline" → runs scripts/install_statusline.sh and only reports success after the health check passes.
  2. "My status line isn't showing" → scripts/health_check.sh pinpoints the missing executable bit or a settings.json path mismatch.
  3. "Add cost and git state" → export CLAUDE_STATUSLINE_LAYOUT=full and verify ccusage integration.
  4. "Show me the JSON Claude Code sends" → set CLAUDE_STATUSLINE_DEBUG=1 and inspect /tmp/.claude-statusline-last-stdin.json with jq.

· · · 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/daymade/claude-code-skills.git /tmp/ccs
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r /tmp/ccs/daymade-claude-code/statusline-generator ~/.claude/skills/
  5. Install prerequisites: macOS brew install jq; Debian/Ubuntu sudo apt install jq (awk is already present).
  6. Restart Claude Code and ask it to "configure my statusline" so it runs the installer plus the mandatory health check.
  7. To change layouts, add export CLAUDE_STATUSLINE_LAYOUT=full to ~/.zshrc or ~/.bashrc, then reopen your shell and send a new message.