An automated tool that turns raw API code, HAR traffic logs, and packet captures into production-ready, validated OpenAPI 3.x specifications.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openapi-spec-generator
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install openapi-spec-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The OpenAPI Spec Generator is a sophisticated tool designed to bridge the gap between running APIs and their documentation. This skill analyzes multiple input sources—ranging from backend source code (Go, Java, Python, Node.js) to traffic captures like HAR files, Charles Proxy logs, and PCAP data—to automatically reverse-engineer and structure comprehensive OpenAPI 3.x specifications. By automating endpoint discovery, parameter classification, schema inference, and authentication extraction, it eliminates hours of tedious manual drafting.
As part of the expanding library of Openclaw Skills, this tool integrates seamless interactive refinement, allowing developers to review, validate, and polish their API specifications recursively. Whether you are documenting legacy systems, standardizing microservice architectures, or reverse-engineering third-party integrations, it provides a secure, local-first workflow that ensures structural validity and strict compliance with best practices.
To start using this skill within your Openclaw Skills workspace, follow these basic CLI steps. Ensure you have the required parser dependencies installed locally.
# Step 1: Install the OpenAPI Spec Generator package or CLI helper
npm install -g @openclaw/openapi-spec-generator-cli
# Step 2: Scan your target API codebase to discover endpoints
openapi-gen.sh scan ~/projects/user-service/
# Step 3: Infer schema structures and compile configuration
openapi-gen.sh infer ~/projects/user-service/
# Step 4: Generate the validated OpenAPI 3.x specification file
openapi-gen.sh generate ~/projects/user-service/ --output openapi.yaml
The generator organizes schemas and exports clean OpenAPI standard documents alongside diagnostic outputs:
| File / Directory | Format | Description |
|---|---|---|
openapi.yaml / openapi.json |
YAML / JSON | The primary validated OpenAPI 3.0.3 spec document, fully structured with path methods, schemas, parameters, and auth mechanisms. |
prism-config.yml |
YAML | Optional configurations for running immediate API simulation servers based on the generated spec. |
docker-compose.yml |
YAML | Optional containerized setup to launch a local mock server using the generated specification. |
.openapi-gen-cache/ |
Local Directory | Local temporary folder used to store intermediary AST analysis and sanitized traffic data during schema inference. |
Loading
A structured, multi-role agent collaboration framework that orchestrates Gitea issues and PRs to streamline autonomous team workflows.

An automated platform intelligence tool that scans, groups, and summarizes high-performing Kuaishou AI content into localized dark-themed HTML trend reports.

An advanced AI-powered legal analysis tool designed to extract, classify, and score risks within dense contract documents across Chinese and English languages.

A smart AI agent skill that fetches BTCvision monthly funding progress to generate contextual, friendly donation reminders via Lightning or Zaprite.

An AI-powered local personal finance assistant that processes conversational text or voice to categorize expenses, provide monthly analytics, and send budget overrun warnings in 5 seconds.

A standardized OKR and weekly reporting framework designed specifically for the high-velocity execution cycles of autonomous AI agents.








































