soul-sol

Claude Md Patterns — AI skill for Claude Code

AI community

Practical CLAUDE.md and AGENTS.md patterns that make AI coding agent rules testable and enforceable.

How to install Claude Md Patterns

This entry records only its repository, not the path inside it, so there is no exact command to give. Open soul-sol/claude-md-patterns and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Md Patterns does

Practical CLAUDE.md and AGENTS.md patterns that make AI coding agent rules testable and enforceable.

Alternatives in AI

README

CLAUDE.md patterns that actually bind

Install: `npx skills add soul-sol/claude-md-patterns`

Your `CLAUDE.md` probably says *"write clean code, be careful with destructive operations, ask if unsure."* The agent reads it, agrees with it, and then does whatever the last 200 lines of context suggested. The file isn't wrong — **it just isn't a rule.** Nothing in it can be checked, so nothing in it binds.

A rule that binds has four parts:

  1. Trigger — the exact condition where it applies ("any browser launch", "before every commit", "when a worker exits")
  2. Check — a command, string, or state that is either true or false. If a reviewer can't grep for it, the agent can't enforce it on itself
  3. Stop condition — what to do when the check fails, named explicitly (ABORT: …), not implied
  4. Evidence — what must be left behind so the rule's application is visible afterward

These came out of running Claude Code and Codex workers in parallel every day. The incidents behind them — what the agent claimed, what actually happened, and the gate that catches it next time — are at [status.lifestep.io/incidents](https://status.lifestep.io/incidents/). The full set is [The CLAUDE.md Pattern Library](https://lifestep1.gumroad.com/l/claude-md-pattern-library?utm_source=github&utm_medium=readme&utm_campaign=claude-md-patterns-lib) ($39), or the [Complete Agent Ops Kit](https://lifestep1.gumroad.com/l/complete-agent-ops-kit?utm_source=github&utm_medium=readme&utm_campaign=claude-md-patterns) ($89) if you also want the task briefs, the 25 review prompts and the deploy gate that go around these rules; what is here stays free and MIT either way.

Audit your own file first

Before adopting any pattern here, see which of your existing rules an agent cannot act on:

**[claudemd.lifestep.io](https://claudemd.lifestep.io)** — paste a `CLAUDE.md` or `AGENTS.md` and it flags truncation risk, headings with no rule under them, instructions with no verificatio