원클릭으로
limit-usage
Stop tool execution before exhausting your Claude usage — set a 5h/7d usage-% or per-session cost threshold.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Stop tool execution before exhausting your Claude usage — set a 5h/7d usage-% or per-session cost threshold.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Ask OpenAI Codex CLI for an autonomous second AI opinion. "ask codex", "codex と相談" などで起動。
Request GitHub Copilot review on a Pull Request. "PR レビュー依頼", "copilot review" などで起動。
Extract VTT transcript from a Zoom recording share page. "zoom transcript", "zoom 文字起こし" などで起動。
Download the video (MP4) from a Zoom recording share page. "zoom video download", "zoom 録画 ダウンロード", "zoom 動画 ダウンロード" などで起動。
Round-trip code review through difit. Use when the user mentions "difit", "diff review", "open the diff", "let me look at this", or "review this PR locally". Launch mode arg — "open" (default, no comments at launch), "explain" (AI annotates its own change), "review" (AI posts findings on human code).
Install or uninstall the limit-usage statusLine wrapper (edits settings.json).
SOC 직업 분류 기준
| name | limit-usage |
| description | Stop tool execution before exhausting your Claude usage — set a 5h/7d usage-% or per-session cost threshold. |
| disable-model-invocation | true |
| argument-hint | 5h=80 7d=90 | cost=$5 | clear | status |
| metadata | {"author":"pokutuna"} |
| allowed-tools | ["Bash(CLAUDE_SESSION_ID=* CLAUDE_PLUGIN_ROOT=* ${CLAUDE_PLUGIN_ROOT}/bin/guard.sh *)"] |
Manage per-window usage thresholds. Capturing usage needs a one-time /limit-usage-setup install; without it, thresholds do nothing.
Turn the input into one guard.sh call (guard.sh is strict; you do the friendly parsing):
CLAUDE_SESSION_ID=${CLAUDE_SESSION_ID} CLAUDE_PLUGIN_ROOT=${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/bin/guard.sh <subcommand>
set <window> <value> ... (set/=/%/$ are all optional decoration; strip them and pass the bare number, multiple windows in one call). 5h=80 7d=90 → set 5h 80 7d 90; cost=5 → set cost 5. A $ may appear anywhere in the cost token — before or after the =, or on a bare amount: cost=$1, cost $5, $1, $5/session all → set cost <n> (e.g. cost=$1 → set cost 1). Keep --global if present (but not with cost — see below). If one input mixes --global with cost, split into two calls — set <rate...> --global and a separate set cost <n> — since guard.sh rejects --global together with cost.
5h / 7d: the value is used_percentage (0–100); 5h 80 stops at 80% used. Needs a usage quota (the 5h/7d figures only show up on plans that have one).cost: the value is this session's approximate cumulative USD ceiling; cost 5 stops once the session reaches ~$5. A bare $N (no window word) means cost — $5 → set cost 5. Use this when 5h/7d aren't reported (a plan with no usage quota). It's per-session only — reject --global for cost (guard.sh errors anyway).clear (wipes every threshold in effect; to drop one window, re-set the others).status or no arguments → status. If status shows no 5h/7d usage, suggest a cost limit./limit-usage-setup install (or uninstall).A bare plain number with no window and no $ (90) → ask which window (5h / 7d / cost / combination); never guess. (A bare $-prefixed number like $5 is unambiguous — it's cost.)
State the result briefly. Mention /limit-usage-setup install only when the wrapper isn't installed.