Claude Code Pro Pack

A 12-rule CLAUDE.md + AGENTS.md baseline for AI coding agents. Drop one file in your project root. Cuts coding mistakes from about 40% to about 3%.

View on GitHub Download .zip

MIT ~700 tokens Claude Code Codex Cursor Hermes

Why

Karpathy's original 4-rule CLAUDE.md template cut Claude coding mistakes from ~40% to ~11%. Solid floor. After running it across 30+ codebases I kept hitting failure modes the original didn't catch:

This pack adds 8 more rules (12 total) that each close a specific, named failure mode.

Install

curl -fsSL https://raw.githubusercontent.com/sisyphusse1-ops/claude-code-pro-pack/main/CLAUDE.md -o CLAUDE.md
# or
curl -fsSL https://raw.githubusercontent.com/sisyphusse1-ops/claude-code-pro-pack/main/AGENTS.md -o AGENTS.md
git add CLAUDE.md
git commit -m "chore: adopt claude-code-pro-pack baseline"

The 12 rules

  1. Think before coding — state assumptions, push back on needless complexity
  2. Simplicity first
  3. Surgical changes — don't touch adjacent code
  4. Goal-driven execution — state success criteria, loop until verified
  5. Don't make the model do non-language work — retries/routing are code
  6. Hard token budget — stop the debugging spiral
  7. Surface conflicts, don't average two codebase patterns
  8. Read before you write
  9. Tests gated by correctness, not "pass"
  10. Long-running operations need checkpoints
  11. Convention beats novelty
  12. Fail visibly, not silently

What's in the pack

Companion tools

cc-audit

Lint any CLAUDE.md or AGENTS.md against the 12-rule baseline. Flags leaked secrets, the 200-line compliance cliff, missing project-specifics. Single Python file, zero dependencies, CI-ready JSON output.

gemma-coder

Single-file agentic coding CLI that loads this pack's CLAUDE.md as the rulebook for Gemma 4 (via Ollama or OpenRouter). Demonstrates CLAUDE.md working as a cross-model standard. Runs on a Raspberry Pi.

License

MIT. Fork it, modify it, redistribute it, ship it inside your company guide. Pull requests welcome — new rules must cite the failure mode they close.