AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Statusline Creator

skill-abhattacherjee-claude-code-skills-statusline-creator · by abhattacherjee

Creates and customizes Claude Code statusline scripts from composable items. Use when: (1) user wants to add or change their statusline, (2) user asks to show cost, git, context, or other info in the status bar, (3) user says 'customize my statusline' or 'add X to my statusline', (4) user wants to create a statusline from scratch, (5) debugging statusline display issues.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-abhattacherjee-claude-code-skills-statusline-creator

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-abhattacherjee-claude-code-skills-statusline-creator)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Statusline Creator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Statusline Creator

Creates Claude Code statusline scripts from composable items with full JSON schema awareness.

Quick Generate

# List available items
~/.claude/skills/statusline-creator/scripts/generate-statusline.sh --list

# Generate 2-line statusline with common items
~/.claude/skills/statusline-creator/scripts/generate-statusline.sh \
  --items "model,dir,git,git-sync,context-bar,cost,duration" \
  --lines 2 --install

# Test with mock data
echo '{"model":{"display_name":"Opus"},"workspace":{"current_dir":"/tmp/test"},"context_window":{"used_percentage":42,"context_window_size":200000},"cost":{"total_cost_usd":0.05,"total_duration_ms":120000}}' | bash ~/.claude/statusline-command.sh

How Statuslines Work

  1. Add statusLine to ~/.claude/settings.json:

``json {"statusLine": {"type": "command", "command": "bash ~/.claude/statusline-command.sh"}} ``

  1. Claude Code pipes JSON session data to your script via stdin after each assistant message
  2. Your script reads JSON, extracts fields, prints formatted text to stdout
  3. Each echo/printf = one row in the status bar

Timing: runs after each assistant message, debounced at 300ms. Cancelled if new update triggers while running.

Available Items (20 composable blocks)

| Item | Category | Description | |------|----------|-------------| | model | Display | Model name ("Opus") | | model-full | Display | Model + 1M context indicator | | dir | Display | Working directory basename | | session-id | Display | Short session ID (8 chars) | | style | Display | Output style name | | vim-mode | Display | Vim mode ([N]/[I]) | | agent | Display | Agent name when using --agent | | worktree | Display | Worktree name indicator | | context-bar | Context | Progress bar with color thresholds | | context-pct | Context | Percentage number only | | tokens | Context | Detailed in/out token counts (K) | | warn-200k | Context | Warning when >200K tokens | | cost | Metrics | Session cost ($X.XX) | | cost-color | Metrics | Cost with green/yellow/red thresholds | | duration | Metrics | Wall-clock time (Xm Ys) | | api-duration | Metrics | API response time only | | lines-changed | Metrics | Lines +added -removed | | git | Git | Branch + staged/modified (5s cache) | | git-sync | Git | Upstream ahead/behind arrows | | git-link | Git | Clickable OSC 8 repo link |

Writing Custom Items

If the generator doesn't cover your use case, write items manually. See [references/item-recipes.md](references/item-recipes.md) for copy-paste bash snippets for each item.

For the complete JSON schema with all available fields, see [references/json-schema.md](references/json-schema.md).

Key patterns:

  • Always handle null: jq -r '.field // 0' or jq -r '.field // empty'
  • ANSI colors: \033[32m green, \033[33m yellow, \033[31m red, \033[0m reset
  • OSC 8 links: \033]8;;URL\aText\033]8;;\a (iTerm2, Kitty, WezTerm only)
  • Cache expensive ops: git commands in /tmp/statusline-* with 5s TTL
  • Use printf '%b' over echo -e for reliable escape handling

Presets

Minimal (1-line):

generate-statusline.sh --items "model,context-pct,cost" --lines 1

Standard (2-line, recommended):

generate-statusline.sh --items "model,dir,git,git-sync,context-bar,cost-color,duration" --lines 2

Full (3-line):

generate-statusline.sh --items "model-full,dir,git,git-sync,worktree,agent,context-bar,tokens,warn-200k,cost-color,duration,lines-changed" --lines 3

Troubleshooting

| Symptom | Fix | |---------|-----| | Not appearing | chmod +x the script; check disableAllHooks isn't true | | Shows -- or empty | Fields null before first API call; use // 0 fallbacks | | Colors garbled | Use printf '%b' instead of echo -e | | Links not clickable | Terminal must support OSC 8 (iTerm2, Kitty, WezTerm) | | Stale values after edit | Changes appear on next assistant message, not immediately | | Script errors → blank | Non-zero exit or no output = blank status bar |

See Also

  • context-bar skill — quick context usage display (subset of this skill)
  • Official docs — Claude Code statusline reference
  • ccstatusline — community powerline-style statusline

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.