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 | Level | Why |
|---|---|---|
| Code & shell execution | 2 (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 access | 0 (none) | No shipped script downloads remote content or sends data to a network host; `ccusage` is invoked with `--offline`. |
| Filesystem reach | 2 (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 & credentials | 1 (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 & persistence | 2 (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 surface | 0 (none) | There is no prompt-injection text or instruction-skipping behavior in the shipped files. |
| Irreversible actions | 1 (low) | The installer automatically backs up and rewrites local config, but it does not deploy, publish, pay, or otherwise act outside the machine. |
| Transparency | 0 (none) | All shipped content is plain Markdown/Bash; there are no binaries, opaque blobs, or runtime-downloaded installers. |
Before installing
- Read `scripts/install_statusline.sh` and confirm you want it to rewrite `~/.claude/settings.json`.
- If you plan to use full mode, decide whether you want shell RC changes and user-wide installs (`jq`, `ccusage`).
- Treat `CLAUDE_STATUSLINE_DEBUG=1` as a data-dump mode; test it only in a non-sensitive session first.
- Keep the generated backups before letting it replace your existing statusline config.
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
Related skills
- context7-cli — Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP.
- cpp-pro — Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques.
- embedded-systems — Use when developing firmware for microcontrollers, implementing RTOS applications, or optimizing power consumption.
- TUI Puppeteering with tmux — Use when automating or testing TUI/CLI applications - provides isolated tmux sessions with scripts for input, output capture, and state verification
- agents-get-started — Use when a developer wants to create a new agent project or get started with AgentCore.
- cli-for-agents — Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors.