From commands-utilities-debugging
Analyzes directory structure, architecture, design patterns, dependencies, and code organization; creates or updates CLAUDE.md documentation file in target directory.
How this command is triggered — by the user, by Claude, or both
Slash command
/commands-utilities-debugging:directory-deep-dive Specify directory pathThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Directory Deep Dive
Analyze directory structure and purpose
## Instructions
1. **Target Directory**
- Focus on the specified directory `$ARGUMENTS` or the current working directory
2. **Investigate Architecture**
- Analyze the implementation principles and architecture of the code in this directory and its subdirectories
- Look for:
- Design patterns being used
- Dependencies and their purposes
- Key abstractions and interfaces
- Naming conventions and code organization
3. **Create or Update Documentation**
- Create a CLAUDE.md file capturing this know...Analyze directory structure and purpose
Target Directory
$ARGUMENTS or the current working directoryInvestigate Architecture
Create or Update Documentation
Ensure Proper Placement
This command is based on the work of Thomas Landgraf: https://thomaslandgraf.substack.com/p/claude-codes-memory-working-with
npx claudepluginhub davepoon/buildwithclaude --plugin commands-utilities-debugging/directory-deep-diveAnalyzes directory structure, architecture, design patterns, dependencies, and code organization; creates or updates CLAUDE.md documentation file in target directory.
/analyzeScans codebase and generates ARCHITECTURE.md documentation with tech stack, directory structure, and modules. Supports optional [path] output and [--verbose] flags.
/explore-localAnalyzes local codebase directory (path optional, defaults to current), delivering structure overview, components, patterns via repomix CLI and explorer agent.
/create-mdAnalyzes project structure and generates CLAUDE.md files in root and key subdirectories with overview, setup/run commands, code styles, workflows, and conventions.
/initAnalyzes codebase at given path and generates CLAUDE.md with project conventions, architecture, build commands, and patterns.
/analyze-codebaseGenerates a detailed report analyzing codebase structure, file tree, counts, sizes, configuration files, and key source locations like entry points, routes, models, and components.