From coral
Install or remove the coral HUD statusline for Claude Code. Manages settings.json, updates the HUD script, and optionally integrates Codex usage display.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coral:statusline [install|uninstall][install|uninstall]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage the coral HUD statusline for Claude Code.
Manage the coral HUD statusline for Claude Code.
Config directory:
CONFIG_DIR= the Claude config dir reported in the SessionStart context (already resolved, absolute — it honorsCLAUDE_CONFIG_DIR). Use it for everyCONFIG_DIR/...path below, consistently across all steps.~/.codex/auth.jsonis Codex's own directory and is NOT affected.
CONFIG_DIR/hud/coral-hud.mjs already exists:
coral-hud.mjs in this skill directory: inform user "HUD is already up to date", skip to step 6coral-hud.mjs from this skill directory and write it to CONFIG_DIR/hud/coral-hud.mjs (create CONFIG_DIR/hud/ directory if needed)CONFIG_DIR/settings.json (create if absent)statusLine already exists and is NOT coral's, ask the user before overwritingstatusLine to:
{
"statusLine": {
"type": "command",
"command": "node CONFIG_DIR/hud/coral-hud.mjs"
}
}
Expand CONFIG_DIR to its absolute path (and ~ to the real home directory).~/.codex/auth.json exists (Codex's own dir — the literal ~/.codex, NOT under CONFIG_DIR):
CONFIG_DIR/hud/.coral-codex-enabled (empty file — the same CONFIG_DIR/hud as step 2; do not write this to ~/.claude when CONFIG_DIR differs)CONFIG_DIR/hud/.coral-codex-enabled if it existsauth.json, skip silently (do not create or delete any Codex files)CONFIG_DIR/settings.jsonstatusLine keyCONFIG_DIR/hud/coral-hud.mjsCONFIG_DIR/hud/.coral-cache.jsonCONFIG_DIR/hud/.coral-codex-enabledThe HUD script source is coral-hud.mjs in this directory.
The install command reads this file and writes it to CONFIG_DIR/hud/coral-hud.mjs.
CONFIG_DIR is the Claude config dir from the SessionStart context (see Config directory above); each config dir keeps its own HUD install and its own Codex opt-in flagapi.anthropic.com/api/oauth/usage using OAuth credentialsextra_usage (a monthly dollar cap), shown in the limits slot as mo: <pct> ($used/$limit)chatgpt.com/backend-api/wham/usage (GET, no token cost); requires Codex login (~/.codex/auth.json)transcript_path JSONL (tail-read for performance), finds last Skill or proxy_Skill tool_use blockthrottled: refreshes in Xm for HTTP 429, re-login required for explicit 401/403 auth failures, and API unavailable for other fetch/refresh failures.re-login required appears only for observable auth failures.$0.43 47m.CONFIG_DIR/hud/.coral-codex-enabled flag file; managed during installnpx claudepluginhub kangig94/coral --plugin coralGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.