falsify-spec
Skill6 starsChanged 3 months agoMITView on GitHub
Adversarially test a bounded SPEC.md for plausible wrong implementations that still pass its written acceptance criteria, then propose source-backed discriminating checks.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-miniSkill
- bug-captureSkill
- build-oneSkill
- ceremony-budgetSkill
- checklist-miniSkill
- constitution-liteSkill
- context-checkSkill
- diagnose-loopSkill
- eco-modeSkill
- grill-with-docs-liteSkill
- handoffSkill
- lean-modeSkill
- mini-specSkill
- operator-profileSkill
- scope-freezeSkill
- ship-miniSkill
- teach-backSkill
- test-miniSkill
- thin-planSkill
- tool-noise-guardSkill
- verify-contractSkill
- workspace-checkpointSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Use selectively when a spec is written but an ambiguous boundary, regression seam, data meaning, or potentially weak acceptance test could …
- Very specific: line 24
Do not activate merely because mini-spec ran or the skill is installed.
- Very specific: line 25
If a usable spec does not exist yet, write one with mini-spec first.
- Distinctive: line 39
Pick at most three high-consequence targets: Prefer criteria that could pass shallow tests while breaking the user's intended outcome, a …
- Very specific: line 58
If explicitly authorized, amend the existing spec.
- Distinctive: line 64
Use this compact shape; omit empty entries:
- Distinctive: line 86
Every proposed mandatory change is source-backed.
≈ “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
Falsify Spec
Purpose
Find the plausible wrong implementation that still passes the written spec. Pressure-test acceptance criteria before coding, not the code after it ships.
This is an optional adversarial pass between mini-spec and implementation.
It does not replace source grooming, the deterministic spec_gate.py auditability
check, test-mini, or post-implementation verify-contract.
When to use
Invoke as /falsify-spec or ask "What wrong implementation could pass this spec?"
Use selectively when a spec is written but an ambiguous boundary, regression
seam, data meaning, or potentially weak acceptance test could produce false
confidence. Skip when the slice is trivial and already unambiguous.
Do not activate merely because mini-spec ran or the skill is installed.
If a usable spec does not exist yet, write one with mini-spec first.
Inputs
- Current
SPEC.mdwith acceptance criteria, non-goals, invalid-if constraints, verification demo, and any declared authoritative references - Original user request and directly relevant tests, schemas, code, or fixtures
- Named compatibility seams and any known baseline behavior
Workflow
- Read authority narrowly. Inspect
SPEC.md, the original request, and only sources that govern the candidate boundary. Record discrepancies; source silence is not evidence of an intended requirement. - Pick at most three high-consequence targets. Prefer criteria that could pass shallow tests while breaking the user's intended outcome, a preserved behavior, or a named non-goal. Do not generate a generic test checklist.
- Construct a concrete counterexample. For each target, name a plausible implementation, an input or state, and its observable output. Explain which written acceptance criterion/test it passes and what intended behavior it would violate. If it cannot plausibly pass, discard it.
- Classify the basis. A counterexample is
SOURCE_BACKEDonly when the violated expectation has a locator in the request or a governing source. Otherwise label itHYPOTHESIS, not a proven defect or new requirement. - Find the smallest discriminator. Propose one precise acceptance-criterion delta and, when feasible, one focused negative/regression test or manual probe that rejects the counterfeit while allowing valid behavior. Keep original source semantics, scope ceilings, permissions, and existing tests intact.
- Resolve ownership correctly. For
SOURCE_BACKEDgaps, recommend updating the existingSPEC.mdand proof target before implementation. ForHYPOTHESISgaps that require a product choice, markDECISION_REQUIRED; do not silently turn them into acceptance criteria. - Stop. Report at most three counterexamples in a single compact response.
If explicitly authorized, amend the existing spec; otherwise propose the
exact delta for the operator to accept. Do not create
FALSIFICATION.md, a second contract, or a mandatory new workflow stage.
Outputs
Use this compact shape; omit empty entries:
SPEC FALSIFICATION
Verdict: FOUND | DECISION_REQUIRED | NONE_FOUND
Target: [criterion or referenced source]
Counterfeit: [specific input -> behavior that could pass the written check]
Violation: [what goes wrong and where the expectation is sourced]
Basis: SOURCE_BACKED [locator] | HYPOTHESIS [open decision]
Discriminator: [smallest test or observation rejecting the counterfeit]
Proposed SPEC delta: [one bounded change, or decision required]
Next: revise SPEC | ask owner | proceed to implementationFOUND means at least one source-backed loophole survived the current spec
and proof. DECISION_REQUIRED means a plausible loophole needs an owner choice
before it may become a contract. NONE_FOUND means this bounded search found
none; it does not prove the spec is complete.
Stop conditions
- Each retained counterexample could actually pass the written check.
- Every proposed mandatory change is source-backed; unresolved product choices remain explicit rather than silently resolved.
- A focused discriminator and next owner action are clear, or no plausible counterexample was found within the three-target budget.
Anti-patterns
- Inventing feature requirements or product behavior to make an attack dramatic.
- Claiming a speculative edge case is a proven spec defect.
- Rewriting authoritative references into a weaker duplicate spec.
- Asking for broad new tests unrelated to a specific counterfeit.
- Running code changes or post-implementation verification during this pass.
- Treating a
spec_gate.pyPASS as semantic correctness—or this pass as proof. - Requiring falsification on every small task or growing a separate artifact ledger.
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.

