AI Spend — Security skill for Claude Code
Audit Claude Code token efficiency: MCP overhead, session patterns, skill cost, cache hit rate.
How to install AI Spend
Installs to ~/.claude/skills/cipshadow-leverage-and-taste-ai-spend/SKILL.md
mkdir -p ~/.claude/skills/cipshadow-leverage-and-taste-ai-spend && curl -fsSL https://raw.githubusercontent.com/cipshadow/leverage-and-taste/HEAD/commands/ai-spend.md -o ~/.claude/skills/cipshadow-leverage-and-taste-ai-spend/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What AI Spend does
name: ai-spend description: Audit Claude Code token efficiency: MCP overhead, session patterns, skill cost, cache hit rate. Add --full for actual dollar spend if you have billing data access. model: sonnet user-invocable: true
Audit Claude Code token spend and surface efficiency wins. Quantify everything in dollars.
**Argument:** `$ARGUMENTS`
- No argument → local-only audit (instant, no external queries)
--full→ include Layer 1: actual dollar spend from your billing source
Alternatives in Security
- MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
- Engage.Exploit — Execute Phase 4 - Exploitation and Access Establishment 348 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cost Autopsy
Session token-burn autopsy (TCO v1). Reads the TIS telemetry log and reports per-session token spend (input /
Optimize Harness
Audit one or all supported agent harnesses for config efficiency, hook overhead, permission friction, plugin a
Cc Cache Audit
A/B test proving Claude Code's billing header breaks cross-session prompt cache sharing. One env var fix saves
Audit Burden
Find features carrying technical cost, architectural weight, or delivery constraints disproportionate to their
LLM Spend Audit
Your agent setup charges rent on every session, before it does any work. Three stdlib-only instruments: what y
Claude Warmline
Makes Claude Code's prompt-cache state visible: HOT/COLD in your statusline from Claude Code's own data, plus
Related Agents
Budget
AI cost engineering — LLM spend tracking, model cost optimization, budget alerts, token efficiency audits
Paypal Specialist
PayPal payments + billing — server client, OAuth token cache, Orders v2 checkout and capture, subscriptions, r
Usage Reporter
Reads real Claude Code usage from ~/.claude/stats-cache.json. Reports daily/weekly token usage by model, cache