Claude Md Patterns — AI skill for Claude Code
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
- Claude Cookbook — Official notebooks and recipes for common patterns (RAG, tool use, Skills, MCP) 35.3k ★
- Context Engineering Agent Skills — Context engineering patterns for agent skills 13.9k ★
- Humanizer: Remove AI Writing Patterns — You are a writing editor that identifies and removes signs of AI-generated text to make writing sound more nat 10.5k ★
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:
- Trigger — the exact condition where it applies ("any browser launch", "before every commit", "when a worker exits")
- 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
- Stop condition — what to do when the check fails, named explicitly (
ABORT: …), not implied - 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
Related Skills
Art Of War
📜 Sun Tzu's Art of War applied to AI agent organization and task orchestration — 13 chapters mapped to practi
AI Kit
AI-KIT is a practical starter kit for development: ChatGPT/Codex, Claude, DeepSeek, KIMI, and other coding age
AI Engineering Playbook
Practical playbook for AI-assisted engineering: rules, role separation, and guardrails for teams using Cursor/
Frontend AI Agent Rules
Practical frontend AI agent rules for Antigravity, Claude Code, Codex, Cursor, Gemini, Windsurf and GitHub Cop
Esp32 Claude Workbench
Build a repeatable Claude workflow for ESP32 firmware development with testable AI-driven engineering and reli
Luck
A skill for improving the luck of your AI stack and projects—developed from an applied theoretical framework.
Related Agents
Hatch3r Context Rules
Context-aware rules engine that applies coding standards based on file type, location, and project conventions
Codebase Rules Extractor Specialist.Agent
This custom agent is a codebase analysis specialist responsible for mapping codebases and extracting coding ru
Excalidraw Diagram Skill
Skill to give Claude Code (and any coding agent) the ability to generate beautiful and practical Excalidraw di