opal: Skill for Claude Code

.claude/skills/live-tests/SKILL.md

live-tests is a skill for Claude Code from matteing/opal. It costs 44 tokens per session (1,468 once invoked), scanned A, original, MIT.

A skill for writing integration tests that call the real GitHub Copilot API and save its responses as reusable test fixtures.

In plain words
What is it for?
It helps test new agent behavior, provider integrations, tool calls, multi-turn conversations, and error handling against real API responses.
Why use it?
It provides recorded responses for repeatable tests, so most test runs do not need to call the live service.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is matteing/opal's own configuration. It tells Claude Code how to work on opal itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opal configures →

Reuse

Borrowing it

Nothing to install: this file belongs to matteing/opal. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/matteing/opal/main/.claude/skills/live-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/matteing/opal

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for live-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/matteing/opal/live-tests/github.svg)](https://agentmods.dev/skills/matteing/opal/live-tests)
Your own site
<a href="https://agentmods.dev/skills/matteing/opal/live-tests"><img src="https://agentmods.dev/badge/skills/matteing/opal/live-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for live-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/matteing/opal/live-tests"><img src="https://agentmods.dev/badge/skills/matteing/opal/live-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01468
Opus 5.5 $0.00018 $0.00587
Sonnet 5.5 $0.00009 $0.00294
Haiku 4.5 $0.00004 $0.00147

Measured 2mo ago against content hash e2d6d98e58b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

live-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/live-tests/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Live Test & Fixture Recording Skill

You write live integration tests that exercise the real GitHub Copilot API and capture responses as JSON fixtures for deterministic replay. This is the project's VCR-like system for ensuring tests stay grounded in real API behavior.

Architecture overview

Live test (mix test --include live --include save_fixtures)
  │
  ├─ RecordingProvider  ← wraps real Copilot provider, captures SSE events
  │     │
  │     └─ persistent_term storage ← events buffered here during stream
  │
  └─ FixtureHelper.save_fixture/2  ← writes events to JSON file
        │
        └─ test/support/fixtures/<name>.json

Fixture-based test (mix test)
  │
  ├─ FixtureProvider  ← reads fixture JSON, replays events via Req.Response.Async
  │     │
  │     └─ FixtureHelper.build_fixture_response/1 ← spawns process to send SSE events
  │
  └─ Assertions on agent behavior, events, tool calls, etc.

When to act

  • Adding a new agent behavior that needs a new fixture (e.g., new tool call pattern, multi-turn conversation, error handling).
  • Adding or changing provider integration logic.
  • When the user asks to "record a fixture", "add a live test", or "capture API responses".
  • When an existing fixture is stale and needs re-recording.

Writing a live test

Live tests go in test/opal/live_test.exs. They require @moduletag :live (excluded by default) and use the RecordingProvider to capture real SSE events.

Template

describe "live API — <scenario description>" do
  @tag :save_fixtures
  @tag timeout: 30_000
  test "records <what this captures>" do
    RecordingProvider.start_recording()

    {:ok, pid} =
      Opal.start_session(%{
        model: {:copilot, "claude-sonnet-4"},
        system_prompt: "<constrained prompt that produces deterministic output>",
        tools: [<tool modules if needed>],
        working_dir: System.tmp_dir!(),
        provider: RecordingProvider
      })

    {:ok, response} = Opal.prompt_sync(pid, "<user message>", 25_000)
    Opal.stop_session(pid)

    events = RecordingProvider.stop_recording()
    assert length(events) > 0

    # Save as a fixture for replay
    path = FixtureHelper.save_fixture("<descriptive_name>.json", events)
    assert File.exists?(path)

    # Assertions on the live response
    assert is_binary(response)
    assert String.contains?(response, "<expected content>")
  end
end

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 168 lines · 44 tokens per session scan A e2d6d98e58b1

Subscribe to this mod's changes

live-tests is a skill published in the GitHub repository matteing/opal (62 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 1,468 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

live-tests compared with skills from other repositories

live-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
live-testsmatteing/opalSkill622mo agoMITA44Claude Code
browser-qadamianvtran/local-operatorSkill229yesterdayMITA45Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill11kyesterdayApache-2.0A100Claude Code, Codex
playwright-cliVoltAgent/voltagentSkill11k2d agoMITA52Claude Code
building-agentsericrisco/rsc-harnessSkill5032d agoMITA85Claude Code, Codex
agent-evalericrisco/rsc-harnessSkill5032d agoMITA79Claude Code, Codex
emulate-seedyonatangross/orchestkitSkill299yesterdayMITA47Claude Code