feat: add /migration-analysis Claude command for Go-to-TypeScript planning#3700
feat: add /migration-analysis Claude command for Go-to-TypeScript planning#3700zackverham merged 2 commits intomainfrom
Conversation
…nning Adds a reusable Claude command that analyzes the Go backend package dependency graph, computes migration tiers, checks existing TypeScript coverage, and generates a migration roadmap. All analysis is dynamic (scans the live codebase) so results stay accurate as migration progresses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dotNomad
left a comment
There was a problem hiding this comment.
This is very helpful. Getting those tiers is a great way to grab the next step of this migration.
|
|
||
| Using the dependency data from Step 2, compute migration tiers using an iterative algorithm. Run this as a Python script, filling in the dependency dictionary from the Step 2 results: | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
When it got to this block it had to re-run because of this:
Key insight: config only imports clients/types, not the full clients package. And bundles also only imports clients/types. This means the apparent config -> clients and bundles -> clients cycles can
be broken by extracting clients/types as an independent package.
Similarly, deployment imports inspect/dependencies/renv, not the full inspect package. And inspect imports bundles/matcher, not necessarily the full bundles package (though it also imports bundles).
Let me re-run the tier computation with subpackage-accurate dependencies
Thought that was worth noting.
There was a problem hiding this comment.
yeah I saw it catching some cycles like that we should investigate more closely.
Make the migration analysis command show only the final roadmap by default, with --verbose flag to show intermediate step details. Fix Prettier formatting issues that were failing CI check-format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
/migration-analysisClaude command that scans the live Go codebase to produce a migration roadmap for the Go-to-TypeScript effort--verboseto see intermediate step detailsType of Change
Approach
The command is a structured prompt in
.claude/commands/migration-analysis.mdthat guides Claude through 6 analysis steps:A
$ARGUMENTScheck at the top controls verbosity: default mode suppresses intermediate output,--verboseshows all steps.User Impact
None — this is a developer tooling command only used within Claude Code sessions.
Automated Tests
N/A — this is a Claude command prompt, not executable code. The Prettier formatting fix ensures CI
check-formatpasses.🤖 Generated with Claude Code