seeded-bug
Skill1 starsChanged 5 days agoApache-2.0View on GitHub
Use when adding an assertion kind, changing the verifier, or proving flowctl catches a class of defect. Adds a switchable defect to fixture-app and an accuracy test showing a correct run reports it as failed.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
If it is still caught without the assertion, another assertion catches it: pick a sharper defect.
- Very specific: line 24
Run bun run test:accuracy: the clean app passes, every mode fails.
- Distinctive: line 26
Never weaken, rename or delete an existing mode to make a test pass.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Add a seeded bug
flowctl's "accurate" goal is measured here: every assertion kind should catch at least one defect that no
other assertion catches, and the clean app must pass. Every kind is covered today, including url (redirectWrong) and value
(formNotReset); the coverage list is in packages/fixture-app/AGENTS.md.
- Name the defect a real app could ship (wrong status, nothing saved, wrong record changed, toast on failure, missing validation, visible to the wrong role…). Pick the assertion that should be the only thing catching it.
- Add the mode to
BUG_MODESinpackages/fixture-app/src/server.tswith a JSDoc@remarksline. Implement it as a branch onbug === '<mode>'(server) orwindow.BUG(page script inpages.ts). - Cover it with a flow. Extend a sample flow in
packages/fixture-app/flows/or add one (tagfixture). The assertion is written from the intended behaviour, never from what the buggy app shows. - Map it in
CAUGHT_BY(packages/core/test/seeded-bugs.accuracy.test.ts), or in the exploration accuracy test if it is about exploration. - Prove the assertion is load-bearing: temporarily delete that one assertion and run
bun run test:accuracy— the new mode must now be reportedpassed(missed). Restore it; it must befailed. If it is still caught without the assertion, another assertion catches it: pick a sharper defect. - Run
bun run test:accuracy: the clean app passes, every mode fails. Add the row topackages/fixture-app/README.md.
Never weaken, rename or delete an existing mode to make a test pass.
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.

