test-data
Skill4 starsChanged 4 months agoMITView on GitHub
Builds the data tests run against — factories, fixtures, seed data, and anonymised production samples. Use this whenever the user is writing test setup, mentions fixtures or factories, has tests that break when unrelated data changes, needs realistic data for a demo or staging environment, or is about to copy production data somewhere. For writing the assertions themselves, use unit-testing.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- katalon-labs/true-skillstheir own version, first seen Jun 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- katalon-labs/true-skills★ 10same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Test data quietly determines how good a test suite is.
- Distinctive: line 55
Keep those separate and few — a suite where every test seeds a thousand rows is slow for no benefit.
- Distinctive: line 64
Never copy production data anywhere without anonymising it: Not to staging, not to a laptop, not "temporarily".
- Distinctive: line 77
Done when: no real personal data exists outside production.
- Distinctive: line 81
Test data and demo data are different jobs:
- Distinctive: line 88
Keep them separate. A seed script used as test setup is a shared fixture with extra steps.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test data
Test data quietly determines how good a test suite is. Data that is too clean produces tests that pass on inputs no real user generates. Data that is shared produces tests that fail depending on what ran first. Both problems are invisible until they cost a day.
Each test should build what it needs and care about nothing else.
1. Prefer factories to fixtures
A fixture is a fixed blob of data everything shares. A factory is a function that builds an object with sensible defaults and lets the test override only what it cares about.
Factories win because the test states its own preconditions:
user = make_user(plan="enterprise") # this test cares about the plan, nothing elseThe reader immediately knows the plan is the relevant fact. With a shared fixture they must go read the fixture, and they must hope no other test has modified it.
- Defaults must produce a valid object, so a test overriding one field gets a working one
- Every value unique by default: emails, IDs, names, so parallel tests cannot collide
- Build the associations a valid object requires, and no more
Done when: a test's setup shows only what that test depends on.
2. Make the data realistic where realism matters
Clean data hides bugs. Deliberately include, at least somewhere in the suite:
- Unicode, emoji, and right-to-left text in any user-supplied string
- Names that break assumptions: one word, apostrophes, hyphens, very long, non-Latin
- Empty and boundary values: empty string, zero, negative, maximum length
- Dates across boundaries: timezone edges, DST transitions, leap days, year ends
- Numbers that expose float problems: money in particular
"Test User" and "foo@bar.com" everywhere is how encoding and validation bugs reach
production. This is a genuinely high-yield change to make.
Done when: the suite contains data that would break naive string and date handling.
3. Keep volume separate from correctness
Most tests need two or three rows. A few need thousands, to catch pagination, N+1 queries, and accidental O(n²).
Keep those separate and few — a suite where every test seeds a thousand rows is slow for no benefit. Generate volume programmatically rather than committing large files.
Done when: volume exists where it is needed and nowhere else.
4. Handle production data carefully or not at all
Production data is the most realistic source and the biggest liability.
- Never copy production data anywhere without anonymising it. Not to staging, not to a laptop, not "temporarily". This is the rule with no exceptions — it is a data breach that happens to be self-inflicted.
- Anonymise structurally, not by masking. Replacing names but keeping addresses, birthdates, and transaction histories still identifies people. Regenerate the identifying fields; do not obscure them.
- Preserve the shape, not the content: distributions, cardinality, null rates, the long-tail weirdness. That is what makes production data valuable.
- Subset it. A representative slice beats a full copy for both privacy and speed.
Often the better answer is a generator tuned to match production's shape, with no real data involved at all.
Done when: no real personal data exists outside production.
5. Seed environments differently from tests
Test data and demo data are different jobs:
- Test data: minimal, built per test, thrown away
- Seed data: a coherent, plausible world for a developer or a demo. Consistent enough to click around in
- Migration data: deliberately messy, for testing that migrations survive real history
Keep them separate. A seed script used as test setup is a shared fixture with extra steps.
Done when: each purpose has its own mechanism.
Report
State how data is built, what realism the suite deliberately includes, and — if production data was involved — exactly what anonymisation was applied and who verified it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

