Agent skill
convex-function-creator
Create Convex queries, mutations, actions, and internal functions with validators, auth checks, async safety, and correct runtime boundaries.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/convex-function-creator
Metadata
Additional technical details for this skill
- author
- agentforge
- source
- get-convex/convex-agent-plugins@f104efb49a787a1ef4a6c84df496d58800ce334a
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?