| name | analyze |
| description | Run static analysis on a project directory and show results |
| argument-hint | ["directory-path"] |
| allowed-tools | Bash, Read |
Run Scalpel's static analysis (tree-sitter) on a project directory.
-
Detect language from project files:
- package.json → Node.js/TypeScript
- requirements.txt/pyproject.toml → Python
- go.mod → Go
- Cargo.toml → Rust
-
Run analysis:
cargo run -p scalpel-cli -- analyze ${ARGUMENTS:-.}
- Report:
- Total functions found
- Total call sites found
- Total imports found
- Must-keep patterns detected (error handlers, lifecycle hooks)
- Language breakdown if multi-language