cli-analysis
Installation
SKILL.md
Code Quality Analysis with the polyscan CLI
Use the polyscan command-line tool when the task needs report files, CI integration, or machine-readable results. It analyzes JavaScript, TypeScript, Go, Rust and C++ in one run; the language of each file is detected from its extension.
No install needed: npx polyscan@latest analyze <path> (or npm install -g polyscan for a permanent install). The examples below use a bare polyscan for readability — prefix with npx polyscan@latest when polyscan isn't installed.
analyze — the one command
polyscan analyze . # HTML report (polyscan-report.html) + opens browser
polyscan analyze --no-open . # HTML report without opening a browser
polyscan analyze --format json src/ # JSON results to stdout
polyscan analyze --format text src/ # human-readable text to stdout
polyscan analyze --select complexity,clone . # only specific analyses
polyscan analyze --no-open -o report.html . # custom report path
polyscan analyze --min-complexity 10 . # list only functions at or above 10
Key flags: