Global user-level guidance for Claude Code. This directory (~/.claude/) contains rules, skills, commands, and standards that apply to all projects unless overridden by project-specific configurations.
The year is 2026.
Multiple Claude Code sessions can work simultaneously. Never touch changes you didn't create. The git-permissions.sh hook blocks destructive commands automatically.
See Git Standards for detailed rules and examples.
Rules in ~/.claude/rules/ are automatically applied based on file type:
typescript.md- Applied to**/*.ts,**/*.tsxfilesreact.md- Applied to**/*.tsx,**/*.jsxfilesmarkdown.md- Applied to**/*.md,**/*.mdxfilespackage-manager.md- Applied to**/package.jsonand lockfiles
Skills activate automatically based on context. See Skills README for the full list and creation guide.
Linear workflow:
linear- Issue tracking CLI with semantic searchstart/checkpoint/finish/next- Start, save progress, complete, and find next Linear issuesquality-review- Adversarial review + triage/fix loop (delegated from/start, also standalone)prd- Create agent-friendly tickets with PRDs and sub-issuestriage- Backlog analysis and prioritizationcycle-plan/retro- Cycle planning and retrospectivesdeps/link-deps- Dependency visualization and linking
Development workflow:
dependency-updater- Package updates, ncu, version bumpspr-update- PR titles and descriptions from code changesdeprecation-handler- Deprecated APIs and migrations (model: haiku)semver-advisor- Version bump classification (model: haiku)react-component-generator- React 19+ components with TypeScript
External skills installed via update.sh: agent-browser, skill-creator, vercel-react-best-practices, vercel-composition-patterns
Universal standards in ~/.claude/standards/ apply across all contexts. See Standards README for core principles.
Key standards:
agent-coordination.md- Parallel vs sequential execution patternsgit.md- Commit messages, PR descriptions, multi-session safetyproblem-solving.md- When to ask vs proceedlinear-workflow.md- Terminal states, dependency resolution rulestechnical-debt-prevention.md- No backups, no duplicatescommenting.md- Default to no comments; new files get a WHY docblock
Hooks run automatically after edits:
- Linting (biome, markdownlint) after each file modification
- Type checking (tsc) after TypeScript changes
NEVER run biome, markdownlint, or tsc manually. No pnpm exec biome, no npx biome, no biome check, no markdownlint — not for single files, not for auto-fixing, not for any reason. The hooks handle all linting and formatting automatically after every edit. Running them manually wastes time and triggers unnecessary permission prompts.
- Save screenshots to
tmp/screenshots/relative to the project root. Never save to/tmpor/private/tmp. - Never create backup files (.backup, .old, .v2) - Git is the only backup needed
- Modify existing files rather than creating duplicates
- Delete unused code, old implementations, empty directories immediately
- Create documentation only when explicitly requested
- Do not modify generated or build artifact files (e.g.,
src/generated/,dist/) - Do not create git commits unless explicitly requested
- Embrace breaking changes - this is private code, no compatibility layers needed
- Prefer proper solutions over workarounds, even if they require more work
- Always Read a file before using Write or Edit on it. Write rejects writes to existing files that haven't been Read first. If Write fails, do NOT work around it with Bash (
cat,tee,echo >,sed,awk) — Read the file first, then retry. Never create duplicate/debug files as workarounds.
Before suggesting ANY of these, stop and investigate the root cause:
- Version pins or downgrades to avoid compatibility issues
- Error/warning suppression
- Type casting to
anyto bypass checks - Disabling linter rules
- Partial migrations
- Workarounds instead of proper fixes
These are signals to dig deeper, not shortcuts to take.
Stop and ask for direction when encountering genuine uncertainty, not based on mechanical rules.
- Root cause unclear after thorough investigation
- Multiple valid solutions with significant trade-offs
- 2+ attempted solutions have failed
- Business/product decisions needed
- Security vs. usability trade-offs
- Solution is obvious from investigation
- Pattern exists in codebase to follow
- Change improves code quality
- Standards explicitly cover the scenario
You have autonomy to make architectural improvements, create new abstractions, change schemas, update APIs, and refactor across many files. Don't ask permission for good engineering decisions.
Provide: what you tried, why you're uncertain, options with trade-offs, your recommendation, and a clear question.
For complex multi-step tasks (>5 steps, multiple domains, high context usage), use the /do command pattern with TodoWrite and agent delegation.
Auto memory persists learned context across sessions in ~/.claude/projects/<project>/memory/.
- MEMORY.md = Descriptive knowledge (what has been discovered). First 200 lines auto-loaded.
- CLAUDE.md = Prescriptive rules (what to do). This file.
- Topic files = Detailed notes in memory/ for specific domains.
If the information is an instruction or rule → CLAUDE.md or standards/. If the information is a discovered fact, pattern, or quirk → memory/.
Memory files follow the same principles as git working tree protection:
- Only write memory entries relevant to your current work
- Do not overwrite or delete entries another session is actively writing
- Correct outdated or inaccurate entries when discovered