Skills
Chapter 8 of 33
Preview Convex spend — rank functions by bytes/documents-read × call-volume from insights, project each cost driver’s growth curve, name the cheapest fix; confirm-cost for paid…
3 minutes · 609 words · 3 sections
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.
insights for the bytes-read / documents-read events (the direct cost signal — Convex bills on function calls + bandwidth), tables for row counts (a table’s size bounds its scan cost), functionSpec for the surface. If there’s no usage/traffic yet, say so and estimate from the query SHAPES instead (a .collect() on a table projected to grow is a future cost even with zero traffic today)..collect() grows LINEARLY with the table (cost compounds as data accumulates); an indexed .take(n) stays flat. Give the user the shape of the curve (‘this is O(table size) per call — fine at 1k rows, a bill at 1M’), not a false-precision dollar figure..withIndex instead of scan, .paginate/.take instead of .collect, an aggregate component for counts, caching a hot read — and emit it as a cost-class finding on the bus (evidence: the insight event + the projected growth) pointing at convex-expert/convex-advisor for the actual change.Install this repository
npx skills add get-convex/agent-skillsSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
Preview Convex spend — rank functions by bytes/documents-read × call-volume from insights, project each cost driver's growth curve, name the cheapest fix; confirm-cost for paid actions.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 4 August 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:/get-convex/agent-skills.md, and each chapter at its own .md URL.