[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADKB7SBZG1Z0APX3SMV4WZ":3,"skill-same:01M6ADKB7SBZG1Z0APX3SMV4WZ":68},{"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":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6ADKB7SBZG1Z0APX3SMV4WZ","migration-guard","数据库迁移文件审查","Review database migration files for naming conventions and dangerous operations. Auto-activates for migration files.","审查数据库迁移文件的命名规范和危险操作。对迁移文件自动激活。","davila7\u002Fclaude-with-skills","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHY7XW1NT6J5EJ61Q42B",13,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F02-intermediate\u002Fexercises\u002Fsolutions\u002F02-migration-guard\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],"migration guard","review","sql","database","2026-11-10 10:12:30",false,"---\ntitle: \"migration-guard\"\nname: migration-guard\ndescription: Review database migration files for naming conventions and dangerous operations. Auto-activates for migration files.\npaths:\n  - \"migrations\u002F**\"\n  - \"*.sql\"\n  - \"db\u002Fmigrate\u002F**\"\n---\n\n## Migration review\n\nReview the current migration file for naming conventions, rollback presence, and dangerous operations.\n\n### Step 1: Identify the file being reviewed\n\nUse the current file context to determine which migration file is being worked on. If the user specified a file path, use that. If the context is ambiguous, ask the user which file to review before proceeding.\n\n### Step 2: Check the file name\n\nExtract the file name (not the full path) and check it against two accepted naming formats:\n\n**Format A — Timestamp prefix:**\nPattern: `YYYYMMDDHHMMSS_description.sql`\nExample: `20260513143207_add_user_roles.sql`\n- Year: 4 digits\n- Month: 2 digits (01–12)\n- Day: 2 digits (01–31)\n- Hour: 2 digits (00–23)\n- Minute: 2 digits (00–59)\n- Second: 2 digits (00–59)\n- Underscore separator\n- Description: lowercase letters, digits, underscores\n- Extension: `.sql`\n\n**Format B — Sequential prefix:**\nPattern: `NNNN_description.sql`\nExample: `0042_add_user_roles.sql`\n- Number: 1 or more digits, typically zero-padded to 4 digits\n- Underscore separator\n- Description: lowercase letters, digits, underscores\n- Extension: `.sql`\n\nIf the file name matches neither format, mark the naming check as FAIL and note the reason.\n\n### Step 3: Check for rollback\n\nRead the file content and look for either:\n\n- A clearly labeled rollback section (a comment like `-- rollback`, `-- down`, `-- revert`, followed by SQL that undoes the migration)\n- A comment explicitly marking it as irreversible (e.g., `-- This migration is irreversible`, `-- no rollback`)\n\nIf neither is present, mark rollback as NO.\n\n### Step 4: Check for dangerous operations\n\nRead the file and scan for these patterns (case-insensitive):\n\n- `DROP TABLE` without `IF EXISTS` immediately following — flag as WARNING\n- `DROP TABLE IF EXISTS` — acceptable, no warning\n- `DELETE FROM` without a `WHERE` clause on the same or next line — flag as WARNING\n- `UPDATE` without a `WHERE` clause on the same or next line — flag as WARNING\n- `TRUNCATE` on any table — flag as WARNING (destructive, often irreversible in production)\n- `DROP COLUMN` — flag as NOTICE (may break dependent code; not always dangerous but requires attention)\n\nFor each match, note the line number.\n\n### Step 5: Output the checklist\n\nPresent findings in this format:\n\n```\nMigration review: \u003Cfilename>\n\nNaming convention: PASS\n  - Format: timestamp-prefix \u002F sequential-prefix\n  \n  (or)\n  \nNaming convention: FAIL\n  - Reason: \u003Cspecific reason>\n\nRollback: YES \u002F NO \u002F MARKED IRREVERSIBLE\n  - \u003Cbrief note on what the rollback does, or why it is marked irreversible>\n\nDangerous operations: NONE\n  \n  (or)\n  \nDangerous operations:\n  WARNING line 14: DELETE without WHERE clause\n  WARNING line 22: TRUNCATE on orders table\n  NOTICE  line 31: DROP COLUMN — confirm no dependent code references this column\n```\n\nDo not modify the migration file. This skill reviews only.\n","## Migration review\n\nReview the current migration file for naming conventions, rollback presence, and dangerous operations.\n\n### Step 1: Identify the file being reviewed\n\nUse the current file context to determine which migration file is being worked on. If the user specified a file path, use that. If the context is ambiguous, ask the user which file to review before proceeding.\n\n### Step 2: Check the file name\n\nExtract the file name (not the full path) and check it against two accepted naming formats:\n\n**Format A — Timestamp prefix:**\nPattern: `YYYYMMDDHHMMSS_description.sql`\nExample: `20260513143207_add_user_roles.sql`\n- Year: 4 digits\n- Month: 2 digits (01–12)\n- Day: 2 digits (01–31)\n- Hour: 2 digits (00–23)\n- Minute: 2 digits (00–59)\n- Second: 2 digits (00–59)\n- Underscore separator\n- Description: lowercase letters, digits, underscores\n- Extension: `.sql`\n\n**Format B — Sequential prefix:**\nPattern: `NNNN_description.sql`\nExample: `0042_add_user_roles.sql`\n- Number: 1 or more digits, typically zero-padded to 4 digits\n- Underscore separator\n- Description: lowercase letters, digits, underscores\n- Extension: `.sql`\n\nIf the file name matches neither format, mark the naming check as FAIL and note the reason.\n\n### Step 3: Check for rollback\n\nRead the file content and look for either:\n\n- A clearly labeled rollback section (a comment like `-- rollback`, `-- down`, `-- revert`, followed by SQL that undoes the migration)\n- A comment explicitly marking it as irreversible (e.g., `-- This migration is irreversible`, `-- no rollback`)\n\nIf neither is present, mark rollback as NO.\n\n### Step 4: Check for dangerous operations\n\nRead the file and scan for these patterns (case-insensitive):\n\n- `DROP TABLE` without `IF EXISTS` immediately following — flag as WARNING\n- `DROP TABLE IF EXISTS` — acceptable, no warning\n- `DELETE FROM` without a `WHERE` clause on the same or next line — flag as WARNING\n- `UPDATE` without a `WHERE` clause on the same or next line — flag as WARNING\n- `TRUNCATE` on any table — flag as WARNING (destructive, often irreversible in production)\n- `DROP COLUMN` — flag as NOTICE (may break dependent code; not always dangerous but requires attention)\n\nFor each match, note the line number.\n\n### Step 5: Output the checklist\n\nPresent findings in this format:\n\n```\nMigration review: \u003Cfilename>\n\nNaming convention: PASS\n  - Format: timestamp-prefix \u002F sequential-prefix\n  \n  (or)\n  \nNaming convention: FAIL\n  - Reason: \u003Cspecific reason>\n\nRollback: YES \u002F NO \u002F MARKED IRREVERSIBLE\n  - \u003Cbrief note on what the rollback does, or why it is marked irreversible>\n\nDangerous operations: NONE\n  \n  (or)\n  \nDangerous operations:\n  WARNING line 14: DELETE without WHERE clause\n  WARNING line 22: TRUNCATE on orders table\n  NOTICE  line 31: DROP COLUMN — confirm no dependent code references this column\n```\n\nDo not modify the migration file. This skill reviews only.\n",{"name":5,"paths":40,"title":5,"description":7},[41,42,43],"migrations\u002F**","*.sql","db\u002Fmigrate\u002F**","main","55e6468ba43345d07c8a68de983e58403db57c25","src\u002Fcontent\u002Fdocs\u002F02-intermediate\u002Fexercises\u002Fsolutions\u002F02-migration-guard",1,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills","https:\u002F\u002Fclaude-with-skills.vercel.app","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-05-15 21:54:25",{"source":9,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add davila7\u002Fclaude-with-skills --skill migration-guard",{"tool":60,"command":61},"bunx","bunx skills add davila7\u002Fclaude-with-skills --skill migration-guard",{"tool":63,"command":64},"pnpm","pnpm dlx skills add davila7\u002Fclaude-with-skills --skill migration-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F02-intermediate\u002Fexercises\u002Fsolutions\u002F02-migration-guard\u002FSKILL.md",true,[],[69,93,108,118,130,148],{"skillNo":70,"name":71,"nameZh":72,"description":73,"descriptionZh":74,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":75,"categories":76,"keywords":83,"publishedAt":35},"01M6ADNEC991ZW0GD2D4MY6NEP","tag-version","版本号升级与 Git 标签","Bump the package version and create an annotated git tag. Accepts a semantic version number (1.2.0) or a bump type (patch, minor, major). Does not push — use the publish skill to push. Use as part of a release workflow.","升级软件包版本并创建带注释的 git 标签。接受语义化版本号（1.2.0）或升级类型（patch、minor、major）。不执行推送——请使用 publish 技能进行推送。作为发布工作流的一部分使用。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-08-plugins-and-distribution\u002Fexamples\u002Frelease-plugin\u002Fskills\u002Ftag-version\u002FSKILL.md",[77,80],{"categoryNo":78,"categoryName":79,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":81,"categoryName":82,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C78XMS93X21V52649FP9VH","发布经理",[84,85,86,87,88,89,90,91,92],"tag version","workflow","create","release","git","push","npm","package","publish",{"skillNo":94,"name":87,"nameZh":95,"description":96,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":102,"publishedAt":35},"01M6ADNCNHCXNHVAW43ZV43ZC8","项目完整发布流程","Run the complete release workflow: changelog entry, version bump, git tag, and GitHub release. Invokes changelog-entry, tag-version, and publish in sequence. Use when releasing a new version of the project.","运行完整的发布工作流：变更日志条目、版本升级、git 标签和 GitHub Release。依次调用 changelog-entry、tag-version 和 publish。在发布项目新版本时使用。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-08-plugins-and-distribution\u002Fexamples\u002Frelease-plugin\u002Fskills\u002Frelease\u002FSKILL.md",[100,101],{"categoryNo":78,"categoryName":79,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":81,"categoryName":82,"taxonomyType":28,"taxonomyTypeDesc":29},[87,88,103,90,104,105,92,106,107,85],"changelog","changelog entry","run","status","github",{"skillNo":109,"name":92,"nameZh":110,"description":111,"descriptionZh":112,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":117,"publishedAt":35},"01M6ADNAWDDDDX4CS69E1D496X","GitHub 版本发布","Push the current branch and all tags to origin, then create a GitHub release using the latest tag and its CHANGELOG.md entry. Use after tag-version to complete a release.","将当前分支和所有标签推送到 origin，然后使用最新标签及其 CHANGELOG.md 条目创建 GitHub Release。在 tag-version 之后使用以完成发布。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-08-plugins-and-distribution\u002Fexamples\u002Frelease-plugin\u002Fskills\u002Fpublish\u002FSKILL.md",[115,116],{"categoryNo":78,"categoryName":79,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":81,"categoryName":82,"taxonomyType":28,"taxonomyTypeDesc":29},[92,89,107,86,87,88,103],{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":128,"publishedAt":35},"01M6ADN9MP0ASQ6SX14NEPP5XE","changelog-entry","变更日志条目生成","Draft the changelog entry for all unreleased commits in Keep a Changelog format. Groups commits into Added, Changed, Fixed, Removed, and Security. Use before releasing a new version or when updating CHANGELOG.md.","按照 Keep a Changelog 格式为所有未发布的提交起草变更日志条目。将提交分组为新增（Added）、变更（Changed）、修复（Fixed）、移除（Removed）和安全（Security）。在发布新版本之前或更新 CHANGELOG.md 时使用。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-08-plugins-and-distribution\u002Fexamples\u002Frelease-plugin\u002Fskills\u002Fchangelog-entry\u002FSKILL.md",[126,127],{"categoryNo":78,"categoryName":79,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":81,"categoryName":82,"taxonomyType":28,"taxonomyTypeDesc":29},[104,103,129,88],"security",{"skillNo":131,"name":132,"nameZh":133,"description":134,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":144,"publishedAt":35},"01M6ADN8243TD9X8FH7FCQ608R","auto-format-on-edit","代码自动格式化","Automatically format code files after every edit using Prettier and ESLint. Active in the background whenever Claude edits a file. Formatting is silent — no prompts, no output unless a formatter fails. Use when you want consistent formatting enforced automatically during a coding session.","每次编辑后使用 Prettier 和 ESLint 自动格式化代码文件。当 Claude 编辑文件时在后台激活。格式化是静默的——没有提示，除非格式化程序失败，否则没有输出。当您希望在编码会话期间自动执行一致的格式化时使用。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-07-hooks-in-skills\u002Fexamples\u002Fauto-format-on-edit\u002FSKILL.md",[138,141],{"categoryNo":139,"categoryName":140,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[145,146,147],"auto format on edit","code","file",{"skillNo":149,"name":150,"nameZh":151,"description":152,"descriptionZh":153,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":162,"publishedAt":35},"01M6ADN5VVNV7Y2WPYQA13M4ZQ","code-quality-audit","代码质量审计","Run a comprehensive code quality audit covering security, performance, and maintainability. Use for quarterly audits, pre-release reviews, or when onboarding to a large codebase.","运行全面的代码质量审计，涵盖安全性、性能和可维护性。用于季度审计、发布前审查或接入大型代码库时。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-with-skills\u002Fblob\u002Fmain\u002Fsrc\u002Fcontent\u002Fdocs\u002F03-advanced\u002Flesson-06-context-window-mastery\u002Fexamples\u002Flightweight-orchestrator\u002FSKILL.md",[156,159],{"categoryNo":157,"categoryName":158,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":160,"categoryName":161,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[163,164,146,165,166,105,87,167,129],"code quality audit","audit","code quality","performance","onboarding"]