Back to Skills

convex-migration

majiayu000
Updated 2 days ago
12 views
58
9
58
View on GitHub
Designdesigndata

About

This skill provides guidance for performing data migrations in Convex safely and effectively. It outlines a step-by-step workflow including schema preparation, migration definition with idempotent functions, and dry-run verification before full execution. Developers should use it when needing to transform existing database data while maintaining application stability during the migration process.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/convex-migration

Copy and paste this command in Claude Code to install this skill

Documentation

Full docs

Use @convex-dev/migrations in convex/migrations.ts (reference convex_migrations.md for full guidance). The standard flow is:

  • loosen schema/app to tolerate old+new values
  • add migrations.define({ table, migrateOne }) in convex/migrations.ts (idempotent; skip no‑ops; no external APIs).
  • dry run: npx convex run migrations:runYourFn '{"dryRun":true,"cursor":null}'
  • full run: npx convex run migrations:runYourFn '{"cursor":null}'*
  • monitor: npx convex run --component migrations lib:getStatus --watch
  • cancel: npx convex run --component migrations lib:cancel '{"name":"migrations:yourFnName"}'.

*"cursor":null makes it to real work from the start (as opposed to the dry-run default); omit only when resuming from a specific cursor.

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/convex-migration

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

creating-opencode-plugins

Meta

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

cloudflare-turnstile

Meta

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

View skill