Token导航 LogoToken导航

Agent Skill · 研究检索

full-codebase-migrator(完整代码库迁移器)

full-codebase-migrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

full-codebase-migrator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 48,496。

总安装 685周安装 28GitHub Stars 106下载 220核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:full-codebase-migrator(完整代码库迁移器)
来源仓库:https://github.com/onewave-ai/claude-skills
仓库路径:skills/full-codebase-migrator
安装命令:
npx skills add https://github.com/onewave-ai/claude-skills --skill full-codebase-migrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/onewave-ai/claude-skills --skill full-codebase-migrator

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

full-codebase-migrator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景进行信息筛选的场景。通过安装命令从指定仓库添加技能,可结合原始 README 核验用法。

安装前建议确认权限范围和维护状态,避免触发不必要的数据访问。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/full-codebase-migrator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/onewave-ai/claude-skills --skill full-codebase…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

full-codebase-migrator 怎么安装?

在终端执行 npx skills add https://github.com/onewave-ai/claude-skills --skill full-codebase-migrator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

full-codebase-migrator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

full-codebase-migrator 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

full-codebase-migrator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

full-codebase-migrator 用的人多吗?

公开数据是累计安装 685 次,近一周安装 28 次,下载 220 次,GitHub 106 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

full-codebase-migrator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
full-codebase-migrator

完整代码库迁移器 · 本页

685106需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Full Codebase Migrator

A production-grade migration planning system that leverages the full 1M token context window to ingest an entire codebase, understand its architecture end-to-end, and produce a comprehensive, file-by-file migration plan. This is not a partial analysis -- it reads every file, traces every dependency, and outputs an actionable plan that a team can execute sequentially without conflicts.

Supported Migration Types

MigrationFromTo
LanguageJavaScript (.js/.jsx)TypeScript (.ts/.tsx)
Component ModelReact Class ComponentsReact Functional + Hooks
FrameworkCreate React AppNext.js / Vite
FrameworkExpress.jsFastify / Hono / Elysia
FrameworkVue 2 (Options API)Vue 3 (Composition API)
FrameworkAngular.jsAngular (modern)
StylingCSS / SCSS / CSS ModulesTailwind CSS
StylingStyled ComponentsCSS Modules / Tailwind
StateRedux (classic)Redux Toolkit / Zustand / Jotai
TestingJest + EnzymeVitest + Testing Library
BuildWebpackVite / Turbopack / esbuild
MonorepoSingle repoTurborepo / Nx workspace
ORMSequelize / TypeORMPrisma / Drizzle
RuntimeNode.js (CommonJS)Node.js (ESM) / Bun / Deno
Package Managernpmpnpm / yarn (berry)
CustomAnyAny (user-defined rules)

When to Use

  • You are planning a major technology migration and need a complete inventory before starting
  • You want to understand the full blast radius of a framework or language change
  • You need to estimate effort and risk before committing to a migration
  • You want a deterministic execution order that respects the dependency graph
  • You need to hand off a migration plan to a team with clear, file-level instructions

When NOT to Use

  • Single-file conversions (just do them directly)
  • Codebases with fewer than 5 files (overkill)
  • When you want to execute the migration immediately (this skill plans; use agent-army to execute)

Architecture

You (Commander)
 |
 |-- Phase 1: Full Ingestion (sequential, read everything)
 |    |-- Glob: discover all source files
 |    |-- Read: ingest every file into context
 |    |-- Bash: collect metadata (line counts, git history, package.json)
 |
 |-- Phase 2: Analysis (in-context reasoning)
 |    |-- Dependency graph construction
 |    |-- Complexity scoring per file
 |    |-- Risk classification
 |    |-- Migration pattern matching
 |
 |-- Phase 3: Plan Generation (Write output)
 |    |-- migration-plan.md (the deliverable)
 |    |-- Optional: migration-plan.json (machine-readable)

Execution Protocol

Follow these steps precisely when this skill is invoked.

Step 0: Identify Migration Type

Before doing anything, clarify the migration scope with the user:

  1. Determine migration type -- Ask the user (or infer from context) what the migration is. Examples: "JS to TS", "CRA to Next.js", "Redux to Zustand".
  2. Determine migration scope -- Full repo or a specific directory? Default to full repo.
  3. Determine output location -- Where to write migration-plan.md. Default to the repo root.
  4. Determine constraints -- Are there files or directories to exclude? Are there deadlines or team size considerations?

If the user has already specified these in their prompt, skip the questions and proceed.

Step 1: Full Codebase Ingestion

This is the critical step that leverages the 1M context window. Read everything.

1a. Discover All Source Files
Use Glob to find all relevant source files. Typical patterns by migration type:

JS to TS:        **/*.{js,jsx,mjs,cjs}
React migration:  **/*.{js,jsx,ts,tsx}
Vue migration:    **/*.{vue,js,ts}
Angular:          **/*.{ts,html,scss,css}
General:          **/*.{js,jsx,ts,tsx,vue,svelte,css,scss,json,yaml,yml,md}

Always exclude:
- node_modules/**
- dist/**
- build/**
- .next/**
- coverage/**
- *.min.js
- *.bundle.js
- package-lock.json
- yarn.lock
- pnpm-lock.yaml
1b. Collect Metadata

Run these Bash commands to gather structural information:

  1. Line counts -- wc -l on every discovered file. This drives effort estimation.
  2. Package manifest -- Read package.json (or equivalent) for dependencies, scripts, and config.
  3. Config files -- Read tsconfig.json,.babelrc, webpack.config.js, vite.config.ts,.eslintrc,.prettierrc, and any other config files.
  4. Git history -- git log --oneline -20 for recent context. git log --all --pretty=format:"%h %s" --diff-filter=M -- "*.js" (adjusted per migration type) to see which files change most frequently.
  5. Directory structure -- find. -type d -not -path '*/node_modules/*' -not -path '*/.git/*' to map the project layout.
1c. Read Every Source File

This is the key differentiator. Read EVERY source file discovered in 1a. Use the Read tool systematically:

  1. Start with entry points: index.js, App.js, main.js, server.js, or equivalents.
  2. Read config files next: tsconfig, webpack, vite, eslint, babel configs.
  3. Read shared utilities, types, and constants.
  4. Read feature files grouped by directory.
  5. Read test files last.

For large codebases (500+ files), use Agent sub-agents to read files in parallel batches. Each agent reads a directory subtree and returns file contents plus a brief summary.

Context budget management:

  • Files under 100 lines: read in full
  • Files 100-500 lines: read in full
  • Files 500-1000 lines: read in full (prioritize these -- they are the riskiest to migrate)
  • Files 1000+ lines: read first 500 lines + last 100 lines + any class/function declarations. Flag for manual review.
  • If the total codebase exceeds ~800K tokens of source, prioritize: entry points > shared code > feature code > tests > styles. Note which files were partially read or skipped.

Step 2: Dependency Graph Construction

With the full codebase in context, build the dependency graph:

2a. Import Analysis

For every file, extract:

  • Static imports: import X from './path', const X = require('./path')
  • Dynamic imports: import('./path'), require.resolve('./path')
  • Re-exports: export {X} from './path'
  • Side-effect imports: import './styles.css'
  • Type-only imports (TS): import type {X} from './path'

Build an adjacency list:

{
  "src/App.tsx": {
    "imports": ["src/components/Header.tsx", "src/hooks/useAuth.ts", "src/utils/api.ts"],
    "importedBy": ["src/index.tsx"],
    "externalDeps": ["react", "react-router-dom"]
  }
}
2b. Identify Layers

Classify every file into one of these layers (top = most depended upon):

  1. Foundation -- Types, interfaces, constants, enums, config. Imported by many, imports few.
  2. Utilities -- Helper functions, formatters, validators. Imported by features, imports foundation.
  3. Services -- API clients, data access, state management. Imports utilities and foundation.
  4. Components/Features -- UI components, route handlers, feature modules. Imports services, utilities, foundation.
  5. Pages/Routes -- Top-level page compositions. Imports components.
  6. Entry Points -- index.js, App.js, server.js. Imports pages.
  7. Tests -- Test files. Import everything, imported by nothing.
  8. Config -- Build configs, linter configs. Usually standalone.
2c. Identify Cycles

Detect circular dependencies. These are migration hazards -- a cycle means you cannot migrate files independently. Flag all cycles and recommend resolution strategies.

2d. Identify External Dependencies

List all third-party packages and classify them:

  • Compatible: Works with both source and target (no changes needed)
  • Needs Update: Has a version compatible with the target (update version)
  • Needs Replacement: Incompatible with target (find alternative)
  • Needs Wrapper: Can work with an adapter/wrapper pattern
  • Must Remove: No path forward (rewrite functionality)

Step 3: File-by-File Analysis

For every source file, produce a migration assessment:

### [relative/path/to/file.js]

- **Lines**: 245
- **Layer**: Component
- **Complexity**: Medium
- **Imports**: 8 internal, 3 external
- **Imported by**: 4 files
- **Migration difficulty**: 3/5
- **Estimated effort**: 30 minutes
- **Risk level**: Medium

**Current patterns found:**
- Class component with 3 lifecycle methods (componentDidMount, componentDidUpdate, componentWillUnmount)
- Local state with this.setState (5 occurrences)
- Refs via createRef (2 occurrences)
- HOC wrapper (withRouter)

**Required changes:**
1. Convert class to function component
2. Replace lifecycle methods with useEffect hooks
3. Replace this.state/this.setState with useState hooks
4. Replace createRef with useRef hooks
5. Replace withRouter HOC with useRouter/useNavigate hooks
6. Add TypeScript types for props (currently PropTypes)
7. Add TypeScript types for state shape
8. Update imports from '.js' to '.ts' extensions (if applicable)

**Dependencies that must migrate first:**
- src/types/user.ts (needs TypeScript types defined)
- src/hooks/useAuth.ts (referenced hook must exist)

**Risk factors:**
- Complex componentDidUpdate with multiple conditions -- requires careful useEffect dependency array
- Ref forwarding pattern may need forwardRef wrapper

**Testing impact:**
- src/__tests__/UserProfile.test.js must be updated (enzyme shallow render -> testing library render)

Step 4: Migration Order Calculation

Using the dependency graph, calculate the optimal migration order. This is a topological sort with practical adjustments:

4a. Base Order (Topological Sort)
  1. Foundation layer first (types, constants, config)
  2. Utilities second
  3. Services third
  4. Components fourth (leaf components before composite components)
  5. Pages fifth
  6. Entry points sixth
  7. Tests last
4b. Practical Adjustments

Adjust the base order for real-world concerns:

  • Quick wins first: Within each layer, prioritize small/simple files. Early success builds momentum.
  • High-risk files early: Migrate complex files while the team is fresh, not at the end when fatigue sets in.
  • Batch by feature: When possible, group files by feature so a single PR migrates a complete feature.
  • Shared code before consumers: Any file imported by 5+ other files should migrate before its consumers.
  • Break cycles first: If circular dependencies exist, resolve them before migrating either file in the cycle.
4c. Phase Grouping

Organize files into migration phases. Each phase should:

  • Be completable in 1-3 days by one developer
  • Contain files that can all be migrated without touching files in later phases
  • Result in a buildable, testable codebase when complete
  • Map to a single PR or small set of PRs
## Phase 1: Foundation (Day 1)
- Estimated effort: 4 hours
- Files: 12
- Risk: Low
| # | File | Lines | Effort | Notes |
|---|------|-------|--------|-------|
| 1 | src/types/index.ts | 45 | 15m | Already TS, just verify |
| 2 | src/constants/config.ts | 30 | 10m | Rename .js to .ts, add types |
| ... | ... | ... | ... | ... |

## Phase 2: Utilities (Day 1-2)
...

## Phase 3: Services (Day 2-3)
...

Step 5: Risk Assessment

Produce a risk matrix for the overall migration:

5a. File Risk Scores

Score each file 1-5 on these dimensions:

  • Complexity: Lines of code, cyclomatic complexity, number of patterns to change
  • Centrality: Number of files that depend on it (high centrality = high blast radius)
  • Volatility: How often the file changes in git history (high volatility = merge conflict risk)
  • Test Coverage: Does this file have tests? (no tests = higher risk)
  • External Coupling: Does it tightly integrate with third-party libraries that need replacement?

Overall risk = weighted average: Complexity(0.25) + Centrality(0.30) + Volatility(0.15) + TestCoverage(0.15) + ExternalCoupling(0.15)

5b. Migration-Level Risks

Assess these macro risks:

RiskLikelihoodImpactMitigation
Build breaks during migrationMediumHighPhase-by-phase migration with CI checks after each phase
Type errors cascadeHighMediumStart with any types, tighten incrementally
Third-party lib incompatibilityLowHighAudit all deps before starting (Step 2d)
Team unfamiliarity with targetMediumMediumPair programming on first 2 phases
Merge conflicts with active developmentHighMediumFeature freeze during foundation phase, or parallel branch
Test failures after migrationMediumMediumRun tests after each phase, fix immediately
Performance regressionLowHighBenchmark before and after each phase
5c. Rollback Strategy

Define the rollback plan:

  • Each phase maps to a PR. Revert the PR to roll back.
  • Maintain a migration branch. If the migration stalls, the main branch is untouched.
  • Document the point of no return (usually after Phase 1 merges to main).

Step 6: Effort Estimation

Produce effort estimates at multiple granularities:

6a. Per-File Estimates

Based on file size and migration patterns:

File SizeSimple PatternsComplex PatternsEstimated Time
< 50 linesRename + add typesN/A5-10 minutes
50-150 linesAdd types, update importsLifecycle conversion, state refactor15-30 minutes
150-300 linesAdd types, update importsMultiple pattern changes30-60 minutes
300-500 linesMultiple files worth of workHeavy refactoring1-2 hours
500+ linesConsider splitting firstMajor risk, needs review2-4 hours
6b. Per-Phase Estimates

Sum file estimates plus overhead:

  • Overhead per phase: 30 minutes for PR creation, review, CI, merge
  • Integration testing: 15 minutes per phase to verify nothing broke
  • Buffer: Add 20% buffer for unexpected issues
6c. Total Estimate
## Effort Summary

| Phase | Files | Raw Effort | Buffer (20%) | Total |
|-------|-------|-----------|-------------|-------|
| 1. Foundation | 12 | 3h | 0.6h | 3.6h |
| 2. Utilities | 18 | 6h | 1.2h | 7.2h |
| 3. Services | 8 | 4h | 0.8h | 4.8h |
| 4. Components | 35 | 16h | 3.2h | 19.2h |
| 5. Pages | 10 | 5h | 1h | 6h |
| 6. Entry Points | 3 | 1h | 0.2h | 1.2h |
| 7. Tests | 25 | 8h | 1.6h | 9.6h |
| **Total** | **111** | **43h** | **8.6h** | **51.6h** |

- Calendar time (1 dev): ~7 working days
- Calendar time (2 devs): ~4 working days
- Calendar time (3 devs, parallelized): ~3 working days

Note: Phases 1-3 are sequential. Phases 4-7 can partially parallelize across developers.

Step 7: Generate migration-plan.md

Write the final deliverable to the specified output location. The document structure:

# Migration Plan: [Source] to [Target]

**Generated**: [timestamp]
**Codebase**: [repo name / path]
**Total files**: [N]
**Estimated effort**: [Xh]
**Estimated calendar time**: [X days] ([N developers])

---

## Table of Contents

1. [Executive Summary](#executive-summary)
2. [Migration Type](#migration-type)
3. [Codebase Inventory](#codebase-inventory)
4. [Dependency Graph](#dependency-graph)
5. [External Dependencies](#external-dependencies)
6. [Migration Phases](#migration-phases)
7. [File-by-File Changes](#file-by-file-changes)
8. [Risk Assessment](#risk-assessment)
9. [Effort Estimation](#effort-estimation)
10. [Rollback Strategy](#rollback-strategy)
11. [Pre-Migration Checklist](#pre-migration-checklist)
12. [Post-Migration Verification](#post-migration-verification)

## Executive Summary

[2-3 paragraph overview: what is being migrated, why, key risks, estimated effort,
recommended approach (big bang vs incremental), and team recommendations]

## Migration Type

- **From**: [source technology/framework/pattern]
- **To**: [target technology/framework/pattern]
- **Scope**: [full repo / specific directories]
- **Strategy**: [incremental (recommended for 50+ files) / big bang (viable for <50 files)]

## Codebase Inventory

### File Distribution by Type
| File Type | Count | Total Lines | % of Codebase |
|-----------|-------|-------------|---------------|
| .js | N | N | N% |
| .jsx | N | N | N% |
| ... | ... | ... | ... |

### Directory Structure
[tree output, annotated with migration notes]

### File Size Distribution
| Range | Count | Notes |
|-------|-------|-------|
| < 50 lines | N | Quick migrations |
| 50-150 lines | N | Standard effort |
| 150-300 lines | N | Moderate effort |
| 300-500 lines | N | Significant effort |
| 500+ lines | N | Consider splitting before migrating |

## Dependency Graph

### Layer Classification
[Table of all files classified into Foundation / Utilities / Services / Components / Pages / Entry Points / Tests / Config]

### Critical Path
[Files with highest centrality -- these are the backbone of the codebase and must migrate cleanly]

### Circular Dependencies
[List of cycles with recommended resolution]

## External Dependencies

| Package | Current | Status | Action | Replacement |
|---------|---------|--------|--------|-------------|
| react | 18.2.0 | Compatible | None | -- |
| lodash | 4.17.21 | Compatible | None | -- |
| moment | 2.29.4 | Needs Replacement | Replace | dayjs or date-fns |
| ... | ... | ... | ... | ... |

## Migration Phases

[Phase-by-phase breakdown as defined in Step 4]

## File-by-File Changes

[Every file's migration assessment as defined in Step 3, organized by phase]

## Risk Assessment

[Risk matrix and macro risks as defined in Step 5]

## Effort Estimation

[Effort tables as defined in Step 6]

## Rollback Strategy

[Rollback plan as defined in Step 5c]

## Pre-Migration Checklist

- [ ] All team members have read this plan
- [ ] Target framework/library versions agreed upon
- [ ] CI pipeline updated to support target (e.g., TypeScript compiler added)
- [ ] Branch strategy agreed (migration branch vs feature flags)
- [ ] Code freeze scheduled for foundation phase (if applicable)
- [ ] Rollback procedure tested
- [ ] Performance benchmarks captured (before state)
- [ ] Test suite passing at 100% before migration starts

## Post-Migration Verification

- [ ] All files migrated per plan
- [ ] Zero source-pattern files remaining (e.g., no .js files if migrating to TS)
- [ ] Build passes with zero errors
- [ ] Test suite passes at 100%
- [ ] No `any` types remaining (or documented exceptions)
- [ ] Performance benchmarks comparable to pre-migration
- [ ] Documentation updated
- [ ] Team trained on new patterns

Step 8: Optional JSON Output

If the user requests it (or for large migrations where machine-readability helps), also generate migration-plan.json:

{
  "metadata": {
    "generated": "ISO timestamp",
    "migrationFrom": "JavaScript",
    "migrationTo": "TypeScript",
    "totalFiles": 111,
    "estimatedHours": 51.6
  },
  "files": [
    {
      "path": "src/utils/helpers.js",
      "targetPath": "src/utils/helpers.ts",
      "lines": 145,
      "layer": "utility",
      "phase": 2,
      "phaseOrder": 3,
      "difficulty": 2,
      "estimatedMinutes": 20,
      "riskScore": 1.8,
      "dependencies": ["src/types/index.ts"],
      "dependedOnBy": ["src/services/api.ts", "src/components/Form.tsx"],
      "patterns": ["add-types", "update-imports"],
      "notes": "Pure functions, straightforward typing"
    }
  ],
  "phases": [...],
  "dependencies": {...},
  "risks": [...],
  "externalDeps": [...]
}

Handling Edge Cases

Codebase Too Large for Context

If the codebase exceeds the context window capacity:

  1. Prioritize by layer -- Read foundation and utility layers in full, sample feature layers.
  2. Use Agent sub-agents -- Deploy agents to read and summarize subsections of the codebase. Each agent reads one directory subtree and returns a structured summary (file list, import graph, patterns found).
  3. Aggregate summaries -- The commander combines all sub-agent summaries into the full picture.
  4. Flag gaps -- Clearly note in the migration plan which files were summarized vs fully analyzed.

Monorepo with Multiple Packages

  1. Treat each package as a semi-independent migration.
  2. Identify cross-package dependencies.
  3. Generate a per-package migration plan plus a top-level orchestration plan.
  4. Recommend migration order across packages (shared libs first, apps last).

Mixed Codebase (Already Partially Migrated)

  1. Identify which files are already in the target state.
  2. Classify files as: migrated, partially migrated, not migrated.
  3. Focus the plan on unmigrated files.
  4. Note any partially migrated files that need completion.

No Tests Exist

  1. Flag this as a HIGH risk factor.
  2. Recommend adding integration tests for critical paths BEFORE migrating.
  3. Include a "pre-migration test authoring" phase in the plan.

Effort Calibration by Migration Type

Different migration types have different per-file effort multipliers:

Migration TypeSimple FileMedium FileComplex File
JS to TS (strict)10 min30 min2h
JS to TS (loose/any)5 min15 min45 min
Class to Hooks15 min45 min2.5h
CRA to Next.js10 min30 min1.5h
Redux to Zustand20 min1h3h
Vue 2 to Vue 315 min45 min2h
CSS to Tailwind10 min30 min1.5h
Jest to Vitest5 min15 min45 min
CommonJS to ESM5 min10 min30 min

These are starting estimates. Adjust based on the specific codebase after ingestion.

Quality Checklist for the Migration Plan

Before delivering the plan, verify:

  • Every source file is accounted for (inventory matches glob results)
  • Every file has a phase assignment
  • No file depends on an unmigrated file in a later phase (topological order holds)
  • All external dependencies are classified
  • Effort estimates sum correctly
  • Risk scores are calculated and documented
  • Circular dependencies are identified and have resolution strategies
  • The plan is actionable -- a developer can pick up Phase 1 and start immediately
  • Rollback strategy is defined
  • Pre-migration and post-migration checklists are included

平台分布

Codex

34.4%
按下载量换算76

Claude

29.79%
按下载量换算66

Cursor

21.49%
按下载量换算47

Gemini CLI

8.96%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills