alti3/litestar-skills/litestar-openapi
Claude Code and agent skill by alti3/litestar-skills
- community
Checking that the SKILL.md file is still in the repository.
Configure Litestar OpenAPI schema generation and documentation UX with `OpenAPIConfig`, route-level schema metadata, schema generation controls, operation customization, UI render plugins, and documentation endpoint strategy. Use when API contract and docs quality must be implemented or corrected, especially for request, auth, and metrics surfaces. Do not use for runtime business logic changes unrelated to schema or documentation.
Install
npx vskill@latest install alti3/litestar-skills/litestar-openapiSKILL.md
The same SKILL.md was published earlier as alti3/litestar-skills/litestar-openapi.
OpenAPI
Execution Workflow
- Decide whether OpenAPI should be enabled, restricted, or disabled for the app.
- Set app-level
OpenAPIConfigfor title, version, docs endpoints, servers, tags, and render plugins. - Add route-level metadata deliberately:
summary,description,response_description,tags,security,operation_id,raises, andinclude_in_schema. - Use schema-generation customization only when default model generation is insufficient.
- Choose UI render plugins and endpoint paths intentionally for each environment.
- Validate that generated docs match real request, auth, and metrics behavior.
Core Rules
- Keep documentation truthful to runtime behavior.
- Centralize OpenAPI config at app construction.
- Use route-level metadata only where it improves clarity or correctness.
- Disable schema generation with
openapi_config=Noneonly when docs must not be exposed. - Keep request, response, security, and metrics documentation aligned with the skills that own those runtime behaviors.
- Prefer current render-plugin configuration over legacy controller-style customization paths.
- Treat OpenAPI changes as API changes that require review.
Decision Guide
- Use app-level
OpenAPIConfigfor global schema and docs endpoint strategy. - Use route-level metadata when one operation differs from the app default.
- Use
operation_classor schema customization only when built-in generation is insufficient. - Use
include_in_schema=Falsefor internal or operational routes that should stay out of public docs. - Use UI plugins when interactive docs are required; choose the plugin based on audience and deployment constraints.
- Use one of the bundled render plugins rather than hand-building docs pages unless the UI must be bespoke.
Reference Files
Read only the sections you need:
- For schema generation, enabling/disabling docs, route-level metadata, and operation customization, read references/schema-and-operations.md.
- For UI render plugins, docs endpoints, path customization, and offline/CDN considerations, read references/ui-plugins-and-endpoints.md.
Recommended Defaults
- Keep app title, version, and server metadata explicit.
- Use route-level descriptions and summaries sparingly but intentionally.
- Document security requirements where auth actually applies.
- Keep internal or noisy operational endpoints out of the public schema when appropriate.
- Prefer a single clear docs UI per environment unless multiple UIs solve a real need.
Anti-Patterns
- Documenting contracts that runtime behavior does not actually support.
- Leaving stale examples, tags, or security docs after runtime changes.
- Overusing route-level overrides until the schema becomes inconsistent.
- Exposing internal routes in the schema without intent.
- Treating UI plugin choice as purely cosmetic when endpoint paths and asset loading matter operationally.
- Customizing schema generation before understanding the default output.
Validation Checklist
- Confirm schema generation is enabled or disabled intentionally.
- Confirm public routes appear in the schema and internal-only routes are omitted where intended.
- Confirm request, response, auth, and metrics surfaces are documented consistently with runtime behavior.
- Confirm operation IDs, tags, and summaries are stable and useful.
- Confirm documented exceptions and security requirements match the real route behavior.
- Confirm chosen UI plugin paths and asset sources are correct for the deployment environment.
- Confirm generated JSON and YAML schema endpoints behave as expected.
Cross-Skill Handoffs
- Use
litestar-requests,litestar-responses, andlitestar-dtowhen schema mismatches originate in transport modeling. - Use
litestar-authenticationandlitestar-securitywhen security scheme docs must match auth backends and guard behavior. - Use
litestar-metricswhen operational endpoints or metrics docs should be included or excluded intentionally. - Use
litestar-testingwhen schema and docs stability need regression coverage.
Litestar References
- https://docs.litestar.dev/latest/usage/openapi/index.html
- https://docs.litestar.dev/latest/usage/openapi/schema_generation.html
- https://docs.litestar.dev/latest/usage/openapi/ui_plugins.html
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/litestar/skills/litestar-openapi/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alti3/litestar-skills/litestar-openapi)