statusline-generator

statusline-generator is a skill for Claude Code from daymade/claude-code-skills. It costs 184 tokens per session (2,318 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: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

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

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,377 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.

agentmods
npx agentmods add skills/daymade/claude-code-skills/statusline-generator
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 19 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00184 $0.02318
Opus 5 $0.00092 $0.01159
Sonnet 5 $0.00037 $0.00464
Haiku 4.5 $0.00018 $0.00232

Measured 6d ago against content hash dff9418e56b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 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 · 211 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. 6d 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,377 stars, last pushed yesterday), licensed MIT. It adds 184 tokens to every session and 2,318 once invoked, about $0.0009 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens