From developer-workflow
Use when creating a new CLAUDE.md, auditing an existing CLAUDE.md for quality, or triaging session learnings into CLAUDE.md, rules, or memory
How this skill is triggered — by the user, by Claude, or both
Slash command
/developer-workflow:claude-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create, audit, or triage CLAUDE.md files following best practices. Every line must earn its place.
Create, audit, or triage CLAUDE.md files following best practices. Every line must earn its place.
digraph pathway {
"Project CLAUDE.md exists?" [shape=diamond];
"Empty (0 lines)?" [shape=diamond];
"User intent?" [shape=diamond];
"CREATE" [shape=box];
"AUDIT" [shape=box];
"TRIAGE" [shape=box];
"Ask user" [shape=box];
"Project CLAUDE.md exists?" -> "Empty (0 lines)?" [label="yes"];
"Project CLAUDE.md exists?" -> "CREATE" [label="no"];
"Empty (0 lines)?" -> "CREATE" [label="yes"];
"Empty (0 lines)?" -> "User intent?" [label="no"];
"User intent?" -> "AUDIT" [label="audit/improve"];
"User intent?" -> "TRIAGE" [label="capture learnings"];
"User intent?" -> "Ask user" [label="ambiguous"];
}
Before any pathway, read:
~/.claude/CLAUDE.md — global preferences (read only, never write). Skip if absent.CLAUDE.md — if it existsCLAUDE.md files — in monorepos, read for awareness (all pathways operate on root only).claude/rules/*.md — existing rulesThis informs deduplication. Never repeat what's already inherited.
best-practices-reference.md (project context → commands → directory structure → conventions → reference docs).claude/rules/ for team rules (note: @imports eager-load at session start — they are not lazy loading)~/.claude/CLAUDE.md or .claude/rules/When no project CLAUDE.md exists (or existing one is empty):
.claude/rules/, ~/.claude/CLAUDE.md~/.claude/CLAUDE.md or .claude/rules/best-practices-reference.md include/exclude checklists. Cut anything that fails.best-practices-reference.md: project context → commands → directory structure → conventions → reference docsWhen CLAUDE.md exists and user wants to improve it:
~/.claude/CLAUDE.md, .claude/rules/, project config filesbest-practices-reference.md for full evaluation criteria (line count, duplication, staleness, noise, structure, progressive disclosure)When the user wants to capture session learnings:
best-practices-reference.md destination bias table. Bias toward memory/rules over CLAUDE.md. For each candidate, propose one of:
.claude/rules/ — team-wide coding rules (create directory if needed)~/.claude/projects/<project>/memory/ with standard frontmatter. If no memory system, fall back to .claude/rules/ or suggest user note manually.npx claudepluginhub mattlindell/photon-plugins --plugin developer-workflowCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.