statuslinelisted
Install: claude install-skill kangig94/coral
# Coral Statusline
Manage the coral HUD statusline for Claude Code.
## Commands
> **Config directories**: `CONFIG_DIR` = the **Claude config dir** reported in the SessionStart context. `CODEX_DIR` = absolute `CODEX_HOME` when set, otherwise `~/.codex`. Use each directory consistently for its provider.
### install
1. Check if `CONFIG_DIR/hud/coral-hud.mjs` already exists:
- If exists and content matches `coral-hud.mjs` in this skill directory: inform user "HUD is already up to date", skip to step 6
- If exists with different content: inform user "Updating HUD script to latest version", proceed
- If not exists: proceed
2. Read `coral-hud.mjs` from this skill directory and write it to `CONFIG_DIR/hud/coral-hud.mjs` (create `CONFIG_DIR/hud/` directory if needed)
3. Read `CONFIG_DIR/settings.json` (create if absent)
4. If `statusLine` already exists and is NOT coral's, **ask the user** before overwriting
5. Set `statusLine` to:
```json
{
"statusLine": {
"type": "command",
"command": "node CONFIG_DIR/hud/coral-hud.mjs"
}
}
```
Expand `CONFIG_DIR` to its absolute path (and `~` to the real home directory).
6. Check if `CODEX_DIR/auth.json` exists:
- If yes, ask the user: "Codex login detected. Display Codex usage in statusline?"
- **yes** → create `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)
- **no** → delete `CO