/statusline:context-barfrom statusline
Shows a single-line, color-coded progress bar of how much of the context window the current Claude Code session has used, estimated from its transcript size. Use when: (1) the user asks how full the context is, (2) /context-bar, (3) deciding whether to compact or start a new session.
Ships in statusline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run this command. On exit 0 the Bash output IS the result: do not echo or repeat it, and say nothing after it.
bash "${CLAUDE_SKILL_DIR}/scripts/context-bar.sh"
The bar is an estimate from the size of this session's transcript in ~/.claude/projects/<working dir with non-alphanumerics as ->/ (under $CLAUDE_CONFIG_DIR instead of ~/.claude when that is set), measured against a fixed 1M-token window, so on a 200K-context model it reads low. If the script exits 1, it found no transcript for the current directory (for example after a cd); say that in one line instead of guessing a number.
For a context bar that is always visible, build a statusline with the context-bar item: /statusline:create. The bar is green below 50%, amber from 50% to 79%, and red from 80%.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/createCreates and customizes Claude Code statusline scripts from 20 composable items (model, dir, git, git-sync, context-bar, cost, duration and more). 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, (6) statusline-creator (the old name of this skill)./installInstalls a ready-made 3-tier adaptive Claude Code statusline (model, folder, git branch with sync status, color-coded context bar) and points ~/.claude/settings.json at it. Use when: (1) the user wants a good statusline without designing one, (2) the user asks to install or reinstall the custom statusline, (3) /install-statusline or custom-statusline (the old names of this skill), (4) the statusline went missing after a settings change.npx claudepluginhub abhattacherjee/claude-code-skills --plugin statusline