agentleFS
eltonylfgi-blipeltonylfgi-blip/claude-code-usage-guard/skills/setup/SKILL.md

setup

Skill4 starsChanged 4 months agoMITView on GitHub

One-command setup for usage-guard's real plan quota. Use this whenever the user runs /usage-guard:setup, asks to enable/activate/turn on the real 5-hour and weekly quota reading, asks to wire up the status line, or when /usage-guard:usage shows no "Real plan quota" block (only the weighted fallback). Detects the installed plugin and writes the status-line shim into the user's settings.json for them, preserving any existing status line, so they don't have to edit JSON by hand.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-voice-transcription, add-discord 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.
  • juancruzmunozalbeloSkill

    add-voice-transcription

    Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.

    Also in 5 projects that use this

  • 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

  • juancruzmunozalbeloSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 7 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 1

    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:

    If it prints NOT_FOUND, tell the user to run /plugin install usage-guard@cc-guard first, then retry.

    line 18
  2. Very specific:

    If there is NO existing statusLine, set it to run the shim directly:

    line 23
  3. Very specific:

    If a statusLine.command already exists, do NOT clobber it — chain it through the env var so their line still renders after the snapshot:

    line 27
  4. Very specific:

    Idempotent: If the statusLine already points at usage-guard-statusline.mjs, change nothing — just confirm it's set.

    line 36
  5. Very specific:

    Only touch the statusLine key: Never remove or overwrite unrelated settings.

    line 37
  6. Distinctive:

    When in doubt, show don't guess: If multiple installs are found or the settings look unusual, print the exact block for the user to paste …

    line 38

“Common” is measured: kept by at least 6 in 10 of the 170 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

usage-guard setup

Most people install usage-guard but never wire the one-time status-line shim, so the real plan quota never turns on and the guard stays silent. This skill does that wiring for them with as little friction as possible. Prefer doing the edit for the user (with a backup) over just printing instructions — the whole point is to remove the manual step.

Steps

  1. Locate the installed status-line shim. It lives under the user's Claude plugins dir. Run this (works on macOS, Linux and Windows):

    node -e "const fs=require('fs'),p=require('path'),os=require('os');const root=p.join(os.homedir(),'.claude','plugins');let hit;(function w(d){let es;try{es=fs.readdirSync(d,{withFileTypes:true})}catch(e){return}for(const x of es){if(x.name==='node_modules'||x.name==='.git')continue;const f=p.join(d,x.name);if(x.isDirectory())w(f);else if(x.name==='usage-guard-statusline.mjs')hit=f}})(root);console.log(hit||'NOT_FOUND')"

    If it prints NOT_FOUND, tell the user to run /plugin install usage-guard@cc-guard first, then retry.

  2. Open the user's settings. Path: ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json). If it does not exist, create it as {}. Always back it up first (copy to settings.json.bak) before editing.
  3. Wire the statusLine, preserving any existing one:
    • If there is NO existing statusLine, set it to run the shim directly:
      "statusLine": { "type": "command", "command": "node \"<ABSOLUTE_PATH_FROM_STEP_1>\"" }
    • If a statusLine.command already exists, do NOT clobber it — chain it through the env var so their line still renders after the snapshot:
      "statusLine": { "type": "command", "command": "USAGE_GUARD_STATUSLINE='<their existing command>' node \"<ABSOLUTE_PATH_FROM_STEP_1>\"" }
      (On Windows the env var is set in the wrapping shell — see TUTORIAL.md for the .cmd wrapper.)
  4. Confirm in one line. Tell the user it's wired, and that after their next couple of Claude Code messages, /usage-guard:usage will start with a real Real plan quota block. Note that real quota only appears on Claude.ai Pro/Max sessions and only after the first API response; until then the weighted fallback is used.

Rules

  • Idempotent. If the statusLine already points at usage-guard-statusline.mjs, change nothing — just confirm it's set.
  • Only touch the statusLine key. Never remove or overwrite unrelated settings. Keep the backup.
  • When in doubt, show don't guess. If multiple installs are found or the settings look unusual, print the exact block for the user to paste instead of editing blindly.
  • This wires the free real-quota reading. If it still doesn't surface after setup, the user's machine may not expose rate_limits yet — that is the case the optional hands-on setup service covers.

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.