Claude Code · Comandos slashRefactor
/directory-deep-dive
Analiza a fondo un directorio del proyecto.
por davila7/claude-code-templates
codebase
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --command utilities/directory-deep-diveContenido
Dónde va: .claude/commands/directory-deep-dive.md
---
description: "Analyze directory structure and purpose"
---
# 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 knowledge
- If one already exists, update it with newly discovered information
- Include:
- Purpose and responsibility of this module
- Key architectural decisions
- Important implementation details
- Common patterns used throughout the code
- Any gotchas or non-obvious behaviors
4. **Ensure Proper Placement**
- Place the CLAUDE.md file in the directory being analyzed
- This ensures the context is loaded when working in that specific area
## Credit
This command is based on the work of Thomas Landgraf: https://thomaslandgraf.substack.com/p/claude-codes-memory-working-withMás en Comandos slash
/commit
Redacta un commit con Conventional Commits a partir de los cambios en stage.
/review
Revisa el diff actual buscando bugs, casos borde y problemas de seguridad.
/tests
Escribe tests para el archivo o función que indiques.
/changelog
Genera las notas de versión desde el último tag.
/explain
Explica cómo funciona un archivo o módulo, con un diagrama del flujo.
/cleanup
Elimina imports, variables y código muerto sin cambiar el comportamiento.