Back to Skills

convex-migration

majiayu000
Updated Today
1 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

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill