Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

encore-migrate

БесплатноБез исполняемых скриптовНе проверен

Migrate an existing backend application to Encore. Supports any source framework, targets Encore.ts or Encore Go. Drives a structured DISCOVER → PLAN →…

encoredevот encoredev★ 31 звезда на GitHub

Об этом скилле

Migrate to Encore

This skill guides migrating any existing backend application to Encore, one migration unit at a time. It supports any source language or framework and targets both Encore.ts and Encore Go. A migration-plan.md summary file and migration-plan/ directory of per-unit detail files are created at the Encore project root to track progress across sessions. This skill contains no Encore code examples — it delegates all Encore-specific implementation to the appropriate language-specific skills.

Phase Detection

Before doing anything, determine which phase to enter:

  • No migration-plan.md exists in the Encore project directory → Start at Phase 1: DISCOVER
  • migration-plan.md exists but no migration-plan/ directory → Resume at Phase 2: PLAN (discovery done, detail files not yet written)
  • migration-plan/ directory exists with pending units (any unit in the summary with status pending or in progress) → Resume at Phase 3: MIGRATE
  • All units in the summary are migrated, skipped, or manual validation needed → Go to Phase 4: COMPLETE

Autonomous Mode

The confirmation stops in this workflow (confirming units in Phase 1, approving the first unit in Phase 2, picking each next unit in Phase 3) are the default. If the user asks to run the migration through without stopping ("just migrate it", "do them all", "don't ask"), skip those stops:

  • Pick sensible defaults for open decisions (see "Key Decisions" in Phase 1) and state each one to the user in a short list before writing code
  • Record every default in the ## Decisions section of migration-plan.md so it can be revisited
  • Still ask before side-effecting HTTP calls against the source system, and never modify the source
  • Still validate every entity before marking it migrated

Resuming a Migration (Phase 3)

When migration-plan.md and migration-plan/ exist with pending units:

  1. Read migration-plan.md (summary only — do NOT read all detail files)
  2. Report current status to the user — for example: "3 of 7 units migrated, next suggested: billing (all its dependencies are migrated)"
  3. Ask the user what they would like to work on next, offering a suggestion based on the dependency order in the plan

Phase 1 — Discover

1. Gather Information

Ask the user for:

  • Path to the source system (the existing codebase being migrated)
  • Local URL where the source system runs (if applicable — needed for HTTP comparison validation later)
  • Target language: Encore.ts or Encore Go

2. Analyze the Source Codebase

Read the source codebase and inventory all entities:

Category What to look for
Services / modules / domains Distinct bounded contexts, separate deployable units, route groupings
API endpoints Method, path, handler function, request/response shapes
Databases Type (Postgres, MySQL, etc.), tables, schemas, migration files
Pub/Sub topics and subscriptions Topic names, publishers, subscribers, message shapes
Cron jobs / scheduled tasks Schedule expressions, handler functions
Auth middleware / handlers Authentication strategies, token validation, session management
Secrets / environment variables All referenced env vars and secrets, noting which are sensitive
Global HTTP behavior CORS settings, global path prefixes, global middleware, custom error filters / error response bodies
Existing tests Test files, which entities they cover, test framework used
Frontend code React/Vue/Angular components, static HTML, CSS, client-side JS — these are out of scope

3. Identify Frontend Code

Full-stack repos and monorepos often mix backend and frontend code. The migration targets backend only — frontend code is out of scope.

Detect frontend directories and mark them as out of scope. Common indicators:

Pattern Examples
Dedicated frontend directories frontend/, client/, web/, app/ (when it contains React/Vue/Angular), src/components/, public/
Frontend config files next.config.js, vite.config.ts, nuxt.config.ts, angular.json, .svelte-kit/, remix.config.js
Package dependencies react, vue, @angular/core, svelte in package.json

Flag framework server-side code that should be migrated. Some frontend frameworks embed backend logic that contains API endpoints, database queries, or server-side business logic:

Framework Server-side locations What to look for
Next.js pages/api/, app/*/route.ts API route handlers — these are backend endpoints
Remix app/routes/*.tsx (loader/action exports) loader and action functions contain server logic
Nuxt server/api/, server/routes/ Server API routes
SvelteKit src/routes/+server.ts, +page.server.ts Server endpoints and load functions
Astro `src/pa
Полный SKILL.md на GitHub

Установить encore-migrate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл encore-migrate?

Migrate an existing backend application to Encore. Supports any source framework, targets Encore.ts or Encore Go. Drives a structured DISCOVER → PLAN → MIGRATE workflow with `migration-plan.md` tracking.

Как установить скилл encore-migrate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл encore-migrate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить encore-migrate с