claude-usage
SKILL.md
Claude Usage Checker
Launches the Claude CLI interactively (PTY) and reads the /usage output to report your Claude Code / Claude Max quota.
Prerequisites
- Claude CLI must be installed (
npm i -g @anthropic-ai/claude-code) and logged in - If running
claudeshows "Missing API key", the user must log in manually first: open a terminal, runclaude, and complete the browser login flow - Requires an interactive PTY — the agent will launch a local process and read its output (quota info only)
Steps
- Launch
claudewith PTY - Wait for the welcome screen (poll until it appears)
- Send
/usage+ Enter - Read the output (poll until usage data appears)
- Close with Escape then
/exit - Report the results