/usage-check:check-usagefrom usage-check
Check how much of the user's Claude subscription usage is left (5-hour session window and weekly limits) by running the built-in /usage command non-interactively. Use before starting large or long-running work (big refactors, many subagents, long autonomous loops), when the user asks about usage, limits, quota or when they reset, or when a session has been running for a long time.
Ships in usage-check. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code's /usage command works in print mode. It runs locally, doesn't need a model call, and prints the same numbers as the interactive /usage screen.
Pick the form that matches the shell:
claude -p "/usage"MSYS_NO_PATHCONV=1 claude -p "/usage". Without the variable, MSYS rewrites /usage into a Windows path like C:/Program Files/Git/usage, and the text is sent as a normal prompt instead.claude -p "/usage"Run exactly one of these commands, with nothing added. They are pre-approved only in this exact form.
The lines that matter look like this:
Current session: 94% used · resets Sep 25, 9:09pm (Asia/Tokyo)
Current week (all models): 96% used · resets Sep 29, 1:59pm (Asia/Tokyo)
Current week (Fable): 4% used · resets Sep 29, 1:59pm (Asia/Tokyo)
If the output says the session is using an API key instead of a subscription, there are no plan limits to report. Say so and stop.
Before acting on a reading, compare each reset time with the current time (run date if you don't know it). If the reset time has already passed, that window has reset and its percentage is out of date: count it as 0% and get fresh numbers before deciding anything. Never offer to wait until a reset time that is already in the past.
Use the highest percentage among the lines that apply:
When reporting, keep it to one or two lines. For example: "Usage: 5-hour window 94% (resets 9:09pm), weekly 96% (resets Sep 29)."
Don't check more often than needed. This plugin's hook already adds a "Usage: ..." line to the context when a threshold is crossed or a window resets. If a recent line like that is in the context, trust it. Run the check yourself only when you need fresh numbers, such as right before a big task, or when the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rennerdo30/claude-usage-plugin --plugin usage-check