By sstklen
Enforce rigorous AI governance with evidence-based reasoning, mandatory safety gates, verification after changes, and anti-slack checks during debugging, configuration, deployment, and implementation tasks. Prevents unverified fixes and tool neglect by requiring structured responses and blocking unsafe file writes or commands until safety rules pass.
ファイル・設定・データベース・デプロイの変更を伴うタスクで発動。デバッグが2回以上連続で失敗した時に発動。証拠なしに推測・仮定しようとした時に発動(「おそらく」「多分」「〜だと思う」「〜のはず」)。ユーザーに丸投げしようとした時に発動(「ご確認ください」「手動で対応してください」「〜が必要かもしれません」)。修正後に動作確認せず完了と報告しようとした時に発動。根本原因の結論を出す時に発動。使えるツールを使わない時に発動(WebSearchがあるのに検索しない、Bashがあるのに実行しない、Readがあるのに読まない)。同じアプローチで3回以上パラメータだけ変えて空回りしている時に発動。バグ修正後に関連する問題を確認しない時に発動。自分で調べられることをユーザーに質問する時に発動。具体的なコードやコマンドではなくアドバイスだけ出す時に発動。全タスクタイプに適用:デバッグ、実装、設定、デプロイ、API連携、データ処理。初回失敗時や既知の修正手順を実行中の場合は発動しない。
當任務涉及修改檔案、設定、資料庫或部署時觸發。當除錯連續失敗 2 次以上時觸發。當即將猜測或假設而沒有證據時觸發(「應該是」「可能是」「我覺得」「感覺是」)。當把問題推給用戶時觸發(「請你檢查」「建議您手動」「你可能需要」)。當改完東西沒有驗證就說完成時觸發。當下結論或判定根因時觸發。當有工具卻不用時觸發(有 WebSearch 不搜、有 Bash 不跑、有 Read 不讀)。當原地打轉時觸發(同一個方向改 3 次以上只調參數)。當修完 bug 沒有檢查關聯問題時觸發。當空手提問卻沒先自己查過時觸發。當只給建議不給代碼或指令時觸發。適用於所有任務類型:除錯、開發、設定、部署、API 串接、資料處理。首次失敗或已知修復方案執行中不觸發。
Use when any task involves modifying files, configs, databases, or deployments. Use when debugging hits 2+ failures. Use when about to guess or assume without evidence ('probably', 'might be', 'I think', 'should be'). Use when deflecting to user ('please check...', 'you should manually...', 'you may need to...'). Use when fixing something without verifying it works. Use when making a conclusion or root-cause claim. Use when skipping tools that are available (has WebSearch but doesn't search, has Bash but doesn't run, has Read but doesn't read). Use when spinning in circles (same approach 3+ times with parameter tweaks). Use when completing a fix without checking for related issues. Use when asking the user a question that could be self-investigated first. Use when giving suggestions instead of actionable code/commands. Applies to ALL task types: debugging, implementation, config, deployment, API integration, data processing. Do NOT trigger on first-attempt failures or when a known fix is already in progress.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
PUA says NO. YES says YES.
A Claude Code skill that makes AI safe, evidence-based, and thorough — with encouragement, not pressure.
別 PUA 你的 AI,YES 它。
Your CLAUDE.md has one layer. AI reads it, then chooses whether to follow it.
YES.md has six layers. AI has to get past all six to cut corners.
| Layer | What | How | Who Enforces |
|---|---|---|---|
| 1 | Format — AI actually understands your rules | AI.MD converts prose to structured-label format | Format |
| 2 | Trigger — activates at exactly the right moment | 20+ specific trigger conditions in SKILL.md description | Skill engine |
| 3 | Hooks — blocks dangerous commands, reminds checks | Scripts run automatically before/after AI actions | Machine |
| 4 | Anti-Slack — 7 lazy patterns caught and corrected | Deflecting, guessing, spinning, surface-fix, empty questions... | AI self-correction |
| 5 | Gates — no backup = no edit, no test = no "done" | Hard stop rules that halt progress until requirements are met | AI self-discipline |
| 6 | Memory — mistakes get recorded, never repeated | Error logs + knowledge base persist across sessions | External storage |
Layer 3 is the key. Everything else relies on AI self-discipline. Hooks are scripts that run automatically — the AI cannot bypass them even if it wants to.
Most tools give you Layer 4 or 5 alone. That's why they don't work. Six layers together is why YES.md works.
AI coding assistants have seven bad habits:
| Bad Habit | What Happens |
|---|---|
| 🎲 Guessing | "Probably a permissions issue" — without checking |
| 🙈 Deflecting | "Please check your environment manually" |
| 🩹 Surface fixing | Fixes one bug, ignores three related ones |
| 🔄 Blind retrying | Same command 3 times, then gives up |
| 🤷 Empty questions | "Can you confirm X?" — without investigating X |
| 💬 Advice, not action | "I suggest..." instead of actual code |
| 🛠️ Ignoring tools | Has WebSearch but guesses. Has Bash but doesn't run. |
PUA-style skills fix habit #4 (blind retry / giving up).
YES.md fixes all seven.
| Pillar | What It Does |
|---|---|
| Safety Gates | Backup before editing. Check blast radius. Verify after changes. Pre-flight before deploy. |
| Evidence Rules | No guessing. No "probably." Every claim needs data, line numbers, or tool output. |
| Ripple Awareness | After every fix: check same pattern elsewhere, check upstream/downstream, check edge cases. |
Rules rely on AI self-discipline. Hooks don't. They are scripts that run automatically before and after AI actions.
| Hook | When | What It Does |
|---|---|---|
pre-bash-guard.sh | Before any Bash command | Blocks rm -rf, git reset --hard, DROP TABLE, and other destructive commands |
post-edit-check.sh | After any Write/Edit | Reminds AI to run ripple-check before saying "done" |
post-deploy-health.sh | After deploy commands | Reminds AI to verify containers, endpoints, and logs |
The AI cannot skip these. That's the point.
YES.md identifies 7 specific AI avoidance behaviors and forces self-correction — without waiting for the user to notice:
Deflecting to user → Do it yourself first
Unverified blame → Run the command, then speak
Spinning in circles → Full stop, fundamentally different approach
Surface-only fix → Ripple Check
Empty questions → Investigate first, then ask
Advice without action → Ship code, not suggestions
Tool neglect → Use the tool, not your memory
| Failures | Action |
|---|---|
| 2 | Switch: fundamentally different approach (not parameter tweaks) |
| 3 | Five-Step Audit: read error word-by-word → WebSearch → read 50 lines context → verify assumptions → invert hypothesis |
| 4 | Isolate: minimal reproduction |
| 5+ | Structured Handoff: verified facts, eliminated causes, narrowed scope, next steps |
Key difference from PUA: Level 3 forces a direction check BEFORE continuing. Persistence in the wrong direction is worse than stopping.
Before any root-cause claim, four mandatory questions:
Incomplete data = "⚠️ Based on partial data..." (never "definitely" or "the culprit is").
npx claudepluginhub sstklen/yes.md --plugin yesEnforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
One 👎 becomes a hard rule the agent cannot bypass. Captures thumbs-down feedback, distills it into PreToolUse Pre-Action Checks, enforced across every future Claude Code session.
5 essential safety hooks for Claude Code. Blocks rm -rf, force-push, hard-reset, .env overwrites, and package publish. The minimum viable safety net from 800+ hours of autonomous operation.
Risk-graded context engineering for AI-assisted software work — a catalog of agent skills, paste-ready command prompts, and change-record templates that keep agent work questioned, controlled, and reviewable.
Quadruple verification for Claude Code — automatically blocks placeholder code, security vulnerabilities, and ensures output quality on every operation. Built by CustomGPT.ai for production teams.
Mindful AI coding framework — discipline over cleverness. Skill + 21 slash commands + 8 specialist agents + 5 runtime hooks + 15 default checklists + Master Orchestrator + Gravity hub. Works on any model tier (Opus/Sonnet/Haiku). Integrates Claude Design for visual work.