convex-cost
하는 일
이 스킬은 Convex 앱이 얼마나 많은 데이터를 읽는지, 어떤 함수가 가장 많은 사용량을 일으키는지 살펴봅니다. 소유자가 앞으로의 비용을 예측하고 예상치 못한 청구서를 피하도록 돕습니다.
사용하는 경우
- ✓트래픽이 늘면 Convex 앱이 얼마나 들지 알고 싶을 때.
- ✓Convex 사용량 청구서가 예상보다 높을 때.
- ✓유료 작업 전에 아무것도 청구되지 않도록 가격을 미리 알고 싶은 경우.
스킬 링크
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-cost/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“트래픽이 늘면 제 Convex 앱의 어느 부분이 가장 많은 데이터를 쓰고 비용이 얼마나 될지 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 Convex 배포의 사용량 데이터를 읽고, 함수를 읽는 데이터량과 실행 빈도로 순위를 매긴 뒤 성장을 예측합니다. 유료 작업 전에는 먼저 여러분의 승인을 받습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
이 스킬이 앱을 바꾸나요?
주로 읽기 전용 검토입니다. 비용을 보고하고 수정을 제안하며, 직접 적용하지는 않습니다.
앱에 트래픽이 아직 없다면요?
쿼리의 형태, 예를 들어 전체 테이블을 불러오는 읽기로 비용을 추정합니다.
어느 배포를 읽나요?
대상 배포(예: 개발 또는 운영)를 먼저 알려서, 어느 것을 읽는지 알 수 있게 합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 9.5k
- 순위
- #12238
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
axiom-alerting
9.5k에이전트가 Axiom API로 Axiom 모니터와 알림 경로를 만들고 관리하며, 알림이 기대대로 작동하는지 확인하도록 돕습니다.
axiom-sre
9.5k에이전트가 운영 장애와 버그를 단계별로 조사하도록 돕습니다. 결론을 내리기 전에 각 추측을 Axiom 로그로 검증합니다.
building-dashboards
9.5k에이전트가 적합한 차트, 쿼리, 필터를 갖춘 Axiom 대시보드를 설계하도록 돕습니다. 대시보드가 지원해야 할 결정에서 시작합니다.
controlling-costs
9.5k에이전트가 Axiom에서 쓰이지 않는 데이터를 찾고, 로깅 비용을 추적하고 줄이는 대시보드와 모니터를 만들도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.