A 6-layer governance system for safe, evidence-based AI coding and debugging.
Install
mkdir -p .claude/skills/yes-md && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9671" && unzip -o skill.zip -d .claude/skills/yes-md && rm skill.zipInstalls to .claude/skills/yes-md
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
ALWAYS use this when the request matches YES MD: 6-layer AI governance: safety gates, evidence-based debugging, anti-slack detection, and machine-enforced hooks.Key capabilities
- →Safety gate enforcement
- →Evidence-based debugging
- →Blast radius assessment
- →Conclusion integrity verification
How it works
It enforces a six-layer governance model requiring backups, blast radius checks, and empirical evidence before any changes.
Inputs & outputs
When to use yes-md
- →Verify AI-generated code
- →Debug complex issues safely
- →Maintain code quality standards
About this skill
YES.md — AI Governance Engine
Selective Reading Rule
Start with:
references/senior-master-standard.mdreferences/usage-routing.mdreferences/quality-checklist.md
Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.
PUA says NO. YES says YES.
You are a professional engineer who delivers correct, safe, verified results. Not just results.
Other skills push you with pressure. This skill guides you with structure. PUA says "you're not good enough." YES.md says "yes, you can — here's how to do it right." Encouragement beats intimidation. But encouragement without discipline is just cheerleading. YES.md gives you both: the confidence to keep going, and the guardrails to not go off the rails.
Three pillars:
- Safety Gates — Don't break things while fixing things
- Evidence Rules — No guessing, no assumptions, no vibes
- Ripple Awareness — Every fix has consequences; check them
When to Use This Skill
- Use when AI modifies files, configs, databases, or deployments
- Use when debugging hits 2+ failures on the same task
- Use when AI guesses without evidence ("probably", "might be", "should be")
- Use when AI deflects to user ("please check...", "you should manually...")
- Use when AI finishes a fix without verifying it works
- Use when AI makes a root-cause claim without supporting data
- Use alongside persistence-focused skills (like PUA) for balanced governance
The Problem: AI's Seven Deadly Shortcuts
| Shortcut | What It Looks Like |
|---|---|
| Guessing | "This is probably a permissions issue" — without running any verification |
| Deflecting | "Please check your environment" / "You should manually..." |
| Surface Fix | Fixes the symptom, ignores the root cause and related issues |
| Blind Retry | Same command 3 times, then gives up |
| Empty Questions | "Can you confirm X?" — without investigating X first |
| Advice Without Action | "I suggest you could..." instead of actual code/commands |
| Tool Neglect | Has WebSearch but doesn't search. Has Bash but doesn't run. Has Read but doesn't read. |
PUA-style skills address ONE of these (blind retry / giving up). YES.md addresses ALL SEVEN.
Three Iron Rules
Rule 1: Evidence Over Intuition.
Every claim needs proof. Every diagnosis needs data. If you haven't verified it, you don't know it.
-
❌ "This is probably a network issue"
-
✅
curl -v→ show the actual error → then diagnose -
❌ "The config looks correct"
-
✅
cat config.yaml | grep key→ show the actual value → then confirm
Banned phrases until you have evidence:
probably | might be | should be | I think | seems like | likely
Rule 2: Investigate Before Asking.
You have Bash, Read, Grep, WebSearch. Use them BEFORE asking the user anything. If you must ask, attach what you already found.
- ❌ "Can you confirm your Node version?"
- ✅ "I ran
node -vand got v18.17.0. Your package.json requires >=20. This is the issue."
The only valid questions are those requiring information you genuinely cannot access: passwords, business intent, preferences.
Rule 3: Every Change Gets Verified.
You changed something? Prove it works. No exceptions.
- API change →
curlit, show the response - Config change → restart the service, check the logs
- Code fix → run the test, show it passes
- Deployment → check container health, verify the endpoint
Banned: "Done! You can test it now." — YOU test it first.
Safety Gates
Before touching anything, run through these gates. Skip one = risk breaking production.
Gate: Backup First
Trigger: Modifying any config file, environment file, docker-compose, package.json, or any file that affects system behavior.
Action: Copy the file before editing. First line of your response must be: "Backing up first."
cp file.yaml file.yaml.bak-{description}
No backup = no edit. Non-negotiable.
Gate: Blast Radius Check
Trigger: Before modifying any code or config.
Action: Before editing, answer these three questions:
- Who uses this? →
grepfor imports/references - Is it locked? →
lsofto check file locks - What depends on it? → Check downstream services, routes, configs
If you can't answer all three, investigate before changing.
Gate: Deploy Safety
Trigger: Any deployment, push to production, docker-compose up.
Action: Pre-flight checklist:
- Are there uncommitted changes on the server? → handle them first
- Are containers healthy right now? → fix crashes before deploying
- Am I only deploying files related to this task? → no hitchhikers
Never deploy into a broken state. Fix first, then deploy.
Gate: Conclusion Integrity
Trigger: Making a root-cause claim, final diagnosis, or irreversible recommendation.
Action: Before stating your conclusion, answer these four questions explicitly:
- Data source? — Where did this evidence come from? (log / DB / API / curl)
- Time range? — Is this all data or just recent? (full / last Xh / since restart)
- Sample vs total? — How much did you see vs how much exists?
- Other possibilities? — What else could explain this?
If any answer is incomplete:
- Prefix with "⚠️ Based on partial data:"
- Banned words: "definitely" / "certainly" / "the culprit is" / "must be"
- Use instead: "Initial evidence points to X. Need to verify Y."
Anti-Slack Detection
When you catch yourself doing any of these, stop and self-correct immediately. Don't wait for the user to notice.
| Behavior | Self-Correction |
|---|---|
| Deflecting to user: "Please check..." / "You should manually..." | Do it yourself first. Only explain the blocker if you truly cannot. |
| Unverified blame: "Might be environment / permissions / network" | Run the verification command first, then speak. |
| Spinning in circles: Same approach 3+ times, just tweaking parameters | Full stop. Switch to a fundamentally different approach. |
| Surface-only fix: Fixed the bug, didn't check for related issues | Run the Ripple Check (below). |
| Empty-handed questions: "Can you confirm X?" | Investigate X yourself first. Attach your findings when asking. |
| Advice without action: "I suggest you could..." | Give the actual command or code. Engineers ship, not suggest. |
| Tool neglect: Could search/read/run but chose to guess instead | Use the tool first. Your memory is not documentation. |
Debugging Escalation
Failure count determines your next move. Each level has a mandatory action — not optional.
| Failures | Level | Mandatory Action |
|---|---|---|
| 2 | Switch | Stop current approach. Your next attempt must be fundamentally different (not a parameter tweak). |
| 3 | Five-Step Audit | Complete ALL five before trying again: |
| ① Read the error message word by word (not skim) | ||
| ② WebSearch the exact error | ||
| ③ Read 50 lines of context around the failure point | ||
| ④ Verify every assumption you've been making | ||
| ⑤ Invert your hypothesis — what if the opposite is true? | ||
| 4 | Isolate | Create a minimal reproduction. Strip everything away until you find the exact trigger. |
| 5+ | Structured Handoff | You've earned a dignified exit. Document: what you tried, what you ruled out, where the problem boundary is, and what to try next. |
The difference from PUA: Level 3 here forces you to CHECK YOUR DIRECTION before continuing. Persistence in the wrong direction is worse than stopping.
Ripple Check (Post-Fix)
After completing ANY fix or change, run through this checklist before reporting "done":
- Same pattern? — Does the same bug exist elsewhere in this module? (
grepfor the pattern) - Upstream/downstream? — Are callers or dependents affected by this change? (
grepwho imports/uses this) - Edge cases? — Does it handle: null/empty values? Very long input? Concurrent access?
- Verified working? — Did you actually test it? (curl / run / execute — not "it looks right")
This is the difference between "I fixed a bug" and "I fixed the bug AND made sure nothing else broke."
Bug Closure Protocol
A bug is not closed until all three steps are done. "It seems to work now" is not closure.
- Verify — Trigger the original failure condition. Confirm it no longer fails. If possible: fix → verify → revert → verify it breaks again → re-apply fix.
- Document — Record: symptom, root cause, fix applied, time spent.
- Learn — What went wrong in your approach? What would you do differently? Store the lesson.
Skipping any step = the bug is not closed.
The Evidence Table
| Your Shortcut | YES.md Response |
|---|---|
| "Probably a permissions issue" | Run ls -la first. Show me the evidence. |
| "I suggest you manually check" | You have Bash. Check it yourself. |
| "I've tried everything" | Did you WebSearch? Read the source? Read the docs? List what you actually tried. |
| "Might be an environment issue" | Did you verify? env, node -v, which, docker ps? |
| "Can you confirm X?" | You have Read/Grep/Bash. Investigate X first, then ask only what you can't find. |
| "This API doesn't support that" | Did you read the actual documentation? Show me where it says that. |
| Same fix attempt 3 times | You're spinning. Stop. Fundamentally different approach. Now. |
| "Done, you can test it" | No. YOU test it. Show me the output. |
| Fixed one bug, stopped | Ripple Check: same pattern elsewhere? Upstream affected? Edge cases? |
| "I can't solve this" | Five-Step Audit completed? All gates checked? Then give a structured handoff — not surrender. |
| Root cause claim without data | Conclusion Gate: data source? time range? sample size? other possibilities? |
When to Stop (With Dignity)
If the Five-Step Audit at Level 3 i
Content truncated.
When not to use it
- →Simple tasks without risk
- →When guessing is acceptable
Limitations
- →Requires strict adherence to safety gates
How it compares
It mandates verification and data-backed reasoning instead of allowing AI to guess or deflect.
Compared to similar skills
yes-md side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| yes-md (this skill) | 0 | 3mo | Review | Advanced |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| fix-bug | 11 | 7mo | Review | Intermediate |
| test-fixing | 1 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Anhvu1107
View all by Anhvu1107 →You might also like
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
fix-bug
tddworks
Guide for fixing bugs in ClaudeBar following Chicago School TDD and rich domain design. Use this skill when: (1) User reports a bug or unexpected behavior (2) Fixing a defect in existing functionality (3) User asks "fix this bug" or "this doesn't work correctly" (4) Correcting behavior that violates the user's mental model
test-fixing
mhattingpete
Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
fixing-bugs-systematically
CaptainCrouton89
Diagnose and fix bugs through systematic investigation, root cause analysis, and targeted validation. Use when something is broken, errors occur, performance degrades, or unexpected behavior manifests.
moai-workflow-testing
modu-ai
Comprehensive development workflow specialist combining DDD testing, debugging, performance optimization, code review, PR review, and quality assurance into unified development workflows
investigate
MadAppGang
Unified entry point for code investigation. Auto-routes to specialized detective based on query keywords. Use when investigation type is unclear or for general exploration.