/kenji:audit-infra-costfrom kenji skills
Read-only audit of hosting, database, storage, egress, and serverless spend (Supabase, Vercel, S3/R2, edge). Quantifies waste and plans cuts without sacrificing reliability or backups.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Degree of freedom: HIGH — quantify and plan. Phase 2 stays plan-only
until approved. Never propose a cut that weakens backups (plan-backup-dr).
Read-only. Find where money leaks in the infra bill and plan cuts that do not trade away reliability.
For a solo operator, infra cost is runway. A silent egress or storage leak can double a bill nobody is watching.
Quantify and plan. Apply only on approval. Never propose a cut that weakens backups (
plan-backup-dr) or user experience.
| Skill | Owns |
|---|---|
| audit-infra-cost (this) | Compute, storage, bandwidth, platform fees |
audit-cicd | GitHub Actions minutes / artifacts |
plan-llm-cost-guardrails | Model tokens / quota abuse |
test-load | Measured peak — right-size to this, not a guess |
audit-bundle-size / audit-performance | Client payload (feeds egress) |
backend-db-performance | The index that stops compute burn |
Observe: object-storage bill is 40% of spend; logs prefix has no lifecycle; backups retained 90 days (DR requirement). Interpret: unbounded logs are the leak; backup retention is not a cut. Classify: safe quick win (expire temp logs) + do-not-cut (backups). Severity: major $; reliability risk low if only temp logs expire. Finding: logs | ~X% | lifecycle 7d | do not touch backup prefix
Enumerate billed resources and, if the provider exposes it, the breakdown:
Note each pricing model (per-request, per-GB, per-hour, tiered) — that is where the leak hides. Pricing tiers change: fetch the provider's current pricing page rather than quoting tiers from memory; a remembered price is not evidence for a saving estimate.
Egress — Large assets from origin every request? Unoptimized images?
Hotlinking / unthrottled public endpoints? Cross-check audit-bundle-size.
Storage growth — Unbounded uploads, logs, backups that never expire, orphans after DB deletes. Lifecycle to cheaper tiers?
Over-provisioning — Sized for a rare peak, 24/7 low utilization. Pair
with test-load. Under-provision that forces expensive workarounds is also
a finding.
Serverless — Keep-warm waste, chatty N+1 invocations, long functions that belong on a queue, cron too frequent.
Database — Full scans, missing indexes (backend-db-performance),
pool misconfig forcing a bigger instance, unbounded rows with no archive.
Zombies — Duplicate staging, unused region, leftover add-ons.
Tier fit — Next tier cheaper than overages? Paid add-on cheaper than the current pattern?
Estimate saving magnitude ("egress is ~X% of the bill; CDN cuts most of it") and reliability risk.
Protect plan-backup-dr items. Do not expire backups to save cents.
test-loadtest-load or utilization, not a guessaudit-cicd; tokens → plan-llm-cost-guardrailsaudit-cicd — pipeline costplan-llm-cost-guardrails — token spendtest-load — capacity numbersplan-backup-dr — do not cut restoreaudit-bundle-size / backend-db-performance — technical leversWhat SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
Other plugins' skills for the same job