convex-cost
Preview Convex spend — rank functions by bytes/documents-read × call-volume from insights, project each cost driver's growth curve, name the cheapest fix…
Skill by convex
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/convex-convex-cost
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: marketing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/convex-cost
What's inside
- Skill name
convex-cost- Description
- 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.
- License
- Apache-2.0
- Instructions
- 26 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
<!-- GENERATED from convex-agents content/capabilities/convex-cost.json — do not edit by hand. -->
# 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
1. GUARD: deploy-guard — a cost read is read-only over dev/prod (insights is cloud+user-auth only; not previews). Announce the deployment.
2. GATHER the spend evidence via the official MCP: `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).
3. ATTRIBUTE: rank functions by bytes/documents read per call × observed (or asked-about) call volume — the product is the cost driver, not either alone. A cheap-per-call function called constantly can outweigh an expensive rare one; show both factors.
4. PROJECT: state how the top drivers scale — a full-table `.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.
5. NAME THE CHEAPEST FIX per driver — index + `.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.
6. CONFIRM-COST for paid actions: if the flow includes anything metered (a domain purchase, cloud provisioning, a plan change), STATE the price and recurrence explicitly and get an explicit yes BEFORE proceeding — never let a paid action happen as a side effect (the cost-confirm gate).
7. REPORT: the current cost drivers ranked, each with its evidence + growth shape + fix, and a plain bottom line ('your spend is dominated by messages:list reading the whole table every call; index it and it drops ~100x'). Honest precision: Convex pricing changes and depends on plan — give relative/shape guidance and cite the pricing page for absolute numbers rather than inventing a dollar total.
## Rules
- Cost = data-read-per-call × call-volume — always show both factors; a cheap function called constantly can cost more than an expensive rare one.
- Read the deployment's own insights/bytes-read evidence for spend; with no traffic yet, price the query SHAPES (a scan on a growing table is a future cost).
- Give the growth CURVE, not false-precision dollars: O(table) scans compound as data accumulates; indexed access stays flat. Cite the pricing page for absolute figures.
- Every cost driver names its cheapest fix and emits a cost-class finding on the bus pointing at the fixer (convex-expert/advisor).
- Confirm-cost for any metered/paid action: state the price + recurrence and get an explicit yes BEFORE it happens — never as a side effect.
- Read-only over dev/prod (deploy-guard); insights is cloud+user-auth only. Cost composes convex-advisor's evidence but frames it as money, not latency.From convex/agent-skills, Apache-2.0.
More from convex/agent-skills
- 0.666score
convex-improve-convex-plugin
convex
Send this coding session's transcript to the Convex team for an AI post-mortem that improves the quickstart system.
SkillAFreshness: A★ 66Claude Code +9 - 0.663score
convex-deploy-guard
convex
Classify + announce the target Convex deployment before any deployment-affecting command; fresh explicit consent for prod actions; session read-only mode.
SkillAFreshness: A★ 66Claude Code +9 - 0.660score
convex-env
convex
Set and wire Convex deployment env vars / secrets for the app.
SkillAFreshness: A★ 66Claude Code +9 - 0.628score
convex-create-component
convex
Builds reusable Convex components with isolated tables and app-facing APIs.
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-authz
convex
Audit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a…
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-suggest
convex
Suggest the matching Convex component when the user hand-rolls a pattern it already solves (crons, sharded-counter, rate-limiter, storage, search, presence…
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-add
convex
Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search…
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex
convex
Convex is the backend agents get right on the first try: an all-TypeScript reactive platform where the database, server functions, scheduling, file storage…
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-expert
convex
Convex backend specialist.
SkillBFreshness: B★ 66Claude Code +9 - 0.623score
convex-design
convex
Design and build reactive, type-safe, production-grade backends on Convex.
SkillBFreshness: B★ 66Claude Code +9 - 0.623score
convex-launch-readiness
convex
Run every Convex audit (authz, reviewer, advisor, insights) into one scored, deduped readiness report with an ordered fix plan — Lighthouse for your backend.
SkillBFreshness: B★ 66Claude Code +9 - 0.623score
convex-explain-app
convex
Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from…
SkillBFreshness: B★ 66Claude Code +9
Signals
- Stars
- 66
- Forks
- 11
- Open issues
- 6
- Last commit (this folder)
- Aug 1, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/convex/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from convex
- 0.666score
convex-improve-convex-plugin
convex
Send this coding session's transcript to the Convex team for an AI post-mortem that improves the quickstart system.
SkillAFreshness: A★ 66Claude Code +9 - 0.663score
convex-deploy-guard
convex
Classify + announce the target Convex deployment before any deployment-affecting command; fresh explicit consent for prod actions; session read-only mode.
SkillAFreshness: A★ 66Claude Code +9 - 0.660score
convex-env
convex
Set and wire Convex deployment env vars / secrets for the app.
SkillAFreshness: A★ 66Claude Code +9 - 0.628score
convex-create-component
convex
Builds reusable Convex components with isolated tables and app-facing APIs.
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-authz
convex
Audit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a…
SkillBFreshness: B★ 66Claude Code +9 - 0.626score
convex-add
convex
Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search…
SkillBFreshness: B★ 66Claude Code +9
Cite this page
convex-cost skill. Agent Mart. https://agentmart.dev/skills/convex-convex-cost (last updated 2026-10-24)