willyd61/nautobot-v2-custom-metrics-old/openapi-generator
Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
OpenAPI Generator - generate clients and servers from OpenAPI specs USE WHEN: user mentions "OpenAPI Generator CLI", "generate Java client", "generate Spring server", "openapi-generator-cli", "openapi-generator-maven-plugin", asks about "generate server from OpenAPI", "OpenAPI Generator templates" DO NOT USE FOR: TypeScript-only generation - use `openapi-codegen` instead; Writing OpenAPI specs - use `openapi` instead; GraphQL - use `graphql-codegen` instead
Install
npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/openapi-generatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/openapi-generator.
OpenAPI Generator - Quick Reference
When to Use This Skill
- Generate type-safe API clients from OpenAPI specs
- Generate server stubs from OpenAPI specs
- Maintain sync between API and code
- Multi-language client generation (Java, Python, Go, etc.)
- Spring Boot server generation
Deep Knowledge: Usemcp__documentation__fetch_docswith technology:openapi-generatorfor comprehensive documentation.
CLI Usage
Install
Generate TypeScript Client
Generate TypeScript Axios Client
Generate Java Client
Generate Spring Server
NPM Script Integration
package.json
Maven Plugin
Common Generators
| Generator | Description | |
|---|---|---|
| typescript-fetch | TypeScript with Fetch API | |
| typescript-axios | TypeScript with Axios | |
| java | Java client | |
| spring | Spring Boot server | |
| python | Python client | |
| go | Go client |
When NOT to Use This Skill
- TypeScript-only projects (use
openapi-codegenwith openapi-typescript instead) - Writing OpenAPI specifications (use
openapiskill) - GraphQL code generation (use
graphql-codegenskill) - tRPC projects (use
trpcskill) - Simple type-only generation (openapi-typescript is lighter)
Anti-Patterns
| Anti-Pattern | Why It's Bad | Solution | |
|---|---|---|---|
| Committing generated code | Merge conflicts, stale code | Add to .gitignore, generate in build | |
| Not pinning generator version | Breaking changes between versions | Lock version in package.json/pom.xml | |
| Editing generated files | Lost on regeneration | Extend classes or use custom templates | |
| No spec validation before generation | Invalid code generated | Use @redocly/cli lint first | |
| Generating entire API for one endpoint | Bloated client | Use tags or paths filter | |
| Missing operationId in spec | Poor method names | Add operationId to all operations | |
| Not configuring additional properties | Suboptimal output | Use additionalProperties for customization | |
| Generating without .openapi-generator-ignore | Overwrites custom files | Add ignore file for manual code |
Quick Troubleshooting
| Issue | Possible Cause | Solution | |
|---|---|---|---|
| Generation fails | Invalid OpenAPI spec | Validate with @redocly/cli lint | |
| Missing methods | No operationId in spec | Add operationId to all paths | |
| Compilation errors in generated code | Spec type mismatch | Check schema types, run with --skip-validate-spec to debug | |
| Wrong package names | Config not set | Use --additional-properties for package config | |
| Duplicate model names | Same schema name in different tags | Rename schemas or use x-model-name | |
| Maven plugin not running | Wrong phase or configuration | Check plugin execution phase | |
| NPM global command not found | Not installed globally | Install with npm install -g or use npx | |
| Generated code has wrong types | Generator doesn't support type | Use custom templates or different generator |
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 repositoryChecking.mcp-servers/skill-loader/skills/api-integration/openapi-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
templateCustom templates for code generation
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/willyd61/nautobot-v2-custom-metrics-old/openapi-generator)