convex-cost
Was er macht
Dieser Skill betrachtet, wie viele Daten eine Convex-App liest und welche Funktionen die meiste Nutzung verursachen. Er hilft Eigentümerinnen und Eigentümern, künftige Kosten vorherzusehen und böse Überraschungen auf der Rechnung zu vermeiden.
Wann du ihn nutzt
- ✓Wenn du wissen willst, was deine Convex-App bei wachsendem Verkehr voraussichtlich kostet.
- ✓Wenn deine Convex-Rechnung höher ist als erwartet.
- ✓Wenn du eine kostenpflichtige Aktion planst und den Preis nennen willst, bevor etwas abgerechnet wird.
Link zum Skill
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-cost/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Zeig mir, welche Teile meiner Convex-App die meisten Daten verbrauchen und was das bei wachsendem Verkehr kosten wird.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest die Nutzungsdaten der Convex-Umgebung, ordnet die Funktionen danach, wie viele Daten sie lesen und wie oft sie laufen, und schätzt das Wachstum. Vor jeder kostenpflichtigen Aktion fragt er nach deinem Ja.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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
- GUARD: deploy-guard — a cost read is read-only over dev/prod (insights is cloud+user-auth only; not previews). Announce the deployment.
- GATHER the spend evidence via the official MCP:
insightsfor the bytes-read / documents-read events (the direct cost signal — Convex bills on function calls + bandwidth),tablesfor row counts (a table's size bounds its scan cost),functionSpecfor 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). - 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.
- 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. - NAME THE CHEAPEST FIX per driver — index +
.withIndexinstead of scan,.paginate/.takeinstead 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. - 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).
- 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.
Häufige Fragen
Verändert dieser Skill meine App?
Er ist hauptsächlich eine reine Leseprüfung. Er meldet Kosten und schlägt Lösungen vor, statt sie anzuwenden.
Was ist, wenn meine App noch keinen Verkehr hat?
Der Skill schätzt die Kosten anhand der Form deiner Abfragen, etwa Lesezugriffe, die ganze Tabellen laden.
Welche Umgebung liest er?
Er nennt zuerst die Zielumgebung, etwa Entwicklung oder Produktion, damit du weißt, welche gelesen wird.
Details
Originalbeschreibung des Autors
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.
repo: openclaw/clawhub
Beliebtheit
- GitHub-Sterne
- 9.5k
- Platz im Ranking
- #12238
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
axiom-alerting
9.5kHilft deinem Agenten, Axiom-Monitore und Benachrichtigungswege über die Axiom-API anzulegen und zu verwalten und zu prüfen, ob Warnungen wie erwartet funktionieren.
axiom-sre
9.5kHilft deinem Agenten, Produktionsstörungen und Fehler Schritt für Schritt zu untersuchen und jede Vermutung gegen Axiom-Logs zu prüfen, bevor er ein Ergebnis zieht.
building-dashboards
9.5kHilft deinem Agenten, Axiom-Dashboards mit passenden Diagrammen, Abfragen und Filtern zu entwerfen, ausgehend von den Entscheidungen, die das Dashboard stützen muss.
controlling-costs
9.5kHilft deinem Agenten, ungenutzte Daten in Axiom zu finden und Dashboards und Monitore aufzubauen, die die Logging-Kosten verfolgen und senken.
Ähnliche Skills
api-connector-builder
280kLässt deinen Agenten neue API-Anbindungen nach dem bestehenden Muster bauen. Nutze es, wenn du eine weitere Integration ergänzen willst, ohne neue Wege einzuführen.
api-design
280kHilft deinem Agenten, REST-APIs nach Best Practices zu entwerfen. Nützlich für die Kommunikation, die Fehlerausgabe und die Organisation von Daten.
backend-patterns
280kHilft deinem Agenten bei Architekturmustern für die Serverseite und bei der Datenbankoptimierung. Nützlich zum Bauen und Prüfen von Server-Code.