skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
c0nant/c-skills59 installs

setup-statusline

Replace the old shell status line with the c-mods plugin

How do I install this agent skill?

npx skills add https://github.com/c0nant/c-skills --skill setup-statusline
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill facilitates the migration from an older shell-based status line utility to a new plugin. It performs a targeted cleanup of specific local configuration files and provides instructions for the manual installation of the replacement plugin from the author's repository.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Setup Status Line

The status line now lives in the c-mods plugin (statusline function): model, effort, context usage, session duration, rate limit and git branch, with no bash script, jq or baseline file. This skill no longer installs anything. It removes the old shell-based model from the machine and points to the plugin.

What gets removed

  • statusLine in ~/.claude/settings.json, only when its command points to statusline-command.sh.
  • Hook entries carrying the marker claude-hook:statusline-reset under SessionStart, SessionEnd and UserPromptSubmit.
  • ~/.claude/statusline-command.sh, ~/.claude/statusline-reset-hook.sh and ~/.claude/statusline-baseline.json.

Everything else in settings.json stays untouched.

Prerequisites

  • jq installed (used only for this cleanup)

Steps

1. Clean the old setup

SETTINGS="$HOME/.claude/settings.json"

if [ -s "$SETTINGS" ] && jq -e . "$SETTINGS" >/dev/null 2>&1; then
  jq '
    (if ((.statusLine.command // "") | test("statusline-command\\.sh")) then del(.statusLine) else . end)
    | reduce ("SessionStart","SessionEnd","UserPromptSubmit") as $ev (.;
        if .hooks[$ev] then
          .hooks[$ev] |= map(select((.hooks // []) | map(.command // "") | any(test("claude-hook:statusline-reset")) | not))
          | if (.hooks[$ev] | length) == 0 then del(.hooks[$ev]) else . end
        else . end)
    | if (.hooks // null) == {} then del(.hooks) else . end
  ' "$SETTINGS" > "$SETTINGS.tmp" && mv "$SETTINGS.tmp" "$SETTINGS"
else
  echo "settings.json missing or not valid JSON: nothing to clean"
fi

rm -f "$HOME/.claude/statusline-command.sh" \
      "$HOME/.claude/statusline-reset-hook.sh" \
      "$HOME/.claude/statusline-baseline.json"

2. Install the plugin

Tell the user to run, inside Claude Code:

/plugin install c-mods --marketplace C0nanT/c-mods

Already installed: claude plugin update c-mods, then /reload-plugins.

3. Toggle

/c-mods statusline off
/c-mods statusline on

The reset clock uses the machine's local timezone. If auto-detect is wrong, set STATUSLINE_TZ (IANA name, e.g. America/Sao_Paulo) in ~/.claude/settings.json env.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/c0nant/c-skills/setup-statusline">View setup-statusline on skillZs</a>