[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KHA3S574B5TAF188ETDYG":3,"skill-same:01M71KHA3S574B5TAF188ETDYG":68},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M71KHA3S574B5TAF188ETDYG","codebase-migrate",null,"Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.","q2805187159\u002FAnvil","q2805187159","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F105276843?v=4","01M71KF4TN999VNJX9FY9QT06A","铁甲勇士宋小宝","01M71KF4V97XXQ7AGES97R4Q9F",3,"MIT","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fcodebase-migrate\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"codebase","codebase migrate","migrate","composio","tracking","issue","run","transforms","migrations","cli","verification","multi","across","file","files","multi-file","composio cli","prs","ci","coordinate","2026-11-10 10:12:30",false,"---\nname: codebase-migrate\ndescription: Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.\nmetadata:\n  short-description: Codebase migrations + multi-file refactors\n---\n\n# Codebase Migrate\n\nCoordinate framework upgrades, API renames, config rewrites, and structural refactors across hundreds of files. Local edits are driven by the agent; the [Composio CLI](https:\u002F\u002Fdocs.composio.dev\u002Fdocs\u002Fcli) handles the surrounding ceremony: tracking issues, per-batch PRs, and CI verification.\n\n## When to Use\n\n- Framework upgrade (React 17 → 19, Node 18 → 22, Django 4 → 5).\n- API rename across a monorepo (e.g., `getUserById` → `users.byId`).\n- Config\u002Fformat migration (webpack → vite, eslint → biome, jest → vitest).\n- Any \"change 200 files the same way\" task that needs to ship in reviewable slices.\n\n## Prereqs\n\n```bash\ncurl -fsSL https:\u002F\u002Fcomposio.dev\u002Finstall | bash\ncomposio login\ncomposio link github        # for PRs + CI status\ncomposio link linear        # or jira — for migration tracking\n```\n\nLocal tools the agent will use directly: `git`, `rg`, `jscodeshift`\u002F`ts-morph`\u002F`comby`\u002F`ast-grep` (language-appropriate), and your test runner.\n\n## Planning Phase\n\n1. **Define the transform precisely.** Bad: \"migrate to vitest.\" Good: \"replace `jest.mock` with `vi.mock`, swap `jest.fn()` for `vi.fn()`, rename `jest.config.js` → `vitest.config.ts` using template X.\"\n2. **Scope the blast radius:**\n   ```bash\n   rg -l 'jest\\.(mock|fn|spyOn)' | wc -l\n   rg -l 'from \"jest\"' | sort\n   ```\n3. **File a tracking issue:**\n   ```bash\n   composio execute LINEAR_CREATE_ISSUE -d '{\n     \"teamId\":\"TEAM_ID\",\n     \"title\":\"Migrate test runner: jest → vitest\",\n     \"description\":\"Batches of ~25 files. Checkpoint after each PR lands green.\"\n   }'\n   ```\n\n## Execute in Reviewable Batches\n\nLoop: pick N files → transform → test → PR → wait for green → merge → next batch.\n\n```bash\n# Batch helper: first 25 untouched files matching the pattern\nBATCH=$(rg -l 'jest\\.mock' | grep -v done.list | head -25)\necho \"$BATCH\" > batch.list\n```\n\nThe agent runs the codemod on `batch.list`, then:\n\n```bash\ngit checkout -b migrate\u002Fvitest-batch-03\nxargs \u003C batch.list codemod-runner   # e.g. jscodeshift \u002F ts-morph \u002F comby\nnpm test -- --changed\ngit add -A && git commit -m \"migrate(test): jest → vitest (batch 3)\"\ngit push -u origin migrate\u002Fvitest-batch-03\n\ncomposio execute GITHUB_CREATE_A_PULL_REQUEST -d '{\n  \"owner\":\"acme\",\"repo\":\"app\",\n  \"head\":\"migrate\u002Fvitest-batch-03\",\"base\":\"main\",\n  \"title\":\"migrate(test): jest → vitest (batch 3)\",\n  \"body\":\"Part of LIN-482. 25 files. Codemod: `transforms\u002Fjest-to-vitest.ts`.\"\n}'\n```\n\nThen poll CI and merge when green:\n\n```bash\ncomposio execute GITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORY \\\n  -d '{\"owner\":\"acme\",\"repo\":\"app\",\"branch\":\"migrate\u002Fvitest-batch-03\"}'\n```\n\n## Workflow Script\n\n`scripts\u002Fmigrate-batch.ts`, run per batch via `composio run --file scripts\u002Fmigrate-batch.ts -- --batch 3`:\n\n```ts\nconst batch = process.argv[process.argv.indexOf(\"--batch\") + 1];\n\nconst pr = await execute(\"GITHUB_CREATE_A_PULL_REQUEST\", {\n  owner: \"acme\", repo: \"app\",\n  head: `migrate\u002Fvitest-batch-${batch}`, base: \"main\",\n  title: `migrate(test): jest → vitest (batch ${batch})`,\n  body: `Part of LIN-482. See transforms\u002Fjest-to-vitest.ts.`\n});\n\nawait execute(\"LINEAR_CREATE_COMMENT\", {\n  issueId: \"LIN-482\",\n  body: `Opened PR #${pr.number}: ${pr.html_url}`\n});\n```\n\n## Safety Rails\n\n- **One transform per PR.** Never mix a rename with a format change.\n- **Keep a `done.list`** of files already migrated so the next batch skips them.\n- **Run the full test suite on the last batch**, even if per-batch PRs ran `--changed`.\n- **Codemod first, hand-edit second.** If the codemod misses 3 files, patch them manually and note it in the PR body.\n- **Roll back per-batch**, not globally. Each PR should revert cleanly.\n\n## Verification Loop\n\nAfter each merge:\n\n```bash\nrg 'jest\\.(mock|fn|spyOn)' | wc -l     # should trend to 0\nnpm test                                # full suite\ncomposio execute GITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORY \\\n  -d '{\"owner\":\"acme\",\"repo\":\"app\",\"branch\":\"main\",\"event\":\"push\"}' \\\n  | jq '.workflow_runs[0].conclusion'\n```\n\n## Troubleshooting\n\n- **Codemod regex catches too much** → switch to AST-based tooling (`ast-grep`, `ts-morph`) for structural matches.\n- **Tests pass locally, CI fails** → pin Node\u002FPython version parity; check `.nvmrc` \u002F `pyproject.toml`.\n- **PR too big to review** → cut batch size in half; maintainers won't review 800-line diffs.\n- **Conflicts between batches** → rebase the open batch before merging the current one; never force-push merged batches.\n\nFull CLI reference: [docs.composio.dev\u002Fdocs\u002Fcli](https:\u002F\u002Fdocs.composio.dev\u002Fdocs\u002Fcli)\n","# Codebase Migrate\n\nCoordinate framework upgrades, API renames, config rewrites, and structural refactors across hundreds of files. Local edits are driven by the agent; the [Composio CLI](https:\u002F\u002Fdocs.composio.dev\u002Fdocs\u002Fcli) handles the surrounding ceremony: tracking issues, per-batch PRs, and CI verification.\n\n## When to Use\n\n- Framework upgrade (React 17 → 19, Node 18 → 22, Django 4 → 5).\n- API rename across a monorepo (e.g., `getUserById` → `users.byId`).\n- Config\u002Fformat migration (webpack → vite, eslint → biome, jest → vitest).\n- Any \"change 200 files the same way\" task that needs to ship in reviewable slices.\n\n## Prereqs\n\n```bash\ncurl -fsSL https:\u002F\u002Fcomposio.dev\u002Finstall | bash\ncomposio login\ncomposio link github        # for PRs + CI status\ncomposio link linear        # or jira — for migration tracking\n```\n\nLocal tools the agent will use directly: `git`, `rg`, `jscodeshift`\u002F`ts-morph`\u002F`comby`\u002F`ast-grep` (language-appropriate), and your test runner.\n\n## Planning Phase\n\n1. **Define the transform precisely.** Bad: \"migrate to vitest.\" Good: \"replace `jest.mock` with `vi.mock`, swap `jest.fn()` for `vi.fn()`, rename `jest.config.js` → `vitest.config.ts` using template X.\"\n2. **Scope the blast radius:**\n   ```bash\n   rg -l 'jest\\.(mock|fn|spyOn)' | wc -l\n   rg -l 'from \"jest\"' | sort\n   ```\n3. **File a tracking issue:**\n   ```bash\n   composio execute LINEAR_CREATE_ISSUE -d '{\n     \"teamId\":\"TEAM_ID\",\n     \"title\":\"Migrate test runner: jest → vitest\",\n     \"description\":\"Batches of ~25 files. Checkpoint after each PR lands green.\"\n   }'\n   ```\n\n## Execute in Reviewable Batches\n\nLoop: pick N files → transform → test → PR → wait for green → merge → next batch.\n\n```bash\n# Batch helper: first 25 untouched files matching the pattern\nBATCH=$(rg -l 'jest\\.mock' | grep -v done.list | head -25)\necho \"$BATCH\" > batch.list\n```\n\nThe agent runs the codemod on `batch.list`, then:\n\n```bash\ngit checkout -b migrate\u002Fvitest-batch-03\nxargs \u003C batch.list codemod-runner   # e.g. jscodeshift \u002F ts-morph \u002F comby\nnpm test -- --changed\ngit add -A && git commit -m \"migrate(test): jest → vitest (batch 3)\"\ngit push -u origin migrate\u002Fvitest-batch-03\n\ncomposio execute GITHUB_CREATE_A_PULL_REQUEST -d '{\n  \"owner\":\"acme\",\"repo\":\"app\",\n  \"head\":\"migrate\u002Fvitest-batch-03\",\"base\":\"main\",\n  \"title\":\"migrate(test): jest → vitest (batch 3)\",\n  \"body\":\"Part of LIN-482. 25 files. Codemod: `transforms\u002Fjest-to-vitest.ts`.\"\n}'\n```\n\nThen poll CI and merge when green:\n\n```bash\ncomposio execute GITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORY \\\n  -d '{\"owner\":\"acme\",\"repo\":\"app\",\"branch\":\"migrate\u002Fvitest-batch-03\"}'\n```\n\n## Workflow Script\n\n`scripts\u002Fmigrate-batch.ts`, run per batch via `composio run --file scripts\u002Fmigrate-batch.ts -- --batch 3`:\n\n```ts\nconst batch = process.argv[process.argv.indexOf(\"--batch\") + 1];\n\nconst pr = await execute(\"GITHUB_CREATE_A_PULL_REQUEST\", {\n  owner: \"acme\", repo: \"app\",\n  head: `migrate\u002Fvitest-batch-${batch}`, base: \"main\",\n  title: `migrate(test): jest → vitest (batch ${batch})`,\n  body: `Part of LIN-482. See transforms\u002Fjest-to-vitest.ts.`\n});\n\nawait execute(\"LINEAR_CREATE_COMMENT\", {\n  issueId: \"LIN-482\",\n  body: `Opened PR #${pr.number}: ${pr.html_url}`\n});\n```\n\n## Safety Rails\n\n- **One transform per PR.** Never mix a rename with a format change.\n- **Keep a `done.list`** of files already migrated so the next batch skips them.\n- **Run the full test suite on the last batch**, even if per-batch PRs ran `--changed`.\n- **Codemod first, hand-edit second.** If the codemod misses 3 files, patch them manually and note it in the PR body.\n- **Roll back per-batch**, not globally. Each PR should revert cleanly.\n\n## Verification Loop\n\nAfter each merge:\n\n```bash\nrg 'jest\\.(mock|fn|spyOn)' | wc -l     # should trend to 0\nnpm test                                # full suite\ncomposio execute GITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORY \\\n  -d '{\"owner\":\"acme\",\"repo\":\"app\",\"branch\":\"main\",\"event\":\"push\"}' \\\n  | jq '.workflow_runs[0].conclusion'\n```\n\n## Troubleshooting\n\n- **Codemod regex catches too much** → switch to AST-based tooling (`ast-grep`, `ts-morph`) for structural matches.\n- **Tests pass locally, CI fails** → pin Node\u002FPython version parity; check `.nvmrc` \u002F `pyproject.toml`.\n- **PR too big to review** → cut batch size in half; maintainers won't review 800-line diffs.\n- **Conflicts between batches** → rebase the open batch before merging the current one; never force-push merged batches.\n\nFull CLI reference: [docs.composio.dev\u002Fdocs\u002Fcli](https:\u002F\u002Fdocs.composio.dev\u002Fdocs\u002Fcli)\n",{"name":5,"metadata":44,"description":7},{"short-description":45},"Codebase migrations + multi-file refactors","main","6ffadc67c9777282fa1f9330ec12ac8778064409","skills\u002Fcodebase-migrate",0,"https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil","https:\u002F\u002Fgithub.com\u002Fq2805187159","Independent Researcher\r\n\r\nEmail: q2805187159@gmail.com\r\n\r\nGithub: q2805187159\r\n\r\nResearch Interests:\r\n- LLM Agents\r\n- Tool Routing\r\n- RAG","2026-06-24 18:31:41",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add q2805187159\u002FAnvil --skill codebase-migrate",{"tool":60,"command":61},"bunx","bunx skills add q2805187159\u002FAnvil --skill codebase-migrate",{"tool":63,"command":64},"pnpm","pnpm dlx skills add q2805187159\u002FAnvil --skill codebase-migrate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fcodebase-migrate\u002FSKILL.md",true,[],[69,104,136,143,169,192],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":85,"publishedAt":103},"01M71NPWVVMB1AZ8XGKNJFT0YP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[77,82],{"categoryNo":78,"categoryName":79,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":83,"categoryName":84,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000009","前端开发",[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],"webapp","testing","webapp testing","for","applications","local","frontend","debugging","toolkit","logs","browser","with","playwright","web","behavior","ui","screenshots","2026-11-10 10:56:23",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":118,"publishedAt":103},"01M71NPTQ96H4XSZVZT422BNRB","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[119,120,99,121,122,89,123,124,125,126,127,128,32,129,130,131,132,133,134,135],"guidelines","design","web design guidelines","web design","vercel","interface","web interface guidelines","use","when","best practices","code","review","check","compliance","audit","ux","accessibility",{"skillNo":137,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":103},"01M71NPS2D31Y2BGFYA9DB7CE4","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines copy\u002FSKILL.md",[140,141],{"categoryNo":111,"categoryName":112,"taxonomyType":80,"taxonomyTypeDesc":81},{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},[119,120,99,121,122,89,123,124,125,126,127,128,32,129,130,131,132,133,134,135],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":155,"publishedAt":103},"01M71NPQ9DRT54QSQJ0BHBM3VG","video-generation","Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-generation\u002FSKILL.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":153,"categoryName":154,"taxonomyType":80,"taxonomyTypeDesc":81},"01JBSEEDCAT000000000000023","Skill与智能体开发",[156,157,158,89,126,127,159,160,161,162,163,164,165,166,167,168],"Video","video generation","generation","image","create","imagine","requests","generate","videos","reference","prompts","user","structured",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":176,"publishedAt":103},"01M71NPN57CT154SWXAS52475X","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-downloader\u002FSKILL.md",[175],{"categoryNo":150,"categoryName":151,"taxonomyType":80,"taxonomyTypeDesc":81},[177,178,179,180,181,182,183,126,127,184,97,185,186,187,188,189,164,190,167,191],"youtube","youtube downloader","mp4","as","downloads","Audio","only","mp3","options","quality","format","settings","grab","formats","download",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":103},"01M71NPKD95YB8N3J6J78QGFFW","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fq2805187159\u002FAnvil\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[29,199,200,201,202,36,203,126,204,127,205,206,207,208,209,210],"verification before completion","running","evidence","complete","claim","assertions","committing","output","claims","work","about","commands"]