API Generate — Testing skill for Claude Code
Generate OpenAPI spec and type-safe API client.
How to install API Generate
Installs to ~/.claude/commands/0xgf-solana-fullstack-webapp-skills-api-generate.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xGF/solana-fullstack-webapp-skills/HEAD/.claude/commands/api-generate.md -o ~/.claude/commands/0xgf-solana-fullstack-webapp-skills-api-generate.md Restart Claude Code, or start a new session, for it to be picked up.
What API Generate does
description: Generate OpenAPI spec and type-safe API client allowed-tools: Bash(npm:*), Bash(pnpm:*), Bash(npx:*)
API Generate Command
This command regenerates the type-safe API client from the backend OpenAPI spec.
Steps
- First, generate the OpenAPI spec from the backend (if applicable):
# Adjust the command based on your project structure
pnpm run generate:openapi
# or
npm run generate:openapi
- Then, generate the API client (React Query hooks) from the spec:
Alternatives in Testing
- Testing Strategy — This project is small, runs in a terminal, and is mostly deterministic 10.9k ★
- Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★
- API Spec — Generate Zalando-compliant OpenAPI 3.1 specs (one per bounded context) and publish to SmartBear SwaggerHub 172 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
API Reverse Engineering Toolkit
Claude Skill + TypeScript CLI for reverse-engineering undocumented HTTP APIs into a verified OpenAPI/Smithy sp
Servicenow Skills
Agent plugin marketplace for the ServiceNow REST APIs: skill, references, official docs snapshot, OpenAPI 3.1
Leanix Skills
Agent plugin marketplace for the SAP LeanIX APIs: skill, references, official docs snapshot, OpenAPI 3.1 spec
Forge From Openapi
Auto-generate a Claude Code skill (commands + types + client) from any OpenAPI 3.x spec URL or file path
Hatch3r API Spec
Generate or validate an OpenAPI specification from the codebase. Scans route definitions, extracts schemas, an
Openapi MCP Gateway
Turn any OpenAPI/Swagger API into an MCP server with per-user OAuth2. Multi-spec gateway for Claude Code, Code
Related Agents
Review API Contract
MorviLabs review-crew specialist. Checks both sides of an API against its contract (OpenAPI spec, generated cl
Timps API Contract Auditor
Diff two API specs (OpenAPI/AsyncAPI) and flag breaking changes, deprecations, and safe additions. Returns a s
Schema Architect
Translates OpenAPI specifications into Drizzle ORM schemas and Zod validation schemas. Use when generating dat