AgentStack
SKILL verified MIT Self-run

Convex

skill-ashish7802-awesome-api-skills-convex · by ashish7802

A Claude skill from ashish7802/awesome-api-skills.

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-ashish7802-awesome-api-skills-convex

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Convex? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Convex API Skill

Quick Start

Convex manages your database, server functions, and client state. You write server functions in TypeScript, and Convex automatically syncs the results to your React frontend via WebSockets.

npm install convex

Common Workflows

Realtime Queries

Write a query function in your convex/ folder. In your React component, use useQuery(api.messages.list). Convex handles the WebSocket subscription; if the database changes, the React component automatically re-renders.

Production Patterns

Mutations and Actions

Use mutation functions for deterministic database writes. Use action functions (which can call third-party APIs like OpenAI or Stripe) for non-deterministic side effects. Actions can subsequently call mutations to update the database.

Error Recovery

Convex automatically retries deterministic queries and mutations if they fail due to transient database locks. Actions are NOT retried automatically; handle HTTP failures explicitly within your action code.

Security Notes

Enforce authorization directly within your Convex query and mutation functions by verifying the ctx.auth object before reading or writing data.

Performance Considerations

Because queries are strictly deterministic, Convex caches their results transparently. Avoid fetching massive data sets; utilize pagination patterns or explicit limit clauses.

Testing Guidance

Use the convex-test library to write unit tests for your backend functions, passing in mock authentication states to verify your row-level security logic.

Troubleshooting

If a mutation throws a non-deterministic error (e.g., Math.random() or fetch()), Convex will reject it. Move side-effects into action functions.

References

Related Skills

  • [Clerk](/skills/clerk)
  • [Vercel](/skills/vercel)

Why use this skill

Use this when your agent works with convex — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • [ ] Migrations version-controlled and applied via CI
  • [ ] Connection limits and pooling configured
  • [ ] Backups and restore procedure documented

Related skills

  • [clerk](../clerk/SKILL.md) — related to
  • [vercel](../vercel/SKILL.md) — related to

> Last Verified: 2026-07-02

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.