ludo-technologies/polyscan/cli-analysis
Claude Code and agent skill by ludo-technologies/polyscan
- community
Checking that the SKILL.md file is still in the repository.
Run the polyscan command-line tool for code quality analysis of JavaScript/TypeScript, Go, Rust, and C++ - CI quality gates, HTML/JSON/text reports, and project configuration. Use when user wants a CI check, a shareable report file, machine-readable results, or to configure polyscan for a project.
Install
npx vskill@latest install ludo-technologies/polyscan/cli-analysisSKILL.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
Key flags:
--format html|json|text(-f): output format;jsonandtextwrite to stdout instead of an HTML report--select(-s):complexity,deadcode,clone,cbo,lcom,deps(all run by default);depsapplies to Go and JavaScript/TypeScript;cboto Go, Rust and JavaScript/TypeScript;lcomto Go and Rust;deadcodeto JavaScript/TypeScript only--no-open: don't auto-open the HTML report in a browser (use in scripts)-o <path>: HTML report path (default:polyscan-report.htmlin the current directory)--min-complexity <n>: hide functions below this complexity from the listing (scores still cover everything)--exclude <patterns>: leave files and directories out of every analysis; a glob without a slash matches a file name or a directory anywhere on the path (fixtures), one with a slash matches a path relative to the analyzed directory with**for any number of segments (src/generated/**)--include-tests: analyze test files and test code, which are left out by default (*_test.go,*.test.*,*.spec.*,__tests__/, Rust#[cfg(test)]andtests/, C++*_test.*andtest/)
With --format json, the machine-readable results go to stdout and the health-score summary goes to stderr, so stdout stays parseable.
Language coverage
Complexity and clone detection cover every supported language. Dependency analysis covers Go and JavaScript/TypeScript. Class coupling (CBO) covers Go, Rust and JavaScript/TypeScript, and class cohesion (LCOM4) Go and Rust. Dead code exists for JavaScript/TypeScript only. The health score is computed over the dimensions that ran: a dimension a language does not have is left out, not scored as clean.
check — CI quality gate
Exit codes: 0 no issues, 1 quality issues found, 2 analysis failed (invalid flag, missing path, unparsable file). Default gates: a function with complexity above 10 fails, critical dead code fails (JavaScript/TypeScript only), and any circular dependency fails. Clone detection runs only with --select clone and never fails the check.
--select accepts: complexity, deadcode, clone, deps (default: complexity,deadcode,deps).
analyze always exits 0 when the analysis ran. To gate on the health score or another report field, use its JSON output:
Configuration
One .polyscan.toml configures every language. polyscan reads the nearest one in the first analyzed path or a directory above it; --config <file> (-c) names a different file. Flags take precedence over the file, and --exclude adds to its patterns.
The file is strict: an unknown key or an out-of-range value fails the run. polyscan does not read jscan.config.json; a directory that has one and no .polyscan.toml fails with an error naming the file. The full key list is at https://docs.codescan.dev/polyscan/configuration/reference/.
Reporting Results
Summarize the health score and grade, list the specific functions/files behind each failing category, and suggest fixes. For CI setup, recommend polyscan check in the pipeline and periodic polyscan analyze HTML reports for deep reviews.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpolyscan/.claude-plugin/polyscan/skills/cli-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ludo-technologies/polyscan/cli-analysis)