From claudemd-gen
This skill should be used when the user wants to generate, create, write, audit, improve, or review a CLAUDE.md file, set up .claude/rules/ for path-specific instructions, create a CLAUDE.local.md for personal preferences, set up project instructions, configure Claude Code for a project, ask what should go in a CLAUDE.md, or needs guidance on Claude Code memory configuration and project instruction best practices. Also trigger when the user wants to initialize Claude Code in a repo, bootstrap Claude config, set up project memory, or asks how to make Claude work better with their codebase — even if they don't mention "CLAUDE.md" explicitly.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claudemd-gen:claudemd-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate effective CLAUDE.md files that encode project-specific knowledge for Claude Code.
Generate effective CLAUDE.md files that encode project-specific knowledge for Claude Code.
| Level | File | Scope | Use For |
|---|---|---|---|
| 1 | CLAUDE.md or .claude/CLAUDE.md (repo root) | All sessions, all users | Build commands, architecture, conventions |
| 2 | CLAUDE.md (subdirectory) | When working in that dir | Package-specific rules |
| 3 | .claude/rules/*.md | Path-matched to file patterns | Path-specific rules (e.g., test patterns) |
| 4 | CLAUDE.local.md | Personal, gitignored | Individual preferences |
| 5 | ~/.claude/CLAUDE.md | All projects for this user | Global personal preferences |
| 5b | ~/.claude/rules/*.md | All projects for this user | Global personal rules (lower priority than project rules) |
| 6 | Auto-memory | Claude-managed per-project | Learned patterns across sessions (not user-editable) |
Tip: CLAUDE.md supports @path imports (e.g., @docs/architecture.md) to pull in external files inline. Useful for sharing rules across tools or keeping CLAUDE.md lean. See references/memory-system.md for details.
| Situation | Action |
|---|---|
| New project, no CLAUDE.md | Generate with /claudemd-gen:generate |
| Existing CLAUDE.md, unsure if good | Audit and auto-fix with /claudemd-gen:generate --audit |
| Large project, need path-specific rules | Generate rules with /claudemd-gen:generate --rules |
| Want personal preferences separate | Create local with /claudemd-gen:generate --local |
| Full setup from scratch | Complete setup with /claudemd-gen:generate --full |
Always include:
Never include:
For detailed guidance, read these on demand:
references/best-practices.md — Detailed writing Do's and Don'tsreferences/memory-system.md — Full memory hierarchy, @import, rules/ patternsreferences/templates.md — Starter templates for different project sizesreferences/anti-patterns.md — Common mistakes and how to fix themProject-type examples (read when matching the user's stack):
examples/claudemd-typescript-monorepo.md — Turborepo/Nx monorepoexamples/claudemd-python-django.md — Django web applicationexamples/claudemd-rust-cli.md — Rust CLI toolexamples/claudemd-minimal.md — Bare minimum for small projectsexamples/rules-structure.md — .claude/rules/ directory layoutexamples/claude-local-example.md — CLAUDE.local.md personal preferencesnpx claudepluginhub vampik33/claude-plugins --plugin claudemd-genGenerates, analyzes, and enhances CLAUDE.md files using best practices, modular architecture, and tech stack customization for new and existing projects.
Creates and refactors CLAUDE.md files following best practices for size, structure, and content organization. Includes memory hierarchy, 3-tier documentation system, and conditional rules.
Provides best practices for creating, updating, and auditing CLAUDE.md files including constraints, commands, architecture overviews, and bloat reduction for projects.