Skills Explorer Add Skills

statusline-generator

An agent skill by daymade, from daymade/claude-code-skills. Tags: automation, cli, debugging, developer-tools, setup.

What it does

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 (e.g. ctx 108K / 1M) instead of a percentage, add cost via ccusage or git status, dump the stdin JSON Claude Code passes the script, or fix a statusline that is blank, silent, stuck, shows "permission denied", or stopped updating after a script edit (often a missing chmod +x). Trigger phrases: "configure statusline", "statusline blank", "status line not showing", "statusline broken", "show token count in statusline", 状态栏, 状态栏不显示, 状态栏空白, 显示工作目录, 显示 token 数.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

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

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/daymade/claude-code-skills
cp -r claude-code-skills/daymade-claude-code/statusline-generator ~/.claude/skills/statusline-generator

Safety box score

Grade C, moderate risk: 33 of 100 risk points, rated 2026-10-17. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill installs and configures a Claude Code statusline by writing to `~/.claude/statusline.sh` and `~/.claude/settings.json`, and it can optionally use `ccusage` for cost display. The main risks are local config changes, shell-profile/global package edits for the full layout, and a debug mode that copies stdin to a predictable temp file.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)It ships Bash scripts that run `cp`, `chmod`, `jq`, `git`, `ccusage`, `find`, and `rm -rf` as the user, and the generator executes on every statusline refresh.
Network access0 (none)No shipped script downloads remote content or sends data to a network host; `ccusage` is invoked with `--offline`.
Filesystem reach2 (moderate)It reads and writes `~/.claude/statusline.sh`, `~/.claude/settings.json`, shell RC files, and `/tmp` cache/debug files, so it has meaningful home-directory reach.
Secrets & credentials1 (low)`CLAUDE_STATUSLINE_DEBUG=1` writes raw stdin to `/tmp/.claude-statusline-last-stdin.json`; that can expose workspace/session metadata, though it does not touch credential stores.
Privilege & persistence2 (moderate)The docs ask you to edit shell startup files (`~/.zshrc`, `~/.bashrc`) and install user-wide packages (`brew install jq`, `npm install -g ...`), which changes future shells and the user environment.
Instruction hijack surface0 (none)There is no prompt-injection text or instruction-skipping behavior in the shipped files.
Irreversible actions1 (low)The installer automatically backs up and rewrites local config, but it does not deploy, publish, pay, or otherwise act outside the machine.
Transparency0 (none)All shipped content is plain Markdown/Bash; there are no binaries, opaque blobs, or runtime-downloaded installers.

Before installing

Rated 2026-10-17 by an automated review of 9 files from the skill's repository.

Source

Repository
daymade/claude-code-skills (all skills from this repository)
Path
daymade-claude-code/statusline-generator/SKILL.md
Branch
main
Updated
2026-09-20