
claude-code-best-practices
Nine hard rules for Claude Code, synthesized from Apple's leaked CLAUDE.md and Boris Cherny's tips.
About
A single SKILL.md you drop into a project (or ~/.claude/skills/) that locks down framework choices, layering boundaries, file locations, plan mode, correction capture, communication style, and safety defaults — nine rules with copy-paste templates. The author traces the rules to Apple's accidentally-leaked CLAUDE.md and to Claude Code creator Boris Cherny's published workflow tips.
That provenance is reported by the author and not independently verified, and the repo is tiny (3 stars, 2 commits). As a lightweight guardrail file it's still a cheap install.
What it can do
- 9 drop-in rules with copy-paste templates
- Framework and layering boundary locks
- Plan-mode defaults and safety defaults
- Compounding correction loop (lessons file)
- Reproducible 5-hack demo of 0 vs 5 vulnerabilities
Setup
- As project rules: curl -sSL https://raw.githubusercontent.com/MG-Cafe/claude-code-best-practices/main/SKILL.md > ./CLAUDE.md
- As a project skill: mkdir -p .claude/skills/claude-code-best-practices && curl -sSL https://raw.githubusercontent.com/MG-Cafe/claude-code-best-practices/main/SKILL.md > .claude/skills/claude-code-best-practices/SKILL.md
- As a global skill: mkdir -p ~/.claude/skills/claude-code-best-practices && curl -sSL https://raw.githubusercontent.com/MG-Cafe/claude-code-best-practices/main/SKILL.md > ~/.claude/skills/claude-code-best-practices/SKILL.md
Prerequisites
Claude Code CLI
Use cases
Works with
Trust score — 5/10
Scored 5/10 (metrics tier, metrics-v1). Evidence: 3 stars, 2 commits — essentially a single file; provenance claims (Apple leak, Cherny tips) are author-reported, not independently verified; cheap to install and harmless as a guardrail file; MIT. License: MIT.
★ 3 GitHub stars
How the trust score is built
Full methodology →- Adoption · stars/downloads, log-scaled vs peers
- 3.0/10
- Maintenance · recency, releases, issue load
- 4.0/10
- Openness · license + docs
- 8.0/10
- Manual review · sanity read + red-flag check
- 5.0/10
- · 3 stars, 2 commits — essentially a single file
- · provenance claims (Apple leak, Cherny tips) are author-reported, not independently verified
- · cheap to install and harmless as a guardrail file
- · MIT
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.