Agent skill · Backend & API

developing-openapi-specs

Guide for contributing to the OpenAPI layer using processor pattern, complexity management, and functional programming. Use when adding endpoint factories, processors, parameter descriptions, reducing cyclomatic complexity, or fixing OpenAPI validation errors. Covers architecture patterns from user-service repository.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill developing-openapi-specs --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/api/developing-openapi-specs/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Developing OpenAPI Specs **Guide for contributing to the OpenAPI layer** at `src/Shared/Application/OpenApi/`. This skill covers architecture patterns, complexity management techniques, and best practices for maintaining OpenAPI specifications while keeping code quality high. **Related Skills**: - [implementing-ddd-architecture](../implementing-ddd-architecture/SKILL.md) - Domain layer must stay pure; OpenAPI code belongs in Application layer ## When to Use This Skill - Adding new OpenAPI endpoint factories - Creating processors for spec transformation - Adding parameter descriptions or validation - Modifying OpenAPI generation logic - Fixing OpenAPI validation errors - Reducing cyclomatic complexity in OpenAPI code ## Architecture Overview The OpenAPI layer follows a **Processor Pattern** with clear separation of concerns: ``` src/Shared/Application/OpenApi/ ├── Builder/ # Schema and parameter builders ├── Factory/ │ ├── Endpoint/ # Custom endpoint factories │ ├── Request/ # Request body schemas │ ├── Response/ # Response schemas │ └── UriParameter/ # Path parameter factories ├── Processor/ # Spec transformation processors └── OpenApiFactory.php # Main coordinator ``` ### Key Pr

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Architecture Overview
  3. Key Principles
  4. Quick Pattern Reference
  5. Pattern 1: OPERATIONS Constant
  6. Pattern 2: Match Expression (Lower Complexity)
  7. Pattern 3: Functional Array Operations
  8. Pattern 4: Extract Methods (Keep Under 20 Lines)
  9. Complexity Target Metrics
  10. Quick Start Guide
  11. Adding a Processor
  12. Adding an Endpoint Factory
  13. Adding Parameter Descriptions
  14. Anti-Patterns to Avoid
Ships with 1 file
  • metadata.json
Commands it runs
make generate-openapi-spec       # Generate spec
make validate-openapi-spec        # Validate with Spectral
make phpinsights                 # Check quality scores
make unit-tests                  # Run tests
More from claude-skill-registry
All skills →
About this skill
What does the developing-openapi-specs skill do?

Guide for contributing to the OpenAPI layer using processor pattern, complexity management, and functional programming. Use when adding endpoint factories, processors, parameter descriptions, reducing cyclomatic complexity, or fixing OpenAPI validation errors. Covers architecture patterns from user-service repository.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill developing-openapi-specs --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going