agentleFS
aiFabricoComaiFabricoCom/fabrico-collections/.claude/skills/fabrico-planning-migration/SKILL.md

fabrico-planning-migration

Skill2 starsChanged 4 months agoMITView on GitHub

Plan the migration of a legacy web app to a modern target — modern web (Next.js/React), native iOS (SwiftUI), or cross-platform mobile (React Native/Expo). Maps old behavior to a target stack, builds a feature-parity matrix, plans data and auth migration, adapts desktop UX to mobile where needed, and flags risks. Use after reverse-engineering a SPEC.md and before rebuilding with /fabrico-autopilot.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you lack access to the legacy database, note it as a blocker for the data step (the app can still be rebuilt with seed/demo data).

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Planning a legacy migration / modernization

Bridge a (reverse-engineered) SPEC.md to a concrete rebuild on a chosen target. The SPEC stays platform-agnostic; this skill produces a MIGRATION-PLAN.md that pins the target, proves feature parity, and surfaces what won't port 1:1 — so the autopilot build has a clear, de-risked path.

Inputs

  • A SPEC.md (ideally from fabrico-reverse-engineering-spec, with a Source-mapping appendix).
  • The chosen target (or pick one with the framework below).
  • Any constraints: offline support, App Store distribution, existing backend/API to keep, data export access.

Output

MIGRATION-PLAN.md containing: chosen target + rationale, stack mapping, feature-parity matrix, data-migration plan, auth/session plan, UX-adaptation notes, risk register, and a phased rollout. This plan + the SPEC are what /fabrico-autopilot (via the engineering manager) consumes.

Step 1 — Choose the target (if not given)

TargetBest whenDefault stack
Modern webreach via browser, SEO, desktop+mobile web, fastest pathNext.js (App Router) + TS + Tailwind, Prisma + Postgres, Auth.js
Native iOSiOS-only, deep platform integration (push, widgets, offline), App Store firstSwift + SwiftUI, async/await, Core Data/SwiftData, URLSession
React Native / ExpoiOS and Android from one codebase, team knows JS/TSExpo + React Native + TypeScript, React Navigation, TanStack Query

Trade-offs to weigh: audience/platforms, team skills, offline & device features, distribution (web vs App Store), budget/time, and whether an existing backend/API is kept (web & RN reuse REST/GraphQL easily; native iOS too, but UI is rebuilt). Record the decision and rationale.

Step 2 — Stack & pattern mapping

Map legacy patterns to target equivalents, e.g.: server-rendered multi-page → SPA/RSC or native navigation; jQuery/Bootstrap widgets → component library; server sessions → token/session strategy of the target; synchronous page reloads → async data fetching + optimistic UI. Produce a table: legacy concern → target approach.

Step 3 — Feature-parity matrix

From the SPEC's Source-mapping appendix, list every feature/story and mark: port as-is, adapt (changed for the target — say how), or drop (with reason + user sign-off). This matrix is the contract for "did we reach parity". No feature leaves the legacy app silently.

Step 4 — Data migration

Decide: greenfield schema rebuilt from the inferred model, or migrate existing data. If migrating, plan export → transform → import, identity/relationship preservation, and a verification step (counts, spot checks). If you lack access to the legacy database, note it as a blocker for the data step (the app can still be rebuilt with seed/demo data).

Step 5 — Auth, sessions & integrations

Plan how users authenticate on the target, whether existing accounts/passwords migrate (often a reset flow is simpler and safer), and how each integration from the SPEC is handled (keep same provider, swap, or stub behind an interface until keys are provided — never block the whole build on one integration).

Step 6 — UX adaptation (esp. web → mobile)

Desktop-era patterns rarely port 1:1 to mobile. Note adaptations: dense tables → cards/lists with filters; hover actions → tap/long-press/swipe; multi-column forms → steppers; mouse-only interactions → touch; deep menus → tab/stack navigation. Keep behavior/intent from the SPEC; change the presentation to fit the target.

Step 7 — Risk register & phasing

List risks (data loss, integration gaps, parity misses, platform limits, scope creep) with mitigations. Choose a rollout: big-bang rebuild for small apps, or strangler-fig / module-by-module for large ones (rebuild high-value modules first, run old and new in parallel, cut over per module). Sequence the epics accordingly.

Guidance

  • Preserve behavior, modernize presentation. Parity is about what users can do and the data, not pixels.
  • De-risk integrations and data early — they cause the most surprises in migrations.
  • Make the parity matrix the source of truth for "done", and feed the chosen target into the SPEC's "Target" section before the build runs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.