Logo van Factory Tests

Factory Tests

Community
MikeFishbeinAtherial
factory-tests

Fase 3 van de Software Factory én een zelfstandige skill: zet taken, functies of een complete component om in acceptatiecriteria en tests die BEWIJZEN dat het werk klopt. Zo kan een programmeerlus zichzelf controleren in plaats van jou te vragen erop te vertrouwen. Werkt met de formule gedrag + bewijs, vier testniveaus en verplichte foutscenario's. Geschikt voor een PLAN.md van de Software Factory, één taak of een willekeurige functiebeschrijving. Triggers: "define tests", "acceptance criteria", "how do I know it works", "factory tests".

Add to TypingMind

Overzicht

UitgeverMikeFishbeinAtherial
Repositoryinfinite-headcount
Skillnaamfactory-tests
Sterren
50
Forks
5
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door MikeFishbeinAtherial op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Factory Tests in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/MikeFishbeinAtherial/infinite-headcount/tree/main/factory-tests
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MikeFishbeinAtherial/infinite-headcount.git /tmp/infinite-headcount
mkdir -p .claude/skills
cp -r /tmp/infinite-headcount/factory-tests .claude/skills/factory-tests
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Factory Tests in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Factory Tests automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Factory Tests niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Factory Tests

The factory's one rule: if you can't check it by running something, it isn't done — it's a hope. This skill turns "build X" into "build X, and here is the command and the observable result that proves X works," so an unattended coding loop can grade itself honestly all night.

Three ways in:

  • Factory mode (default via /factory): read factory/PLAN.md, fill every task's acceptance criteria: _pending factory-tests_ hole, add a component-level contract at the top.
  • Single task/feature: user describes one thing ("the login form", "task B3") → produce criteria + tests for just that.
  • Whole component/app: produce the component-level contract — the 15-30 assertions that define done for the entire build.

The formula: behavior + evidence

Every acceptance criterion is one sentence with three parts — the setup, the action, the observable result:

Given <input/state>, when , then .

  • Bad: "Handles Instagram URLs." "Login works." "Handles errors gracefully."
  • Good: "Given a public Instagram reel URL, when the CLI runs, then it exits successfully and the report folder contains report.md and a video file."
  • Good: "Given a wrong password, when the user submits the login form, then they see 'wrong email or password' and are NOT taken to the dashboard."

If a criterion doesn't name the action and the observable, a verifier will rubber-stamp it. Rewrite until it does.

For non-technical users: criteria are written in plain language first — you should be able to read every criterion and picture yourself checking it by hand. The test code that automates the check is the loop's job, not yours.

The four test tiers (organize by cost + trustworthiness)

Tag every criterion with a tier. The tier decides when it runs during the overnight loop — this line goes verbatim into the handoff:

TierWhatWhen the loop runs itExample
1 — Offline (free, always trustworthy)Pure logic: parsers, calculators, formatters, validation. Golden tests (known input → exact expected output, saved to a file). All error paths.Every pass."Given the URL youtu.be/abc, the router returns source=youtube, id=abc."
2 — Live, gated (costs pennies or minutes)Your code against real external services, switched on by an env var (e.g. RUN_LIVE=1). Fixtures you control — your own uploads, your own test account. Never random public URLs.End of each stage + once before final sign-off."Given the 5-second fixture video, when transcription runs live, then the output is schema-valid with timestamps inside the video's duration."
3 — End-to-end smoke (cheap, catches wiring)One run of the real thing: CLI on a fixture file, one API round-trip, one page load + action in a real browser.Every pass if offline; stage ends if it needs live services."When the CLI runs on fixture.mp4, then the report folder appears with all expected files."
4 — Canary (tests the world, not your code)Is the external dependency itself still alive and unchanged?Never blocks the loop. Failure = log it, flag it, move on. An agent "fixing" your working code at 2am because some platform changed something will wreck the codebase."yt-dlp can still download from YouTube today."

Error paths are not optional

An unattended loop lives in the error paths — wrong input, dead URL, empty file, timeout, someone clicking the wrong button. For every task, write at least one criterion for the most likely failure, with the exact expected behavior ("shows message X", "exits with code 2", "creates nothing"). A contract that only describes the happy path will pass review and then die on first contact with a real user — you.

Testing AI/LLM output (when the build calls a model)

Exact-match tests don't work on model output. Assert properties instead: the output matches the expected schema, values are in legal ranges (timestamps inside the video, prices non-negative), required parts are non-empty. For quality ("is this summary good?"), write a short rubric — 2-4 axes, a named good example, a 0-1 threshold — and have a fresh agent grade against it. Properties gate correctness; the rubric gates taste.

Component-level contract

Above the per-task criteria sits the whole-build contract: 15-30 assertions that define done for everything (fewer gets rubber-stamped). Sources: the brief's "Done looks like" section, every task's criteria rolled up, the error paths, and 2-3 assertions nothing else covers (performance floor, data never lost on refresh, works in the browser the user actually uses).

Output

Factory mode edits factory/PLAN.md in place:

markdown
### A1. <task title>
- ...
- acceptance criteria:
  - [tier 1] Given ..., when ..., then ...
  - [tier 1, error] Given ..., when ..., then ...
  - [tier 3] Given ..., when ..., then ...
- test notes: <where tests live, fixtures needed, gate var if tier 2>

...and adds ## Contract (the component-level assertions) at the top of PLAN.md. Standalone mode outputs the same shapes to chat or the file the user names.

Two standing rules to embed wherever the criteria go:

  1. Every bug found later gets a criterion here first, then the fix. The contract grows to match reality.
  2. The builder never grades its own work — criteria are checked by running them, and final judgment belongs to a fresh reviewer (factory-review) that never saw the code being written.

Close out (factory mode)

Update factory/STATE.md → stage 4, next action "walkthrough + handoff with factory-handoff". If factory/STATE.md doesn't exist (standalone use), create it first with a minimal version of the schema described in factory/SKILL.md. Offer factory-explain — with plan and proof now written, this is the ideal moment for the user to see the whole build as a picture before it costs a night of compute.

Veelgestelde vragen

Wat doet de AI-skill Factory Tests?

Fase 3 van de Software Factory én een zelfstandige skill: zet taken, functies of een complete component om in acceptatiecriteria en tests die BEWIJZEN dat het werk klopt. Zo kan een programmeerlus zichzelf controleren in plaats van jou te vragen erop te vertrouwen. Werkt met de formule gedrag + bewijs, vier testniveaus en verplichte foutscenario's. Geschikt voor een PLAN.md van de Software Factory, één taak of een willekeurige functiebeschrijving. Triggers: "define tests", "acceptance criteria", "how do I know it works", "factory tests".

Waarom Factory Tests gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Factory Tests bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Factory Tests in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/MikeFishbeinAtherial/infinite-headcount/tree/main/factory-tests. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Factory Tests gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Factory Tests gebruiken?

Zoveel als je wilt. Je kunt Factory Tests gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Factory Tests gratis?

Ja. Deze skill is door MikeFishbeinAtherial op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇