From sdlc-toolkit
Generate a high-quality CLAUDE.md file for any project. Analyzes project structure, asks clarifying questions, and produces a concise CLAUDE.md following proven best practices (WHAT/WHY/HOW framework, under 80 lines, progressive disclosure, MUST/NEVER language). Also generates .claude/rules/ for path-scoped conventions. Triggers: "generate claude.md", "create claude.md", "init claude.md", "bootstrap project"
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdlc-toolkit:generate-claude-mdThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a production-quality CLAUDE.md for a project, following best practices.
Generate a production-quality CLAUDE.md for a project, following best practices. The output must be concise, universally applicable, and use progressive disclosure.
Claude Code's system prompt already uses ~50 instructions. Frontier models reliably follow ~150-200 total. This leaves ~100-150 for ALL CLAUDE.md files + skills + rules.
Therefore:
.claude/rules/ with path scopingdocs/ referenced via @ importsScan the project to detect:
package.json / requirements.txt / pyproject.toml / go.mod / Cargo.toml
→ Determine language, framework, dependencies.eslintrc / ruff.toml / biome.json → Linter exists? (don't add style rules)tsconfig.json / mypy.ini → Type checker configjest.config / pytest.ini / vitest.config → Test frameworkdocker-compose.yml / Dockerfile → Infrastructure.github/workflows/ → CI/CDsrc/**/ → Identify architecture layersapps/, packages/, services/)README.md if present → Project purposeCLAUDE.md if present → What to preserve/improveAsk ONLY what cannot be inferred from code. Use targeted questions:
Skip questions where the answer is obvious from code analysis.
Follow the WHAT / WHY / HOW framework. Use the CLAUDE.md template.
Generation rules:
@path/to/doc.md for detailed docs instead of inliningIf the project has distinct domains (API, frontend, infra), create scoped rules in .claude/rules/.
Use the scoped rule template.
Each rule file:
paths: frontmatter with glob patternsRun validation checklist:
If validation fails, revise before saving.
CLAUDE.md to project root.claude/rules/*.md if generatedCLAUDE.local.md doesn't exist, create a minimal one from the local templateNever include in CLAUDE.md:
npx claudepluginhub youarenext/sdlc-toolkit --plugin sdlc-toolkitProvides best practices for creating, updating, and auditing CLAUDE.md files including constraints, commands, architecture overviews, and bloat reduction for projects.
Generates, analyzes, and enhances CLAUDE.md files using best practices, modular architecture, and tech stack customization for new and existing projects.
Generates or updates CLAUDE.md context files from a codebase scan, producing focused files under 100 lines with build commands, conventions, and gotchas. Supports create, update, and audit modes.