Instantly run a local mock HTTP server from any OpenAPI 3.x or Swagger 2.0 specification file or URL without writing backend code.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install phy-openapi-mock-server
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 phy-openapi-mock-server 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 Mock Server is a robust development utility designed to instantly turn any OpenAPI 3.x or Swagger 2.0 specification into a fully operational local HTTP server. By pointing the tool to your YAML or JSON schema, it starts a local mock server that outputs schema-compliant mock data on the fly. This eliminates backend dependency bottlenecks, allowing software teams to adopt contract-first workflows where backend and frontend construction can happen concurrently.
Using this setup within the Openclaw Skills ecosystem ensures development teams have reliable, offline, and automated mock APIs running locally. Developers get mock endpoints that validate payloads and return customizable responses without having to write mock-routing logic or deploy containerized stubs.
First, ensure you have Node.js 16+ or Docker installed on your host system. To execute the mock server using this skill, run one of the following commands in your CLI:
# Standard mock server execution from a local file
/openapi-mock openapi.yaml
# Run the mock server from a remote URL spec
/openapi-mock https://petstore.swagger.io/v2/swagger.json
# Run the mock server on a custom port
/openapi-mock openapi.yaml --port 4015
# Run with strict validation (returns 422 for non-compliant payloads)
/openapi-mock openapi.yaml --validate
If Node.js is unavailable, use the alternative Docker command in your shell:
docker run --rm -p 4010:4010 \\
-v \"$(pwd):/tmp/spec\" \\
stoplight/prism:latest \\
mock /tmp/spec/openapi.yaml -h 0.0.0.0
This skill organizes and operates mock server workflows using the following system components:
| Attribute | Description |
|---|---|
| Input Spec File | Local path to .yaml, .yml, or .json file, or a direct HTTP/S URL to a schema file |
| Port Option | Numerical parameter (default 4010) designating the host address for HTTP traffic |
| Validation Flag | --validate argument maps API constraints to incoming HTTP requests, rejecting invalid calls with a 422 error |
| Dynamic Flag | --dynamic argument instructs the server to output random matching schema values rather than static defaults |
| Endpoint Report | Markdown breakdown highlighting paths, methods, summaries, and expected HTTP status codes |
404 Not Found or 500 Internal Server Error) by supplying the Prefer: code=XXX header in client requests.Prefer: dynamic=true header during isolated curl queries to bypass static example definitions and trigger schema-based value generation.Authorization: Bearer fake-token.Loading
A local, zero-dependency type-coverage enforcer and TypeScript strictness auditor that eliminates implicit and explicit any leaks.

A zero-API, local bundle size auditor that parses build artifacts to enforce size budgets and eliminate dependency bloat.

A local static analyzer for GraphQL SDL or introspection JSON that catches performance vulnerabilities, security flaws, and architectural risks.

A zero-API static vulnerability scanner that analyzes codebases across multiple programming languages to detect and repair ReDoS and regex quality defects.

A local environment variable analysis skill that resolves your framework's complex .env file override hierarchy, flags configuration risks, and cross-references usage against your source code.

A local, agent-native data contract enforcer that prevents silent pipeline failures by validating schemas and detecting drift between pipeline stages.








































