aimock Test Fixtures

•
624
•

Generates and manages standardized test fixtures for mocking LLM APIs, tool calls, and multimedia endpoints with aimock.

The write-fixtures skill empowers developers to build robust testing environments for AI-driven applications using the aimock infrastructure. It provides specialized patterns for mocking complex AI interactions, including multi-turn agent loops, structured JSON outputs, and multimedia capabilities like image and video generation. By leveraging a 'first-match-wins' logic and supporting both stateful and stateless matching (via turnIndex and hasToolResult), this skill helps simulate realistic provider responses from OpenAI, Anthropic, Gemini, and more without incurring API costs or latency, all while running on a real HTTP server for cross-process compatibility.

Key Features

01Multi-provider LLM mocking for OpenAI, Anthropic, Gemini, and Bedrock
02Multimedia endpoint support for images, speech-to-text, and video generation
03Sequential response handling for complex unit testing scenarios
04Stateless multi-turn conversation matching using turnIndex and tool results
05Deterministic embedding generation and vector DB mocking
06624 GitHub stars

Use Cases

01Testing application resilience through error injection and chaos testing
02Simulating complex multi-step agentic workflows and tool call sequences
03Developing AI features offline using local mock servers and recorded fixtures