analyze-dependencies
Please perform a comprehensive dependency analysis of this codebase:
Please help me deeply understand this module: $MODULE_PATH
How it fires
How this command gets triggered: by you, by Claude, or both.
/explore-moduleContext preview
What this command does when you run it.
Please help me deeply understand this module: $MODULE_PATH
Please help me deeply understand this module: $MODULE_PATH
Exploration depth: ${DEPTH:-3} Focus areas: ${FOCUS:-all aspects}
1. **Get module overview**:
# Show module structure
ch ctx focus "$MODULE_PATH" ${DEPTH:-3}
# List all files
find "$MODULE_PATH" -type f -name "*.${EXT:-js|ts|py}" | head -202. **Understand module boundaries**:
# Find entry points chs find-file "index.*" "$MODULE_PATH" # Look for main exports chs find-code "export|module.exports" "$MODULE_PATH"
3. **Trace dependencies**:
# What does this module import?
ch cr imports-of "$MODULE_PATH/index.${EXT:-js}"
# Generate dependency tree
ch cr dependency-tree "$MODULE_PATH"
# Check for circular dependencies
ch cr circular "$MODULE_PATH"4. **Find who uses this module**:
# Who imports this module? ch cr imported-by "$MODULE_PATH" # Search for direct references MODULE_NAME=$(basename "$MODULE_PATH") chs find-code "from.*$MODULE_NAME|import.*$MODULE_NAME"
5. **Locate tests**:
# Find test files chs find-file "*.test.*|*.spec.*" "$MODULE_PATH" # Find tests in other locations chs find-code "$MODULE_NAME" --include "*.test.*"
6. **Check documentation**:
# Find docs chs find-file "*.md" "$MODULE_PATH" # Look for inline documentation chs find-code "^\\s*\\*|^\\s*/\\*\\*|@param|@returns" "$MODULE_PATH"
7. **Analyze code quality**:
# Check complexity ch cq large-files 200 "$MODULE_PATH" # Find TODOs ch cq todos "$MODULE_PATH"
1. **Architecture**:
2. **Dependencies**:
3. **Testing**:
4. **Performance**:
Please provide a comprehensive analysis of $MODULE_PATH including its purpose, structure, dependencies, and any recommendations for improvements.
Give Claude the super powers it deserves with this power user collection of bash scripts and slash commands
Please perform a comprehensive dependency analysis of this codebase:
Please help me document all APIs in this codebase systematically:
Automatically identify and fix CI failures or review feedback on the current PR, then push the fixes.