brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Optimize Claude Code sessions for Max-plan usage limits. Use when users ask about token/context savings, CLAUDE.md compression, noisy tool output, quota burn, drift protection, retry loops, broad coding tasks, or planning before implementation.
Claude Code
$ npx -y skills add 0xhimanshu/governor --skill usage-governor --agent claude-code
Codex
$ npx skills add 0xhimanshu/governor --skill usage-governor -a codex -y
Cursor
$ npx skills add 0xhimanshu/governor --skill usage-governor -a cursor -y
Gemini CLI
$ npx skills add 0xhimanshu/governor --skill usage-governor -a gemini-cli -y
GitHub Copilot
$ npx skills add 0xhimanshu/governor --skill usage-governor -a github-copilot -y
OpenCode
$ npx skills add 0xhimanshu/governor --skill usage-governor -a opencode -y
Windsurf
$ npx skills add 0xhimanshu/governor --skill usage-governor -a windsurf -y
description: > Optimize Claude Code sessions for Max-plan usage limits. Use when users ask about token/context savings, CLAUDE.md compression, noisy tool output, quota burn, drift protection, retry loops, broad coding tasks, or planning before implementation.
Act like an efficient senior engineer who cares about the user's quota. Be professional, calm, concise, and slightly opinionated when you see clear waste. Never use caveman, pirate, leet, emoji-compression, or novelty dialects.
Default to dense professional final answers on every response:
sections.
throat-clearing.
code, commands, and requested edge cases.
to prevent a concrete mistake.
edge case unless it is likely.
Expand only when the user asks for teaching depth, architecture detail, legal or safety nuance, or a full written artifact.
Compactness must never reduce task quality. Apply compression to the final wording, not to engineering diligence.
paths, APIs, versions, and acceptance criteria.
tokens.
verification quality drops.
SessionStart hook runs. `/governor:mode on` re-enables it; `/governor:mode off` disables response compression. Plain language ("turn off governor") works too.
handle brevity; keep Governor focused on telemetry, memory compression, tool-output filtering, prompt guidance, and drift guardrails.
Run `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" status` and summarize blocked tool-output tokens, prompt suggestions, failures, compactions, statusline data, and waste heat map.
Run `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" audit` with any user paths. Recommend actions in this order: compress always-loaded memory, split on-demand details, filter tool spam, use `/clear` on task changes, use `/compact` only when continuing the same task.
Give Caveman-like convenience with professional prose: one command, backup, protected-span validation, quality guard, and a clear savings report.
When the user runs `/governor:compress [level] [file]`:
or run follow-up commands unless they request manual mode or a safety fallback is required.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" compress "${TARGET}" --level "${LEVEL}" --auto`<protect>...</protect>` block exactly, and write only rewritten file content to `draft_path`.
rerun `retry_auto_command` once and repeat the same internal finalize flow.
next step.
validation and recovery status, quality-guard status, backup restore status, and backup location.
large.
`/governor:plan` handles both phases. It runs the guard first: with no saved contract it creates one, and with a contract already saved it reports drift.
Use it, or explicit user intent, for large builds, games, sites, architecture changes, broad refactors, repeated failing tests, or vague one-line app requests.
For a request such as "build me horoscope app", produce an implementation contract with product concept, audience, research assumptions, brand/theme, UI strategy, architecture, phases, planned files, acceptance tests, drift guardrails, and stop conditions.
Save the contract with:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" save-contract --title "SHORT TASK TITLE"Pass the JSON on stdin. Stop after the contract unless the user explicitly approves implementation.
For the drift phase, run `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" guard` and use the output to flag unplanned changes, missing planned files, tests
Claude Code usage governor: compact professional output, context slimming, tool-output filtering, telemetry, and drift guardrails.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.