[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A3WA6A3ZNVC9TXW2P4RTKV":3,"skill-same:01M7A3WA6A3ZNVC9TXW2P4RTKV":47},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7A3WA6A3ZNVC9TXW2P4RTKV","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.","siuserxiaowei\u002Fxiaowei-ai-tools","siuserxiaowei","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226641659?v=4","01M7A3SYZKS0MVRZZJQC10XSYM","siuser小伟","01M7A3SZ0735VJJQ0479SNF44J",1,"MIT","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fprojects\u002F技能集合与工具目录\u002Fawesome-codex-skills\u002Fcodebase-migrate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":24,"description":7},{"short-description":25},"Codebase migrations + multi-file refactors","main","ebb257363024c428d3c797cb705194b35d00cb0f","projects\u002F技能集合与工具目录\u002Fawesome-codex-skills\u002Fcodebase-migrate",0,"https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei","2026-11-03 21:39:44",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill codebase-migrate",{"tool":39,"command":40},"bunx","bunx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill codebase-migrate",{"tool":42,"command":43},"pnpm","pnpm dlx skills add siuserxiaowei\u002Fxiaowei-ai-tools --skill codebase-migrate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fprojects\u002F技能集合与工具目录\u002Fawesome-codex-skills\u002Fcodebase-migrate\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7A66TQCYTAPVGB01H6593P0","x-article-draft-uploader","把本地 Markdown 转为经核验的 X Articles 新草稿。适用于需要保留首图封面、正文图片相对位置，并在独立 Playwright 会话中复用用户已授权 Chrome 登录态的任务；不负责公开发布。","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fx-article-draft-uploader\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7A66R643K97EQHY5AFBBVQ6","wecom-operations","通过用户已配置的官方 wecom-cli 管理企业微信文档、智能文档、待办、会议和日程。适合创建或查询这些云端对象、把本地 Markdown 转为智能文档，以及在明确确认后更新或取消对象；不发送消息、不控制桌面客户端。","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwecom-operations\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7A66M3AXR54FQB7B4TX5VN9","wecom-local-vault","Inspect authorized local WeCom databases on macOS, create private plaintext snapshots, and query or export contacts, conversations, and messages without modifying the source account store. Use when the user asks to parse 企业微信\u002FWeCom local data, recover a private database snapshot, inspect local contacts or sessions, search chat history, or export a bounded conversation.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwecom-local-vault\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7A6649YFS2SQ8SKFSTBRN2Z","wechat-reading","Read and analyze WeRead\u002F微信读书 search results, book metadata, bookshelf entries, progress, notes, highlights, public reviews, recommendations, and reading statistics through the official read-only Agent Gateway. Use for WeRead account questions or exports; do not imply that the current Gateway can add, remove, upload, rate, like, or edit content.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-reading\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7A65QZNA4FBYV32WH9S97QG","wechat-mp-batch-exporter","Build a bounded, private archive from known WeChat Official Account article URLs or an owner-authorized account-history export, with explicit reconciliation of article, publish-group, and platform-marked-original counts. Use for batch body capture, history normalization, or enhanced metrics\u002Fcomments workflows. Do not use for a one-page summary or to automate the WeChat client.","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-mp-batch-exporter\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7A65NP84R1JFFZEPVZT065P","wechat-local-vault","在 macOS 本机建立并查询私有微信数据快照。适用于盘点数据库、离线校验已有密钥候选、创建全量或增量明文快照、查会话与联系人、按时间检索消息、导出指定聊天、查看朋友圈或收藏，以及准备群聊摘要素材。所有查询只读，默认隐藏内部账号标识，不操控微信界面，也不发送任何内容。","https:\u002F\u002Fgithub.com\u002Fsiuserxiaowei\u002Fxiaowei-ai-tools\u002Fblob\u002Fmain\u002Fskills\u002Fwechat-local-vault\u002FSKILL.md",[],[]]