governing-component-reuse

Official

Enforce OpenAPI component reuse standards.

Authormusher-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the maintenance nightmares and silent divergence caused by duplicated or inconsistently managed OpenAPI component definitions, ensuring DRY principles are applied at the specification level.

Core Features & Use Cases

  • Component Extraction & Referencing: Guides the extraction of reusable schemas, responses, and parameters into the components section and their subsequent referencing using $ref.
  • Inline Schema Auditing: Identifies and provides rules for when inline schemas are acceptable versus when they must be extracted to prevent duplication and SDK generation issues.
  • Schema Composition Governance: Enforces best practices for allOf, oneOf (with discriminator), and anyOf to ensure clarity, maintainability, and compatibility with code generation tools.
  • RFC 9457 ProblemDetails: Promotes the use of a standardized, reusable error schema for consistent API error handling.
  • Use Case: When reviewing an OpenAPI specification, use this Skill to audit the usage of $ref, identify inline schemas that should be components, and ensure that polymorphic types (oneOf) are correctly implemented with discriminators.

Quick Start

Use the governing-component-reuse skill to audit the OpenAPI specification for inline schema anti-patterns and ensure all response bodies are defined as reusable components.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: governing-component-reuse
Download link: https://github.com/musher-dev/bundles/archive/main.zip#governing-component-reuse

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.