402-frameworks-quarkus-rest — скилл для Claude Code: REST на Quarkus
Скилл для проектирования и ревью REST API на Quarkus: ресурсы JAX-RS, валидация, коды ответов, версионирование и кэширование.
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a claude-codeЧто делает 402-frameworks-quarkus-rest
Скилл ведёт агента по правилам Jakarta REST в Quarkus: как раскладывать ресурсные классы и @Path, какие коды статусов и заголовки отдавать, где ставить Bean Validation на границе. Отдельно разобраны DTO, ExceptionMapper с ответом в формате RFC 7807 Problem Details и ISO-8601 для полей времени.
Внутри — файл SKILL.md и справочник references/402-frameworks-quarkus-rest.md с правилами и примерами хорошего и плохого кода. Работа идёт по шагам: сначала скилл читает справочник и осматривает проект, потом предлагает минимальный набор правок, применяет их и прогоняет сборку с тестами.
Есть жёсткое условие. Перед любыми изменениями проект должен компилироваться: скилл требует выполнить ./mvnw compile или mvn compile, а при ошибке сборки останавливается и ждёт, пока их устранит разработчик. После правок он гоняет ./mvnw clean verify или mvn clean verify. Проект должен быть на Maven — на Gradle эти команды не сработают.
Какие задачи решает
- разложить ресурсные классы и маппинг HTTP-методов по
@Path - добавить Bean Validation и единый JSON ошибок через
ExceptionMapper - ввести версионирование API и заголовки устаревания Sunset и Deprecation
- сделать идемпотентность через
Idempotency-Keyи конкурентность через ETag и If-Match - описать пагинацию, сортировку и фильтрацию в query-параметрах
Примеры запросов агенту
- Проверь ресурсы JAX-RS в этом проекте и предложи правки по кодам ответов и DTO
- Добавь в наш REST API ответы об ошибках в формате RFC 7807 и маппер исключений
- Настрой пагинацию и сортировку для списка заказов, плюс заголовки Cache-Control
Как установить 402-frameworks-quarkus-rest
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a claude-code2Вручную: положить файлы
~/.claude/skills/402-frameworks-quarkus-rest/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/402-frameworks-quarkus-rest/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a codex2Вручную: положить файлы
.agents/skills/402-frameworks-quarkus-rest/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a cursor2Вручную: положить файлы
.cursor/skills/402-frameworks-quarkus-rest/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 402-frameworks-quarkus-rest2Вручную: положить файлы
.github/skills/402-frameworks-quarkus-rest/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/402-frameworks-quarkus-restВручную: положить файлы
.devin/skills/402-frameworks-quarkus-rest/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора40
Похожие
Рядом в теме «Бэкенд и API»
Всё по теме «Бэкенд и API» →Вопросы о 402-frameworks-quarkus-rest
Как установить 402-frameworks-quarkus-rest в Claude?
Выполните npx skills add jabrena/plinth --skill 402-frameworks-quarkus-rest -a claude-code. Скилл окажется в ~/.claude/skills/402-frameworks-quarkus-rest/SKILL.md.
Что делает этот скилл?
Помогает проектировать и ревьюить REST API на Quarkus: ресурсы, коды статусов, DTO, валидацию, обработку ошибок, версионирование, идемпотентность и кэширование.
Что нужно, чтобы скилл заработал?
Проект на Maven, который компилируется: скилл сначала запускает ./mvnw compile или mvn compile и при ошибках сборки останавливается, а после правок проверяет всё через ./mvnw clean verify.
Исходный текст
SKILL.md · Apache-2.0
--- name: 402-frameworks-quarkus-rest description: Use when you need to design, review, or improve REST APIs with Quarkus REST (Jakarta REST) — including resource classes, HTTP methods, status codes, request/response DTOs, Bean Validation, exception mappers, optional runtime OpenAPI exposure (SmallRye), contract-first generation from OpenAPI, content negotiation, pagination, sorting and filtering, API versioning, idempotency (Idempotency-Key), optimistic concurrency (ETag / If-Match), HTTP caching (Cache-Control), API deprecation (Sunset / Deprecation headers), RFC 7807 Problem Details, ISO-8601 for time in contracts, and security-aware boundaries. This should trigger for requests such as Review or improve JAX-RS resources in a Quarkus project; Design HTTP APIs with validation and error handling on Quarkus; Add API versioning, idempotency, ETag concurrency, or deprecation headers; Implement pagination, sorting, or RFC 7807 Problem Details error responses; Improve Quarkus REST resources and exception mappers. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Quarkus REST API Guidelines Apply REST API design principles on Quarkus using Jakarta REST (JAX-RS). **What is covered in this Skill?** - Resource classes, @Path, HTTP method mapping, and resource URI design - Status codes, Location headers, and Response building - DTOs and Bean Validation at the boundary; ISO-8601 for date/time fields - ExceptionMapper for consistent error JSON (RFC 7807 Problem Details) - API versioning strategies (URI path, Accept header) - Idempotency with Idempotency-Key header - Optimistic concurrency: ETag, If-Match, If-None-Match - HTTP caching with Cache-Control headers - API deprecation: Sunset and Deprecation headers - Pagination, sorting, and filtering query parameters - Optional `/openapi` via SmallRye; API-first contract maintained in `openapi.yaml` (codegen) - Reactive vs blocking considerations; @RunOnVirtualThread - Security integration at the filter layer **Scope:** Apply recommendations based on the reference rules and good/bad code examples. ## Constraints Before applying REST changes, ensure the project compiles. After applying improvements, run full verification. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change - **PREREQUISITE**: Project must compile before applying REST API improvements - **SAFETY**: If compilation fails, stop immediately - **BLOCKING CONDITION**: Compilation errors must be resolved by the user before proceeding - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements - **BEFORE APPLYING**: Read the reference for detailed rules and examples ## When to use this skill - Review or improve JAX-RS resources in a Quarkus project - Design HTTP APIs with validation and error handling on Quarkus - Add API versioning, idempotency, ETag concurrency, or deprecation headers - Implement pagination, sorting, or RFC 7807 Problem Details error responses - Improve Quarkus REST resources and exception mappers ## Workflow 1. **Read reference and assess project context** Read `references/402-frameworks-quarkus-rest.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/402-frameworks-quarkus-rest.md](references/402-frameworks-quarkus-rest.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth