api-mock

Installation
SKILL.md

API Mock Server Generator

I'll help you generate API mock servers and stub services for testing and development, based on OpenAPI specifications or code analysis.

Mock Server Tools:

  • json-server: Simple REST API mocking
  • MSW (Mock Service Worker): Browser and Node.js request interception
  • Prism: OpenAPI-based mock server
  • WireMock: Advanced API simulation

Token Optimization

This skill uses mock generation-specific patterns to minimize token usage:

1. API Spec Detection Caching (600 token savings)

Pattern: Cache API specification locations and structure

  • Store spec analysis in .api-mock-cache (1 hour TTL)
  • Cache: spec location, endpoints, schemas, examples
  • Read cached spec on subsequent runs (50 tokens vs 650 tokens fresh)
Related skills
Installs
5
GitHub Stars
1
First Seen
Feb 21, 2026