From sigma
Check or scaffold CLAUDE.md / CLAUDE.local.md against best-practice research (official Anthropic guidance + community consensus + real-world examples). Use when running /claude-md-check or /claude-md-create, when a human asks to "check", "audit", "improve", or "review" a CLAUDE.md file, or when scaffolding a new one and native /init would produce unbounded, undisciplined output. Carries the length/structure/specificity rubric both commands share.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sigma:sigma-claude-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The **CLAUDE.md rubric** — what a best-practice check or scaffold enforces,
The CLAUDE.md rubric — what a best-practice check or scaffold enforces, distilled from a deep-research pass (2026-07-10) across official Anthropic docs, community practitioner consensus, and 5 real-world repos (cloudflare/workers-sdk, vercel/ai, supabase, humanlayer, langchain).
The one law underneath every check: for each line, would removing it cause Claude to make a mistake? If not, it doesn't belong. Bloat is the dominant documented failure mode — a long CLAUDE.md doesn't fail loudly, Claude silently discounts parts of it (Claude Code injects a system-reminder around CLAUDE.md content saying "you should not respond to this context unless it is highly relevant" — that's the mechanism, not just an anecdote).
| ✅ Include | ❌ Exclude |
|---|---|
| Bash commands Claude can't guess | Anything Claude can figure out by reading code |
| Code style rules that differ from defaults | Standard language conventions Claude already knows |
| Testing instructions and preferred test runners | Detailed API documentation (link to docs instead) |
| Repository etiquette (branch naming, PR conventions) | Information that changes frequently |
| Architectural decisions specific to your project | Long explanations or tutorials |
| Developer environment quirks (required env vars) | File-by-file descriptions of the codebase |
| Common gotchas or non-obvious behaviors | Self-evident practices like "write clean code" |
@path imports are organizational only — they do NOT reduce context (an
imported file still loads at launch). A broken import is a real defect
(resolves relative to the importing file, not cwd, per official docs).CLAUDE.md is written FOR an agent, not for a human onboarding to the repo. README voice (narrative history, marketing framing, "in conclusion") is a register mismatch even when the facts are true.
Treat it as a living document: update the moment Claude repeats a mistake twice,
prune the moment a rule becomes redundant. Commit to git, review changes like
code. CLAUDE.local.md (gitignored) is for personal-only preferences — never
duplicate what belongs in the shared file.
/claude-md-check — runs deterministic checks (length, pasted code, broken
imports, stale test/line counts, placeholders) + this qualitative rubric
against CLAUDE.md (required) and CLAUDE.local.md (optional, skipped if absent)./claude-md-create — scaffolds a WHAT/WHY/HOW starter capped under 200 lines,
distinct from native /init (no length/structure discipline there). Refuses
to overwrite an existing file.sigma setup-repo — offers /claude-md-create when neither file exists yet,
or surfaces a /claude-md-check finding when one already does (same
exists→check / missing→offer-create shape as the learn-artifacts step).npx claudepluginhub navidgh66/sigma --plugin sigmaCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.