跳到主要内容

Lang Openapi

Lint and codegen OpenAPI and Swagger specs.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-openapi
Version1.0.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

OpenAPI / Swagger Language Pack Skill

Drive OpenAPI / Swagger work with the project index and standard CLI recipes. LSP hint: yaml-language-server (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Стандарт описания HTTP API. Один openapi.yaml — документация, клиенты и проверки совместимости для сайта/мобилки/партнёров.

Лучше всего для:

  • REST/JSON API контракты
  • codegen клиентов SDK
  • контракт-тесты
  • документация API

When to Use​

Выбирай этот pack, если:

  • есть openapi.yaml / swagger.json
  • нужен контракт REST API
  • пользователь просит OpenAPI/Swagger

Manifests (автодетект репозитория): openapi.yaml, openapi.yml, openapi.json, swagger.yaml, swagger.yml, swagger.json, api/openapi.yaml, docs/openapi.yaml

Обычно рядом: TypeScript/Go/Python серверы; часто рядом с Docker.

См. также skill choose-language-pack и vibeos language recommend "…".

When NOT to use​

  • gRPC между сервисами → protobuf
  • GraphQL schema → graphql
  • только код без спеки → язык бэкенда

Prerequisites​

vibeos pack apply lang-openapi --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
npx @redocly/cli lint openapi.yaml || npx spectral lint openapi.yaml || true

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-openapi --apply
Doctorvibeos language doctor openapi
Primary testnpx @redocly/cli lint openapi.yaml
Choose guideskill choose-language-pack
Recommendvibeos language recommend "…"

Procedure​

  1. Для нового продукта сначала choose-language-pack / vibeos language recommend.
  2. Work from the project root that matches pack manifests.
  3. Prefer project-local toolchain already locked in the repo.
  4. Explain destructive/export/breaking changes; wait for explicit ask.
  5. Do not invent core tools; stay on terminal + read_file + index CLI.

Pitfalls​

  • Prefer committed openapi.yaml as source of truth.
  • Breaking path/schema changes need explicit review.

Verification​

vibeos language doctor openapi
vibeos project index status