Generate hierarchical CLAUDE.md files throughout a repository, following Anthropic's best practices.
/plugin marketplace add reese-allison/claude-tools
/plugin install deep-init/deep-init
Runs 3 phases:
- Discovery - Builds directory tree from
git ls-fileswith metadata - Judgment - Identifies directories warranting CLAUDE.md using semantic criteria
- Generation - Parallel subagents write CLAUDE.md for each target
/deep-init services/api
Generates/updates CLAUDE.md for just that directory.
CLAUDE.md files contain:
- Build/lint/test commands (especially for running a single test)
- Code style guidelines (imports, formatting, types, naming, error handling)
A directory qualifies if it is any of:
| Type | Description | Examples |
|---|---|---|
| Domain Boundary | Distinct conceptual area | auth/, billing/, search/ |
| Integration Point | Connects to external systems | integrations/stripe/, api/webhooks/ |
| Sub-App | Self-contained application | apps/admin/, services/worker/ |
| High Technical Complexity | Complex code needing explanation | compiler/, query-engine/ |
If parent and child both qualify, only the child gets a file.
See deep-init/commands/init.md for full details.
MIT