convex-test
What it does
This skill writes tests for the functions in a Convex app. It is for builders who want to catch bugs before users do.
When to use it
- ✓When you have written Convex functions and want tests for them.
- ✓When you want to check that sign-in rules block people who should not get in.
- ✓When you add scheduled jobs and want to confirm they run as expected.
Skill link
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-test/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Write automated tests for my Convex functions, including the cases where a user is not signed in.”
5 new skills a week. 1 minute to read.
How it works
The agent installs the testing tools, writes tests that run against a simulated Convex backend in memory, seeds sample data, and calls your functions to check the results.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Generate Convex tests
Use convex-test + vitest to test functions against an in-memory backend: args/returns, auth paths, indexes, and scheduled functions.
Workflow
- Install convex-test + vitest.
- Write tests using convexTest(schema): seed via t.run, call t.query/t.mutation, assert.
- Cover auth (withIdentity), error paths, and scheduled functions (t.finishInProgressScheduledFunctions).
- Run vitest; keep tests deterministic.
Rules
- Use convex-test (in-memory), not a live deployment.
- Cover auth + error paths, not just the happy path.
- Keep tests deterministic (no real time/network).
FAQ
Do the tests use my live database?
No. They run against an in-memory copy, not a live deployment.
Do the tests only check the normal case?
No. The skill covers sign-in and error paths as well as normal use.
Are the tests repeatable?
The skill keeps them deterministic, so they do not depend on the real clock or network.
Details
Original description by the author
Generate convex-test tests for the app's Convex functions.
repo: openclaw/clawhub
Popularity
- GitHub stars
- 9.5k
- Ranking position
- #12260
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
axiom-alerting
9.5kHelps your agent create and manage Axiom monitors and notification routes through the Axiom API, and check that alerts behave as expected.
axiom-sre
9.5kHelps your agent investigate production incidents and bugs step by step, testing each guess against Axiom logs before drawing a conclusion.
building-dashboards
9.5kHelps your agent design Axiom dashboards with fitting charts, queries and filters, starting from the decisions the dashboard must support.
controlling-costs
9.5kHelps your agent find unused data in Axiom and build dashboards and monitors that track and cut logging costs.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.