Before a Convex app ships, the expensive part is usually one or two functions quietly reading far more data than anyone expected, and convex-cost goes after exactly that. It pulls bytes and documents-read figures from the deployment's insights, multiplies them by call volume to rank which functions actually drive spend, and projects how each one scales as tables grow. A full-table `.collect()` is flagged as a cost that compounds with data, while an indexed `.take(n)` stays flat. For each driver it names the cheapest fix and hands off to convex-expert or convex-advisor for the change. It also forces an explicit yes on any metered action, like a plan change or domain purchase. It's read-only, so it's safe to run against prod. The one caveat: it gives curves rather than dollar totals, so you still check the pricing page for absolute numbers.

skills.sh installs
41.1K
GitHub stars
69
last updated
Oct 26, 2026

Install

$ npx -y skills add convex/agent-skills --skill convex-cost --agent claude-code

Installs into .claude/skills of the current project.

Files

Preview what this app will cost

Cost surprises come from a handful of functions reading far more data than anyone realized — the same read-heavy patterns convex-advisor flags for perf, seen through the money lens. This capability makes spend legible: it reads the deployment's own bytes/documents-read evidence, attributes it to the functions driving it, projects how it grows with traffic, and names the cheapest fix. It also carries the confirm-cost discipline (Supabase's structural consent for paid actions): before anything metered, state the price and get an explicit yes.

Workflow

Sponsors

Details

Repository
github.com/convex/agent-skills
Categories
AI & Agent Building, Debugging, Databases
First seen
Oct 26, 2026

More from convex/agent-skills

All 30
1convex avatarconvex-migrate-rehearseconvex/agent-skillsRehearse a live-app schema change + backfill on a snapshot-seeded preview deployment, verify, then promote the proven change to prod with the snapshot as rollba41.1Kskills.sh installs
2convex avatarconvex-launch-readinessconvex/agent-skillsRun every Convex audit (authz, reviewer, advisor, insights) into one scored, deduped readiness report with an ordered fix plan — Lighthouse for your backend.41Kskills.sh installs
3convex avatarconvex-explain-appconvex/agent-skillsExplain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the41Kskills.sh installs
4convex avatarconvex-backupconvex/agent-skillsSet up Convex backups and run a restore DRILL that proves recovery — snapshot, restore into a throwaway preview, assert the data came back — plus a schedule mat41Kskills.sh installs
5convex avatarconvex-domainsconvex/agent-skillsPoint a domain you already own at your Convex app (DNS records, custom-domain attach, auth-origin rebind).41Kskills.sh installs
6convex avatarconvex-billingconvex/agent-skillsAdd Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).41Kskills.sh installs