skill-candidates/skill-cost-credit-governor/SKILL.md
Govern per-skill credit and token spend with deterministic warn/throttle/disable actions. Use when usage spikes, agent chatter, or budget overruns must be detected and contained.
npx skillsauth add grtninja/skill-arbiter skill-cost-credit-governorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to prevent silent spend escalation across multi-skill workflows.
skill_cost_governor.py analyze for a rolling window.cost_spike, inefficient_loop, agent_chatter, runtime_p95_high, remote_heavy_when_local_available).allow, warn, throttle, disable) from anomaly evidence.warn/throttle/disable actions.python3 "$CODEX_HOME/skills/skill-cost-credit-governor/scripts/skill_cost_governor.py" analyze \
--input /path/to/skill-usage.csv \
--window-days 30 \
--soft-daily-budget 120 \
--hard-daily-budget 180 \
--soft-window-budget 2800 \
--hard-window-budget 3400 \
--spike-multiplier 2.0 \
--loop-threshold 6 \
--chatter-threshold 20 \
--stack-health-url http://127.0.0.1:9000/health \
--stack-summary-url http://127.0.0.1:9000/api/accounting/summary \
--json-out /tmp/skill-cost-analysis.json \
--format table
python3 "$CODEX_HOME/skills/skill-cost-credit-governor/scripts/skill_cost_governor.py" decide \
--analysis-json /tmp/skill-cost-analysis.json \
--json-out /tmp/skill-cost-policy.json \
--format table
Use --force-global-action throttle or --force-global-action disable for emergency containment.
Before finalizing skill chains, provide:
skill_cost_analysis_json=/tmp/skill-cost-analysis.jsonskill_cost_policy_json=/tmp/skill-cost-policy.jsonglobal_action=<allow|warn|throttle|disable>If this evidence is missing, chain selection is incomplete and must fail closed.
Map analysis outcomes to deterministic action:
allow:
warn:
cost_spike or mild runtime_p95_high,throttle:
cost_spike and/or inefficient_loop,disable:
agent_chatter/loop amplification,Record both global_action and per-skill actions in the policy artifact.
Use this skill only for the skill-cost-credit-governor lane and workflow defined in this file and its references.
Do not use this skill for unrelated lanes; route those through $skill-hub and the most specific matching skill.
references/governor-workflow.mdreferences/policy-contract.mdIf this lane is unresolved, blocked, or ambiguous:
$skill-hub for chain recalculation.tools
Run a defender-first security sweep on code, configs, prompts, model/tooling surfaces, or third-party contribution lanes. Use when a request involves safe bug, leak, zero-day-class, exploit, or hack hunting for protection, when contributing to outside repositories and you want a focused security pass, or when touching auth, secrets, permissions, network exposure, prompt/tool boundaries, data flow, or update/build surfaces. This skill is defensive only and must never be used for weaponization or unauthorized access.
development
Validate and repair VRM Sandbox startup acceptance with shim-first local model authority, frontend/backend bring-up, and avatar-runtime launch proof. Use when launch behavior, chat handoff, voice fallback, or runtime bridge acceptance must be verified end to end.
documentation
Align documented voice-command catalogs, endpoint action allowances, and live runtime handlers so operator-visible voice surfaces match what the stack can actually execute. Use when voice command docs, parser matrices, endpoint permissions, or runtime action routing drift apart.
development
Track SkillHub trend and topic drift, maintain a bounded rewrite watchlist, and surface emerging gaps worth turning into repo-owned skills. Use when the marketplace query set shows new families or when the current shortlist has gone stale.