agentleFS
Chy-Zaber-Bin-ZahidChy-Zaber-Bin-Zahid/claude-code-statusline/skills/setup/SKILL.md

setup

Skill1 starsChanged 51 days agoMITView on GitHub

Turn on Statuslines as the user's status line, or refresh it after a plugin update. Run when the user types /statuslines:setup.

  • Installs packages

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run command -v jq. If it prints nothing, stop and tell the user to install jq, then run /statuslines:setup again:

    line 15
  2. Very specific:

    If it already has a statusLine whose command doesn't run statusline-plugin.sh, show the user the current value and ask before replacing it, …

    line 36
  3. Very specific:

    Check the file is still valid JSON afterwards (jq .

    line 50
  4. Very specific:

    If a project's own .claude/settings.json sets a statusLine, that one wins inside that project.

    line 65
  5. Very specific:

    After updating the plugin, run /statuslines:setup again to copy the new version.

    line 66

“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Set up Statuslines

Point the user's Claude Code status line at this plugin's script. Work through the steps in order, run the commands yourself, and tell the user in plain words what you changed.

Below, CONFIG_DIR means ${CLAUDE_CONFIG_DIR:-$HOME/.claude}.

1. Check for jq

Run command -v jq. If it prints nothing, stop and tell the user to install jq, then run /statuslines:setup again:

  • macOS: brew install jq
  • Debian or Ubuntu: sudo apt install jq
  • Windows: winget install jqlang.jq

2. Copy the script to a fixed place

The script ships with this plugin as statusline.sh, two folders above this skill's base directory (<base directory>/../../statusline.sh). If it is not there, use the newest CONFIG_DIR/plugins/cache/statuslines/statuslines/<version>/statusline.sh.

The plugin's folder changes with every version, so copy the script out instead of pointing at it. If statusline-plugin.sh already exists there and does not contain github.com/Chy-Zaber-Bin-Zahid/, it is someone else's file: ask the user before overwriting it.

cp "<path to statusline.sh>" "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/statusline-plugin.sh"
chmod +x "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/statusline-plugin.sh"

3. Update settings.json

Open CONFIG_DIR/settings.json (if it does not exist, create it containing {}).

If it already has a statusLine whose command doesn't run statusline-plugin.sh, show the user the current value and ask before replacing it, so they can switch back later. If it already matches the block below exactly, leave the file alone.

Otherwise set the top-level statusLine key to exactly this, keeping every other setting as it is:

"statusLine": {
  "type": "command",
  "command": "bash \"${CLAUDE_CONFIG_DIR:-$HOME/.claude}/statusline-plugin.sh\"",
  "refreshInterval": 60
}

refreshInterval redraws the line every minute even while the session is idle, so reset countdowns stay current and the usage bars can turn grey when their numbers get old. A setup from an older version lacks it, so add it there too.

Check the file is still valid JSON afterwards (jq . <file>).

4. Test it

echo '{"model":{"display_name":"Opus"},"effort":{"level":"high"},"context_window":{"used_percentage":42},"rate_limits":{"five_hour":{"used_percentage":63},"seven_day":{"used_percentage":81}}}' \
  | bash "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/statusline-plugin.sh"

It should print one line with the model name and the usage meters (three bars, unless the user's statusline-plugin.json changes that). If it prints an error instead, show the error to the user.

5. Tell the user

  • It is set up, and the new status line appears after their next message.
  • The 5-hour and weekly bars appear only on a Claude Pro or Max plan, once the session has had its first reply. With an API key or another provider (Bedrock, Vertex, GLM and so on) they stay hidden.
  • If a project's own .claude/settings.json sets a statusLine, that one wins inside that project.
  • After updating the plugin, run /statuslines:setup again to copy the new version.
  • To change what it shows (hide parts, percentages only, reset times and more), run /statuslines:configure, for example /statuslines:configure percent only, hide git.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.