migrate

A migration assistant for reorganising an existing project into Feature-Sliced Design, a way to group code by its role and feature.

In plain words
What is it for?
Use it to scan a project, classify its modules, map imports between them, and produce a phased migration plan.
Why use it?
It shows how the current folders and code dependencies map to the new structure before changes are made.

Command

Part of the fsdarch plugin — 4 skills, 6 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jhlee0409/claude-plugins/migrate
Clone the repo
git clone --depth 1 https://github.com/jhlee0409/claude-plugins

Or install fsdarch, the plugin that ships this one along with the rest of its 4 skills, 6 commands.

Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00008 $0.06029
Opus 5 $0.00004 $0.03014
Sonnet 5 $0.00002 $0.01206
Haiku 4.5 $0.00001 $0.00603

Measured 2d ago against content hash 3ff851878822, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/fsd-architect/commands/migrate.md · 786 lines

How it starts

The opening of the file, as written. The whole thing — 786 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/fsdarch:migrate

기존 프로젝트를 FSD 아키텍처로 마이그레이션하는 분석 및 가이드를 제공합니다.

Prerequisites

  • 프로젝트 루트 디렉토리에서 실행
  • 기존 소스 코드 존재
  • (권장) /fsdarch:init 실행 완료

EXECUTION INSTRUCTIONS

When /fsdarch:migrate is invoked, Claude MUST perform these steps in order:

  1. Analyze current structure - Scan existing project directories
  2. Classify modules - Categorize code into FSD layers
  3. Detect dependencies - Map imports between modules
  4. Generate migration plan - Create phased migration guide
  5. Output report - Display analysis and recommendations

Flow Overview

┌───────────────────────────────────────────────────────────────┐
│                      /fsdarch:migrate                          │
├───────────────────────────────────────────────────────────────┤
│  Step 1. Analyze current structure                             │
│     ├─ Find source directory                                   │
│     ├─ Load layerAliases from config (if exists)               │
│     ├─ List all directories and files                          │
│     └─ Categorize by common patterns                           │
│                                                               │
│  Step 2. Classify modules into FSD layers                      │
│     ├─ components/* → shared/ui, widgets, features             │
│     ├─ hooks/* → features/model, entities/model                │
│     ├─ utils/* → shared/lib                                    │
│     ├─ services/* → shared/api, entities/api                   │
│     └─ pages/* → pages layer                                   │
│                                                               │
│  Step 3. Detect dependencies                                   │
│     ├─ Parse import statements                                 │
│     ├─ Build dependency graph                                  │
│     └─ Identify circular dependencies                          │
│                                                               │
│  Step 3.5. Apply layer aliases (if configured)                 │
│     └─ Resolve target paths: app→core, pages→views, etc.       │
│                                                               │
│  Step 4. Generate migration plan (with aliased paths)          │
│     ├─ Phase 1: Create FSD structure                           │
│     ├─ Phase 2: Migrate shared layer                           │
│     ├─ Phase 3: Migrate entities                               │
│     ├─ Phase 4: Migrate features                               │
│     ├─ Phase 5: Migrate widgets                                │
│     ├─ Phase 6: Migrate pages                                  │
│     └─ Phase 7: Cleanup                                        │
│                                                               │
│  Step 5. Output migration report                               │
│     ├─ Structure analysis                                      │
│     ├─ Layer distribution                                      │
│     ├─ Risk assessment                                         │
│     └─ Recommendations                                         │
└───────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 786 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 786 lines · 8 tokens per session scan A 3ff851878822

Subscribe to this mod's changes

migrate is a command published in the GitHub repository jhlee0409/claude-plugins (4 stars, last pushed 7mo ago), licensed MIT. It adds 8 tokens to every session and 6,029 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.