Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sickn33 avatar

Api Testing Observability Api Mock

  • 442 installs
  • 44k repo stars
  • Updated July 27, 2026
  • sickn33/antigravity-awesome-skills

api-testing-observability-api-mock is a Claude skill playbook that builds scenario-driven FastAPI mock servers for developers who test HTTP clients and agents against stable APIs before production dependencies are availa

About

API Mocking Implementation Playbook is an agent skill that walks developers through building a comprehensive mock API server on FastAPI rather than hand-waving fixtures in tests. It centers on a MockAPIServer class with explicit setup for middleware, mock route definitions, dynamic endpoints, and scenario initialization so dependents—mobile apps, SaaS dashboards, or coding agents—can exercise contracts without hitting flaky third parties. The included patterns cover state management across requests, scenario managers for happy-path versus error cases, and response headers that make mocks observable in logs and traces. For teams shipping APIs or consuming external APIs, this skill reduces integration risk during Ship by making failure modes testable on demand. It pairs naturally with contract tests and observability work; it does not replace security review or load testing of the real service.

  • FastAPI-based MockAPIServer with middleware, dynamic routes, and scenario switching
  • StateManager and ScenarioManager patterns for reproducible mock behavior
  • HTTP middleware that tags responses with X-Mock-Server and active scenario headers
  • Playbook-style setup: load definitions, initialize scenarios, run with uvicorn
  • Supports async request handling for realistic API client and agent test flows

Api Testing Observability Api Mock by the numbers

  • 442 all-time installs (skills.sh)
  • +26 installs in the week ending Jun 1, 2026 (Skillselion tracking)
  • Ranked #632 of 2,184 Testing & QA skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill api-testing-observability-api-mock

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs442
repo stars44k
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorysickn33/antigravity-awesome-skills

How do you mock APIs with FastAPI for testing?

Stand up scenario-driven FastAPI mock servers so developers can test clients and agents against stable APIs before production dependencies exist.

Who is it for?

Developers writing API client tests or agent integrations who need scenario-driven FastAPI mocks before real backends exist.

Skip if: Production API implementation or observability instrumentation of live services.

When should I use this skill?

The user needs mock HTTP servers, scenario-based API stubs, or FastAPI test doubles for clients or agents.

What you get

Running FastAPI mock server with scenario routes, state management, and uvicorn-served test endpoints.

  • FastAPI mock server code
  • Scenario configuration
  • Test-ready HTTP endpoints

Files

SKILL.mdMarkdownGitHub ↗

API Mocking Framework

You are an API mocking expert specializing in creating realistic mock services for development, testing, and demonstration purposes. Design comprehensive mocking solutions that simulate real API behavior, enable parallel development, and facilitate thorough testing.

Use this skill when

  • Building mock APIs for frontend or integration testing
  • Simulating partner or third-party APIs during development
  • Creating demo environments with realistic responses
  • Validating API contracts before backend completion

Do not use this skill when

  • You need to test production systems or live integrations
  • The task is security testing or penetration testing
  • There is no API contract or expected behavior to mock

Safety

  • Avoid reusing production secrets or real customer data in mocks.
  • Make mock endpoints clearly labeled to prevent accidental use.

Context

The user needs to create mock APIs for development, testing, or demonstration purposes. Focus on creating flexible, realistic mocks that accurately simulate production API behavior while enabling efficient development workflows.

Requirements

$ARGUMENTS

Instructions

  • Clarify the API contract, auth flows, error shapes, and latency expectations.
  • Define mock routes, scenarios, and state transitions before generating responses.
  • Provide deterministic fixtures with optional randomness toggles.
  • Document how to run the mock server and how to switch scenarios.
  • If detailed implementation is requested, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for code samples, checklists, and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related skills

FAQ

What framework does api-testing-observability-api-mock use?

api-testing-observability-api-mock implements mock servers with FastAPI and uvicorn, using MockAPIServer plus StateManager and ScenarioManager for route and scenario control.

When should developers use this mock playbook?

api-testing-observability-api-mock fits pre-production testing when clients or agents need stable HTTP endpoints and scenario-driven responses before real backend services are deployed.

Is Api Testing Observability Api Mock safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Testing & QAtestingintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.