add-convex-best-practices-skills
v1.0.1
Published
Install Convex best practices as AI coding assistant skills
Downloads
14
Maintainers
Readme
Convex Best Practices
Comprehensive best practices guide for building scalable Convex applications, optimized for AI agents and LLMs.
Installation
npx add-convex-best-practices-skillsTo uninstall:
npx add-convex-best-practices-skills --uninstallThis installs the skill to: ~/.cursor/skills, ~/.opencode/skills, ~/.claude/skills, ~/.codex/skills, ~/.github/skills, ~/.droid/skills
Overview
This skill provides 20+ rules across 6 categories:
- Database Performance (CRITICAL) - Indexes, queries,
.collectlimits - Security & Validation (CRITICAL) - Argument validators, access control
- Actions & Side Effects (HIGH) - When to use actions, avoiding sequential calls
- Async Patterns (HIGH) - Awaiting promises, workflow patterns
- Code Organization (MEDIUM) - Helper functions, directory structure
- React Integration (MEDIUM) - Loading states, optimistic updates
Usage
For AI Agents
The main entry point is AGENTS.md which contains all rules in a single document, optimized for context window usage.
For Humans
Browse individual rule files in the rules/ directory for detailed explanations and examples.
Rule Format
Each rule file contains:
- Title and impact level - Quick assessment of importance
- Explanation - Why the rule matters
- Incorrect example - Common anti-pattern to avoid
- Correct example - Recommended approach
- Reference - Link to official documentation
Contributing
To add a new rule:
- Copy
rules/_template.md - Name it with the appropriate prefix (
db-,security-,action-, etc.) - Fill in the template with the rule details
- Update
SKILL.mdquick reference - Regenerate
AGENTS.md
Credits
- Skill structure based on vercel-labs/agent-skills
- Best practices adapted from Convex Best Practices
