write-fixtures

Create mock LLM responses and tool call sequences for @copilotkit/aimock testing.

685|46|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/CopilotKit/aimock --skill write-fixtures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-fixtures
Source: https://github.com/CopilotKit/aimock/tree/main/skills/write-fixtures
Command: npx skills add https://github.com/CopilotKit/aimock --skill write-fixtures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps users write test fixtures for @copilotkit/aimock, enabling the creation of mock LLM responses, tool call sequences, and more for testing AI applications.

Core Features & Use Cases

  • Mock LLM Responses: Simulate responses from language models for testing.
  • Tool Call Sequences: Create sequences of tool calls for testing complex workflows.
  • Error Injection: Insert intentional errors into test data for chaos testing.
  • Multi-Turn Agent Loops: Handle multi-turn conversations between agents for testing.
  • Embeddings & Structured Output: Mock embeddings and structured data outputs for AI tools.

Quick Start

Use the write-fixtures skill to generate a mock response for the user message 'hello' with a placeholder content 'Hello there!'.

Frequently Asked Questions about write-fixtures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create mock data for language model testing?

Mock data for language model testing is created by defining test fixtures that simulate LLM responses, tool call sequences, and embeddings. This enables testing AI applications with @copilotkit/aimock without live API calls.

What is the best way to simulate multi-turn agent loops in AI testing?

Simulating multi-turn agent loops in AI testing requires building test fixtures that handle sequential conversations between agents. You define these multi-turn structures to validate complex conversational workflows.

Can I inject intentional errors into mock LLM responses for chaos testing?

Yes, you can inject intentional errors into mock LLM responses for chaos testing. The skill supports error injection into test data, allowing you to evaluate how your AI application handles unexpected failures.

Does @copilotkit/aimock support mocking embeddings and structured outputs?

@copilotkit/aimock supports mocking embeddings and structured outputs for AI tools. You can create test fixtures that generate mock embeddings and structured data to verify compatibility with various AI tools.

How do I test complex tool call sequences without connecting to a live language model?

To test complex tool call sequences without a live language model, you create mock data fixtures that define the exact tool call sequences. This allows you to test complex workflows locally and deterministically.