701-technologies-openapi — скилл для Claude Code: ревью и улучшение
Помогает привести контракт OpenAPI 3.x в порядок: структура спецификации, схемы, security, проверка на ломающие изменения. Пригодится, когда API-контракт живёт отдельно от кода.
npx skills add jabrena/plinth --skill 701-technologies-openapi -a claude-codeЧто делает 701-technologies-openapi
Скилл разбирает спецификацию OpenAPI 3.x по слоям: блоки openapi, info, servers, tags, пути и операции с параметрами и кодами ответов, переиспользуемые components, примеры, схемы безопасности со scopes. Отдельно идёт тема версионирования и метаданных. Работает без привязки к фреймворку: Spring Boot, Quarkus и Micronaut он не выбирает за вас, поэтому советы остаются на уровне контракта.
Внутри описан порядок работы: сначала читается references/701-technologies-openapi.md и осматриваются текущие артефакты API, потом определяется минимальный набор правок, затем они применяются, а в конце прогоняются проверки. Есть ограничения по проекту: перед правками Java или Maven нужно выполнить ./mvnw compile или mvn compile, а перед продвижением изменений — ./mvnw clean verify или mvn clean verify. Если цель размыта, скилл останавливается и задаёт уточняющий вопрос вместо того, чтобы трогать файлы.
Линтинг спецификации, проверки на ломающие изменения и гейты перед кодогенерацией упомянуты как часть темы, но конкретный линтер вроде Spectral приводится только как пример. Если у вас контракт уже порождается из кода, а не пишется первым, пользы будет меньше: скилл держится стороны contract-first.
Какие задачи решает
- разобрать спецификацию OpenAPI по блокам и найти слабые места
- переписать схемы в переиспользуемые components
- описать схемы безопасности и scopes в контракте
- проверить спецификацию на ломающие изменения перед релизом
- подготовить контракт к кодогенерации
Примеры запросов агенту
- Проверь мой openapi.yaml и скажи, что стоит поправить
- Улучши схемы в спецификации: вынеси общие типы в components
- Посмотри контракт API и найди ломающие изменения
Как установить 701-technologies-openapi
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 701-technologies-openapi -a claude-code2Вручную: положить файлы
~/.claude/skills/701-technologies-openapi/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/701-technologies-openapi/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 701-technologies-openapi -a codex2Вручную: положить файлы
.agents/skills/701-technologies-openapi/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 701-technologies-openapi -a cursor2Вручную: положить файлы
.cursor/skills/701-technologies-openapi/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 701-technologies-openapi2Вручную: положить файлы
.github/skills/701-technologies-openapi/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 701-technologies-openapi -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/701-technologies-openapiВручную: положить файлы
.devin/skills/701-technologies-openapi/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 701-technologies-openapi -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 701-technologies-openapi
Как установить 701-technologies-openapi в Claude?
Выполните npx skills add jabrena/plinth --skill 701-technologies-openapi -a claude-code. Скилл окажется в ~/.claude/skills/701-technologies-openapi/SKILL.md.
Что делает 701-technologies-openapi?
Даёт рекомендации по OpenAPI 3.x: структура спецификации, пути и операции, переиспользуемые схемы, security, примеры, качество документации и проверка контракта. Фреймворк при этом не навязывает.
Нужен ли фреймворк вроде Spring Boot для этого скилла?
Нет, он специально держится в стороне от Spring Boot, Quarkus и Micronaut и работает на уровне контракта. Интеграцию с Java-фреймворком он трогает только по прямой просьбе.
Исходный текст
SKILL.md · Apache-2.0
--- name: 701-technologies-openapi description: Use when you need framework-agnostic OpenAPI 3.x guidance — spec structure, metadata and versioning, paths and operations, reusable schemas, security schemes, examples, documentation quality, contract validation (e.g. Spectral), breaking-change awareness, and handoffs to codegen — without choosing Spring Boot, Quarkus, or Micronaut. This should trigger for requests such as Review an OpenAPI; Improve an OpenAPI; Improve API contract; Improve API schema design. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # OpenAPI 3.x best practices Help teams produce maintainable **OpenAPI 3.x** contracts that stay aligned with HTTP semantics and consumer needs. **What is covered in this Skill?** - Document structure: `openapi`, `info`, `servers`, `tags`, and consistent resource grouping - Path and operation design: parameters, request bodies, response matrices, `operationId`, status codes - Reusable `components` (schemas, parameters, responses, security schemes) and examples - Validation and CI: spec linting, breaking-change checks, pre-codegen gates - Security modeling in the contract (schemes, scopes, global vs operation security) - Clear boundaries between contract-first design and runtime implementation concerns **Scope:** Contract-first quality only. Focus this skill on OpenAPI design, quality, and governance guidance. ## Constraints Keep recommendations at the OpenAPI layer unless the user explicitly asks for Java framework integration. After editing this repository's XML sources, regenerate skills and verify the build. - **MANDATORY**: Run `./mvnw compile` or `mvn compile` before proposing Java or Maven changes in the same change set - **FRAMEWORK**: Keep guidance contract-centric; do not prescribe framework-specific controller wiring or runtime exposure details - **FUZZING**: Keep fuzzing guidance high-level and contract-focused without linking to external skill identifiers - **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` before promoting changes - **EDGE CASE**: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands - **EDGE CASE**: If required context, files, credentials, or tools are missing, report the blocker explicitly and ask whether to proceed with setup or fallback guidance - **EDGE CASE**: If requested changes conflict with project constraints or safety boundaries, explain the conflict and ask for user confirmation on the preferred trade-off ## When to use this skill - Review an OpenAPI - Improve an OpenAPI - Improve API contract - Improve API schema design - Validate an OpenAPI spec ## Workflow 1. **Read reference and assess project context** Read `references/701-technologies-openapi.md` and inspect current API/context artifacts 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 technology-aligned changes** Implement or refactor artifacts following the reference patterns and project conventions. 4. **Run verification and report results** Execute appropriate checks and summarize what changed, what was verified, and any follow-up actions. ## Reference For detailed guidance, examples, and constraints, see [references/701-technologies-openapi.md](references/701-technologies-openapi.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth