/polyscan:architecture-reviewfrom polyscan
Analyzes module architecture using polyscan: class coupling (CBO), class cohesion (LCOM4), instability metrics, and circular dependency detection. Useful when asked about architecture, module structure, coupling, or circular dependencies.
Ships in polyscan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the polyscan CLI to understand module structure and coupling. Dependency analysis exists for Go (package graph) and JavaScript/TypeScript (module graph); coupling (CBO) for Go, Rust and JavaScript/TypeScript; class cohesion (LCOM4) for Go, Rust and Java; C++ gets complexity and clone detection only. No install needed: npx polyscan@latest analyze <path>.
| User Request | Command |
|---|---|
| "Check class coupling" | npx polyscan@latest analyze --format text --select cbo <path> |
| "Which Go, Rust or Java types do too many things?" | npx polyscan@latest analyze --format text --select lcom <path> |
| "Find circular dependencies" | npx polyscan@latest analyze --format text --select deps <path> |
| "Which modules are risky to change?" | npx polyscan@latest analyze --format json --select deps,cbo <path> |
Text output shows per-class CBO and cycle membership, but only aggregate coupling stats for modules. Per-module Martin metrics (Ca/Ce, instability, abstractness, distance, risk level) and the explicit Zone of Pain / main-sequence module lists live in the deps section of the --format json output, which goes to stdout with the health-score summary on stderr.
Always tie findings back to concrete modules and suggest a specific structural change.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Go, Rust, Java, TypeScript, JavaScript
4 skills in this plugin
/cli-analysisRun the polyscan command-line tool for code quality analysis of JavaScript/TypeScript, Go, Rust, C++, and Java - 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./health-checkGet an overall code quality health score for JavaScript/TypeScript, Go, Rust, C++, or Java using polyscan. Use when user asks how healthy or good the code is, wants a quality overview, a grade, a summary of technical debt, or a before/after quality comparison./refactoringFind refactoring targets in JavaScript/TypeScript, Go, Rust, C++, or Java code using polyscan - duplicate code (clones), overly complex functions, and dead code. Use when user asks about refactoring, code duplication, complexity hotspots, unreachable code, or cleaning up a codebase.npx claudepluginhub ludo-technologies/polyscan --plugin polyscanOther plugins' skills for the same job