Generate CLAUDE.md files for project and key subdirectories
Generates CLAUDE.md files for project root and key subdirectories with architecture, commands, and conventions.
/plugin marketplace add alexanderop/claude-code-builder/plugin install claude-code-builder@claude-code-builder[object Object]Analyze project structure using the Explore subagent and generate CLAUDE.md files—one global file describing the project in general, plus nested CLAUDE.md files in important subdirectories for localized context.
Inputs:
$1 — THOROUGHNESS (optional: quick, medium, very-thorough; default: medium)Outputs:
STATUS=<OK|FAIL>FILES=<list of created CLAUDE.md paths>Explore the project structure using the Task tool with subagent_type=Explore:
/src, /frontend, /backend, /services, /packages)Create root CLAUDE.md with:
Create nested CLAUDE.md files in subdirectories where useful:
Output results:
STATUS=OK FILES=<comma-separated paths># CLAUDE.md — Project rules
## Overview
One-liner + architecture map.
## Setup & Run
- Install: [command]
- Start dev: [command]
- Tests: [command]
## Code Style
- Linting/formatting tools and configs
- Commit style (Conventional Commits, etc.)
## Safety rails
- Never commit secrets; use .env.example
- Don't modify generated files
## Workflow
- For bugfixes: write failing test → fix → link issue
- For features: create RFC before code
## Examples
- See /docs/examples for typical PRs
/frontend/CLAUDE.md)# Frontend — Local rules
## Stack
Next.js 14, TypeScript, TailwindCSS
## Key directories
- `/app` — App router pages
- `/components` — Reusable UI components
- `/lib` — Utilities and helpers
## Conventions
- Components: PascalCase, one per file
- Hooks: camelCase, prefix with `use`
- Server components by default; add 'use client' when needed
## Testing
- Run: pnpm test:frontend
- Write tests alongside components (*.test.tsx)
# Quick exploration and basic CLAUDE.md files
/create-md quick
# Medium depth (default)
/create-md
# Very thorough analysis with comprehensive CLAUDE.md files
/create-md very-thorough