swagger-ai-optimization - Optimize Swagger/OpenAPI for AI Agents
Optimizes Spring Boot and springdoc Swagger/OpenAPI specifications for AI Agent API selection, invocation, schema understanding, and validation.
Tags
Updated: 2026-11-28Capabilities
What this skill does
- Extract before and after specs
- Measure specification token usage
- Add operation IDs and annotations
- Enrich DTO schemas
- Add filterable field metadata
- Structure response and error schemas
- Validate AI understanding
- Generate reports and delivery files
- Verify Gradle or Maven builds
Inputs
- Spring Boot source project
- application.yml
- Controller and DTO source files
- Lucida UI column definitions
- Korean message properties
- Code ownership approval
- Build configuration
Outputs
- Before and after OpenAPI JSON files
- Updated controller and DTO annotations
- AI test prompts and result reports
- Marp report and PPTX file
- Filterable-fields mapping JSON
- Token measurement and pruning scripts
- OpenAPI quality-gate workflow
- Spectral configuration
- Build verification result
Requirements
- Spring Boot 3.x
- springdoc-openapi
- Gradle or Maven build
- Access to project source files
- Permission to modify annotations
- tiktoken for accurate token measurement
