Skip to content
Agentmart
Submit a tool

architecture-critic

Static code analysis like a senior developer — cyclomatic/cognitive complexity, dead code detection, dependency graph analysis (circular deps, god modules)…

Skill by JansenAnalytics

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jansenanalytics-architecture-critic

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Static code analysis like a senior developer — cyclomatic/cognitive complexity, dead code detection, dependency graph analysis (circular deps, god modules), pattern consistency, error handling audit, code duplication detection. Use during refactors or before shipping.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/architecture-critic

What's inside

Skill name
architecture-critic
Description
Static code analysis like a senior developer — cyclomatic/cognitive complexity, dead code detection, dependency graph analysis (circular deps, god modules), pattern consistency, error handling audit, code duplication detection. Use during refactors or before shipping.
License
MIT
Instructions
61 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (9)

  • SKILL.md
  • complexity.cjs · scripts/
  • deadcode.cjs · scripts/
  • deps.cjs · scripts/
  • duplication.cjs · scripts/
  • errors.cjs · scripts/
  • patterns.cjs · scripts/
  • report.cjs · scripts/
  • review.cjs · scripts/

SKILL.md (first lines)

# Architecture Critic

Static code analysis that thinks like a senior developer — complexity, dead code, dependency graphs, patterns, error handling, duplication.

## Quick Start

```bash
# Full review
arch-critic /path/to/project

# Quick review (complexity + dead code only)
arch-critic /path/to/project --quick

# Individual analyzers
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/complexity.cjs /path/to/project
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/deadcode.cjs /path/to/project
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/deps.cjs /path/to/project
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/patterns.cjs /path/to/project
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/errors.cjs /path/to/project
node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/architecture-critic/scripts/duplication.cjs /path/to/project
```

## Scripts

| Script | Purpose | Output |
|--------|---------|--------|
| `complexity.cjs` | Cyclomatic/cognitive complexity, function length, nesting depth | complexity-report.json |
| `deadcode.cjs` | Dead exports, unused variables, unreachable code, tech debt markers | deadcode-report.json |
| `deps.cjs` | Import graph, circular deps, god modules, coupling metrics | dependency-graph.json |
| `patterns.cjs` | Code style consistency (quotes, semis, naming, async patterns) | patterns-report.json |
| `errors.cjs` | Error handling audit (empty catches, unhandled promises) | error-handling-report.json |
| `duplication.cjs` | Duplicate code blocks via normalized hashing | duplication-report.json |
| `review.cjs` | Orchestrator — runs all analyzers | All reports + combined |
| `report.cjs` | Report generator — health score 0-100, top refactors | architecture-review.json/md |

## Options

```
--quick              Complexity + dead code only
--full               All analyzers (default)
--format md|json     Output format (default: json)
--output-dir DIR     Where to write reports
--max-complexity N   Cyclomatic complexity threshold (default: 10)
--ignore PATTERN     Glob pattern to ignore (repeatable)
--block-size N       Duplication block size in lines (default: 6)
```

## Health Score

Weighted 0-100 across all categories. Grade: A (90+), B (75+), C (60+), D (40+), F (<40).

## Languages

- JavaScript/TypeScript (.js, .cjs, .mjs, .ts, .tsx, .jsx)
- Python (.py) — complexity analysis only

## Dependencies

None. Only Node.js built-in modules (fs, path, crypto, child_process).

From JansenAnalytics/claudex, MIT.

More from JansenAnalytics/claudex

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Jun 3, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JansenAnalytics

Cite this page

architecture-critic skill. Agent Mart. https://agentmart.dev/skills/jansenanalytics-architecture-critic (last updated 2026-10-24)