Логотип Migrate Spring To Quarkus

Migrate Spring To Quarkus

Організація
quarkusio
migrate-spring-to-quarkus

Переносить застосунки Spring Boot на Quarkus у межах модульного процесу з контрольними етапами. Підтримує розширення для сумісності зі Spring і повний перехід на Quarkus. Використовуйте, коли користувач хоче перенести, перетворити чи адаптувати застосунок Spring Boot для Quarkus, згадує «spring to quarkus», «quarkus migration», «replace spring» або запитує про перенесення «pom.xml», «build.gradle», «Spring MVC», «Spring Data JPA», «Thymeleaf», «@SpringBootApplication».

Огляд

Видавецьquarkusio
Репозиторійskills
Назва навичкиmigrate-spring-to-quarkus
Зірки
37
Форки
11
Файли в пакеті
22
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 22

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: quarkusio. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Migrate Spring To Quarkus у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/quarkusio/skills/tree/main/skills/migrate-spring-to-quarkus
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/quarkusio/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/migrate-spring-to-quarkus .claude/skills/migrate-spring-to-quarkus
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Migrate Spring To Quarkus в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Migrate Spring To Quarkus, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Migrate Spring To Quarkus не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Spring Boot to Quarkus Migration

Modular, gate-driven migration of Spring Boot applications to Quarkus.

Critical Rules

  • Never delete code you cannot migrate. If you cannot fully migrate a piece of code, leave the original in place with a // TODO: Migration required — <reason> comment explaining what needs to change and why. This applies to:
    • Methods, classes, or annotations you don't know how to convert
    • Spring-specific patterns without a clear Quarkus equivalent
    • Configuration or wiring code whose purpose is unclear If you must remove code (e.g., a Spring-only base class), document what was removed and why in a // REMOVED: comment at the same location.
  • Don't break the build. Run the compile command in <target> after each phase (cd <target> && ./mvnw clean compile -DskipTests for Maven, cd <target> && ./gradlew clean compileJava -x test for Gradle). Never move to the next phase with a broken build.
  • Source is read-only. Never modify files in <source>. All changes go into <target>. The only exception is <source>/migration-metadata/, where extraction metadata may be written.
  • Document every decision. When choosing between migration approaches, explain the trade-off to the user.
  • No silent changes. Every file modification must be intentional and traceable. If a check fails after a phase, diagnose and fix — don't skip the check or delete the failing code.

Reference Files

Load the relevant reference file when working on a module:

ReferenceUse during
references/dependency-map.mdBuild module: dependency and plugin mapping
references/annotation-map.mdCode module: annotation, DI, REST, Data, Security migration
references/config-map.mdBuild module: configuration property migration

Step 1: Execute Modules

Instructions

  • Execute the instructions of the modules according to the following Decision Gate Table
  • Always log which Module and Gate check is evaluated and the status using the format: Gate result: and <CONDITION_EVALUATED>

Decision Gate Table

  • For each module, evaluate whether it applies by inspecting <source>. A module executes only when its gate status is: PASS.
  • Inspect <source> to determine the gate result -- do not rely on blind grep commands; use your understanding of the codebase.
ModuleGate CheckGate Result
prerequisiteJDK version, build tool (Maven ≥ 3.6 recommended 3.9+ / Gradle ≥ 7 recommended 8.x), container runtimeALWAYS — ABORT entire migration if any hard check fails; no subsequent module runs
planningPrerequisite check passedALWAYS — generates <target>/migration-spec.yaml
buildSpring Boot parent/starters/spring-boot-maven-plugin in pom.xml, or Spring Boot/io.spring.dependency-management plugins in build.gradle(.kts)PASS if Spring Boot build markers found; SKIP otherwise
persistence@Entity, JpaRepository, CrudRepository, or @Repository in Java sourcesPASS if JPA/persistence annotations found; SKIP otherwise
codeSpring annotations in Java sources (@Component, @Service, @Controller, @Autowired, etc.)PASS if Spring annotations found; SKIP otherwise
messaging@KafkaListener, @RabbitListener, @JmsListener, @SendTo, @EnableKafka, @EnableRabbit, KafkaTemplate, RabbitTemplate, or JmsTemplate in Java sourcesPASS if any found; SKIP otherwise
frontendThymeleaf/JSP templates in templates/ or webapp/, static resources in static/, JSF XHTML files in webapp/ or META-INF/resources/, FreeMarker templates (.ftl, .ftlh, .ftlx), freemarker.* imports, or FreeMarkerConfigurer beanPASS if view layer found; SKIP otherwise
testingSpring test annotations in test sources (@SpringBootTest, @WebMvcTest, @MockBean)PASS if Spring tests found; SKIP otherwise
cleanupLeftover Spring artifacts after all other modulesALWAYS -- runs after all other modules

Execution Protocol

STEP 0 — PREREQUISITE GATE (mandatory, runs before everything else)
  1. LOAD modules/prerequisite/prerequisite.md and execute all checks
  2. IF prerequisite gate == FAIL
       → log "Migration aborted — prerequisite gate failed: <failing check(s)>"
       → STOP immediately. Do not evaluate or execute any further module.
  3. IF prerequisite gate == PASS (warnings are allowed)
       → log "Prerequisite gate: PASS — proceeding with migration"
       → continue to the module loop below

FOR module IN [planning, build, persistence, code, messaging, frontend, testing, cleanup]:

  1. EVALUATE — inspect <source> for the gate condition
  2. DECIDE
     IF gate == ALWAYS → proceed to step 3
     IF gate == PASS   → proceed to step 3
     IF gate == SKIP   → log "Module {name}: SKIPPED — {reason}", mark checkbox, continue
  3. LOAD — read the module file and relevant reference files
  4. EXECUTE — read from <source>, write to <target>. Follow the module instructions, adapting to the chosen strategy
  5. COMPILE — run the compile command in <target> (`cd <target> && ./mvnw clean compile -DskipTests` for Maven, `cd <target> && ./gradlew clean compileJava -x test` for Gradle)
     Fails → load [modules/compile-fix.md](modules/compile-fix.md) and follow the retry procedure.
             If compile-fix reports MANUAL_REVIEW_REQUIRED (unresolved errors after 3 retries),
             ask the user whether to continue with the next module or stop the migration.
  6. LOG — mark checkbox as done

Running Individual Modules

To run a single module outside the full migration flow, read all the files in the module folder directly:

  • "Read modules/build/build.md and execute it"
  • "Run only the frontend module"
  • "Re-run the cleanup module"

The module will use the current <source> and <target> paths and the chosen strategy (if already decided). If no strategy has been chosen, the module will ask.

Step 2: Verify the Migration

All verification checks run against <target>. Run each check in order. A check fails = stop and fix before continuing.

#CheckCommand (run in <target>)Pass criteria
1Buildscd <target> && ./mvnw clean package -DskipTests / cd <target> && ./gradlew clean build -x testExit code 0, no compilation errors
2No Spring depsSearch <target> build file for org.springframeworkZero Spring deps (except Spring compat extensions if using that strategy)
3Has QuarkusSearch <target> build file for io.quarkusQuarkus BOM and at least one extension present
4Tests passcd <target> && ./mvnw test / cd <target> && ./gradlew testAll tests pass using @QuarkusTest
5Starts upcd <target> && ./mvnw quarkus:dev / cd <target> && ./gradlew quarkusDevApp starts, curl http://localhost:8080/q/health returns UP
6No leftover templatesSearch <target> for Thymeleaf/JSP referencesNone remaining (unless intentionally kept)

Step 3: Reporting

After verification completes, run the reporting module. It reads the verification results and all per-module data to produce:

  • <target>/migration-metadata/execution-metadata.json -- agent, model, tokens, cost, timing, verification results
  • <target>/migration-summary.md -- full 13-section migration report

The reporting module must run after verification so that it can include check results and record an accurate finished_at timestamp.

Console Summary

After the reporting module completes, present the following directly to the user so they get an immediate overview without opening the generated files.

Answer each question honestly:

  1. What migrated cleanly? Patterns that mapped 1:1.
  2. What required manual judgment? Non-obvious decisions made.
  3. What was left as TODO? Every // TODO: Migration required comment and why.
  4. Was any code removed? What, where, justification. Flag runtime risks.
  5. What checks failed initially? Failures from verification and how you fixed them.
  6. What's missing from the skill references? Mappings you had to figure out.

Then present the review as a structured report:

## Migration Report: [app-name]

### Summary
- Source: [source directory path]
- Target: [target directory path]
- Strategy: [Full Migration / Spring Compatibility]
- Agent: [AI agent name - e.g claude, pi, opencode, gemini, etc]
- Model: [model name — e.g. claude-sonnet-4-6, check system context]
- Modules completed: [X/9]
- Checks passed: [X/6]
- Token usage: [input tokens / output tokens — check session stats]
- Estimated cost: [~$X.XX — token counts × per-model pricing from anthropic.com/pricing]

### Changes by Module
| Module | Files changed | Key changes |
|--------|--------------|-------------|
| build | pom.xml or build.gradle(.kts), application.properties | ... |
| code | ... | ... |
| frontend | ... | ... |
| testing | ... | ... |

### Validation Results
| Check | Result | Notes |
|-------|--------|-------|
| Builds | PASS/FAIL | |
| No Spring deps | PASS/FAIL | |
| Has Quarkus | PASS/FAIL | |
| Tests pass | PASS/FAIL | |
| Starts up | PASS/FAIL | |
| No leftover templates | PASS/FAIL | |

### Unmigrated Code (TODOs)
| File | Line | What | Why not migrated |
|------|------|------|-----------------|

### Removed Code
| File | What was removed | Justification |
|------|-----------------|---------------|

### Skill Improvement Suggestions
- [Any missing mappings, unclear instructions, or edge cases discovered]

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Migrate Spring To Quarkus?

Переносить застосунки Spring Boot на Quarkus у межах модульного процесу з контрольними етапами. Підтримує розширення для сумісності зі Spring і повний перехід на Quarkus. Використовуйте, коли користувач хоче перенести, перетворити чи адаптувати застосунок Spring Boot для Quarkus, згадує «spring to quarkus», «quarkus migration», «replace spring» або запитує про перенесення «pom.xml», «build.gradle», «Spring MVC», «Spring Data JPA», «Thymeleaf», «@SpringBootApplication».

Навіщо використовувати Migrate Spring To Quarkus у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Migrate Spring To Quarkus — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Migrate Spring To Quarkus у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/quarkusio/skills/tree/main/skills/migrate-spring-to-quarkus. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Migrate Spring To Quarkus?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Migrate Spring To Quarkus?

Зі скількома забажаєте. У TypingMind ви можете використовувати Migrate Spring To Quarkus із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Migrate Spring To Quarkus?

Так. На GitHub цю навичку публікує quarkusio за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇