Loading...
Loading...
Maps codebase structure, queries symbols, traces call paths, and analyzes dependencies. Use when exploring unfamiliar code, finding function callers/callees, detecting circular imports, or generating project overviews.
npx skill4agent add knoopx/pi codemappercm--format aicm stats . --format ai # Current directory
cm stats ./src --format ai # Specific directorycm map . --level 2 --format ai # Basic overview
cm map . --level 3 --format ai # Detailed structure
cm map . --level 2 --exports-only --format ai # Public API only
cm map ./src --level 2 --format ai # Specific directorycm query authenticate . --format ai # Fuzzy search
cm query User . --exact --format ai # Exact match
cm query validate . --show-body --format ai # Show implementation
cm query process . --exports-only --format ai # Public only# Find callers of a function
cm callers processData . --format ai
cm callers UserService.get . --format ai
# Find callees (what a function calls)
cm callees processData . --format ai
cm callees UserService . --format ai
# Trace call path
cm call-path functionToFind . --format ai
cm call-path functionToFind --reverse --format aicm deps . --format ai # List all dependencies
cm deps . --circular --format ai # Detect circular deps
cm deps . --unused --format ai # Find unused deps
cm deps . --unused-symbols --format ai # Find unused symbolscm tests functionName . --format ai # Find tests for function
cm untested . --format ai # Find untested codecm map . --level 2 --format ai # Get overview
cm query User . --format ai # Find symbols
cm deps . --format ai # Understand depscm tests functionToRefactor . --format ai # Check test coverage
cm callers functionToRefactor . --format ai # Find callers to update
cm callees functionToRefactor . --format ai # Find callees
cm deps . --circular --format ai # Check for cycles--format ai--level 2--level 3--exports-only--show-body--exact