301-frameworks-spring-boot-core — скилл для Claude Code
Скилл настраивает правила ревью и рефакторинга кода на Spring Boot 4.0.x. Помогает внедрять зависимости через конструктор и валидировать конфигурацию.
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a claude-codeЧто делает 301-frameworks-spring-boot-core
Скилл задаёт агенту регламент работы со Spring Boot 4.0.x. Он контролирует корректное применение аннотаций компонентов вроде @RestController и @Service, внедрение зависимостей через конструктор и использование @ConfigurationProperties вместе с @Validated для отлова ошибок конфигурации на старте. В проверку также входит перевод импортов на пространство имён jakarta.* вместо устаревших пакетов javax.*.
Перед любыми изменениями агент обязан выполнить ./mvnw compile. Если проект не собирается, скилл запрещает трогать код и останавливает работу до устранения ошибки. После внесения правок запускается полная верификация через ./mvnw clean verify. Также скилл помогает настроить graceful shutdown и использование виртуальных потоков для задач с блокирующим вводом-выводом.
Какие задачи решает
- перевести внедрение зависимостей на конструкторы и настроить
@Qualifier - внедрить валидацию
@ConfigurationPropertiesпри старте приложения - настроить graceful shutdown и виртуальные потоки
- проверить зависимости на отсутствие устаревших пакетов
javax.*
Примеры запросов агенту
- Проверь проект на Spring Boot и замени инъекции в поля на конструкторы
- Настрой graceful shutdown и виртуальные потоки для фоновых задач
- Добавь fail-fast валидацию в класс с @ConfigurationProperties
Как установить 301-frameworks-spring-boot-core
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a claude-code2Вручную: положить файлы
~/.claude/skills/301-frameworks-spring-boot-core/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/301-frameworks-spring-boot-core/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a codex2Вручную: положить файлы
.agents/skills/301-frameworks-spring-boot-core/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a cursor2Вручную: положить файлы
.cursor/skills/301-frameworks-spring-boot-core/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 301-frameworks-spring-boot-core2Вручную: положить файлы
.github/skills/301-frameworks-spring-boot-core/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/301-frameworks-spring-boot-coreВручную: положить файлы
.devin/skills/301-frameworks-spring-boot-core/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 301-frameworks-spring-boot-core
Как установить 301-frameworks-spring-boot-core в Claude Code?
Выполните команду npx skills add jabrena/plinth --skill 301-frameworks-spring-boot-core -a claude-code. Файл скилла сохранится в ~/.claude/skills/301-frameworks-spring-boot-core/SKILL.md.
Что делает скилл 301-frameworks-spring-boot-core?
Он задаёт правила для ИИ при ревью и доработке кода на Spring Boot 4.0.x. Скилл регламентирует управление бинами, fail-fast валидацию параметров и миграцию на пространство имён jakarta.*.
Что произойдёт, если проект не компилируется?
Скилл требует обязательного выполнения ./mvnw compile перед внесением изменений. При ошибке компиляции агент останавливает работу и просит устранить проблему.
Исходный текст
SKILL.md · Apache-2.0
--- name: 301-frameworks-spring-boot-core description: Use when you need to review, improve, or build Spring Boot 4.0.x applications — including proper usage of @SpringBootApplication, component annotations (@Controller, @Service, @Repository), bean definition and scoping, configuration classes and @ConfigurationProperties (with @Validated), component scanning, conditional configuration and profiles, constructor injection, @Primary and @Qualifier for multiple beans of the same type, bean minimization, graceful shutdown, virtual threads, Jakarta EE namespace consistency, and scheduled tasks. This should trigger for requests such as Review Java code for Spring Boot application; Apply best practices for Spring Boot application in Java code; Improve Spring Boot configuration properties and beans; Review Spring Boot component scanning and profiles; Tune Spring Boot graceful shutdown or virtual threads. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Spring Boot Core Guidelines Apply Spring Boot Core guidelines for annotations, bean management, configuration, and dependency injection. **What is covered in this Skill?** - @SpringBootApplication and main application class - Component annotations: @RestController, @Service, @Repository - Bean definition, scoping, lifecycle - Configuration classes and @ConfigurationProperties (with @Validated for fail-fast startup) - Component scanning and package organization - Conditional configuration and profiles (@Profile, @ConditionalOn*) - Constructor dependency injection - @Primary and @Qualifier for disambiguation when multiple beans share a type - Bean minimization and composition - Graceful shutdown for in-flight work - Virtual threads on supported stacks for concurrency-bound workloads - Jakarta EE namespace consistency (jakarta.* preferred; avoid mixing legacy javax.annotation / javax.validation) - Scheduled tasks and background processing **Scope:** Apply recommendations based on the reference rules and good/bad code examples. ## Constraints Before applying any Spring Boot changes, ensure the project compiles. If compilation fails, stop immediately. After applying improvements, run full verification. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change - **SAFETY**: If compilation fails, stop immediately — compilation failure is a blocking condition - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements - **BEFORE APPLYING**: Read the reference for detailed rules, good/bad patterns, and constraints - **EDGE CASE**: If request scope is ambiguous, stop and ask a clarifying question before applying changes - **EDGE CASE**: If required inputs, files, or tooling are missing, report what is missing and ask whether to proceed with setup guidance ## When to use this skill - Review Java code for Spring Boot application - Apply best practices for Spring Boot application in Java code - Improve Spring Boot configuration properties and beans - Review Spring Boot component scanning and profiles - Tune Spring Boot graceful shutdown or virtual threads ## Workflow 1. **Read reference and assess project context** Read `references/301-frameworks-spring-boot-core.md` and inspect the current project setup before proposing changes. 2. **Gather scope and decide target improvements** Identify requested outcomes, constraints, and the minimum safe set of changes to apply. 3. **Apply framework-aligned changes** Implement or refactor configuration/code following the reference patterns and project conventions. 4. **Run verification and report results** Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions. ## Reference For detailed guidance, examples, and constraints, see [references/301-frameworks-spring-boot-core.md](references/301-frameworks-spring-boot-core.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth