← 返回 Skills 市场
93
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install mock-api-skill
功能描述
快速创建支持自定义路径、方法和响应的模拟 REST API,用于开发和测试环境。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mock-api-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/mock-api-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Mock Api Skill 是什么?
快速创建支持自定义路径、方法和响应的模拟 REST API,用于开发和测试环境。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。
如何安装 Mock Api Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mock-api-skill」即可一键安装,无需额外配置。
Mock Api Skill 是免费的吗?
是的,Mock Api Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Mock Api Skill 支持哪些平台?
Mock Api Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mock Api Skill?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。
推荐 Skills