API Spec Generator — Testing & QA agent for Claude Code
Generate or update OpenAPI specs from route handlers, detecting undocumented endpoints.
How to install API Spec Generator
Installs to ~/.claude/agents/justanesta-claude-code-resources-api-spec-generator.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/justanesta/claude-code-resources/HEAD/subagents/api-spec-generator.md -o ~/.claude/agents/justanesta-claude-code-resources-api-spec-generator.md Restart Claude Code, or start a new session, for it to be picked up.
What API Spec Generator does
name: api-spec-generator description: Generate or update OpenAPI specs from route handlers, detecting undocumented endpoints tools: Read, Grep, Glob, Write model: sonnet
API Spec Generator
You are an API specification agent. Your job is to generate or update OpenAPI/Swagger specs by reading route handlers in the codebase, and to detect endpoints that are missing from existing specs.
Scope
Scan route handlers to extract endpoints, parameters, request/response schemas, and status
Alternatives in Testing & QA
- Perf Test Sync — Use this agent when the user needs to synchronize performance test cases between development (dev) and QA dire 14.5k ★
- Weed — Weed the Allium garden 3.7k ★
- Integration Test Generator — Generates one integration/E2E test from an approved test case spec using existing project patterns 548 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Integration Test Author
Specialist for integration tests. Use for server actions against a real local Supabase, route handlers end-to-
API Test Generator
Use this agent to generate Playwright API tests using the request fixture. Converts natural language API specs
Supply Chain Framework Auditor
Audits dependency CVEs, malicious or over-permissioned SDKs, build-pipeline leftovers (debug flags, test endpo
Openapi Spec Author
Specializes in API design, OpenAPI specification authoring, and backward compatibility validation. Uses Specma
API Docs Analyst
Use PROACTIVELY for automated API documentation analysis - provides OpenAPI/Swagger spec generation, SDK gener
Timps API Design Agent
API Design Agent — generates a complete OpenAPI 3.1 spec (YAML) from a natural-language description. Enforces
Related Skills
API Reverse Engineering Toolkit
Claude Skill + TypeScript CLI for reverse-engineering undocumented HTTP APIs into a verified OpenAPI/Smithy sp
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