statusline-generator

statusline-generator is a skill for Claude Code from daymade/claude-code-skills. It costs 111 tokens per session (2,244 once invoked), scanned B, original, MIT.

A setup and troubleshooting guide for Claude Code's statusline, the line that can show information such as the current folder, model, token counts, cost, or Git branch. It includes minimal and full display layouts.

In plain words
What is it for?
Use it to install, customize, inspect, or repair a Claude Code statusline and test how it handles missing or unusual input.
Why use it?
It checks the script and settings that make the statusline work and reports direct fixes for common silent failures.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the daymade-claude-code plugin — 21 skills shipped together

Good fit Use it to install, customize, inspect, or repair a Claude Code statusline and test how it handles missing or unusual input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/statusline-generator
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,516 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daymade/claude-code-skills --skill statusline-generator
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-claude-code, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for statusline-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/statusline-generator/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/statusline-generator)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/statusline-generator"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/statusline-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for statusline-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/statusline-generator"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/statusline-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,244 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 24 Sept 2026
  • Snyk pass 24 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 34
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.02244
Opus 5.5 $0.00044 $0.00898
Sonnet 5.5 $0.00022 $0.00449
Haiku 4.5 $0.00011 $0.00224

Measured 1mo ago against content hash 6678461b2d5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

statusline-generator scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_statusline.sh, scripts/health_check.sh, scripts/install_statusline.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

2. `~/.claude/settings.json` has a valid `statusLine` block pointing at the script.
daymade-claude-code/statusline-generator/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

This script:

  • Backs up any existing ~/.claude/statusline.sh and settings.json.
  • Copies generate_statusline.sh to ~/.claude/statusline.sh and chmod +xs it.
  • Updates settings.json statusLine block via jq (preserves other settings).
  • Mandatorily runs health_check.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

~/code/myproject  [main]  Opus 4.7 (1M context)  ctx: 108K / 1M

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.

Read the full file on GitHub · 207 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 6678461b2d5f
  2. 1mo ago Changed · -5 lines · -73 tokens per session 9d53d6a73123
  3. 2mo ago First seen · 211 lines · 184 tokens per session scan B dff9418e56b5

Subscribe to this mod's changes

statusline-generator is a skill published in the GitHub repository daymade/claude-code-skills (1,516 stars, last pushed yesterday), licensed MIT. It adds 111 tokens to every session and 2,244 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

statusline-generator compared with skills from other repositories

statusline-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
statusline-generatordaymade/claude-code-skillsSkill1.5kyesterdayMITB111Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code