
Description
convex-functions is an agent skill that writes Convex backend functions, including queries, mutations, actions and internal functions, in the object form. Every exported function in the convex folder declares args and returns validators, and the skill makes the agent use correct ctx usage and respect runtime boundaries. The skill's guide to picking a function type is a short table. A query reads the database, is cached and reactive, and is called by clients or other functions. A mutation reads and writes in one transaction. An action can make external calls, such as fetch or third-party SDKs and Node APIs, and it reaches the database only through runQuery and runMutation. Internal query, mutation and action variants can only be called by other Convex functions, which suits scheduled work, crons and privileged writes. HTTP actions handle requests in convex/http.ts, for webhooks and REST endpoints. The skill tells the agent to default to a query or mutation and to reach for an action only when the handler has to talk to something outside Convex. It also covers returning null with returns v.null() and hoisting a shared document validator when several functions return the same shape. It is aimed at developers building apps on Convex. Install it with npx skills add https://github.com/waynesutton/builder-skills --skill convex-functions.…
Highlights
- Object-form query, mutation and action definitions
- Args and returns validators on every function
- Guidance on choosing the function type
- Internal functions for scheduled and privileged work
- HTTP actions for webhooks and REST endpoints
Ratings & Reviews
No ratings yet
Be the first to rate convex-functions.
People also visit
convex-functions FAQ
What does this skill write?
Convex queries, mutations, actions, internal functions and HTTP actions, in the object form with validators.
When should I use an action?
Only when the handler must call something outside Convex, such as a third-party SDK or fetch. The skill says to default to a query or mutation.
What is an internal function for?
Functions that only other Convex functions can call, such as scheduled work, crons and privileged writes.
How do I install it?
Run npx skills add https://github.com/waynesutton/builder-skills --skill convex-functions.
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best convex-functions alternatives?
Popular alternatives to convex-functions include convex-expert, convex-design and convex-create-component. See all convex-functions alternatives
