convex-expert
하는 일
이 스킬은 convex 폴더 안의 코드를 위한 Convex 전문가입니다. 플랫폼 규칙을 따르고 흔한 실수를 피하는 백엔드 코드를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Convex 프로젝트에서 함수, 스키마, 인덱스를 작성하거나 편집할 때.
- ✓Convex 앱에 HTTP 엔드포인트, 예약 작업, 파일 저장소를 추가할 때.
- ✓Convex 위에 AI 채팅이나 여러 단계 워크플로를 만들어야 하는 경우.
스킬 링크
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-expert/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Convex 앱에 작업용 테이블을 추가하고, 각 사용자의 작업 목록을 가져오는 함수를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 기존 스키마를 읽고, 필수 형식으로 함수를 쓰며, 입력과 출력에 검사를 넣고, 조회에는 인덱스를 쓰며, 코드가 오류 없이 배포되는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Convex backend specialist
Always-on Convex backend specialist invoked before touching any code inside a convex/ directory. Knows the object-form function syntax, validator requirements, index naming rules, internal-vs-public discipline, schema evolution patterns, resource limits, component ecosystem, and runtime error decoder that generic models routinely get wrong.
Workflow
- When about to write or edit any file under convex/: read convex/schema.ts first (and convex/_generated/ai/guidelines.md if present).
- Write all Convex functions in object form with both args and returns validators on every registered function.
- Use withIndex(...) for every read path — never .filter() for anything that would be a SQL WHERE clause.
- Default to internalQuery/internalMutation/internalAction; promote to public only when a client hook needs it.
- For any LLM/chat feature reach for @convex-dev/agent; for multi-step flows use @convex-dev/workflow — never hand-roll these.
- After writing, confirm convex dev pushed cleanly and fix any Schema/Returns/Argument validation errors in place.
Rules
- DATA ACCESS + IMPORTS — read before writing any convex/*.ts (front-loaded, not a post-hoc lint):
- Never an unbounded
.collect()on a table that can grow — use.withIndex(...)and.paginate(paginationOptsValidator)/.take(n)instead. This is the single most common Convex deploy-blocking and perf defect. - Index, don't filter — add
.index(...)in schema.ts for every read path and query it with.withIndex(...);.filter()is a full table scan, never a substitute for a WHERE. - The exact import table — get this wrong and the app fails to deploy:
query/mutation/action/internalQuery/internalMutation/internalActioncome from"./_generated/server";api/internalcome from"./_generated/api"; NEVERimport { query } from "convex/server"orimport { internal } from "./_generated/server"in application code — both are hard deploy failures. v.literal("exact value")for a fixed string/enum member (e.g.v.union(v.literal("open"), v.literal("closed"))) — not a barev.string()when the set of values is fixed."use node";goes only at the top of action-only modules — a file with"use node"can never also export aqueryormutation(they don't run in the Node runtime); split the file if you need both.- Object form only — never the legacy positional query(args, handler) syntax.
- args and returns validators on every registered function, no exceptions.
- v.id(tableName) for IDs, never v.string(); undefined is not a Convex value (use null).
- Never add a required field to a populated table — add v.optional(...) first, backfill, then tighten.
- Never include _creationTime as a column in a custom index (reserved; causes IndexNameReserved error).
- Never store storage URLs in tables — store the Id<'_storage'> and call ctx.storage.getUrl(id) on read.
- Mutations cannot fetch — all external IO goes in actions; persist via ctx.runMutation(internal.x.y).
- Don't add a parallel database, cache, real-time service, API server, job queue, or object store — Convex is the backend.
- Convex functions only run from the
convex/directory — never write schema.ts/queries/mutations/actions at the project root. - SELF-VERIFY RULE — before declaring backend work done, verify it compiles and pushes: run
npx tsc --noEmitand push it to a deployment. Prefer the project's existing one; otherwisenpx convex dev --oncewhennpx convex whoamisucceeds, andCONVEX_AGENT_MODE=anonymous npx convex dev --onceONLY when it does not. Forcing anonymous on a signed-in user rebinds.env.localand costs them the persistent, publishable cloud deployment they expect. Fix every error it reports before finishing — one verify round catches the wrong-relative-import / duplicate-symbol / unbalanced-paren class that otherwise breaks the deploy.
자주 묻는 질문
스킬이 스키마를 먼저 읽는 이유는 무엇인가요?
새 코드가 프로젝트에 이미 있는 데이터와 맞도록 하기 위해서입니다.
어떤 규칙을 따르나요?
읽기에는 인덱스를 쓰고, 클라이언트가 필요로 하지 않는 한 함수를 내부용으로 두며, 입력과 출력 검사를 요구합니다.
프로젝트가 먼저 설정되어 있어야 하나요?
예. 스킬은 Convex 프로젝트 안의 코드에서 작동하므로, 프로젝트가 이미 있어야 합니다.
상세 정보
작성자의 원본 설명
Convex backend specialist. Use this agent for any code inside a `convex/` directory — function definitions, schemas, indexes, queries, mutations, actions, HTTP endpoints, cron jobs, file storage, auth wiring, and component installation. Knows the object-form function syntax, validator patterns, resource limits, and component ecosystem that generic Claude routinely gets wrong.
repo: openclaw/clawhub
인기도
- GitHub 스타
- 9.5k
- 순위
- #12244
- 라이선스
- 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에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.