capture-api-response-test-fixture

Capture provider API responses into deterministic test fixtures for parsing.

27|16|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/mandor1428/TEAM-LLM --skill capture-api-response-test-fixture-mandor1428
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capture-api-response-test-fixture
Source: https://github.com/mandor1428/TEAM-LLM/tree/main/skills/capture-api-response-test-fixture
Command: npx skills add https://github.com/mandor1428/TEAM-LLM --skill capture-api-response-test-fixture-mandor1428

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Capturing real API responses from providers prevents brittle tests caused by mismatched or guessed outputs, making response parsing and integration tests reliable.

Core Features & Use Cases

  • Provider response fixtures: Store the true provider outputs for parsing tests so test expectations match reality.
  • Generate vs. stream capture: Capture both single-shot responses and streamed raw chunks with the required options (e.g., enabling raw chunk capture).
  • Naming and helper alignment: Follow existing fixture naming conventions and test helper setup patterns used by the project’s response tests.

Quick Start

Use your AI to run the provided generateText or streamText capture script, then copy the produced raw output into a new fixture file under the skill’s fixtures folder.

Frequently Asked Questions about capture-api-response-test-fixture

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

FAQPage Schema
How do I capture real API responses for stable test fixtures?

You can capture real API responses by logging or saving raw provider outputs from generateText or streamText workflows, then storing these results under a __fixtures__ directory to stabilize response parsing tests.

Why do my response parsing tests fail with mismatched provider outputs?

Response parsing tests fail when expected outputs are guessed rather than captured from real provider API responses, creating brittle tests that mismatch actual provider behavior during generateText and streamText operations.

Can I capture streamed raw chunks for streamText test fixtures?

Yes, you can capture streamed raw chunks for streamText test fixtures by enabling raw chunk capture options during the provider response capture process and saving those chunks into the __fixtures__ directory.

What is the best way to store provider response fixtures for parsing tests?

The best way to store provider response fixtures is to save captured raw outputs into a __fixtures__ directory while aligning fixture naming conventions and test helper setup patterns with existing project tests.

Do I need to align fixture naming conventions with existing test helpers?

Yes, you need to align fixture naming conventions and test helper setup patterns with your project's existing response tests so that captured provider outputs integrate seamlessly into the current parsing test workflows.

When should I not use captured provider responses for test fixtures?

You should avoid using captured provider responses for test fixtures when your response parsing tests require dynamic or non-deterministic provider behavior, as saved raw outputs are static and meant to match specific generateText or streamText results.