[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTW6WA9YXMQ6MGG4W88PY2":3,"skill-same:01M7CTW6WA9YXMQ6MGG4W88PY2":52},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CTW6WA9YXMQ6MGG4W88PY2","migration",null,"Use when changing database schema or production data and migration safety matters; designs or reviews safe database migrations, backfills, constraints, indexes, function changes, rollout order, and recovery.","amoai-tech\u002Fmdeai","amoai-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320616881?v=4","01M7CTJYGWP82J2HHMQC5NN9JP","amo","01M7CTJYHE5YQRGQSDJES3Z0QE",2,"MIT","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migration\ndescription: Use when changing database schema or production data and migration safety matters; designs or reviews safe database migrations, backfills, constraints, indexes, function changes, rollout order, and recovery.\n---\n\n**MIGRATION — Safe Database Change**\n\n**Goal**\nDesign or review a migration that preserves data integrity, security, compatibility, and recoverability.\n\n**1. Verify current state**\nInspect:\n- current\u002Flive schema\n- migration history\u002Fpending migrations\n- affected data shape\u002Fsize\n- existing constraints\u002Findexes\n- RLS\u002Fgrants\u002Ffunctions\u002Ftriggers\n- application callers\nDo not assume production is clean or matches local.\n\n**2. Define the invariant**\nState:\n- desired final schema\u002Fdata state\n- compatibility requirements\n- backfill need\n- existing rows that may violate the new rule\n\n**3. Prefer additive rollout**\nUse when possible:\n\n**preflight → additive schema → compatible app → backfill → enforce constraint\u002Findex → remove obsolete path later**\nAvoid destructive one-step changes.\n\n**4. Preflight data**\nCheck for:\n- NULLs\n- duplicates\n- invalid values\n- orphaned foreign keys\n- malformed data\n- conflicting keys\u002Ftimestamps\nDefine deterministic cleanup. Unknown facts stay unknown.\n\n**5. Backfill safely**\n- use a canonical source\n- make transformation deterministic\u002Fidempotent when practical\n- batch large tables\n- avoid long locks\n- verify row counts\u002Finvariants\n- surface rows that cannot be transformed safely\n\n**6. Constraints\u002Findexes\u002Ffunctions**\nBefore enforcement:\n- remove violations deterministically\n- avoid duplicate\u002Fredundant indexes\u002Ffunctions\n- consider lock\u002Fbuild cost\n- verify function signatures\u002Fgrants\u002Fsearch_path\n- verify triggers fire exactly as intended\n\n**7. Security**\nConfirm RLS\u002Fgrants still enforce intended access after schema\u002Ffunction changes.\n\n\nFor remaining steps, checks, and examples, see [full prompt](references\u002Ffull-prompt.md).\n","**MIGRATION — Safe Database Change**\n\n**Goal**\nDesign or review a migration that preserves data integrity, security, compatibility, and recoverability.\n\n**1. Verify current state**\nInspect:\n- current\u002Flive schema\n- migration history\u002Fpending migrations\n- affected data shape\u002Fsize\n- existing constraints\u002Findexes\n- RLS\u002Fgrants\u002Ffunctions\u002Ftriggers\n- application callers\nDo not assume production is clean or matches local.\n\n**2. Define the invariant**\nState:\n- desired final schema\u002Fdata state\n- compatibility requirements\n- backfill need\n- existing rows that may violate the new rule\n\n**3. Prefer additive rollout**\nUse when possible:\n\n**preflight → additive schema → compatible app → backfill → enforce constraint\u002Findex → remove obsolete path later**\nAvoid destructive one-step changes.\n\n**4. Preflight data**\nCheck for:\n- NULLs\n- duplicates\n- invalid values\n- orphaned foreign keys\n- malformed data\n- conflicting keys\u002Ftimestamps\nDefine deterministic cleanup. Unknown facts stay unknown.\n\n**5. Backfill safely**\n- use a canonical source\n- make transformation deterministic\u002Fidempotent when practical\n- batch large tables\n- avoid long locks\n- verify row counts\u002Finvariants\n- surface rows that cannot be transformed safely\n\n**6. Constraints\u002Findexes\u002Ffunctions**\nBefore enforcement:\n- remove violations deterministically\n- avoid duplicate\u002Fredundant indexes\u002Ffunctions\n- consider lock\u002Fbuild cost\n- verify function signatures\u002Fgrants\u002Fsearch_path\n- verify triggers fire exactly as intended\n\n**7. Security**\nConfirm RLS\u002Fgrants still enforce intended access after schema\u002Ffunction changes.\n\n\nFor remaining steps, checks, and examples, see [full prompt](references\u002Ffull-prompt.md).\n",{"name":5,"description":7},"main","9955f6a8aa5de3c14fea562c7e6b72973366ba3c",".claude\u002Fskills\u002Fmigration",1,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai","https:\u002F\u002Fmdeai-psi.vercel.app","https:\u002F\u002Fgithub.com\u002Famoai-tech","2026-11-13 03:54:16",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add amoai-tech\u002Fmdeai --skill migration",{"tool":38,"command":39},"bunx","bunx skills add amoai-tech\u002Fmdeai --skill migration",{"tool":41,"command":42},"pnpm","pnpm dlx skills add amoai-tech\u002Fmdeai --skill migration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigration\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Ffull-prompt.md","REFERENCE","参考文档",2749,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigration\u002Freferences\u002Ffull-prompt.md",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7CV3D59CQX8N178NN3W5DEQ","mde-pr-review-supabase","Use when reviewing MDE Supabase SQL, Auth and RLS changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fsupabase\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7CV39XR1SPH7C4FNXAXMM36","mde-pr-review-stripe","Use when reviewing MDE Stripe payments and webhooks changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fstripe\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7CV37HHNM5A144SEX2VE05N","mde-pr-review-nextjs","Use when reviewing MDE Next.js App Router changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fnextjs\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CV34C1M5STTKHX5CGVN3VS","mde-pr-review-mastra","Use when reviewing MDE Mastra agent, tool and workflow changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmastra\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7CV31A37VPRRASAVGE8K8SN","mde-pr-review-maps","Use when reviewing MDE Google Maps and Places changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmaps\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7CV2Y70DQJ1VXFHS732CSQ4","mde-pr-review-copilotkit","Use when reviewing MDE CopilotKit and AG-UI changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fcopilotkit\u002FSKILL.md",[],[]]