iamcxa/kc-claude-plugins/kc-statusline-setup
Claude Code and agent skill by iamcxa/kc-claude-plugins
- community
Checking that the SKILL.md file is still in the repository.
Use when the user wants to set up or check their Claude Code statusline with Anthropic usage quota display. Triggers on "setup statusline", "statusline", "show usage", "quota display", "安裝 statusline", "statusline 設定". NOT for direct usage display — this skill installs the statusline component.
Install
npx vskill@latest install iamcxa/kc-claude-plugins/kc-statusline-setupSKILL.md
The same SKILL.md was published earlier as iamcxa/kc-claude-plugins/kc-statusline-setup.
Statusline Setup
Install a Claude Code statusline that shows model, git branch, context usage bar, and Anthropic 5h/7d usage quota.
Flow
Step 1: Read Current Config
Look for the "statusLine" key. If no entry exists → go to Step 3.
If found, extract the script file path from the command field. The command is typically node "/path/to/script.js" — extract the quoted JS path after node.
If the referenced script file does not exist (dead reference) → treat as "no statusLine" → go to Step 3.
Step 2: Check Existing Statusline
Read the extracted script file.
Usage indicators (any one = already configured):
getAnthropicUsagefunction nameoauth/usageAPI pathfive_hourorseven_dayresponse field
If ANY indicator found:
→ DONE. Do not modify anything.
If NO indicator found:
STOP here. Do not proceed to Step 3 until the user confirms with 'y'. If the user declines or says anything other than explicit confirmation, respond "No changes made." and end.
Step 3: Install
3a. Resolve script path
NEVER use ${CLAUDE_PLUGIN_ROOT} in settings.json — it is NOT resolved at settings parse time.
Resolve to an absolute path. Try in order:
Use the first path that exists.
If none found — STOP. Do not proceed to Step 4. Output this error:
→ DONE. Do not attempt to create the file or use alternative paths.
3b. Update settings.json
Edit ~/.claude/settings.json — add or replace the statusLine entry:
3c. Verify
Should output a statusline string (may be minimal without real session data).
Step 4: Report
Rules
- Never modify the user's existing statusline script — only change the settings.json pointer
- Never create the statusline script — if the file doesn't exist, report error and stop
- Always confirm before replacing an existing statusline (Step 2) — STOP and wait
- No statusLine entry = safe to install without confirmation (Step 3)
- NEVER use `${CLAUDE_PLUGIN_ROOT}` in settings.json — resolve to absolute path at runtime
- Context bridge file is critical — the statusline writes
/tmp/claude-ctx-{session}.jsonwhich the context-pressure-monitor hook depends on. Without this bridge, context pressure warnings stop working.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkc-hyperfocus/skills/kc-statusline-setup/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iamcxa/kc-claude-plugins/kc-statusline-setup)