Not loaded · from rc
Generates or updates an OpenAPI specification by discovering HTTP endpoints, request schemas, and response models from source code. Keeps openapi.yaml in sync after API changes.
Claude Code won't load this skill
It ships in rc at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generate or maintain an OpenAPI document that mirrors the API's real routes, request contracts, and response models. Document only what exists in source. This skill is standalone and stack-agnostic; it detects how the project defines HTTP endpoints. It only writes the spec file — it never modifies source code.
.techdocs/docs/openapi.yaml, or the existing location if one is found) and the target OpenAPI version.Locate the spec and pick the version.
openapi.yaml/openapi.json (.techdocs/docs/, docs/, repo root). If found, read it for comparison and reuse its output path and version. Otherwise default the output to .techdocs/docs/openapi.yaml, creating the directory if needed.Discover HTTP endpoints from source. Detect the routing mechanism and enumerate every endpoint with method, full path, handler reference, and any summary/description from doc comments or manifest annotations. Routing may live in framework routers (Express, Gin, Spring, FastAPI, etc.) or infrastructure manifests (serverless.yml http events, API Gateway). Ignore non-HTTP triggers.
Extract request contracts from each handler's validation layer: path params, query params, body fields, and required headers — with type, required/optional, defaults, nullability, constraints (uuid, min/max, datetime, enum), and any custom validation messages. Read from the real schema/DTO (Zod, Pydantic, Go structs, class-validator, etc.).
Extract response models. For each endpoint determine the success and error responses from the handler's return shape and the domain entities it serializes — including field renames the handler applies — and the HTTP status codes it can emit (2xx success, 4xx validation/not-found/conflict, etc.).
Map types to OpenAPI Schema Objects, honoring the chosen version — stay on that one version throughout the document, never mixing 3.0 and 3.1 constructs:
string → type: string; uuid → format: uuid; datetime → format: date-time; number/integer, boolean, arrays, objects accordingly; open maps → type: object, additionalProperties: true.type: [string, "null"]); in 3.0.3 use nullable: true.examples; in 3.0.3 use example.Assemble the document:
info (title, version from the manifest, description), servers (real environment URLs), security + components.securitySchemes for the project's auth scheme, and tags grouping operations by domain.paths: per operation set summary, description, a unique operationId (the handler/function name), tags, parameters, requestBody when applicable, and all possible responses with schemas.components.schemas: define reusable entity, request-body, and error schemas. Reference everything with $ref — never duplicate a definition inline (DRY). Put required fields in required, defaults in default, and a realistic, type-correct example/examples on each field (valid UUIDs, E.164 phones, ISO 8601 dates).Reconcile when updating an existing spec: add new endpoints/schemas, remove ones no longer in source, update changed parameters/bodies/responses, and preserve non-conflicting manual additions (extra descriptions, examples).
Validate: the document parses as valid YAML/JSON, every $ref resolves, every required entry names a real property, and the document conforms to the chosen OpenAPI version. Save to the output path.
Report: creation vs update mode, endpoints documented/added/removed/updated, schemas generated, and a pointer to validate the spec (e.g. an OpenAPI linter or editor.swagger.io).
What SKILL.md sets; muted values are Claude Code's defaults
sonnethighThree short reads, in order
32 skills in this plugin
/rcExplains RC — its skills, agents, hooks and artifacts. Use to learn what RC offers. Do not use to run a workflow step./rc-a11yGuias de acessibilidade (a11y) para web seguindo WCAG 2.2 AA — semântica HTML, ARIA, navegação por teclado, gestão de foco, contraste e leitores de tela. Use ao construir ou revisar UI (componentes, formulários, modais, navegação, tabelas). Não use para acessibilidade de PDF, auditoria jurídica de conformidade, ou design visual sem relação com a11y./rc-axumImplements and reviews Axum 0.8+ APIs in Rust — routing, State, extractors, Tower middleware, typed errors, WebSockets, CORS, timeouts, hardening. Use when building or changing Axum backends, handlers, middleware, or WS endpoints. Do not use for SvelteKit (rc-sveltekit), the SQLx data layer alone (rc-sqlx), or Rust language idioms (rc-rust).npx claudepluginhub rodolfochicone/rc-project --plugin rcOther plugins' skills for the same job