Skip to content

Convex Test Writer

Writes vitest tests for Convex functions using an in-memory backend

Stars
9,546
Licence
MIT
Files
1 file

What it does

When installed, the agent follows a set workflow to write automated tests for a Convex app's backend functions. It sets up convex-test and vitest, seeds data, calls queries and mutations, and checks auth paths, error cases, indexes and scheduled functions, all against a simulated in-memory database rather than a live deployment. It is a guide for writing and running tests, not a tool that changes production data.

Great for

  • Developers building an app on Convex who want test coverage for their backend functions
  • Teams adding auth and error-path tests to existing Convex code

Skip it if

  • Non-developers or projects that do not use Convex, since the instructions only apply to Convex functions
  • Testing a live production deployment, because the skill explicitly targets the in-memory backend and deterministic tests

Try asking

  • “Write convex-test tests for my messages mutations, including auth checks”
  • “Add vitest coverage for the scheduled functions in my Convex project”
  • “Generate tests for the args and return values of my Convex queries”
Step-by-step guide: how to use Convex Test WriterInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    convex-test.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip convex-test.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip convex-test.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Point the agent at a specific Convex file or module so it can read the real function signatures and schema
  • Ask for both happy-path and failing-auth cases so the agent covers the error paths the skill asks for
  • Review the generated tests and run vitest yourself, since the skill file itself contains no executable scripts

What's inside

  • SKILL.md

Redistributed unmodified from openclaw/clawhub under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.