# Mock API server (/api--mock-api)

/api--mock-api is a Claude Code skill in the Code section. Creates a mock API server with realistic data, error responses and latency, so you can build or test a frontend without the real backend.

- Web version: https://skills.sgomez.dev/en/s/api--mock-api
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/api/mock-api.md
- Updated 26 Mar 2026

## How to ask for it

- `/api--mock-api spin up a mock API while the backend isn't ready yet`
- `/api--mock-api I need fake data to build out the frontend`
- `/api--mock-api mock the payments API for testing`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install api-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: —
- Network: No
- Destructive: No

## Author's description

Create a mock API server for frontend development or testing

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
