convex-function-creator
Skill4 starsChanged 9 months agoApache-2.0Archived repositoryView on GitHub
Create Convex queries, mutations, actions, and internal functions with validators, auth checks, async safety, and correct runtime boundaries.
In this repository56 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agentforge-a2aSkill
- agentforge-browser-toolingSkill
- agentforge-channel-adaptersSkill
- agentforge-cliSkill
- agentforge-convexSkill
- agentforge-dashboardSkill
- agentforge-mcp-integrationSkill
- agentforge-research-orchestratorSkill
- agentforge-runtime-daemonSkill
- agentforge-sandbox-executionSkill
- agentforgeSkill
- agentforge-skills-marketplaceSkill
- agentforge-template-syncSkill
- agentforge-testingSkill
- convex-advisorSkill
- convex-auth-setupSkill
- convex-best-practicesSkill
- convex-component-authoringSkill
- convex-components-guideSkill
- convex-cron-jobsSkill
- convex-file-storageSkill
- convex-helpers-guideSkill
- convex-http-actionsSkill
- convex-mcp-setupSkill
- convex-migration-helperSkill
- convex-quickstartSkill
- convex-realtimeSkill
- convex-reviewerSkill
- convex-schema-builderSkill
- convex-security-auditSkill
- convex-security-checkSkill
- convexSkill
- mastraSkill
- specsafe-agentforgeSkill
- specsafeSkill
- specSkill
- validateSkill
- working-with-sqliteSkill
- agentforge-convexSkill
- gh-workflowSkill
- spec-createSkill
- specsafe-agentforgeSkill
- specsafe-doneSkill
- specsafe-exploreSkill
- specsafe-newSkill
- specsafeSkill
- specsafe-specSkill
- specsafe-test-applySkill
- specsafe-test-createSkill
- specsafe-verifySkill
- specSkill
- template-sync-checkSkill
- validateSkill
- working-with-sqliteSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this when writing or reviewing Convex functions.
- Distinctive: line 18
Use auth and authorization checks for protected data.
- Very specific: line 19
Use internal.* for scheduler and backend-only flows.
- Distinctive: line 20
Keep wrappers thin and move reusable logic into plain TypeScript helpers.
- Very specific: line 30
Prefer .withIndex() over .filter() for primary lookups.
- Very specific: line 31
Avoid unbounded .collect() when pagination is the real requirement.
- Very specific: line 32
Never use Date.now() in queries.
- Distinctive: line 36
Read function-patterns.md for templates and anti-patterns.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Convex Function Creator
Use this when writing or reviewing Convex functions.
Default requirements
- Public functions should define
argsandreturns. - Await all promises.
- Use auth and authorization checks for protected data.
- Use
internal.*for scheduler and backend-only flows. - Keep wrappers thin and move reusable logic into plain TypeScript helpers.
Runtime boundaries
- Queries and mutations stay in the default Convex runtime.
"use node"files may contain only actions and helper logic for actions.- In AgentForge, actions are still not the place for Mastra runtime orchestration.
Query design
- Prefer
.withIndex()over.filter()for primary lookups. - Avoid unbounded
.collect()when pagination is the real requirement. - Never use
Date.now()in queries.
References
- Read function-patterns.md for templates and anti-patterns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

