# Repository Briefing: anthropics/code-migration-kit-with-claude-code
> Source: https://repoforai.com/repo/anthropics/code-migration-kit-with-claude-code (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/anthropics/code-migration-kit-with-claude-code
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: C (40/100 · Maintenance 12/35 · Adoption 16/25 · Releases 6/20 · License 6/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI
- **Momentum**: 810 ★ total (+2 24h / +8 7d) · 82 forks
- **When to Use**: Best for: Whole-codebase language ports where architecture and behavior must hold, work can be split by dependency, and the team can validate parity before fan-out. Skip if: The change can land incrementally, the port is small enough for a direct test-driven approach, or you need a maintained turnkey service. If you cannot establish a credible behavioral judge, defer the migration.

## Overview
```text
### Architecture & Core Mechanics
This is a repository-local workflow kit for Claude Code, not a network service. `CLAUDE.md` supplies shared operating rules, `prompts/` defines phase boundaries, and Claude Code's Task/Agent fan-out runs work within a phase. The first planning phase produces a rulebook, a dependency map, and a TSV inventory of sites that need explicit target-language decisions. A human reviews the evidence and starts the next phase.

State lives in repository artifacts rather than a service database. Python and JavaScript dependency helpers establish the order, `scripts/make_manifest.py` writes `migration/manifest.tsv`, and the Node.js queue runner schedules entries whose output files are absent. A subsequent invocation can resume from disk, but file presence is not evidence of a valid translation. The optional Claude Code skill packages the procedure; no MCP endpoint is needed for the supplied workflow.

### Key Capabilities & Differentiators
The kit targets structure-preserving ports: the architecture and data structures stay while the language changes. It tests the rulebook with independent guided and unguided translations, then checks process compliance in a small pilot before fan-out. Full translation assigns each unit an implementer, two independent reviewers looking for faults, and a fixer. Dependency helpers cover Python, JavaScript/TypeScript, and C headers; that is parser coverage for dependency discovery, not a matrix of supported translation pairs.

For expensive builds, a survey build turns compiler diagnostics into module queues processed from leaves toward the root. Fixers consume numbered build logs without invoking the compiler themselves. Cheap type checks can instead run inside each unit's loop. Acceptance is separate from compilation: after smoke testing, verify behavior with a portable public-interface suite or an old-versus-new parity harness. Where an original suite exists, the standard exit gate also requires rerunning it on the old code with zero inherited failures and recording both results.

### Trade-offs & Limitations
Compared with a direct Claude Code port checked by the compiler and an existing test suite, this kit adds rule governance, more review passes, and phase-level evidence. Those costs are easier to justify when many translators must make the same decisions. For a small codebase or a JavaScript-to-TypeScript move that can proceed file by file, the queues and gates are usually overhead. For a redesign, replace the rulebook with a design document, work at module or subsystem scope, and use design review and disposable trial runs rather than interpreting translation diffs as rule quality.

Budget from pilot measurements: work units multiplied by per-unit usage, including review and fixes. Large ports can reach billions of input tokens, and rate limits can stretch the schedule. Parity is only as good as the judge: recorded trial failures traced to comparator handling of whitespace and non-finite numbers, not to the port. Establish a clean baseline and validate the judge before scaling. A `LICENSE` file exists, but the license is unspecified in the available metadata, so verify its terms before reuse.

### Hardware & Deployment Guide
Place the kit in or alongside the target repository, bring in `CLAUDE.md`, and start with `prompts/00-feasibility.md` in Claude Code. Have a validated behavioral judge before translation. The supplied helpers span Python, Node.js, and shell; the full workflow also needs the target project's toolchain and a runnable original implementation. Copy `templates/settings.json` into `.claude/settings.json` before the pilot. Prompts 03 and 04 stop if it is missing; manage the build and test restrictions at the prescribed phase boundaries.

The helpers run locally, but the kit supplies no offline model runtime, GPU requirement, or separate server to deploy. Size the host for concurrent work, builds, and parity tests, and budget Claude capacity independently. This is unmaintained reference code, with no listed release and no monitored issue or PR queue; plan to own any adaptation and operational fixes.
```

## Key Capabilities
```text
- Governance: Starting the next phase is the human sign-off; pilot amendments are proposed, not applied automatically.
- Dependency analysis: Deterministic mappers check both file-level and target-package cycles; `scripts/make_manifest.py` turns the work order into `migration/manifest.tsv`.
- Pilot design: A rule-guided versus unguided bakeoff tests the rules, while a separate pilot checks whether the production workflow follows them.
- Queue semantics: `scripts/queue_runner.mjs` selects manifest entries with no output file; output presence controls scheduling, not correctness.
- Compiler isolation: A human-started `scripts/build_daemon.sh` writes numbered diagnostics for fixers that work without compiler access.
- Parity verification: Validate the judge against deliberately broken code before translation, then use the old implementation as the behavioral reference.
```

## Quick Start / Clone
```bash
prompts/         eight paste-ready prompts (00-feasibility, 00b-judge-setup → 06-post-parity)
templates/       RULEBOOK.md, inventory.tsv, settings.json (+ why each rule exists)
scripts/         dependency mappers (Python, JS/TS, C headers) + queue runner + manifest builder + build daemon
fixtures/        test trees + expected outputs for every script
skill/           a Claude Code skill that walks the six steps
examples/        a complete example run — filled-in rulebook, inventory, diff report, parity scripts
CLAUDE.md        the operating manual Claude Code reads when opened here
RUN-NOTES.md     receipts from this kit's own test runs
```
