Fixtures From Reality logo

Fixtures From Reality

Community
randommonicle
fixtures-from-reality

A test is only as true as what it feeds the code. Build fixtures from what the real dependency sent on the pinned version, not from its documentation; give a fake the service's failure behaviour (expiry, a lost answer after the effect, what it saves against a key) and its comparison rules; reach a ride's state by the path production takes; feed one half's real output to the other half; and name the runtime, engine or device each claim was proven on, with one run on the deploy one where they differ. Triggers when writing a fixture, fake, stub, test double or seed, recording a provider's response, setting up a ride or sandbox run, or trusting a green suite for code that runs on a different runtime, database engine or device than the tests. Does not fire on whether a check can go red at all (prove-it-can-fail) or on how tests touch shared data (safe-smokes).

Overview

Publisherrandommonicle
Repositoryclaude-skills
Skill namefixtures-from-reality
Stars
27
Forks
3
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by randommonicle on GitHub. Read the source before you install it.

Installation

Install the Fixtures From Reality AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/randommonicle/claude-skills/tree/main/fixtures-from-reality
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/randommonicle/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/fixtures-from-reality .claude/skills/fixtures-from-reality
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fixtures From Reality in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Fixtures From Reality on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Fixtures From Reality is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Fixtures from reality

A green suite proves the code against the world the tests describe. When that world was written from documentation, from what the consumer needed, or on a friendlier runtime, the suite passes and production does something else: a field the pinned API version never sends, a fake that never forgets a key, a test runtime that accepts an option the edge refuses, an emulator on last year's Android.

The rules

  1. Record, do not transcribe. Build a provider fixture from a response the sandbox or a real call returned on the version the account is pinned to. Where only documentation exists, cross-check one real response before code relies on a field, and prefer a fact your own rows hold over an optional provider field.
  2. A fake carries the failures. Before trusting a test built on a fake, list what the real service does on expiry, on a lost answer after the effect, on a repeat of a failed keyed call, and how it compares values (a timestamp in two text forms is one instant to Postgres and two strings to a fake). Make the fake do the same, or keep each test to the one case the fake models and say so.
  3. Reach the state the way production does. A ride's or test's setup uses the same keys, order and calls production takes to the state under test. A shortcut that lands somewhere similar tests something else.
  4. Feed the real output across the seam. Where one part renders or consumes another part's answer, at least one test passes the producer's real answer to the consumer, never only a fixture written to suit the consumer.
  5. Name the runtime of every claim. Note which runtime, database engine, browser or OS version each test ran on. Where it differs from the deploy target (Node and an edge runtime, an embedded SQLite and the hosted database, an emulator and the users' phones), run the new API choice or query shape once on the deploy one, or say the claim is unverified there.
  6. Assert what functional tests cannot see. A property no output shows (a query plan that ignores its cursor, a request count, a byte size) gets an assertion of its own.
  7. Do not pin a value a planned step must change. A test that asserts the placeholder a later process step replaces goes red at that step; accept both legitimate states and prove each.

Provenance

ICC L-063 (a Stripe field absent on the pinned API version; a fixture written from the documentation passed anyway), L-069 and L-070 (fakes more lenient than the service: a key never forgotten, timestamps compared as strings), L-079 (a ride's setup reached its state by a path production never takes), L-081 (two halves tested against their own fixtures, never each other's output), L-119 (Android 17 behaviour the Android 16 emulator never showed); AI domain L-095 (a query plan no functional test can see), L-139 and L-143 (the Node test runtime accepted what workerd and D1 refuse), L-140 (a test pinned a value a planned later step changes). docs/SKILL_PROPOSALS_2026-10-22.md, Tier 1 item 3.

Additions from the misses-log sweep (2026-11-01)

  • Test Windows process liveness and file replacement under the contention they actually meet. On Windows a held handle blocks a rename or delete, and a polling reader keeps a file open between reads, so a replace that passes against an idle file fails against a watched one. Build the fixture with the handle held and the reader polling, because that is the state the code runs in. (Rimagent 2026-10-02.)

Frequently asked questions

What does the Fixtures From Reality AI skill do?

A test is only as true as what it feeds the code. Build fixtures from what the real dependency sent on the pinned version, not from its documentation; give a fake the service's failure behaviour (expiry, a lost answer after the effect, what it saves against a key) and its comparison rules; reach a ride's state by the path production takes; feed one half's real output to the other half; and name the runtime, engine or device each claim was proven on, with one run on the deploy one where they differ. Triggers when writing a fixture, fake, stub, test double or seed, recording a provider's resp...

Why use Fixtures From Reality on TypingMind?

Because you install it once and use it with any model. Fixtures From Reality is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Fixtures From Reality in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/randommonicle/claude-skills/tree/main/fixtures-from-reality. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Fixtures From Reality?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Fixtures From Reality?

As many as you like. As long as a model supports skills, you can use Fixtures From Reality with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Fixtures From Reality AI skill free?

Yes. It is published on GitHub by randommonicle under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇