ryanalberts/best-of-agent-harnesses/rules-to-guards
Rule enforcer that finds which written rules in AGENTS.md, CLAUDE.md, and GEMINI.md a coding agent keeps breaking, counts every violation in recent Claude Code, Codex, Gemini CLI, and OpenCode sessions, and turns each broken rule into a hook that blocks it, tested by replaying the past violations. Use when the user says the agent keeps breaking or disobeying a rule (such as "use pnpm, never npm"); asks how often agents violate their rules; wants a rule enforced by a hook instead of repeated in t
Agent skill · version 0.0.0-main.1794416260.g63e563f · from RyanAlberts/best-of-Agent-Harnesses
Install
npx yarkr-cli add skill:ryanalberts/best-of-agent-harnesses/rules-to-guardsWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:ryanalberts/best-of-agent-harnesses/rules-to-guards
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:ryanalberts/best-of-agent-harnesses/rules-to-guardsOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:ryanalberts/best-of-agent-harnesses/rules-to-guardsWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.