← Back to Skills Marketplace
93
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install mock-api-skill
Description
快速创建支持自定义路径、方法和响应的模拟 REST API,用于开发和测试环境。
Usage Guidance
This skill appears to be what it claims — a local mock API server. Before running: (1) inspect any JSON config you pass in (it will be read from disk); (2) avoid binding to 0.0.0.0 on untrusted networks — use --host 127.0.0.1 or firewall rules for local testing; (3) run it in an isolated environment (local VM or container) if you have security concerns; (4) be aware the mock /api/login endpoint returns a simulated token for testing only and is not a secure auth mechanism. If you plan to expose the server, ensure network access controls are applied.
Capability Analysis
Type: OpenClaw Skill
Name: mock-api-skill
Version: 1.0.0
The skill bundle provides a standard mock API server for development and testing purposes. The Python script (mock_api.py) implements a basic HTTP server using standard libraries to serve configurable JSON responses, supporting features like path parameters, CORS, and simulated latency. No evidence of malicious intent, data exfiltration, or unauthorized execution was found.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, and mock_api.py align: the code implements configurable endpoints, methods, delays, and example endpoints described in the README. There are no unrelated env vars, binaries, or capabilities requested.
Instruction Scope
SKILL.md only instructs running the included Python script and optionally providing a JSON config; the script reads that config file if supplied. One important operational note: the default host in the code is 0.0.0.0 (publicly reachable). That is coherent with the README but is a security consideration — for local testing prefer binding to 127.0.0.1 or restrict network access.
Install Mechanism
No install spec is provided (instruction-only with a bundled Python file). Nothing is downloaded or extracted from remote URLs; the runtime is the included Python script, so installation risk is low and transparent.
Credentials
The skill requires no environment variables or credentials and the code does not attempt to read secrets or other env configuration. The only file the script may read is a user-provided JSON config (as expected).
Persistence & Privilege
always:false and default invocation settings are used. The skill does not modify other skills or system-wide agent settings and does not request persistent privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mock-api-skill - After installation, invoke the skill by name or use
/mock-api-skill - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of Mock API Skill.
- Quickly create mock API endpoints for development and testing.
- Supports GET, POST, PUT, DELETE methods and custom status codes and response delays.
- Simulate JSON response data, with support for path and query parameters.
- Built-in endpoints for service status, echo, delay, and random data responses.
- Flexible configuration via command line and JSON config files.
Metadata
Frequently Asked Questions
What is Mock Api Skill?
快速创建支持自定义路径、方法和响应的模拟 REST API,用于开发和测试环境。 It is an AI Agent Skill for Claude Code / OpenClaw, with 93 downloads so far.
How do I install Mock Api Skill?
Run "/install mock-api-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Mock Api Skill free?
Yes, Mock Api Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Mock Api Skill support?
Mock Api Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mock Api Skill?
It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.0.
More Skills