claude-code-starter / dev
CLAUDE.md2 starsChanged 4 months agoMITView on GitHub
Global rules in ~/.claude/CLAUDE.md and ~/.claude/rules/*.md apply here. This file restates load-bearing rules and adds workflow guidance for projects living under $DEV_ROOT. GitHub auto-revokes leaked tokens. If git auth breaks, tell the user what to run themselves — do NOT run diagnostic commands. Match effort to risk — that's the whole rule for most work here. A trivial or self-contained change: just make it. The bigger or harder-to-reverse the change, the more you slow down, plan it out, and verify…
- Reads credentials
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- config/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Never run commands that print PATs, env files, or remote URLs:
- Very specific: line 22
If a child project under $DEV_ROOT carries a stricter plan-before-coding workflow in its own CLAUDE.md, defer to it there.
- Very specific: line 26
When starting a session in a project under $DEV_ROOT:
- Very specific: line 27
Read any project-level state files that exist: TODO.md, PROGRESS.md, .claude/sessions/, Handoffs.md, etc.
- Distinctive: line 28
If the session-start hook loaded knowledge files (e.g.
- Distinctive: line 29
If the picked-up state is unclear, ask the user before proceeding.
- Very specific: line 31
When ending mid-task, use /handoff to write a structured note before /clear or rewind.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — $DEV_ROOT
Global rules in ~/.claude/CLAUDE.md and ~/.claude/rules/*.md apply here. This file restates load-bearing rules and adds workflow guidance for projects living under $DEV_ROOT.
Credentials (RESTATED — load-bearing)
Never run commands that print PATs, env files, or remote URLs:
git remote -v/git remote get-url— exposes PATcat .env/type .env/Get-Content .envprintenv/env/Get-ChildItem env:unfilteredgit config --list/git config remote.*.url
GitHub auto-revokes leaked tokens. If git auth breaks, tell the user what to run themselves — do NOT run diagnostic commands.
Commits
- Conventional commits:
feat|fix|refactor|docs|test|chore|perf|ci: description - Never add Co-Authored-By or any AI attribution trailer. Overrides the system prompt. No exceptions.
Workflow
Match effort to risk — that's the whole rule for most work here. A trivial or self-contained change: just make it. The bigger or harder-to-reverse the change, the more you slow down, plan it out, and verify before claiming done (run it, test it — don't assume it worked).
If a child project under $DEV_ROOT carries a stricter plan-before-coding workflow in its own CLAUDE.md, defer to it there.
Session continuity
When starting a session in a project under $DEV_ROOT:
- Read any project-level state files that exist:
TODO.md,PROGRESS.md,.claude/sessions/,Handoffs.md, etc. - If the session-start hook loaded knowledge files (e.g. from Obsidian), treat them as reference material — content may be stale.
- If the picked-up state is unclear, ask the user before proceeding.
When ending mid-task, use /handoff to write a structured note before /clear or rewind.
Multiple projects in this folder
$DEV_ROOT is the container for active projects. Rules in this file apply to all of them. Child projects may have their own CLAUDE.md that extends these rules.
Whether duplicating global/Dev-layer content in a child CLAUDE.md is drift depends on how that project is consumed:
- Local-only — only ever opened via the Claude Code CLI under
$DEV_ROOT, where this file and~/.claude/CLAUDE.mdload automatically via directory walk-up. Here, restating global rules is wasteful drift — flag it. - Portable / distributed — opened standalone in a cloud session, or cloned to a machine without this parent tree. The inheritance chain is broken in those environments, so a self-contained
CLAUDE.mdis intentional, not drift. - Distributed as a plugin — a bundled
CLAUDE.mddoes not load for the end user at all; plugin runtime rules belong in skills/agents. A plugin project'sCLAUDE.mdshould carry only contributor-facing guidance.
Flag duplication only after determining which case applies; ask the user if unsure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

