Skip to content
Back to skills

Api Mock Server

ASecurity

Generate and run mock API servers from OpenAPI specifications

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 2, 2026
ai-agentsjavascriptjavabashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill api-mock-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Mock Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Mock Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-api-mock-server-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-api-mock-server-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-mock-server
description: Generate and run mock API servers from OpenAPI specifications
allowed-tools:
  - Bash
  - Read
  - Write
  - Glob
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:software-architecture]
  skillAreas: [skill-area:service-mocking, skill-area:api-design]
  roles: [role:backend-engineer, role:qa-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:api-design]

---

# API Mock Server Skill

## Overview

Generates and runs mock API servers from OpenAPI specifications with dynamic response generation, request validation, and Prism/Mockoon integration.

## Capabilities

- Generate mock server from OpenAPI spec
- Dynamic response generation based on schemas
- Request validation against spec
- Prism and Mockoon integration
- Custom response scenarios
- Callback and webhook simulation
- Stateful mock behavior

## Target Processes

- api-design-specification
- microservices-decomposition

## Input Schema

```json
{
  "type": "object",
  "required": ["specPath"],
  "properties": {
    "specPath": {
      "type": "string",
      "description": "Path to OpenAPI specification"
    },
    "port": {
      "type": "number",
      "default": 4010
    },
    "engine": {
      "type": "string",
      "enum": ["prism", "mockoon", "custom"],
      "default": "prism"
    },
    "options": {
      "type": "object",
      "properties": {
        "dynamic": {
          "type": "boolean",
          "default": true,
          "description": "Generate dynamic responses"
        },
        "validateRequest": {
          "type": "boolean",
          "default": true
        },
        "cors": {
          "type": "boolean",
          "default": true
        },
        "scenarios": {
          "type": "array",
          "description": "Custom response scenarios"
        }
      }
    }
  }
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "serverUrl": {
      "type": "string"
    },
    "port": {
      "type": "number"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "method": { "type": "string" },
          "path": { "type": "string" }
        }
      }
    },
    "pid": {
      "type": "number",
      "description": "Process ID of running server"
    }
  }
}
```

## Usage Example

```javascript
{
  kind: 'skill',
  skill: {
    name: 'api-mock-server',
    context: {
      specPath: 'api/openapi.yaml',
      port: 4010,
      engine: 'prism',
      options: {
        dynamic: true,
        validateRequest: true
      }
    }
  }
}
```

Files in this skill

  • README.md368 B
  • SKILL.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.