[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698RCZJCZ5JNTB0K50QN5Q1":3,"skill-same:01M698RCZJCZ5JNTB0K50QN5Q1":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M698RCZJCZ5JNTB0K50QN5Q1","convex-migration-helper",null,"Plans Convex schema and data migrations with widen-migrate-narrow and @convex-dev\u002Fmigrations. Use for breaking schema changes, backfills, table reshaping, or zero-downtime rollouts.","openclaw\u002Fclawhub","openclaw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252820863?v=4","01M698P3FSAZ6B4R928ZF19KPT","01M698PDMKEC6E49395505BD05",9555,"MIT","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"convex","helper","migration helper","migration","convex migration helper","data","migrate","table","use","schema","ZeRO","rollouts","migrations","dev","zero-downtime","plans","with","for","changes","2026-11-10 10:12:30",false,"---\nname: convex-migration-helper\ndescription:\n  Plans Convex schema and data migrations with widen-migrate-narrow and\n  @convex-dev\u002Fmigrations. Use for breaking schema changes, backfills, table\n  reshaping, or zero-downtime rollouts.\n---\n\n# Convex Migration Helper\n\nSafely migrate Convex schemas and data when making breaking changes.\n\n## When to Use\n\n- Adding new required fields to existing tables\n- Changing field types or structure\n- Splitting or merging tables\n- Renaming or deleting fields\n- Migrating from nested to relational data\n\n## When Not to Use\n\n- Greenfield schema with no existing data in production or dev\n- Adding optional fields that do not need backfilling\n- Adding new tables with no existing data to migrate\n- Adding or removing indexes with no correctness concern\n- Questions about Convex schema design without a migration need\n\n## Key Concepts\n\n### Schema Validation Drives the Workflow\n\nConvex will not let you deploy a schema that does not match the data at rest.\nThis is the fundamental constraint that shapes every migration:\n\n- You cannot add a required field if existing documents don't have it\n- You cannot change a field's type if existing documents have the old type\n- You cannot remove a field from the schema if existing documents still have it\n\nThis means migrations follow a predictable pattern: **widen the schema, migrate\nthe data, narrow the schema**.\n\n### Online Migrations\n\nConvex migrations run online, meaning the app continues serving requests while\ndata is updated asynchronously in batches. During the migration window, your\ncode must handle both old and new data formats.\n\n### Prefer New Fields Over Changing Types\n\nWhen changing the shape of data, create a new field rather than modifying an\nexisting one. This makes the transition safer and easier to roll back.\n\n### Don't Delete Data\n\nUnless you are certain, prefer deprecating fields over deleting them. Mark the\nfield as `v.optional` and add a code comment explaining it is deprecated and why\nit existed.\n\n## Safe Changes (No Migration Needed)\n\n### Adding Optional Field\n\n```typescript\n\u002F\u002F Before\nusers: defineTable({\n  name: v.string(),\n});\n\n\u002F\u002F After - safe, new field is optional\nusers: defineTable({\n  name: v.string(),\n  bio: v.optional(v.string()),\n});\n```\n\n### Adding New Table\n\n```typescript\nposts: defineTable({\n  userId: v.id(\"users\"),\n  title: v.string(),\n}).index(\"by_user\", [\"userId\"]);\n```\n\n### Adding Index\n\n```typescript\nusers: defineTable({\n  name: v.string(),\n  email: v.string(),\n}).index(\"by_email\", [\"email\"]);\n```\n\n## Breaking Changes: The Deployment Workflow\n\nEvery breaking migration follows the same multi-deploy pattern:\n\n**Deploy 1 - Widen the schema:**\n\n1. Update schema to allow both old and new formats (e.g., add optional new\n   field)\n2. Update code to handle both formats when reading\n3. Update code to write the new format for new documents\n4. Deploy\n\n**Between deploys - Migrate data:**\n\n5. Run migration to backfill existing documents\n6. Verify all documents are migrated\n\n**Deploy 2 - Narrow the schema:**\n\n7. Update schema to require the new format only\n8. Remove code that handles the old format\n9. Deploy\n\n## Using the Migrations Component\n\nFor any non-trivial migration, use the\n[`@convex-dev\u002Fmigrations`](https:\u002F\u002Fwww.convex.dev\u002Fcomponents\u002Fmigrations)\ncomponent. It handles batching, cursor-based pagination, state tracking, resume\nfrom failure, dry runs, and progress monitoring.\n\nSee `references\u002Fmigrations-component.md` for installation, setup, defining and\nrunning migrations directly with `npx convex run migrations:myMigration`, dry\nruns, status monitoring, and configuration options.\n\n## Common Migration Patterns\n\nSee `references\u002Fmigration-patterns.md` for complete patterns with code examples\ncovering:\n\n- Adding a required field\n- Deleting a field\n- Changing a field type\n- Splitting nested data into a separate table\n- Cleaning up orphaned documents\n- Zero-downtime strategies (dual write, dual read)\n- Small table shortcut (single internalMutation without the component)\n- Verifying a migration is complete\n\n## Common Pitfalls\n\n1. **Making a field required before migrating data**: Convex rejects the deploy\n   because existing documents lack the field. Always widen the schema first.\n2. **Using `.collect()` on large tables**: Hits transaction limits or causes\n   timeouts. Use the migrations component for proper batched pagination.\n   `.collect()` is only safe for tables you know are small.\n3. **Not writing the new format before migrating**: Documents created during the\n   migration window will be missed, leaving unmigrated data after the migration\n   \"completes.\"\n4. **Skipping the dry run**: Use `dryRun: true` to validate migration logic\n   before committing changes to production data. Catches bugs before they touch\n   real documents.\n5. **Deleting fields prematurely**: Prefer deprecating with `v.optional` and a\n   comment. Only delete after you are confident the data is no longer needed and\n   no code references it.\n6. **Using crons for migration batches**: The migrations component handles\n   batching via recursive scheduling internally. Crons require manual cleanup\n   and an extra deploy to remove.\n\n## Migration Checklist\n\n- [ ] Identify the breaking change and plan the multi-deploy workflow\n- [ ] Update schema to allow both old and new formats\n- [ ] Update code to handle both formats when reading\n- [ ] Update code to write the new format for new documents\n- [ ] Deploy widened schema and updated code\n- [ ] Define migration using the `@convex-dev\u002Fmigrations` component\n- [ ] Test with `npx convex run migrations:myMigration '{\"dryRun\": true}'`\n- [ ] Run migration directly with `npx convex run migrations:myMigration` and\n      monitor status\n- [ ] Verify all documents are migrated\n- [ ] Update schema to require new format only\n- [ ] Clean up code that handled old format\n- [ ] Deploy final schema and code\n- [ ] Remove migration code once confirmed stable\n","# Convex Migration Helper\n\nSafely migrate Convex schemas and data when making breaking changes.\n\n## When to Use\n\n- Adding new required fields to existing tables\n- Changing field types or structure\n- Splitting or merging tables\n- Renaming or deleting fields\n- Migrating from nested to relational data\n\n## When Not to Use\n\n- Greenfield schema with no existing data in production or dev\n- Adding optional fields that do not need backfilling\n- Adding new tables with no existing data to migrate\n- Adding or removing indexes with no correctness concern\n- Questions about Convex schema design without a migration need\n\n## Key Concepts\n\n### Schema Validation Drives the Workflow\n\nConvex will not let you deploy a schema that does not match the data at rest.\nThis is the fundamental constraint that shapes every migration:\n\n- You cannot add a required field if existing documents don't have it\n- You cannot change a field's type if existing documents have the old type\n- You cannot remove a field from the schema if existing documents still have it\n\nThis means migrations follow a predictable pattern: **widen the schema, migrate\nthe data, narrow the schema**.\n\n### Online Migrations\n\nConvex migrations run online, meaning the app continues serving requests while\ndata is updated asynchronously in batches. During the migration window, your\ncode must handle both old and new data formats.\n\n### Prefer New Fields Over Changing Types\n\nWhen changing the shape of data, create a new field rather than modifying an\nexisting one. This makes the transition safer and easier to roll back.\n\n### Don't Delete Data\n\nUnless you are certain, prefer deprecating fields over deleting them. Mark the\nfield as `v.optional` and add a code comment explaining it is deprecated and why\nit existed.\n\n## Safe Changes (No Migration Needed)\n\n### Adding Optional Field\n\n```typescript\n\u002F\u002F Before\nusers: defineTable({\n  name: v.string(),\n});\n\n\u002F\u002F After - safe, new field is optional\nusers: defineTable({\n  name: v.string(),\n  bio: v.optional(v.string()),\n});\n```\n\n### Adding New Table\n\n```typescript\nposts: defineTable({\n  userId: v.id(\"users\"),\n  title: v.string(),\n}).index(\"by_user\", [\"userId\"]);\n```\n\n### Adding Index\n\n```typescript\nusers: defineTable({\n  name: v.string(),\n  email: v.string(),\n}).index(\"by_email\", [\"email\"]);\n```\n\n## Breaking Changes: The Deployment Workflow\n\nEvery breaking migration follows the same multi-deploy pattern:\n\n**Deploy 1 - Widen the schema:**\n\n1. Update schema to allow both old and new formats (e.g., add optional new\n   field)\n2. Update code to handle both formats when reading\n3. Update code to write the new format for new documents\n4. Deploy\n\n**Between deploys - Migrate data:**\n\n5. Run migration to backfill existing documents\n6. Verify all documents are migrated\n\n**Deploy 2 - Narrow the schema:**\n\n7. Update schema to require the new format only\n8. Remove code that handles the old format\n9. Deploy\n\n## Using the Migrations Component\n\nFor any non-trivial migration, use the\n[`@convex-dev\u002Fmigrations`](https:\u002F\u002Fwww.convex.dev\u002Fcomponents\u002Fmigrations)\ncomponent. It handles batching, cursor-based pagination, state tracking, resume\nfrom failure, dry runs, and progress monitoring.\n\nSee `references\u002Fmigrations-component.md` for installation, setup, defining and\nrunning migrations directly with `npx convex run migrations:myMigration`, dry\nruns, status monitoring, and configuration options.\n\n## Common Migration Patterns\n\nSee `references\u002Fmigration-patterns.md` for complete patterns with code examples\ncovering:\n\n- Adding a required field\n- Deleting a field\n- Changing a field type\n- Splitting nested data into a separate table\n- Cleaning up orphaned documents\n- Zero-downtime strategies (dual write, dual read)\n- Small table shortcut (single internalMutation without the component)\n- Verifying a migration is complete\n\n## Common Pitfalls\n\n1. **Making a field required before migrating data**: Convex rejects the deploy\n   because existing documents lack the field. Always widen the schema first.\n2. **Using `.collect()` on large tables**: Hits transaction limits or causes\n   timeouts. Use the migrations component for proper batched pagination.\n   `.collect()` is only safe for tables you know are small.\n3. **Not writing the new format before migrating**: Documents created during the\n   migration window will be missed, leaving unmigrated data after the migration\n   \"completes.\"\n4. **Skipping the dry run**: Use `dryRun: true` to validate migration logic\n   before committing changes to production data. Catches bugs before they touch\n   real documents.\n5. **Deleting fields prematurely**: Prefer deprecating with `v.optional` and a\n   comment. Only delete after you are confident the data is no longer needed and\n   no code references it.\n6. **Using crons for migration batches**: The migrations component handles\n   batching via recursive scheduling internally. Crons require manual cleanup\n   and an extra deploy to remove.\n\n## Migration Checklist\n\n- [ ] Identify the breaking change and plan the multi-deploy workflow\n- [ ] Update schema to allow both old and new formats\n- [ ] Update code to handle both formats when reading\n- [ ] Update code to write the new format for new documents\n- [ ] Deploy widened schema and updated code\n- [ ] Define migration using the `@convex-dev\u002Fmigrations` component\n- [ ] Test with `npx convex run migrations:myMigration '{\"dryRun\": true}'`\n- [ ] Run migration directly with `npx convex run migrations:myMigration` and\n      monitor status\n- [ ] Verify all documents are migrated\n- [ ] Update schema to require new format only\n- [ ] Clean up code that handled old format\n- [ ] Deploy final schema and code\n- [ ] Remove migration code once confirmed stable\n",{"name":5,"description":7},"main","fd6beef619775fe02dd2548b0658bf88b46d7740",".agents\u002Fskills\u002Fconvex-migration-helper",1492,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub","https:\u002F\u002Fclawhub.ai","https:\u002F\u002Fgithub.com\u002Fopenclaw","https:\u002F\u002Fopenclaw.ai","Your personal, open source AI assistant.","2026-11-15 03:03:27",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add openclaw\u002Fclawhub --skill convex-migration-helper",{"tool":58,"command":59},"bunx","bunx skills add openclaw\u002Fclawhub --skill convex-migration-helper",{"tool":61,"command":62},"pnpm","pnpm dlx skills add openclaw\u002Fclawhub --skill convex-migration-helper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002FSKILL.md",true,[66,72,78,82],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"agents\u002Fopenai.yaml","REFERENCE","参考文档",472,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002Fagents\u002Fopenai.yaml",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Ficon.svg","ASSET","资产文件",386,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002Fassets\u002Ficon.svg",{"path":79,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fmigration-patterns.md",6220,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002Freferences\u002Fmigration-patterns.md",{"path":83,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fmigrations-component.md",5128,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-migration-helper\u002Freferences\u002Fmigrations-component.md",[87,95,102,124,153,168],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7415W7GWE5XEH7ETJ1YWCF2","notes","Turn user-provided notes into a concise agenda.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002Fscripts\u002Fsecurity\u002Ffixtures\u002Ftemplate-qualification\u002Fskills\u002Fnotes\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":94},"01M7415V57FG63ZGV9W35MV3TH","hosted-research","Read approved reference material for the hosted proof.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002Ffixtures\u002Ftemplates\u002Fhosted-e2e\u002Fpackage\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":37},"01M698QE868QCJ1HN5H03NAKCZ","convex-advisor","Read the Convex deployment's 72h insights (read limits, OCC contention), root-cause each event in code, report evidence-backed perf\u002Fcost findings with fixes.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-advisor\u002FSKILL.md",[],[109,110,18,34,111,112,113,114,115,116,117,118,119,120,121,122,123],"convex advisor","advisor","cost","perf","evidence","limits","fixes","event","deployment","read","report","insights","code","root","root-cause",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":135,"publishedAt":37},"01M698QD01M039DZ8WCRE8J6WY","convex-add","Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or @convex-dev component search. TRIGGER when the user runs \u002Fadd, or asks to add hosting\u002Fpublishing or any backend capability to an existing Convex app.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-add\u002FSKILL.md",[130],{"categoryNo":131,"categoryName":132,"taxonomyType":133,"taxonomyTypeDesc":134},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[136,18,137,138,139,140,141,31,142,143,144,145,146,35,147,148,149,150,151,152],"add","convex add","publishing","user","when","Existing","auth","hosting","catalog","trigger","search","back","capability","backend","app","billing","component",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":37},"01M698QBS5JVY310XM3RGFZCK4","convex-acquire-domain","Find and buy a domain for the current Convex app through Convex, then bind it (labs; spend action).","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconvex-acquire-domain\u002FSKILL.md",[],[18,160,161,162,163,150,35,164,165,166,167],"domain","acquire","convex acquire domain","bind","find","buy","action","it",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":37},"01M698Q9P74GJAVDMCP33QBBWX","controlling-costs","Analyzes Axiom query patterns to find unused data, then builds dashboards and monitors for cost optimization. Use when asked to reduce Axiom costs, find unused columns or field values, identify data waste, or track ingest spend.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawhub\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcontrolling-costs\u002FSKILL.md",[],[175,23,35,176,177,178,179,26,140,180,181,111,182,183,184,164,185,186,187],"controlling costs","Optimization","cost optimization","ingest","unused","reduce","query","track","values","axiom","columns","patterns","dashboards"]