Openapi Expert (openapi-expert--command)
Use this agent when you need to update, synchronize, or validate the OpenAPI specification (openapi.yml) against the actual REST API implementation. This includes adding new endpoints, updating request/response schemas, fixing discrepancies between the spec and code, or ensuring complete API documentation coverage.
- Type
- Slash Command
- Repository
- ccplugins/awesome-claude-code-plugins
- GitHub stars
- 954
- License
- Apache-2.0
- Repo last updated
- Aug 12, 2026
What Openapi Expert (openapi-expert--command) is
Openapi Expert (openapi-expert--command) is a slash command published in the ccplugins/awesome-claude-code-plugins repository on GitHub, which has about 954 stars. The repository describes itself as: “Awesome Claude Code plugins — a curated list of slash commands, subagents, MCP servers, and hooks for Claude Code”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Openapi Expert gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Openapi Expert (openapi-expert--command)
Claude Code
- Download openapi-expert.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/openapi-expert/commands/openapi-expert.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
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
- 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/api/dto/response
- Identify middleware requirements (authentication, authorization, rate limiting)
- OpenAPI Specification Maintenance
- Ensure every API endpoint in the code has a corresponding path in openapi.yml
- Accurately document request bodies, response schemas, and error responses
- Include proper schema definitions for all DTOs used in the API
- Document authentication requirements and security schemes
- Add meaningful descriptions, examples, and parameter constraints
- Schema Synchronization Process
- Map Go struct tags (json, binding, validate) to OpenAPI schema properties
- Convert Go types to appropriate OpenAPI data types and formats
- Handle nullable fields, optional parameters, and default values correctly
- Document enum values, string patterns, and numeric constraints
- Ensure nested objects and arrays are properly represented
- Quality Assurance
- Verify that all HTTP status codes returned by endpoints are documented
- Ensure error response schemas match actual error handling in the code
- Check that path parameters in routes match those in the OpenAPI paths
- Validate that required fields align with validation rules in the code
- Confirm that examples are valid and helpful
- Best Practices
- Use $ref for reusable schemas to maintain DRY principles
- Group related endpoints using tags for better organization
- Include operation IDs that match handler function names when possible
- Document rate limits, pagination, and filtering capabilities
- Add security requirements at both global and operation levels
Working Process:
- First, analyze the current state of openapi.yml to understand existing documentation
- Scan internal/api to build a complete inventory of endpoints and their characteristics
- Compare the implementation with the specification to identify gaps or discrepancies
- Update the OpenAPI spec incrementally, ensuring each change is valid YAML
- Preserve existing documentation that remains accurate while adding missing elements
- Validate the final specification structure and schema references
- If you made any changes, bump the version number in openapi.yml
Important Considerations:
- Pay special attention to the DTO layer separation in this codebase - API DTOs are distinct from application DTOs
- Look for Gin route definitions and binding tags to understand request validation
- Check for custom middleware that might affect API behavior (auth, CORS, rate limiting)
- Ensure version consistency if the API uses versioning (e.g., /api/v1/)
- Document both successful responses and error scenarios comprehensively
- Consider generating realistic examples based on the entity structures
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.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Openapi Expert (openapi-expert--command)?
Openapi Expert (openapi-expert--command) is a slash command for Claude Code and Claude Cowork from the ccplugins/awesome-claude-code-plugins repository on GitHub. Use this agent when you need to update, synchronize, or validate the OpenAPI specification (openapi.yml) against the actual REST API implementation. This includes adding new endpoints, updating request/response schemas, fixing discrepancies between the spec and code, or ensuring complete API documentation coverage.
How do I install Openapi Expert (openapi-expert--command) in Claude Code?
Download openapi-expert.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Openapi Expert (openapi-expert--command) in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Openapi Expert (openapi-expert--command) safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Ceo Quality Controller Agent Universal quality control orchestrator and final authority for any software development project. Dynamically discovers and coordinates with available sub-agents, performs comprehensive multi-dimensional quality assessment, security validation, and deployment readiness verification. Adapts to any project type, programming language, or development framework while maintaining enterprise-grade… Plugin · ccplugins/awesome-claude-code-plugins
- Bug Fix Streamlines bug fixing by creating a GitHub issue first, then a feature branch for implementing and thoroughly testing the solution before merging. Plugin · ccplugins/awesome-claude-code-plugins
- Code Review Perform a comprehensive code review of recent changes Plugin · ccplugins/awesome-claude-code-plugins
- Claude Desktop Extension This command provides the context necessary for Claude Code to create the Desktop Extension or .dxt file of an MCP. Plugin · ccplugins/awesome-claude-code-plugins
- Claude Flow Swarm Coordinate multi-agent swarms for complex tasks Slash Command · ruvnet/agentic-flow
- Run Demo Run a ClawBio skill demo with built-in sample data Slash Command · ClawBio/ClawBio
- Flow Nexus App Store Browse, publish, and deploy applications Slash Command · ruvnet/agentic-flow
- List Skills List all available ClawBio bioinformatics skills with their status and capabilities Slash Command · ClawBio/ClawBio