live-tests

Record GitHub Copilot API SSE events as replayable JSON fixtures.

56|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/matteing/opal --skill live-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: live-tests
Source: https://github.com/matteing/opal/tree/main/.claude/skills/live-tests
Command: npx skills add https://github.com/matteing/opal --skill live-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a VCR-like workflow for integration tests by recording real GitHub Copilot API SSE events and saving them as deterministic JSON fixtures to eliminate flaky, network-dependent tests.

Core Features & Use Cases

  • Live recording: Use RecordingProvider to wrap the real Copilot provider and buffer SSE events to persistent storage during a live test run.
  • Fixture generation: Convert buffered SSE events into JSON fixtures saved under test/support/fixtures for deterministic replay in CI and local development.
  • Fixture-based replay: Use FixtureProvider and FixtureHelper to replay recorded events, enabling fast, network-free integration tests that assert agent behavior and tool calls.
  • Guidance & rules: Enforces constrained system prompts for determinism, naming conventions for fixtures, and tagging of live tests to control recording and saving.

Quick Start

Record a live Copilot session that captures SSE events and save them as test/support/fixtures/responses_api_tool_call.json for replay.

Frequently Asked Questions about live-tests

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

FAQPage Schema
How do I record GitHub Copilot API SSE responses for integration tests?

Record GitHub Copilot API SSE responses by wrapping the real provider with a RecordingProvider to buffer events into persistent storage and save them as replayable JSON fixtures.

What is the best way to eliminate flaky network-dependent tests for Copilot API calls?

Eliminate flaky network-dependent tests by capturing live Copilot API SSE events into deterministic JSON fixtures and replaying them offline using a FixtureProvider.

Can I replay recorded SSE events in Elixir without hitting the network?

Replay recorded SSE events in Elixir without network calls by loading saved JSON fixtures from test/support/fixtures and asserting agent behavior through a FixtureProvider.

How do I set up deterministic integration tests for agent tool-interaction workflows?

Set up deterministic integration tests by recording live Copilot API responses with a RecordingProvider, saving them as JSON fixtures, and enforcing constrained system prompts during replay.

Does this VCR-like workflow for Copilot API calls require specific fixture naming conventions?

Yes, this VCR-like workflow enforces specific naming conventions for JSON fixtures stored under test/support/fixtures and requires tagging live tests to control recording and saving behavior.