Logo van Test Like A User

Test Like A User

Organisatie
off-grid-ai
test-like-a-user

Hold every test to one bar, real integration tests that walk the whole user journey and prove the intended end state, with fakes only at boundaries you can't control. Use when writing, fixing, reviewing or auditing tests, or when the user says "write a test", "add tests for this", "are these tests any good", "test this properly", "audit the tests" or "review this test".

Overzicht

Uitgeveroff-grid-ai
Repositoryskills
Skillnaamtest-like-a-user
Sterren
189
Forks
23
Meegeleverde bestanden
1
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.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door off-grid-ai op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Test Like A User 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/off-grid-ai/skills/tree/main/testing/skills/test-like-a-user
  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/off-grid-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/testing/skills/test-like-a-user .claude/skills/test-like-a-user
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Test Like A User 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 Test Like A User automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Test Like A User 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.

Test like a user: no mocks of your own code

This standard works for web apps, services, mobile apps and desktop apps. "The project's own code" means everything in the repo you are testing: its source folders, services, stores, hooks, components, screens, navigators, parsers and registries. Find those folders first (for example src/, app/, lib/, packages/*).

The contract

  • Aim for the strongest faithful proof of product behaviour, not the fastest green test or the shortest path to an answer. Exercise the broadest user journey needed to expose real failures. Never trade coverage quality, maintainability or UI/UX confidence for speed.
  • Do not bless a half-done migration, duplicated navigation, leftover compatibility clutter, or a journey that technically works but confuses people. Test the intended end state.
  • Do not mock the project's own code. Keep its services, stores, hooks, components, screens, navigators, parsers and registries real.
  • Prove product behaviour with an integration test: use the real router or navigation stack, reach the state through real user actions, and run the real production path. On web, assert the URL, history and deep links. On mobile, mount the real screen and navigation stack and use real gestures.
  • Assert what the user can observe. Internal calls, mock calls and implementation details are not product outcomes.
  • For a replacement or a change to how things are organised, assert both sides: every needed item and action can still be found through the new structure, and the old or duplicate surface is gone. Redirects and source-text assertions alone do not prove a clear user experience.
  • Check changed UI by eye at the relevant wide and narrow sizes, including expanded and collapsed, loading, empty and error, keyboard and focus, and the absence of duplicate navigation. Screenshot checks add to behaviour assertions; they do not replace them. Capture only after loading and every animation have settled, then look at the actual pixels for blank or see-through content, clipping, overflow, cut-off text, unclear hierarchy and confusing layout. A saved screenshot, a DOM visibility assertion or a green test is not by itself a visual pass.
  • Fake only a boundary the test environment cannot control or reproduce faithfully, such as a native device API, a model runtime, a remote server, a full disk or running out of memory. Put the fake at that boundary and keep all of the project's logic above it real.
  • Do not use direct store setState to set up a precondition for an integration test.
  • Use unit tests for pure functions and narrow contracts. They do not replace the integration test for changed product behaviour.
  • When native code (for example Swift or Kotlin) owns behaviour that can be tested natively, add native tests (XCTest, JUnit or the platform's equivalent). Use a shared contract test when more than one platform builds the same capability.

Workflow

  1. State the behaviour the user can see and the failure being guarded against.
  2. Define the intended end state and name the old paths or surfaces that must disappear.
  3. Find the real screen, navigation path, production stack and outside boundary.
  4. Reuse an existing boundary fake, or add the smallest faithful fake at that boundary.
  5. Write the integration test through real actions, URLs and history where they apply, and visible assertions.
  6. For a bug, run the test against the broken code and confirm it fails for the reason you expect.
  7. Fix the production seam and remove the old path. Do not patch the test around a poor abstraction.
  8. Run the visual check, the focused test, related suites, and the project's lint, format and type checks. Run native tests when the change crosses a native boundary.
  9. Remove leaked timers, subscriptions, processes and pending promises. A suite that needs a force-exit flag to hide unfinished work is not clean.

Review verdict

Fail the review when a test mocks the project's own code, makes up state instead of using the product, asserts only calls or source text, skips a known bug, keeps a duplicate or replaced journey, leaves out visual or navigation proof for changed UI, or passes while async work outlives teardown. Name the exact file and the real integration test that should replace it.

For the deeper method (fakes vs stubs vs mocks, observing the transition, debugging a test), see reference/test-doctrine.md in this skill. The companion skill bug-trap is the short checklist.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Test Like A User?

Hold every test to one bar, real integration tests that walk the whole user journey and prove the intended end state, with fakes only at boundaries you can't control. Use when writing, fixing, reviewing or auditing tests, or when the user says "write a test", "add tests for this", "are these tests any good", "test this properly", "audit the tests" or "review this test".

Waarom Test Like A User gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Test Like A User 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 Test Like A User in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/off-grid-ai/skills/tree/main/testing/skills/test-like-a-user. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Test Like A User 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 Test Like A User gebruiken?

Zoveel als je wilt. Je kunt Test Like A User 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 Test Like A User gratis?

Ja. Deze skill is door off-grid-ai 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 👇