[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A9V8G363MBXBW6FPMSNJRG":3,"skill-same:01M7A9V8G363MBXBW6FPMSNJRG":55},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7A9V8G363MBXBW6FPMSNJRG","migration-review",null,"Produces a pass\u002Ffail gate for a database migration PR — destructive ops, hot-table column locking, index concurrency, down-migration reversal, and backfill placement, each finding cited to a line. Use when reviewing, auditing, or approving a schema migration diff.","StartupBros-com\u002Fskill-tuner","StartupBros-com","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F262958016?v=4","01M77WY8AH50FY939DTGZYHVE9","StartupBros.com","01M7A9SNDJZ1YQYFJBPV6RQA85",0,"MIT","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Fauthoring-ab\u002Fworkspace\u002Fsql-migration-review\u002Fours\u002Frun-1\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migration-review\ndescription: Produces a pass\u002Ffail gate for a database migration PR — destructive ops, hot-table column locking, index concurrency, down-migration reversal, and backfill placement, each finding cited to a line. Use when reviewing, auditing, or approving a schema migration diff.\n---\n\nApply the five checks below to every migration file in the PR, statement by statement. The output is a pass\u002Ffail verdict per check plus one overall gate, and every finding — pass or fail — traces to a file:line in the diff.\n\n## Steps\n\n1. List every migration file changed in the PR, and every DDL\u002FDML statement inside each, one line per statement.\n2. Run each of the five checks against every statement. A check with no matching statement in the migration passes trivially — record N\u002FA, no citation needed.\n3. For any check that fails, quote the offending statement's file:line and the reason.\n4. Emit the verdict block below. The gate is FAIL if any check fails; PASS only when all five are PASS or N\u002FA.\n\n## The five checks\n\n### 1. Destructive ops need a two-phase plan\nTrigger: `DROP TABLE`, `DROP COLUMN`, `ALTER TABLE ... RENAME`, or `RENAME COLUMN`.\nPass when the drop or rename lands in a later migration, after an earlier one that already stopped writing to the old name — with a deploy expected between the two. A migration that renames or drops the same object it's still being written to fails, with no exception for \"nothing reads this column anymore\" asserted but not shown.\nFail: cite the DROP\u002FRENAME line and note that no prior migration in the PR deprecates the target first.\n\n### 2. New columns on hot tables need non-locking defaults\nTrigger: `ADD COLUMN` on a table you can identify as hot — flagged in the migration's own comments or PR description, or carrying an index that implies high-traffic access. If you cannot determine traffic, treat the table as hot.\nPass when the added column has no `DEFAULT`, the default is a constant on Postgres 11+ (metadata-only, no rewrite), or the default is populated afterward by a separate batched job per check 5 rather than inline in `ADD COLUMN`.\nFail: cite the `ADD COLUMN ... DEFAULT` line where the default is volatile (`now()`, a sequence, any function call), or where the target Postgres predates 11 and a non-null default is used — both rewrite the full table under a lock.\n\n### 3. Every index on a big table must use CONCURRENTLY\nTrigger: `CREATE INDEX` or `CREATE UNIQUE INDEX` on a table not created earlier in this same migration.\nPass when the statement includes `CONCURRENTLY`, and the migration tool's transaction wrapping doesn't put it inside a transaction block alongside other DDL — `CONCURRENTLY` cannot run inside a transaction, and most migration tools wrap the whole file in one by default.\nFail: cite the `CREATE INDEX` line missing `CONCURRENTLY`, or cite the config\u002Fline showing the migration runs in an implicit transaction that would make it error or get silently dropped.\n\n### 4. Down-migrations must actually reverse the up\nTrigger: any migration file with a down\u002Frollback section.\nPass when every up statement has a down statement that fully inverts it — an added column is removed, a dropped column's exact prior type and constraints are restored, a rename is renamed back, a created index is dropped. Read both halves side by side.\nFail: cite the up statement with no matching inverse in the down, or the down statement whose effect only partially undoes its up counterpart — including a down section that is present but empty, a no-op, or a comment-only stub.\n\n### 5. Backfills belong in a separate batched job\nTrigger: any statement writing to existing rows — `UPDATE`, `INSERT ... SELECT`, or a default-population loop — whose row count isn't bounded by the migration itself.\nPass when the migration contains no such statement, and any backfill is instead referenced as a separate batched job: a script, worker task, or follow-up ticket linked in the PR.\nFail: cite the `UPDATE`\u002Fbackfill line running inside the schema migration itself, regardless of current table size — an unbatched write inside a schema migration locks rows or bloats WAL even on a table that's small today.\n\n## Verdict format\n\n```\n## Migration Review: \u003Cgate PASS|FAIL>\n\n1. Destructive ops \u002F two-phase plan: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n2. Hot-table column defaults: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n3. CONCURRENTLY on indexes: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n4. Down-migration reversal: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n5. Backfill separated from schema migration: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n```\n\nA FAIL line with no file:line citation is itself a defect in the review — find the line before emitting it, don't assert the failure impressionistically.","Apply the five checks below to every migration file in the PR, statement by statement. The output is a pass\u002Ffail verdict per check plus one overall gate, and every finding — pass or fail — traces to a file:line in the diff.\n\n## Steps\n\n1. List every migration file changed in the PR, and every DDL\u002FDML statement inside each, one line per statement.\n2. Run each of the five checks against every statement. A check with no matching statement in the migration passes trivially — record N\u002FA, no citation needed.\n3. For any check that fails, quote the offending statement's file:line and the reason.\n4. Emit the verdict block below. The gate is FAIL if any check fails; PASS only when all five are PASS or N\u002FA.\n\n## The five checks\n\n### 1. Destructive ops need a two-phase plan\nTrigger: `DROP TABLE`, `DROP COLUMN`, `ALTER TABLE ... RENAME`, or `RENAME COLUMN`.\nPass when the drop or rename lands in a later migration, after an earlier one that already stopped writing to the old name — with a deploy expected between the two. A migration that renames or drops the same object it's still being written to fails, with no exception for \"nothing reads this column anymore\" asserted but not shown.\nFail: cite the DROP\u002FRENAME line and note that no prior migration in the PR deprecates the target first.\n\n### 2. New columns on hot tables need non-locking defaults\nTrigger: `ADD COLUMN` on a table you can identify as hot — flagged in the migration's own comments or PR description, or carrying an index that implies high-traffic access. If you cannot determine traffic, treat the table as hot.\nPass when the added column has no `DEFAULT`, the default is a constant on Postgres 11+ (metadata-only, no rewrite), or the default is populated afterward by a separate batched job per check 5 rather than inline in `ADD COLUMN`.\nFail: cite the `ADD COLUMN ... DEFAULT` line where the default is volatile (`now()`, a sequence, any function call), or where the target Postgres predates 11 and a non-null default is used — both rewrite the full table under a lock.\n\n### 3. Every index on a big table must use CONCURRENTLY\nTrigger: `CREATE INDEX` or `CREATE UNIQUE INDEX` on a table not created earlier in this same migration.\nPass when the statement includes `CONCURRENTLY`, and the migration tool's transaction wrapping doesn't put it inside a transaction block alongside other DDL — `CONCURRENTLY` cannot run inside a transaction, and most migration tools wrap the whole file in one by default.\nFail: cite the `CREATE INDEX` line missing `CONCURRENTLY`, or cite the config\u002Fline showing the migration runs in an implicit transaction that would make it error or get silently dropped.\n\n### 4. Down-migrations must actually reverse the up\nTrigger: any migration file with a down\u002Frollback section.\nPass when every up statement has a down statement that fully inverts it — an added column is removed, a dropped column's exact prior type and constraints are restored, a rename is renamed back, a created index is dropped. Read both halves side by side.\nFail: cite the up statement with no matching inverse in the down, or the down statement whose effect only partially undoes its up counterpart — including a down section that is present but empty, a no-op, or a comment-only stub.\n\n### 5. Backfills belong in a separate batched job\nTrigger: any statement writing to existing rows — `UPDATE`, `INSERT ... SELECT`, or a default-population loop — whose row count isn't bounded by the migration itself.\nPass when the migration contains no such statement, and any backfill is instead referenced as a separate batched job: a script, worker task, or follow-up ticket linked in the PR.\nFail: cite the `UPDATE`\u002Fbackfill line running inside the schema migration itself, regardless of current table size — an unbatched write inside a schema migration locks rows or bloats WAL even on a table that's small today.\n\n## Verdict format\n\n```\n## Migration Review: \u003Cgate PASS|FAIL>\n\n1. Destructive ops \u002F two-phase plan: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n2. Hot-table column defaults: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n3. CONCURRENTLY on indexes: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n4. Down-migration reversal: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n5. Backfill separated from schema migration: PASS|FAIL|N\u002FA — \u003Cfile:line or reason>\n```\n\nA FAIL line with no file:line citation is itself a defect in the review — find the line before emitting it, don't assert the failure impressionistically.",{"name":5,"description":7},"main","cef05d1097f6e747e5c18bd5e7f3d6dba1f3d952","experiments\u002Fauthoring-ab\u002Fworkspace\u002Fsql-migration-review\u002Fours\u002Frun-1","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fhov-stack\u002Ftree\u002Fmain\u002Fplugins\u002Fskill-tuner","https:\u002F\u002Fgithub.com\u002FStartupBros-com","2026-11-02 17:58:56",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add StartupBros-com\u002Fskill-tuner --skill migration-review",{"tool":37,"command":38},"bunx","bunx skills add StartupBros-com\u002Fskill-tuner --skill migration-review",{"tool":40,"command":41},"pnpm","pnpm dlx skills add StartupBros-com\u002Fskill-tuner --skill migration-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Fauthoring-ab\u002Fworkspace\u002Fsql-migration-review\u002Fours\u002Frun-1\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"grading.json","REFERENCE","参考文档",1047,"https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Fauthoring-ab\u002Fworkspace\u002Fsql-migration-review\u002Fours\u002Frun-1\u002Fgrading.json",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"meta.json",205,"https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Fauthoring-ab\u002Fworkspace\u002Fsql-migration-review\u002Fours\u002Frun-1\u002Fmeta.json",[56,63,70,77,84,89],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AA3WSSMWKNAWDHSD5VMVQZ","tune","Find and fix real defects in a skill, AGENTS.md, or CLAUDE.md, then prove the description still routes. Runs the bundled token-spending runner, so it starts only on the human's explicit instruction.","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fskills\u002Ftune\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AA3T3WEM4JV9F1YM7SXWXK","skill-tuner","Evidence-tagged rules for writing documents agents consume. Use when creating, editing, or shortening skills, AGENTS.md, or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fskills\u002Fskill-tuner\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AA3PXA6T3T6CC0S7P6RH5P","portfolio","Inventory every skill the agent is shown, with its per-turn listing cost, usage count and visibility knob, then decide one skill at a time whether the model should start it on its own. Reads files only; starts on the human's explicit instruction.","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio\u002FSKILL.md",[],[],{"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":19},"01M7AA3MG60GEBYXM4N2EK2H43","shipit","Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Ftrigger-improving-2026-10-29\u002Fresults\u002Fruns\u002Flive-imp-solo-imp-3\u002FSKILL.md",[],[],{"skillNo":85,"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":86,"categories":87,"keywords":88,"publishedAt":19},"01M7AA3GGJHVGJJ4RHRDMEXAWY","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Ftrigger-improving-2026-10-29\u002Fresults\u002Fruns\u002Flive-imp-solo-imp-2\u002FSKILL.md",[],[],{"skillNo":90,"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":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AA3E53RC5PWWNC5265WS84","https:\u002F\u002Fgithub.com\u002FStartupBros-com\u002Fskill-tuner\u002Fblob\u002Fmain\u002Fexperiments\u002Ftrigger-improving-2026-10-29\u002Fresults\u002Fruns\u002Flive-imp-solo-imp-1\u002FSKILL.md",[],[]]