/ogxo-statusline:setup [--uninstall]from ogxo-statusline
Installs or updates the ogxo status line by copying its script to a stable path and configuring the statusLine setting in Claude's settings.json. Also handles uninstallation.
Ships in ogxo-statusline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A plugin can't set the status line itself: statusLine lives in the user's own settings, and ${CLAUDE_PLUGIN_ROOT} doesn't expand there. The plugin's install path also changes on every update. So setup copies the script to a stable path and points the setting at that copy. Re-running setup after a plugin update is how the copy gets the new version.
The script source is ${CLAUDE_PLUGIN_ROOT}/scripts/ogxo-statusline.sh. If that variable wasn't substituted, use the base directory printed when this skill loaded and go two levels up to the plugin root.
Check jq is on PATH. The script prints only ogxo without it, so if it's missing, say how to install it (brew install jq, apt install jq) and continue; the user can install it afterwards.
Copy the script to ~/.claude/ogxo-statusline.sh and make it executable. Options belong in the settings command, not the script, so a plain update just overwrites the copy. If the existing file differs from the plugin script in ways that look like hand edits (for example changed colors), show the diff and ask before overwriting. If it's a symlink, leave it: someone is running it from a checkout.
Read ~/.claude/settings.json (treat a missing file as {}).
statusLine already points at ~/.claude/ogxo-statusline.sh, keep its command as it is, including any options after the path; the setting needs no change.After the user agrees, back up the file to ~/.claude/settings.json.bak, then set only the statusLine key and keep every other key as it is, for example:
f=~/.claude/settings.json; tmp=$(mktemp)
{ [ -f "$f" ] && cat "$f" || echo '{}'; } | jq '.statusLine = {"type": "command", "command": "~/.claude/ogxo-statusline.sh", "padding": 0, "refreshInterval": 60}' >"$tmp" && mv "$tmp" "$f"
refreshInterval keeps the session timer, cache countdown, and reset times current while the session is idle. If the user asked for options (see the README), append them to the command, for example "~/.claude/ogxo-statusline.sh --no-git --cost=always".
Tell the user the status line appears on the next update (a new message or the next refresh), and that re-running /ogxo-statusline:setup after a plugin update refreshes the copy.
--uninstall)Remove the statusLine key from ~/.claude/settings.json only if it points at ~/.claude/ogxo-statusline.sh (back up the file first), then delete ~/.claude/ogxo-statusline.sh. If statusLine points at something else, leave it and say so.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ogxo-io/plugins --plugin ogxo-statusline