sanity-check
Skill1 starsChanged 12 days agoMITView on GitHub
Before building on assumptions, validates them first. Activates when making claims about how code works, what exists, or why something happens. Prevents assumption cascades where one wrong guess leads to a completely wrong solution.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- c-kick/hnl-agent-skillstheir own version, first seen Nov 21, 2026
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- rivet-dev/rivetkittheir own version, first seen Oct 9, 2026
- rivet-dev/agentostheir own version, first seen Oct 8, 2026
- chmouel/lazyworktreetheir own version, first seen Oct 8, 2026
- rivet-dev/agent-ostheir own version, first seen Oct 8, 2026
Used with
Projects with it also use launch-graphics, publish-registry and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
rivet-devSkilllaunch-graphics
Generate agentOS marketing/launch graphics (launch & social heroes, code-snippet cards) from the committed generators in docs-internal/graphics. Use when asked to make, update, or render an agentOS launch image, social image, "agentOS Apps" graphic, or technical code-snippet image.
Also in 3 projects that use this
rivet-devSkillpublish-registry
Publish @agentos-software/* registry packages from AgentOS. Use whenever the user asks to publish or release registry software/agent packages.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
- +1 more from rivet-dev
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- rivet-dev/agent-os★ 4.9ksame name
- rivet-dev/agentos★ 4.9ksame name
- rivet-dev/rivetkit★ 4.9ksame name
- chmouel/lazyworktree★ 317same name
- c-kick/hnl-agent-skills★ 57same name
- flurdy/agent-skills★ 10same name
- jonhill90/skills★ 8same name
- david-vrba/claude-power-skills★ 4same name
- baobab-tech/researcher-harness★ 1same name
- DrawdEA/dev-shortcuts★ 1same name
2 more not listed
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 repository16 other files it gives its agents.
- arch-reviewSkill
- debug-to-fixSkill
- global-config-guardSkill
- keep-it-simpleSkill
- lowtierSkill
- parallelizeSkill
- pre-mortemSkill
- probe-before-batchSkill
- prove-itSkill
- scan-before-rmrfSkill
- skill-forgeSkill
- stay-in-laneSkill
- trace-itSkill
- vet-ai-patchesSkill
- you-sureSkill
- zero-inSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
10
Distinctive
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 36
Before proposing a solution, list what you're assuming:
- Distinctive: line 58
Stop if any key assumption is wrong: Don't patch - reassess. </verify>
- Very specific: line 66
Verify: find, grep, ls
- Distinctive: line 71
Verify: Read the actual code
- Distinctive: line 76
Verify: Reproduce, check logs, trace execution
- Distinctive: line 81
Verify: Check schema, check actual values
- Distinctive: line 103
When working on non-trivial problems:
- Distinctive: line 127
Verify existence before assuming something exists
- Distinctive: line 128
Read code before explaining what it does
- Distinctive: line 130
Stop and reassess when an assumption proves wrong
- Distinctive: line 166
No assumption cascade. Verified each step.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sanity Check
<purpose>
Claude confidently builds on assumptions that turn out to be wrong. "The auth
middleware probably checks X" becomes a 50-line solution for a problem that
doesn't exist. This skill forces verification of key assumptions before
building on them.
</purpose>When To Activate
<triggers>
- Using words like "probably", "likely", "I assume", "should be"
- Explaining how code works without reading it
- Diagnosing a bug without reproducing it
- Making claims about what exists or doesn't exist
- Building a solution based on inferred behavior
- User asks "why is X happening?" and you're about to guess
</triggers>Instructions
Identify Your Assumptions
Before proposing a solution, list what you're assuming:
## Assumptions
1. [The function X exists and does Y]
2. [The error is caused by Z]
3. [This file is imported by W]
4. [The config value is set to V]Verify Before Building
<verify>
For each assumption, verify it:| Assumption | Verification | Status |
| Function X does Y | Read the function | Verified / Wrong |
| Error caused by Z | Check error logs | Verified / Wrong |
| File imported by W | Grep for imports | Verified / Wrong |
Stop if any key assumption is wrong. Don't patch - reassess.
</verify>
Types of Assumptions
Existence assumptions:
- "There's probably a config file for this"
- "The API endpoint likely exists"
- Verify:
find,grep,ls
Behavior assumptions:
- "This function probably validates input"
- "The middleware likely checks auth"
- Verify: Read the actual code
Causation assumptions:
- "The error is probably from X"
- "This is likely failing because Y"
- Verify: Reproduce, check logs, trace execution
State assumptions:
- "The database probably has this column"
- "The env var is likely set"
- Verify: Check schema, check actual values
The Assumption Cascade
Wrong assumption: "Auth is handled by middleware"
↓
Build solution: "Just call the protected endpoint"
↓
Solution fails: "Auth not working"
↓
Wrong diagnosis: "Middleware must be misconfigured"
↓
Deeper hole: "Let me fix the middleware..."
↓
Reality: Auth was in the route handler all alongBreak the cascade early. Verify before building.
Output Format
When working on non-trivial problems:
## Sanity Check
**Key assumptions:**
1. [assumption] → Verified by [how]
2. [assumption] → Verified by [how]
3. [assumption] → ⚠️ NOT verified, checking...
**Proceeding with:** [list verified assumptions]NEVER
- Say "probably" or "likely" without then verifying
- Diagnose bugs without reproducing or checking logs
- Build multi-step solutions on unverified assumptions
- Explain code behavior without reading the code
- Assume error messages are accurate (verify root cause)
ALWAYS
- List assumptions explicitly before building on them
- Verify existence before assuming something exists
- Read code before explaining what it does
- Reproduce issues before diagnosing them
- Stop and reassess when an assumption proves wrong
Example
User: "The user signup isn't sending confirmation emails"
Bad approach (assumption cascade):
"The email service probably isn't configured correctly. Let me check the SMTP settings... Actually, the email template might be wrong... Let me also check if the queue is processing..."
Good approach (sanity check):
## Sanity Check
**Assumptions to verify:**
1. Signup actually triggers email sending
2. Email sending code exists and is called
3. Email service is configured
4. No errors in logs
**Verifying #1:**
Reading signup handler... Found: `sendConfirmationEmail(user)` on line 45.
Verified: signup does call email function.
**Verifying #2:**
Reading sendConfirmationEmail... Found: it calls `emailService.send()`.
But wait - there's a `if (config.emailEnabled)` check on line 12.
**Verifying #3:**
Checking config... `emailEnabled: false` in development.
**Root cause found:** Emails disabled in config, not a bug.No assumption cascade. Verified each step. Found real cause.
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.

