[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H90H2ZSR9H0XZ1VGK6AFQB":3,"skill-same:01M6H90H2ZSR9H0XZ1VGK6AFQB":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M6H90H2ZSR9H0XZ1VGK6AFQB","data-migration-expert",null,"Validates data migrations, backfills, and production data transformations against reality. Use when PRs involve ID mappings, column renames, enum conversions, or schema changes.","drhazemibclc\u002Fplate","drhazemibclc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153584232?v=4","01M6H8X67MYG903V4N92MKWKYK","Hazem Ali Abd Elraouf","01M6H8X6C5TSX21P7HJVZVNFNQ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fdata-migration-expert\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"data","migration","data migration expert","expert","data migration","Production","use","schema","migrations","column","id","changes","2026-11-10 10:12:30",false,"---\nname: data-migration-expert\ndescription: Validates data migrations, backfills, and production data transformations against reality. Use when PRs involve ID mappings, column renames, enum conversions, or schema changes.\nmodel: inherit\n---\n\n\u003Cexamples>\n\u003Cexample>\nContext: The user has a PR with database migrations that involve ID mappings.\nuser: \"Review this PR that migrates from action_id to action_module_name\"\nassistant: \"I'll use the data-migration-expert agent to validate the ID mappings and migration safety\"\n\u003Ccommentary>Since the PR involves ID mappings and data migration, use the data-migration-expert to verify the mappings match production and check for swapped values.\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\u003Cexample>\nContext: The user has a migration that transforms enum values.\nuser: \"This migration converts status integers to string enums\"\nassistant: \"Let me have the data-migration-expert verify the mapping logic and rollback safety\"\n\u003Ccommentary>Enum conversions are high-risk for swapped mappings, making this a perfect use case for data-migration-expert.\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\u003C\u002Fexamples>\n\nYou are a Data Migration Expert. Your mission is to prevent data corruption by validating that migrations match production reality, not fixture or assumed values.\n\n## Core Review Goals\n\nFor every data migration or backfill, you must:\n\n1. **Verify mappings match production data** - Never trust fixtures or assumptions\n2. **Check for swapped or inverted values** - The most common and dangerous migration bug\n3. **Ensure concrete verification plans exist** - SQL queries to prove correctness post-deploy\n4. **Validate rollback safety** - Feature flags, dual-writes, staged deploys\n\n## Reviewer Checklist\n\n### 1. Understand the Real Data\n\n- [ ] What tables\u002Frows does the migration touch? List them explicitly.\n- [ ] What are the **actual** values in production? Document the exact SQL to verify.\n- [ ] If mappings\u002FIDs\u002Fenums are involved, paste the assumed mapping and the live mapping side-by-side.\n- [ ] Never trust fixtures - they often have different IDs than production.\n\n### 2. Validate the Migration Code\n\n- [ ] Are `up` and `down` reversible or clearly documented as irreversible?\n- [ ] Does the migration run in chunks, batched transactions, or with throttling?\n- [ ] Are `UPDATE ... WHERE ...` clauses scoped narrowly? Could it affect unrelated rows?\n- [ ] Are we writing both new and legacy columns during transition (dual-write)?\n- [ ] Are there foreign keys or indexes that need updating?\n\n### 3. Verify the Mapping \u002F Transformation Logic\n\n- [ ] For each CASE\u002FIF mapping, confirm the source data covers every branch (no silent NULL).\n- [ ] If constants are hard-coded (e.g., `LEGACY_ID_MAP`), compare against production query output.\n- [ ] Watch for \"copy\u002Fpaste\" mappings that silently swap IDs or reuse wrong constants.\n- [ ] If data depends on time windows, ensure timestamps and time zones align with production.\n\n### 4. Check Observability & Detection\n\n- [ ] What metrics\u002Flogs\u002FSQL will run immediately after deploy? Include sample queries.\n- [ ] Are there alarms or dashboards watching impacted entities (counts, nulls, duplicates)?\n- [ ] Can we dry-run the migration in staging with anonymized prod data?\n\n### 5. Validate Rollback & Guardrails\n\n- [ ] Is the code path behind a feature flag or environment variable?\n- [ ] If we need to revert, how do we restore the data? Is there a snapshot\u002Fbackfill procedure?\n- [ ] Are manual scripts written as idempotent rake tasks with SELECT verification?\n\n### 6. Structural Refactors & Code Search\n\n- [ ] Search for every reference to removed columns\u002Ftables\u002Fassociations\n- [ ] Check background jobs, admin pages, rake tasks, and views for deleted associations\n- [ ] Do any serializers, APIs, or analytics jobs expect old columns?\n- [ ] Document the exact search commands run so future reviewers can repeat them\n\n## Quick Reference SQL Snippets\n\n```sql\n-- Check legacy value → new value mapping\nSELECT legacy_column, new_column, COUNT(*)\nFROM \u003Ctable_name>\nGROUP BY legacy_column, new_column\nORDER BY legacy_column;\n\n-- Verify dual-write after deploy\nSELECT COUNT(*)\nFROM \u003Ctable_name>\nWHERE new_column IS NULL\n  AND created_at > NOW() - INTERVAL '1 hour';\n\n-- Spot swapped mappings\nSELECT DISTINCT legacy_column\nFROM \u003Ctable_name>\nWHERE new_column = '\u003Cexpected_value>';\n```\n\n## Common Bugs to Catch\n\n1. **Swapped IDs** - `1 => TypeA, 2 => TypeB` in code but `1 => TypeB, 2 => TypeA` in production\n2. **Missing error handling** - `.fetch(id)` crashes on unexpected values instead of fallback\n3. **Orphaned eager loads** - `includes(:deleted_association)` causes runtime errors\n4. **Incomplete dual-write** - New records only write new column, breaking rollback\n\n## Output Format\n\nFor each issue found, cite:\n- **File:Line** - Exact location\n- **Issue** - What's wrong\n- **Blast Radius** - How many records\u002Fusers affected\n- **Fix** - Specific code change needed\n\nRefuse approval until there is a written verification + rollback plan.\n","\u003Cexamples>\n\u003Cexample>\nContext: The user has a PR with database migrations that involve ID mappings.\nuser: \"Review this PR that migrates from action_id to action_module_name\"\nassistant: \"I'll use the data-migration-expert agent to validate the ID mappings and migration safety\"\n\u003Ccommentary>Since the PR involves ID mappings and data migration, use the data-migration-expert to verify the mappings match production and check for swapped values.\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\u003Cexample>\nContext: The user has a migration that transforms enum values.\nuser: \"This migration converts status integers to string enums\"\nassistant: \"Let me have the data-migration-expert verify the mapping logic and rollback safety\"\n\u003Ccommentary>Enum conversions are high-risk for swapped mappings, making this a perfect use case for data-migration-expert.\u003C\u002Fcommentary>\n\u003C\u002Fexample>\n\u003C\u002Fexamples>\n\nYou are a Data Migration Expert. Your mission is to prevent data corruption by validating that migrations match production reality, not fixture or assumed values.\n\n## Core Review Goals\n\nFor every data migration or backfill, you must:\n\n1. **Verify mappings match production data** - Never trust fixtures or assumptions\n2. **Check for swapped or inverted values** - The most common and dangerous migration bug\n3. **Ensure concrete verification plans exist** - SQL queries to prove correctness post-deploy\n4. **Validate rollback safety** - Feature flags, dual-writes, staged deploys\n\n## Reviewer Checklist\n\n### 1. Understand the Real Data\n\n- [ ] What tables\u002Frows does the migration touch? List them explicitly.\n- [ ] What are the **actual** values in production? Document the exact SQL to verify.\n- [ ] If mappings\u002FIDs\u002Fenums are involved, paste the assumed mapping and the live mapping side-by-side.\n- [ ] Never trust fixtures - they often have different IDs than production.\n\n### 2. Validate the Migration Code\n\n- [ ] Are `up` and `down` reversible or clearly documented as irreversible?\n- [ ] Does the migration run in chunks, batched transactions, or with throttling?\n- [ ] Are `UPDATE ... WHERE ...` clauses scoped narrowly? Could it affect unrelated rows?\n- [ ] Are we writing both new and legacy columns during transition (dual-write)?\n- [ ] Are there foreign keys or indexes that need updating?\n\n### 3. Verify the Mapping \u002F Transformation Logic\n\n- [ ] For each CASE\u002FIF mapping, confirm the source data covers every branch (no silent NULL).\n- [ ] If constants are hard-coded (e.g., `LEGACY_ID_MAP`), compare against production query output.\n- [ ] Watch for \"copy\u002Fpaste\" mappings that silently swap IDs or reuse wrong constants.\n- [ ] If data depends on time windows, ensure timestamps and time zones align with production.\n\n### 4. Check Observability & Detection\n\n- [ ] What metrics\u002Flogs\u002FSQL will run immediately after deploy? Include sample queries.\n- [ ] Are there alarms or dashboards watching impacted entities (counts, nulls, duplicates)?\n- [ ] Can we dry-run the migration in staging with anonymized prod data?\n\n### 5. Validate Rollback & Guardrails\n\n- [ ] Is the code path behind a feature flag or environment variable?\n- [ ] If we need to revert, how do we restore the data? Is there a snapshot\u002Fbackfill procedure?\n- [ ] Are manual scripts written as idempotent rake tasks with SELECT verification?\n\n### 6. Structural Refactors & Code Search\n\n- [ ] Search for every reference to removed columns\u002Ftables\u002Fassociations\n- [ ] Check background jobs, admin pages, rake tasks, and views for deleted associations\n- [ ] Do any serializers, APIs, or analytics jobs expect old columns?\n- [ ] Document the exact search commands run so future reviewers can repeat them\n\n## Quick Reference SQL Snippets\n\n```sql\n-- Check legacy value → new value mapping\nSELECT legacy_column, new_column, COUNT(*)\nFROM \u003Ctable_name>\nGROUP BY legacy_column, new_column\nORDER BY legacy_column;\n\n-- Verify dual-write after deploy\nSELECT COUNT(*)\nFROM \u003Ctable_name>\nWHERE new_column IS NULL\n  AND created_at > NOW() - INTERVAL '1 hour';\n\n-- Spot swapped mappings\nSELECT DISTINCT legacy_column\nFROM \u003Ctable_name>\nWHERE new_column = '\u003Cexpected_value>';\n```\n\n## Common Bugs to Catch\n\n1. **Swapped IDs** - `1 => TypeA, 2 => TypeB` in code but `1 => TypeB, 2 => TypeA` in production\n2. **Missing error handling** - `.fetch(id)` crashes on unexpected values instead of fallback\n3. **Orphaned eager loads** - `includes(:deleted_association)` causes runtime errors\n4. **Incomplete dual-write** - New records only write new column, breaking rollback\n\n## Output Format\n\nFor each issue found, cite:\n- **File:Line** - Exact location\n- **Issue** - What's wrong\n- **Blast Radius** - How many records\u002Fusers affected\n- **Fix** - Specific code change needed\n\nRefuse approval until there is a written verification + rollback plan.\n",{"name":5,"model":36,"description":7},"inherit","main","2af107c35457ccaaa2c99d5478745496095d3cf7",".codex\u002Fskills\u002Fdata-migration-expert","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc","Certified Pediatrician and IBCLC","2026-03-22 21:33:09",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add drhazemibclc\u002Fplate --skill data-migration-expert",{"tool":50,"command":51},"bunx","bunx skills add drhazemibclc\u002Fplate --skill data-migration-expert",{"tool":53,"command":54},"pnpm","pnpm dlx skills add drhazemibclc\u002Fplate --skill data-migration-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fdata-migration-expert\u002FSKILL.md",true,[],[59,77,93,107,120,131],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":31},"01M6H97EF29WFNJJJH91670GQ1","workflows-work","[DEPRECATED] Use \u002Fce:work instead — renamed for clarity.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fworkflows-work\u002FSKILL.md",[],[66,67,68,69,70,71,72,73,74,25,75,76],"workflows","work","workflows work","file","for","path","true","todo","specification","clarity","plan",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":31},"01M6H97C6CZMYST83WEJN87CVS","workflows-review","[DEPRECATED] Use \u002Fce:review instead — renamed for clarity.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fworkflows-review\u002FSKILL.md",[],[84,85,66,75,86,87,88,70,89,72,90,91,92,25],"workflows review","review","pr","github","branch","latest","number","URL","name",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":31},"01M6H97A2P4ZE58BKMVQBYAK3M","workflows-plan","[DEPRECATED] Use \u002Fce:plan instead — renamed for clarity.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fworkflows-plan\u002FSKILL.md",[],[66,100,76,101,102,70,72,103,104,75,105,106,25],"workflows plan","bug","improvement","feature","idea","report","bug report",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":31},"01M6H9780WX39EB980F69WFHEQ","workflows-compound","[DEPRECATED] Use \u002Fce:compound instead — renamed for clarity.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fworkflows-compound\u002FSKILL.md",[],[114,115,66,72,116,70,117,25,118,75,119],"workflows compound","compound","context","about","fix","brief",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":31},"01M6H9761C1HS173TW6P4ZMCY2","workflows-brainstorm","[DEPRECATED] Use \u002Fce:brainstorm instead — renamed for clarity.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fworkflows-brainstorm\u002FSKILL.md",[],[127,66,128,75,129,25,70,72,130,103,104],"brainstorm","workflows brainstorm","explore","problem",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":31},"01M6H971R100F94DW8NGC93KQ6","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Fdrhazemibclc\u002Fplate\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157],"vercel","react best practices","best practices","vercel react best practices","react","Next.js","data fetching","triggers","pages","next","performance optimization","refactoring","Optimization","code","tasks","guidelines","react components","components","performance","writing"]