← 返回 Skills 市场
sky-lv

Skylv Mock Server Generator

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
51
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install skylv-mock-server-generator
功能描述
Generate mock HTTP servers with custom endpoints, dynamic fake data, delay and error simulation, and OpenAPI import for API testing and development.
使用说明 (SKILL.md)

mock-server-generator

Create mock HTTP servers for API testing and development. Generate fake data, define endpoints, and simulate responses without a real backend.

Overview

A skill that helps developers create mock APIs quickly for testing frontend applications, prototyping, or decoupling microservices development.

Features

  • Quick Server Creation: Generate a mock server with a single command
  • Custom Endpoints: Define custom routes, methods, and response bodies
  • Dynamic Responses: Use templates to generate realistic fake data
  • Delay Simulation: Add latency to simulate real network conditions
  • Error Simulation: Easily simulate 4xx/5xx error responses
  • Data Persistence: Store and retrieve mock data across requests
  • OpenAPI Import: Generate mocks from OpenAPI/Swagger specifications

Commands

Start a Basic Mock Server

start mock server on port 3000

Define Custom Endpoints

add GET /api/users returning [{"id": 1, "name": "John"}]
add POST /api/posts with delay 500ms

Import from OpenAPI

generate mock from https://api.example.com/openapi.json

Use Cases

  • Frontend development without a backend
  • API testing and test data generation
  • Prototyping and demo environments
  • CI/CD pipeline testing
  • Microservice decoupling

Requirements

  • Node.js 18+
  • Optional: Docker for containerized deployment
安全使用建议
This appears safe as an instruction-only development helper. Before using it, decide where the server will run, keep it limited to localhost/test environments, import OpenAPI specs only from trusted sources, and avoid putting real secrets or personal data into persisted mock responses.
功能分析
Type: OpenClaw Skill Name: skylv-mock-server-generator Version: 1.0.0 The skill bundle contains only metadata and documentation for a mock server generator tool. The features described in SKILL.md, such as defining endpoints and importing OpenAPI specifications from a URL, are standard for API development tools and show no signs of malicious intent or prompt injection.
能力评估
Purpose & Capability
The described capabilities—mock HTTP servers, custom endpoints, fake data, delays, error simulation, and OpenAPI import—fit the stated API testing and development purpose.
Instruction Scope
The SKILL.md contains user-facing examples and does not show prompt overrides, hidden instructions, or autonomous high-impact actions.
Install Mechanism
The skill is instruction-only with no install spec, while the documentation mentions Node.js and optional Docker. This is not suspicious by itself, but setup details are left to the user or agent.
Credentials
Starting a local mock server and importing an OpenAPI URL are expected for the purpose, but users should bind servers locally and use trusted test specifications.
Persistence & Privilege
Data persistence across requests is disclosed and purpose-aligned. No credentials, privileged paths, or account access are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skylv-mock-server-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skylv-mock-server-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of mock-server-generator skill. - Quickly create mock HTTP servers for API testing and development. - Define custom endpoints, methods, and response templates with fake data. - Simulate delays and error responses for testing real-world scenarios. - Persist mock data across requests for realistic interactions. - Import OpenAPI/Swagger specs to auto-generate mock servers. - Supports command-based configuration for rapid setup.
元数据
Slug skylv-mock-server-generator
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Skylv Mock Server Generator 是什么?

Generate mock HTTP servers with custom endpoints, dynamic fake data, delay and error simulation, and OpenAPI import for API testing and development. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。

如何安装 Skylv Mock Server Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-mock-server-generator」即可一键安装,无需额外配置。

Skylv Mock Server Generator 是免费的吗?

是的,Skylv Mock Server Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skylv Mock Server Generator 支持哪些平台?

Skylv Mock Server Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skylv Mock Server Generator?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。

💬 留言讨论