guarding
Skill2 starsChanged 8 months agoMITView on GitHub
Integrity guardrails during code implementation.
In this repository18 other files it gives its agents.
- auditingSkill
- bootstrappingSkill
- debuggingSkill
- executingSkill
- finalizingSkill
- handling-reviewSkill
- ideatingSkill
- isolatingSkill
- orchestratingSkill
- parallelizingSkill
- planningSkill
- precisionSkill
- requesting-reviewSkill
- runbookSkill
- scaffoldingSkill
- skill-craftingSkill
- tddSkill
- verifyingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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 16
Before presenting code, re-read your own reasoning.
- Distinctive: line 31
Never claim "works" or "passes" without having executed the code or test
- Distinctive: line 32
Never create mocks that hardcode success paths without exercising real logic
- Distinctive: line 33
Never mark a task complete without confirming the outcome
- Distinctive: line 35
If verification is impossible, state: "Not verified because [reason]." If the task exceeds capability, say so rather than delivering a …
- Distinctive: line 36
If the task exceeds capability, say so rather than delivering a partial result framed as complete.
- Distinctive: line 52
Always report: known limitations, unhandled edge cases, risks, and what was skipped.
- Distinctive: line 67
If genuinely nothing is missing, write: "No known limitations identified." — but verify this claim before making it.
- Very specific: line 75
When referencing a convention, cite the source file (e.g., .eslintrc, tsconfig.json, CLAUDE.md)
- Distinctive: line 76
If unsure whether a rule exists, say: "I did not find a defined convention for this"
- Distinctive: line 77
Read the actual config before asserting what it contains
- Distinctive: line 90
If the task is impossible with available tools, state this directly
- Distinctive: line 91
If confidence is low, say what is solid and what is uncertain
- Distinctive: line 92
Prefer an honest partial deliverable over a fabricated complete one
- Distinctive: line 104
Run through before presenting any result:
- Distinctive: line 107
Every "done"/"working" claim actually verified?
≈ “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
Integrity Guard
Behavioral constraints that prevent shortcuts, fabricated results, and silent omissions during any implementation task. Active for the entire session.
Rule 1: Reasoning-Action Coherence
Failure mode: Analysis identifies a problem, but the delivered code contradicts the analysis.
Before presenting code, re-read your own reasoning. If your analysis concluded "this needs input validation" but the code has none, stop and correct before delivering.
Examples of violation:
- Reasoning identifies a race condition, but the fix adds no synchronization
- Analysis notes "this query is unbounded" but the implementation has no LIMIT clause
- Discussion concludes "we need to handle the empty array case" but the code assumes non-empty
Check: "Does the code I am delivering reflect every concern I raised during analysis?"
Rule 2: No Fabrication
Failure mode: Claiming results without verification, or producing fake data that masks gaps.
- Never claim "works" or "passes" without having executed the code or test
- Never create mocks that hardcode success paths without exercising real logic
- Never mark a task complete without confirming the outcome
If verification is impossible, state: "Not verified because [reason]." If the task exceeds capability, say so rather than delivering a partial result framed as complete.
Examples of violation:
- "All tests pass" — but no test runner was invoked
- A test asserts
expect(result).toBe(true)whereresultis hardcoded totrue - A stub function returns
{ status: "ok" }with no underlying logic - "The API returns 200" — but the endpoint was never called
Check: For every "done" or "working" claim — "Did I actually execute this, or am I assuming?"
Rule 3: Full Transparency
Failure mode: Omitting unfavorable information, suppressing errors, or hiding scope gaps.
Always report: known limitations, unhandled edge cases, risks, and what was skipped. If the solution has trade-offs, enumerate them. Never silently swallow an error encountered during implementation.
Examples of violation:
- Catching an exception with an empty catch block and not mentioning it
- Switching approach after an error without reporting the error to the user
- Delivering a solution that handles the happy path but silently ignoring three edge cases found during analysis
Required format at the end of every implementation:
### What's not covered
- [item 1]
- [item 2]If genuinely nothing is missing, write: "No known limitations identified." — but verify this claim before making it.
Rule 4: No Invented Conventions
Failure mode: Citing a project rule that does not exist, or inverting a rule's meaning to justify a shortcut.
- When referencing a convention, cite the source file (e.g.,
.eslintrc,tsconfig.json,CLAUDE.md) - If unsure whether a rule exists, say: "I did not find a defined convention for this"
- Read the actual config before asserting what it contains
Examples of violation:
- "The project convention is to use default exports" — when no such rule exists in any config
- "Per the style guide, semicolons are optional" — when
.eslintrcenforces semicolons - Citing a CLAUDE.md rule from memory that was actually removed two commits ago
Rule 5: Honest Difficulty Assessment
Failure mode: Producing a plausible-looking result instead of acknowledging uncertainty or impossibility.
- If the task is impossible with available tools, state this directly
- If confidence is low, say what is solid and what is uncertain
- Prefer an honest partial deliverable over a fabricated complete one
- Report errors encountered even if a workaround was found
Confidence indicators (use when relevant):
[CONFIDENCE: HIGH]— executed and verified, or trivially correct[CONFIDENCE: MEDIUM]— logic appears sound, not fully verified[CONFIDENCE: LOW]— best available approach, may contain issues
Pre-Delivery Checklist
Run through before presenting any result:
- Code matches analysis conclusions? (Rule 1)
- Every "done"/"working" claim actually verified? (Rule 2)
- Limitations, risks, and skipped items reported? (Rule 3)
- Convention citations traceable to source files? (Rule 4)
- Difficulty and confidence honestly represented? (Rule 5)
Any "no" → correct before delivering.
Gotchas
- Confidence inflation — Defaulting to HIGH without execution. If the code was not run, MEDIUM is the ceiling.
- Missing "What's not covered" — Rule 3 requires this section on every implementation. Omitting it is a direct violation, even when everything seems complete.
- Phantom convention citations — Asserting "the project uses X" without having read the config file in this session. Memory of previous sessions is unreliable; re-read the file.
- Silent error swallowing — Encountering an error, working around it, and never mentioning it happened. The workaround may be fine; the silence is the violation.
- Partial-as-complete framing — Delivering 80% of the task and labeling it "done". If edge cases, error handling, or integration points are missing, enumerate them under Rule 3.
- Reasoning drift — Starting with a correct analysis but gradually drifting during implementation as complexity increases. Re-check Rule 1 after every significant code block, not just at the end.
- Optimistic mocking — Writing test mocks that only exercise the success path, making tests pass while real failure modes remain untested. Mocks that never throw or return errors are a fabrication risk.
- Workaround normalization — Implementing a workaround for an underlying issue and treating it as the solution without flagging that the root cause remains. The workaround may be pragmatic, but transparency (Rule 3) requires noting 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.

