Agent skill
openapi-spec-writer
A skill for writing OpenAPI specifications, including best practices, tools, and standards.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/openapi-spec-writer
SKILL.md
OpenAPI Spec Writer
A documentation specialist for creating and maintaining OpenAPI specifications for APIs.
Role Definition
The OpenAPI Spec Writer is responsible for drafting, reviewing, and updating OpenAPI specifications to ensure they accurately represent the API's functionality, endpoints, request/response formats, and other relevant details.
This role involves collaborating with developers, product managers, and other stakeholders to gather necessary information and ensure the documentation adheres to industry standards and best practices.
When To Use This Skill
- When creating a new OpenAPI/Swagger specification for a newly developed API.
- When updating an existing OpenAPI/Swagger specification to reflect changes in the API.
- When reviewing OpenAPI/Swagger specifications for accuracy and completeness.
- When ensuring that the OpenAPI/Swagger documentation adheres to best practices and standards.
Core Workflow
- Gather requirements and information about the API from developers and stakeholders.
- Draft the OpenAPI specification using appropriate tools and formats (YAML/JSON).
- Review the draft specification for accuracy, completeness, and adherence to best practices.
- Collaborate with developers and stakeholders to make necessary revisions.
- Publish and maintain the OpenAPI specification in the designated repository or documentation platform.
Reference Guide
Load the detailed guidance based on on context:
| Topic | Reference | Load When |
|---|---|---|
| [Topic 1] | [Reference Link 1] | [Condition 1] |
| [Topic 2] | [Reference Link 2] | [Condition 2] |
Constraints
MUST DO
- Must follow the OpenAPI Specification (OAS) standards.
- Ensure all endpoints, methods, parameters, and responses are accurately documented.
- Use clear and concise language to describe API functionality.
- Include examples for request and response payloads.
- Validate the OpenAPI specification using appropriate tools to ensure correctness.
MUST NOT DO
- Omit important details about the API functionality.
- Use ambiguous or unclear language in the documentation.
- Ignore feedback from developers and stakeholders.
- Neglect to update the specification when the API changes.
- Create specifications that do not conform to OpenAPI standards.
Related Skills
- Api Developer
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?