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 ★
- Inkline — by inkline - Structures development workflow using pnpm with emphasis on TypeScript and Vue 3 Composition API 1.4k ★
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
Forge From Openapi
Auto-generate a Claude Code skill (commands + types + client) from any OpenAPI 3.x spec URL or file path
API Spec
Generate Zalando-compliant OpenAPI 3.1 specs (one per bounded context) and publish to SmartBear SwaggerHub
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
Generate API Tests From Swagger
Sinh API test cases và automation scripts từ Swagger/OpenAPI specification. Hỗ trợ 2 mode — SPEC (chỉ test cas
Related Agents
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
Openapi Spec Author
Specializes in API design, OpenAPI specification authoring, and backward compatibility validation. Uses Specma