statuslinelisted
Install: claude install-skill kangig94/coral
# Coral Statusline
Manage the coral HUD statusline for Claude Code.
## Commands
### install
1. Check if `~/.claude/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 `~/.claude/hud/coral-hud.mjs` (create `~/.claude/hud/` directory if needed)
3. Read `~/.claude/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 ~/.claude/hud/coral-hud.mjs"
}
}
```
Replace `~` with the actual home directory path.
6. Check if `~/.codex/auth.json` exists:
- If yes, ask the user: "Codex login detected. Display Codex usage in statusline?"
- **yes** → create `~/.claude/hud/.coral-codex-enabled` (empty file)
- **no** → delete `~/.claude/hud/.coral-codex-enabled` if it exists
- If no `auth.json`, skip silently (do not create or delete any Codex files)
7. Confirm installation to the user
### uninstall
1. Read `~/.claude/settings.json`
2. Remove the `statusLine` key
3. Delete the following files if they exist:
- `~/.claude/hud/coral-hud.mjs`
- `~/.claude/hud/.coral-cache.json`