mock-server

Generate and manage mock REST and GraphQL API servers for development and testing.

27|4|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/CuriousLearner/devkit --skill mock-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock-server
Source: https://github.com/CuriousLearner/devkit/tree/main/skills/mock-server
Command: npx skills add https://github.com/CuriousLearner/devkit --skill mock-server

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to create and manage mock API servers, allowing for frontend development and testing without relying on live backend services.

Core Features & Use Cases

  • API Simulation: Mock RESTful and GraphQL APIs with custom responses, delays, and error conditions.
  • Development & Testing: Facilitates independent frontend development and robust testing by providing predictable API behavior.
  • Use Case: A frontend team needs to build a user dashboard. They can use this Skill to mock the /api/users and /api/posts endpoints, allowing them to develop and test the UI even before the backend is ready.

Quick Start

Create a mock API server using an OpenAPI specification file named 'openapi.yaml'.

Frequently Asked Questions about mock-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I mock REST and GraphQL APIs for frontend development?

Generate a mock server to simulate custom responses, delays, and error conditions for REST and GraphQL APIs, enabling isolated frontend development without relying on live backend services.

What is the best way to simulate API errors and network delays during testing?

The best way to simulate API errors and network delays is to configure a mock API server with conditional logic that returns predictable response scenarios, facilitating robust and comprehensive API testing.

Can I generate a mock server directly from an OpenAPI specification?

Yes, you can generate and manage a mock API server directly from an OpenAPI specification file, providing predictable API behavior for testing environments and independent frontend development.

Does this mock server approach work with tools like MSW, Prism, and WireMock?

Yes, this approach supports integrating with API simulation tools like JSON Server, MSW, Prism, WireMock, and custom Express servers to mock endpoints and simulate various response scenarios.

How do I test a user dashboard UI before the backend API is ready?

To test a user dashboard UI before the backend is ready, mock the required endpoints like /api/users and /api/posts using a simulated API server to develop and test the UI independently.