AgentSkillsCN

status-line-live

自定义或排查实时状态栏。当您需要修改 statusline.sh、调试令牌显示,或深入了解渲染管线时,可调用此技能。状态栏以被动模式运行——此技能旨在帮助您对状态栏进行优化与调整,而非直接使用它。

SKILL.md
--- frontmatter
name: status-line-live
description: Customize or troubleshoot the live status line. Use when modifying statusline.sh, debugging token display, or understanding the rendering pipeline. The status line runs passively -- this skill is for working on it, not using it.
license: Apache-2.0

status-line-live

Custom status line renderer adding live session data to Claude Code: token metrics, session titles, git state, and cost tracking.

Distinguished from the built-in /status_line command -- this is the renderer and its supporting scripts.

Components

FileRole
scripts/statusline.shMain renderer (called by Claude Code via stdin JSON)
scripts/get-session-tokens.shToken data extraction from session JSONL
docs/architecture.mdData flow, caching, troubleshooting

Output Format

code
project branch (3) Opus 4.6 $0.66 +28 -5 (70+210K+1.6M):7K [1:267] | session title

Dependencies

jq, bc, git

Related

  • /status_line command -- verbose explainer with ASCII diagrams
  • session-titles/ -- runtime data (titles + token cache)