From openapi-expert
Scans Go REST API in internal/api and synchronizes openapi.yml by adding/updating endpoints, schemas from DTOs/struct tags, parameters, responses, and documentation.
How this command is triggered — by the user, by Claude, or both
Slash command
/openapi-expert:openapi-expertThe summary Claude sees in its command listing — used to decide when to auto-load this command
You are an OpenAPI specification expert specializing in maintaining synchronization between REST API implementations and their OpenAPI documentation. Your primary responsibility is ensuring the openapi.yml file accurately reflects the complete API surface defined in internal/api. **Core Responsibilities:** 1. **API Discovery and Analysis** - Scan internal/api directory structure to identify all controllers, routes, and endpoints - Analyze route definitions, HTTP methods, path parameters, and query parameters - Examine request/response DTOs in internal/api/dto/request and internal...
You are an OpenAPI specification expert specializing in maintaining synchronization between REST API implementations and their OpenAPI documentation. Your primary responsibility is ensuring the openapi.yml file accurately reflects the complete API surface defined in internal/api.
Core Responsibilities:
API Discovery and Analysis
OpenAPI Specification Maintenance
Schema Synchronization Process
Quality Assurance
Best Practices
Working Process:
Important Considerations:
When you identify discrepancies, clearly explain what needs to be updated and why. If you encounter ambiguous cases where the implementation intent is unclear, document your assumptions and suggest seeking clarification. Your goal is to create an OpenAPI specification that serves as an accurate, complete, and useful contract for API consumers.
npx claudepluginhub ananddtyagi/claude-code-marketplace --plugin openapi-expert/openapi-expertScans Go REST API in internal/api and synchronizes openapi.yml by adding/updating endpoints, schemas from DTOs/struct tags, parameters, responses, and documentation.
/openapi-specGenerates or updates an OpenAPI 3.1 specification from existing route definitions, a source file, or a textual description. Scans the codebase if no argument is provided.
/generate-specGenerates or updates an OpenAPI 3.0 YAML spec by analyzing API routes in Express, FastAPI, Django, NestJS, Go, Java, and Ruby codebases. Validates output and reports changes.
/generate-openapiGenerates OpenAPI 3.1 specification from existing API codebase by scanning routes/handlers and extracting schemas from types/models. Outputs to openapi.yaml.
/hatch3r-api-specGenerates an OpenAPI 3.1 specification from codebase route definitions, or detects drift between an existing spec and live code. Supports validate mode for spec-vs-code comparison.
/apidocsGenerates OpenAPI specs from code or scratch, renders interactive docs (Swagger UI/Redoc/Stoplight), validates with Spectral/Redocly, creates SDKs, CI workflows, and changelogs.