[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CBANQG7VEDDKT6VX5RF16D":3,"skill-same:01M6CBANQG7VEDDKT6VX5RF16D":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":56,"install":57,"resources":70},"01M6CBANQG7VEDDKT6VX5RF16D","sql-migrations","SQL 数据库迁移","SQL and database migration best practices for safe schema changes","SQL 与数据库迁移最佳实践，用于安全地变更数据库模式（schema）。","shahboura\u002Fagents-opencode","shahboura","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F210767?v=4","01M6C6WKTBT0NH92BEPQRHQSYM","Shehab El Hadidy","01M6C6WKYXG8AE68MCGBNE5ZFR",2,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fsql-migrations\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0TB31G8AP3NPCQDCRXCW2","数据库管理员","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40],"sql","sql migrations","safe","development","best practices","database","database migration","schema","opencode","migration","2026-11-10 10:12:30",false,"---\nname: sql-migrations\ndescription: SQL and database migration best practices for safe schema changes\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  author: shahboura\n  version: \"2.0.0\"\n  audience: developers\n  workflow: development\n---\n\n## What I do\n- Enforce safe migration patterns with rollback support\n- Apply schema design rules for constraints, indexes, and data integrity\n- Guide destructive change management and data backfill strategies\n\n## When to use me\nUse this when writing database migrations, schema changes, or data transformation scripts.\n\n## Key Rules\n- Migrations must be idempotent where possible; always provide down\u002Frollback steps\n- Never drop data or tables without explicit approval and confirmed backups\n- Use explicit versions or timestamps; keep migration order deterministic\n- Stage destructive changes (drops, renames) separately from data moves — never in the same migration\n- Test migrations against a prod-like snapshot before deploying to production\n- Declare explicit column types and constraints: PK, FK, UNIQUE, CHECK, NOT NULL on every column\n- Add indexes for join columns and common filter predicates; avoid over-indexing\n- Wrap DDL statements in transactions when the database supports it; guard against lock escalation on large tables\n- Always include `WHERE` clauses on UPDATE and DELETE — never allow unintended full-table changes\n- Use UTC timezone and consistent collation\u002Fcharset across the entire schema\n- Backfill data in batches — never use single massive statements that lock tables\n- Avoid `SELECT *` in views and procedures; specify columns explicitly\n- Avoid long-running blocking migrations during peak traffic; prefer phased rollouts\n- Use a verify-fix-verify loop: run the validation commands below, fix any failures, and rerun until all checks pass\n\n## Validation Commands\n\n```bash\nsqlfluff lint\n```\n","## What I do\n- Enforce safe migration patterns with rollback support\n- Apply schema design rules for constraints, indexes, and data integrity\n- Guide destructive change management and data backfill strategies\n\n## When to use me\nUse this when writing database migrations, schema changes, or data transformation scripts.\n\n## Key Rules\n- Migrations must be idempotent where possible; always provide down\u002Frollback steps\n- Never drop data or tables without explicit approval and confirmed backups\n- Use explicit versions or timestamps; keep migration order deterministic\n- Stage destructive changes (drops, renames) separately from data moves — never in the same migration\n- Test migrations against a prod-like snapshot before deploying to production\n- Declare explicit column types and constraints: PK, FK, UNIQUE, CHECK, NOT NULL on every column\n- Add indexes for join columns and common filter predicates; avoid over-indexing\n- Wrap DDL statements in transactions when the database supports it; guard against lock escalation on large tables\n- Always include `WHERE` clauses on UPDATE and DELETE — never allow unintended full-table changes\n- Use UTC timezone and consistent collation\u002Fcharset across the entire schema\n- Backfill data in batches — never use single massive statements that lock tables\n- Avoid `SELECT *` in views and procedures; specify columns explicitly\n- Avoid long-running blocking migrations during peak traffic; prefer phased rollouts\n- Use a verify-fix-verify loop: run the validation commands below, fix any failures, and rerun until all checks pass\n\n## Validation Commands\n\n```bash\nsqlfluff lint\n```\n",{"name":5,"license":16,"metadata":46,"description":7,"compatibility":39},{"author":10,"version":47,"audience":48,"workflow":34},"2.0.0","developers","main","9b951b5b2e5d07d427baff330db5deb2a8c67511",".opencode\u002Fskills\u002Fsql-migrations",0,"https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode","https:\u002F\u002Fagnts.elkodr.com\u002F","https:\u002F\u002Fgithub.com\u002Fshahboura","2026-11-05 13:30:42",{"source":9,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add shahboura\u002Fagents-opencode --skill sql-migrations",{"tool":63,"command":64},"bunx","bunx skills add shahboura\u002Fagents-opencode --skill sql-migrations",{"tool":66,"command":67},"pnpm","pnpm dlx skills add shahboura\u002Fagents-opencode --skill sql-migrations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fsql-migrations\u002FSKILL.md",true,[],[72,86,102,109,116,123],{"skillNo":73,"name":74,"nameZh":75,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":77,"categories":78,"keywords":85,"publishedAt":41},"01M6CBBX1C6NV7VY8XK21DV5FW","python","Python 编程开发","","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Fvalid\u002F.opencode\u002Fskills\u002Fpython\u002FSKILL.md",[79,82],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":83,"categoryName":84,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8CEEYW9437JC839V6V453Q5","Python 开发",[74],{"skillNo":87,"name":88,"nameZh":89,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":98,"publishedAt":41},"01M6CBBVB7W6ABJH8XP3Z8PPMK","docs-validation","文档有效性校验","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Fvalid\u002F.opencode\u002Fskills\u002Fdocs-validation\u002FSKILL.md",[92,95],{"categoryNo":93,"categoryName":94,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",{"categoryNo":96,"categoryName":97,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[99,100,101],"docs","validation","docs validation",{"skillNo":103,"name":74,"nameZh":75,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":108,"publishedAt":41},"01M6CBBT2WC781609MH5RN7KM7","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Funknown-skill\u002F.opencode\u002Fskills\u002Fpython\u002FSKILL.md",[106,107],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":83,"categoryName":84,"taxonomyType":23,"taxonomyTypeDesc":24},[74],{"skillNo":110,"name":88,"nameZh":89,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":115,"publishedAt":41},"01M6CBBRNY6TDRZ5627GC8436D","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Funknown-skill\u002F.opencode\u002Fskills\u002Fdocs-validation\u002FSKILL.md",[113,114],{"categoryNo":93,"categoryName":94,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":96,"categoryName":97,"taxonomyType":28,"taxonomyTypeDesc":29},[99,100,101],{"skillNo":117,"name":74,"nameZh":75,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":122,"publishedAt":41},"01M6CBBQDS170GBYA1CVW3DC5D","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Finline-skill\u002F.opencode\u002Fskills\u002Fpython\u002FSKILL.md",[120,121],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":83,"categoryName":84,"taxonomyType":23,"taxonomyTypeDesc":24},[74],{"skillNo":124,"name":88,"nameZh":125,"description":17,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":134,"publishedAt":41},"01M6CBBP222WAW802YHY37F48A","文档校验","https:\u002F\u002Fgithub.com\u002Fshahboura\u002Fagents-opencode\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fvalidate-agents\u002Finline-skill\u002F.opencode\u002Fskills\u002Fdocs-validation\u002FSKILL.md",[128,131],{"categoryNo":129,"categoryName":130,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[99,100,101]]