Logo di Fixtures From Reality

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).

Panoramica

Pubblicato darandommonicle
Repositoryclaude-skills
Nome della skillfixtures-from-reality
Stelle
27
Fork
3
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da randommonicle su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Fixtures From Reality in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/randommonicle/claude-skills/tree/main/fixtures-from-reality
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Fixtures From Reality in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Fixtures From Reality non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Fixtures From Reality non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.)

Domande frequenti

Cosa fa la skill IA 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 resp...

Perché usare Fixtures From Reality su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Fixtures From Reality è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Fixtures From Reality in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/randommonicle/claude-skills/tree/main/fixtures-from-reality. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Fixtures From Reality?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Fixtures From Reality?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Fixtures From Reality: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Fixtures From Reality è gratuita?

Sì. È pubblicata su GitHub da randommonicle con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇