yes-md
它能做什么
YES.md 是一套规则,用来确保 AI 安全、谨慎且诚实。它能防止 AI 瞎猜、跳过重要步骤,或者在没有验证效果的情况下就修改文件或系统。
适用场景
- ✓当 AI 准备修改文件或系统时。
- ✓当 AI 连续出现多个错误时。
- ✓当 AI 似乎在瞎猜,或者没有经过检查就让你去做某件事时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/yes-md/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“AI,修复这段代码里的 bug,但请使用 YES.md 来确保修复是安全且经过验证的。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 在做任何修改之前都会先遵循一份安全检查清单,并且始终确认自己的操作是否真正奏效。它依靠数据和证据,而不是凭空假设。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
YES.md — AI Governance Engine
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
…
常见问题
为什么叫“YES.md”?
名字取自“You can do it”(YES,你能做到),与“You can't”(NO,你做不到)相对,同时用 md 格式写明清晰的规则,确保任务被正确、安全地完成。
什么是“安全关卡”(Safety Gates)?
它们是 AI 做出修改前必须通过的强制安全检查,比如先做备份,或者确认有哪些其他人在使用这个文件。
如果 AI 不遵守规则会怎样?
AI 的设计包含自我纠正机制。如果它意识到自己即将违反某条规则,就会停下来,改用正确的方式完成任务。
详情
作者的原始描述
6-layer AI governance: safety gates, evidence-based debugging, anti-slack detection, and machine-enforced hooks. Makes AI safe, thorough, and honest.
热度
- GitHub 星标
- 48k
- 排名
- #6225
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。