Mod Cost — Security skill for Claude Code
Audit Claude Code and Codex CLI token usage, cache efficiency, and BTE cost metrics across local session transcripts.
How to install Mod Cost
Installs to ~/.claude/skills/alex-caepio-ai-infra-mod-mod-cost/SKILL.md
mkdir -p ~/.claude/skills/alex-caepio-ai-infra-mod-mod-cost && curl -fsSL https://raw.githubusercontent.com/Alex-Caepio/ai-infra-mod/HEAD/commands/mod-cost.md -o ~/.claude/skills/alex-caepio-ai-infra-mod-mod-cost/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Mod Cost does
name: mod-cost description: Audit Claude Code and Codex CLI token usage, cache efficiency, and BTE cost metrics across local session transcripts. argument-hint: "\"[--host all|claude|codex] [--project substr] [--since-days N]\""
Audit AI session costs and token efficiency for `$ARGUMENTS`.
- Call
skill_cost_auditwith appropriate filters (host,project,since_days). - Summarize per-host and per-project session counts, input/cache/output tokens, and BTE cost metrics.
Alternatives in Security
- Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★
- Loongsuite Pilot — Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cu 150 ★
- Agentlinter — ESLint for AI Agents — AGENTS.md/CLAUDE.md 채점·진단·자동수정 Position Risk Warning · Token Efficiency · Security Chec 78 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
AI Spend
Audit Claude Code token efficiency: MCP overhead, session patterns, skill cost, cache hit rate. Add --full for
Cost Audit
Per-project Claude Code cost from local transcripts (token usage x API list prices). Read-only; cross-platform
Cost Autopsy
Session token-burn autopsy (TCO v1). Reads the TIS telemetry log and reports per-session token spend (input /
Claude Code Usage Audit
Where did my Claude Code usage go? Reads local Claude Code and Codex logs and splits the main agent's usage in
Tokendiet MCP
Zero-dependency Open-Core MCP server, CLI & GitHub Action to audit MCP JSON Schema token weight, simulate mult
Mod Vet
Security-vet and validate Agent Skills or plugins across 8 binary security gates, 4 scored quality gates, and
Related Agents
LLM Performance Analyst
Evaluates LLM agent performance from session transcripts — token usage, tool-call efficiency, and error patter
Usage Reporter
Reads real Claude Code usage from ~/.claude/stats-cache.json. Reports daily/weekly token usage by model, cache
Vault Optimizer Agent
Optimize vault workflows for token efficiency by routing work to CLI, MCP, cache, delta, skills, and slash com