Convex

From clawic/skills · View interactive version

Convex is an AI agent skill from the GitHub repository clawic/skills. Build and maintain Convex backends with schema-safe modeling, query and mutation patterns, auth guards, and production rollout checks.

How to use this skill

Skill file

Setup

On first use, read setup.md for integration guidelines.

When to Use

User is building, debugging, or scaling a Convex backend and needs reliable patterns for data modeling, queries, mutations, actions, auth, and deployments.

This skill focuses on implementation quality and operational safety, not generic framework tutorials.

Architecture

Memory lives in ~/Clawic/data/convex/. See memory-template.md for structure and status fields.

~/Clawic/data/convex/
|- memory.md               # Durable project context and technical decisions
|- schema-notes.md         # Table design and index rationale
|- rollout-notes.md        # Deploy and incident learnings
`- auth-notes.md           # Auth model and permission edge cases

Quick Reference

Use the smallest relevant file for the current task.

| Topic | File |

|-------|------|

| Setup flow | setup.md |

| Memory template | memory-template.md |

| Schema and indexes | schema-and-indexes.md |

| Deploy and operations | operations-playbook.md |

Requirements

Data Storage

This skill stores reusable context only under ~/Clawic/data/convex/:

Do not store secrets, access tokens, or personal data unless the user explicitly requests it.

Core Rules

1. Model Access Patterns Before Writing Schema

Define tables and indexes from real read paths first:

Do not rely on table scans in production paths.

2. Keep Function Boundaries Strict

Use each function type for its intended purpose:

Do not mix external calls inside deterministic data paths.

3. Enforce Auth and Authorization at Every Entry Point

Treat every query, mutation, action, and HTTP entrypoint as untrusted input:

Never trust client-provided identifiers without server checks.

4. Design Indexes for Stability, Not Just Speed

Create indexes that match long-term product workflows:

Document index intent so future changes do not break critical queries.

5. Make Writes Idempotent for Retries

For webhooks and external callbacks:

A retry should not create duplicate side effects.

6. Ship with Safe Rollout Discipline

Before deploying schema or logic changes:

Never deploy unreviewed breaking data changes.

7. Preserve Debuggability in Production

When fixing incidents:

Fast diagnosis compounds over time.

Common Traps

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.