[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CG69B7016NG9ZP46H08AK1":3,"skill-same:01M6CG69B7016NG9ZP46H08AK1":77},{"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":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":62,"install":63,"resources":76},"01M6CG69B7016NG9ZP46H08AK1","db-migration-review","数据库迁移审查与清理","Review and clean up auto-generated database migration files after running make migrate-create. Identifies and removes unrelated Atlas schema drift such as dropped partial indexes, no-op index recreations, and other operations not related to the intended migration. Use when creating database migrations, running make migrate-create, or reviewing .up.sql files.","在运行 make migrate-create 后审查并清理自动生成的数据库迁移文件。识别并移除无关的 Atlas schema 漂移，例如删除部分索引、无操作的索引重建，以及与预期迁移无关的其他操作。适用于创建数据库迁移、运行 make migrate-create 或审查 .up.sql 文件时。","codeready-toolchain\u002Ftarsy","codeready-toolchain","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50961591?v=4","01M6CG66FNM8810W5PCNR9FCP7","CodeReady Toolchain","01M6CG66M8H48MP8DFBV9PVEYE",10,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002F.cursor\u002Fskills\u002Fdb-migration-review\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"migration","db migration review","review","database migrations","indexes","sql","operations","migrations","unrelated","create","atlas","migrate","database","use","generated","auto","files","schema","clean","up","2026-11-10 10:12:30",false,"---\nname: db-migration-review\ndescription: Review and clean up auto-generated database migration files after running make migrate-create. Identifies and removes unrelated Atlas schema drift such as dropped partial indexes, no-op index recreations, and other operations not related to the intended migration. Use when creating database migrations, running make migrate-create, or reviewing .up.sql files.\n---\n\n# DB Migration Review\n\nAtlas diffs the Ent schema against a dev database and often emits operations unrelated to the change, because it can't model some indexes. Review every generated `.up.sql` in `pkg\u002Fdatabase\u002Fmigrations\u002F` before it is committed.\n\n## Indexes Atlas can't model (never drop)\n\n| Index | Table | Created in |\n|-------|-------|------------|\n| `agentexecution_stage_id_agent_index_top_level` | `agent_executions` | `20260225235224_add_orchestrator_sub_agent_fields.up.sql` |\n| `agentexecution_parent_execution_id_agent_index_sub_agent` | `agent_executions` | `20260225235224_add_orchestrator_sub_agent_fields.up.sql` |\n| `idx_alert_sessions_alert_data_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_alert_sessions_final_analysis_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_timeline_events_content_gin` | `timeline_events` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_alert_sessions_labels_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n\nThe first two are partial unique indexes (`WHERE parent_execution_id IS [NOT] NULL`) documented in `ent\u002Fschema\u002Fagentexecution.go`. The GIN indexes are created at startup.\n\n## Checklist\n\n1. Wrap the file in `BEGIN;` \u002F `COMMIT;` if Atlas didn't. A failed migration then rolls back cleanly and `recoverDirtyMigration` (`pkg\u002Fdatabase\u002Fclient.go`) can retry on the next deploy. Exception: statements that can't run in a transaction (e.g. `CREATE INDEX CONCURRENTLY`) go in their own migration file without `BEGIN`\u002F`COMMIT`.\n2. Remove any `DROP INDEX` for an index in the table above, or any other index created by hand or with a `WHERE` clause (search `pkg\u002Fdatabase\u002Fmigrations\u002F` for where it was created).\n3. Remove `DROP INDEX` + `CREATE INDEX` pairs whose `CREATE` matches the existing definition in an earlier migration (common with `sessionscore_session_id`).\n4. Remove `ALTER TABLE` statements on tables unrelated to the migration's purpose. If unsure, find the Ent schema change that caused it.\n5. Run `make migrate-hash` to update `atlas.sum`.\n\n## Adding a new index Atlas can't model\n\nWrite it as raw SQL in the migration, add a comment naming it and its migration file in the Ent schema's `Indexes()`, and add a row to the table above.\n","# DB Migration Review\n\nAtlas diffs the Ent schema against a dev database and often emits operations unrelated to the change, because it can't model some indexes. Review every generated `.up.sql` in `pkg\u002Fdatabase\u002Fmigrations\u002F` before it is committed.\n\n## Indexes Atlas can't model (never drop)\n\n| Index | Table | Created in |\n|-------|-------|------------|\n| `agentexecution_stage_id_agent_index_top_level` | `agent_executions` | `20260225235224_add_orchestrator_sub_agent_fields.up.sql` |\n| `agentexecution_parent_execution_id_agent_index_sub_agent` | `agent_executions` | `20260225235224_add_orchestrator_sub_agent_fields.up.sql` |\n| `idx_alert_sessions_alert_data_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_alert_sessions_final_analysis_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_timeline_events_content_gin` | `timeline_events` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n| `idx_alert_sessions_labels_gin` | `alert_sessions` | `CreateGINIndexes` in `pkg\u002Fdatabase\u002Fmigrations.go` |\n\nThe first two are partial unique indexes (`WHERE parent_execution_id IS [NOT] NULL`) documented in `ent\u002Fschema\u002Fagentexecution.go`. The GIN indexes are created at startup.\n\n## Checklist\n\n1. Wrap the file in `BEGIN;` \u002F `COMMIT;` if Atlas didn't. A failed migration then rolls back cleanly and `recoverDirtyMigration` (`pkg\u002Fdatabase\u002Fclient.go`) can retry on the next deploy. Exception: statements that can't run in a transaction (e.g. `CREATE INDEX CONCURRENTLY`) go in their own migration file without `BEGIN`\u002F`COMMIT`.\n2. Remove any `DROP INDEX` for an index in the table above, or any other index created by hand or with a `WHERE` clause (search `pkg\u002Fdatabase\u002Fmigrations\u002F` for where it was created).\n3. Remove `DROP INDEX` + `CREATE INDEX` pairs whose `CREATE` matches the existing definition in an earlier migration (common with `sessionscore_session_id`).\n4. Remove `ALTER TABLE` statements on tables unrelated to the migration's purpose. If unsure, find the Ent schema change that caused it.\n5. Run `make migrate-hash` to update `atlas.sum`.\n\n## Adding a new index Atlas can't model\n\nWrite it as raw SQL in the migration, add a comment naming it and its migration file in the Ent schema's `Indexes()`, and add a row to the table above.\n",{"name":5,"description":7},"master","19d18feeb3bb398962a12569720c7a8a5324b82a",".cursor\u002Fskills\u002Fdb-migration-review",8,"https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy","https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain","2026-11-14 13:16:34",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add codeready-toolchain\u002Ftarsy --skill db-migration-review",{"tool":69,"command":70},"bunx","bunx skills add codeready-toolchain\u002Ftarsy --skill db-migration-review",{"tool":72,"command":73},"pnpm","pnpm dlx skills add codeready-toolchain\u002Ftarsy --skill db-migration-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002F.cursor\u002Fskills\u002Fdb-migration-review\u002FSKILL.md",true,[],[78,97,115,135],{"skillNo":79,"name":80,"nameZh":81,"description":82,"descriptionZh":83,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":90,"publishedAt":51},"01M6CG7454FFHM2SBCX5410TZA","simple-skill","目录加载测试技能","A simple test skill to verify directory layout loading.","一个简单的测试技能，用于验证目录布局加载。","https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002Ftest\u002Fe2e\u002Ftestdata\u002Fconfigs\u002Fskills-dir-layout\u002Fskills\u002Fsimple-skill\u002FSKILL.md",[86,87],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[91,92,93,94,95,96],"simple skill","simple","verify","Test Skill","test","directory",{"skillNo":98,"name":99,"nameZh":100,"description":101,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":109,"publishedAt":51},"01M6CG72ANQ6KZDCC4GF6Q4A6E","example-skill","示例技能","Example skill for config viewer e2e coverage.","用于配置查看器端到端（e2e）覆盖测试的示例技能。","https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002Ftest\u002Fe2e\u002Ftestdata\u002Fconfigs\u002Fconcurrency\u002Fskills\u002Fexample-skill\u002FSKILL.md",[105,108],{"categoryNo":106,"categoryName":107,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},[110,111,112,113,114],"example","example skill","coverage","e2e","config",{"skillNo":116,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":129,"publishedAt":51},"01M6CG70FHCMZYMFQE9P49Y84M","networking","网络故障排查","Network troubleshooting skills including DNS resolution, TCP connectivity, and packet analysis.","网络故障排查技能，包括 DNS 解析、TCP 连接性以及数据包分析。","https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002Fpkg\u002Fconfig\u002Ftestdata\u002Fskills\u002Fnetworking\u002FSKILL.md",[123,126],{"categoryNo":124,"categoryName":125,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":127,"categoryName":128,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CHDEMXS5K85B6SE8TPE1CS","网络流量分析与抓包",[117,130,131,132,133,134],"analysis","troubleshooting","network","dns","tcp",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":147,"publishedAt":51},"01M6CG6Y0Y8REEGACMFZ6JXKVW","kubernetes-basics","Kubernetes 核心概念与基础","Core Kubernetes concepts including pods, deployments, services, and common troubleshooting patterns.","Kubernetes 核心概念，包括 Pod、Deployment、Service 以及常见故障排查模式。","https:\u002F\u002Fgithub.com\u002Fcodeready-toolchain\u002Ftarsy\u002Fblob\u002Fmaster\u002Fpkg\u002Fconfig\u002Ftestdata\u002Fskills\u002Fkubernetes-basics\u002FSKILL.md",[143,144],{"categoryNo":124,"categoryName":125,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":145,"categoryName":146,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排",[148,149,150,151,152,131,153,154],"basics","kubernetes basics","kubernetes","deployments","common","services","core"]