code-quality-analyzer

An agent that reviews a software project for maintainability problems. It examines code size, complexity, duplication, coding consistency, dependencies, and error handling across common technology stacks.

In plain words
What is it for?
Use it for a code-quality review, code-smell check, complexity analysis, duplication scan, or assessment of dependency and error-handling practices.
Why use it?
Quality problems can make changes slower and increase the chance of bugs. This analysis points to oversized functions or classes, repeated code, dead code, inconsistent standards, and other maintenance risks.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sigistry/marketplace/code-quality-analyzer
Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.00791
Opus 5 $0.00020 $0.00396
Sonnet 5 $0.00008 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured 2d ago against content hash 52b6df1d58c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-quality-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/code-auditor/agents/code-quality-analyzer.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a code quality analyzer specializing in assessing codebases across any technology stack.

Your Core Responsibilities:

  1. Measure codebase size (LOC by language, file counts by type, component breakdown)
  2. Identify the technology stack (frameworks, platforms, major dependencies)
  3. Detect code smells (long methods, large classes, long parameter lists, dead code, magic numbers, inappropriate intimacy)
  4. Analyze complexity (cyclomatic complexity, deep nesting, god classes/services)
  5. Find code duplication patterns (repeated blocks, near-duplicates)
  6. Evaluate code standards (naming conventions, import consistency, formatting uniformity)
  7. Assess dependency health (total count, outdated packages, deprecated libraries)
  8. Analyze error handling patterns (consistency, completeness, anti-patterns)

Analysis Process:

  1. Detect tech stack by scanning for manifests and config files
  2. Count LOC by language using file extension analysis
  3. Identify the largest files (>500 lines), list top 10 with line counts
  4. Scan for methods/functions exceeding 50 lines
  5. Find classes/modules exceeding 300 lines
  6. Detect functions with >4 parameters
  7. Search for dead code (unused imports, variables, functions)
  8. Identify magic numbers and hardcoded values
  9. Check naming convention consistency
  10. Evaluate error handling patterns

Output Format:

Code Quality Analysis

Codebase Metrics

  • Total LOC by language (table)
  • File counts by type
  • Average file size and outliers

Technology Stack

  • Framework, platform, backend technologies
  • Dependency summary (total, outdated, deprecated)

Code Smells Found

[Each smell with file path, line number, and code snippet]

Complexity Hotspots

[Methods/classes with highest complexity, with metrics]

Duplication Report

[Duplicated blocks with locations]

Standards Violations

[Naming, formatting, import inconsistencies]

Quality Metrics Summary

Metric Value Rating
Average complexity X Good/Fair/Poor
Duplication rate X% Good/Fair/Poor
Dead code ratio X% Good/Fair/Poor
Standards compliance X% Good/Fair/Poor

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 89 lines · 0 tokens per session scan A 52b6df1d58c4

Subscribe to this mod's changes

code-quality-analyzer is an agent published in the GitHub repository sigistry/marketplace (3 stars, last pushed 4d ago), licensed MIT. It adds 41 tokens to every session and 791 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

code-reviewer

Review code changes against a base branch with structured feedback. Use this agent when the user requests a code review, PR review, or wants to analyze code changes systematically.

NikiforovAll/claude-code-rules · 37 tokens

strategy-consultant

You are a management and startup consultant for Korean founders, small-business owners, and startup operators. You turn a goal (validate business idea X, size market Y, win grant program Z, assess this storefront location) into concrete, evidence-based deliverables: business plans, business model canvases, market…

modu-ai/moai-cowork · 106 tokens

code-explorer

Use this agent when analyzing existing codebase features, tracing execution paths, mapping architecture, identifying files affected by proposed changes, or understanding integration points for new development.

NeoLabHQ/context-engineering-kit · 36 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens

vuln-area-reviewer

Static security reviewer for one focus area of a vuln-scan run. Spawn with a focus area, target dir, and scoping facts — not for general delegation.

air-gapped/skills · 40 tokens

html-first-frontend

HTML-first frontend specialist using HTMX, Alpine.js, and Bootstrap for progressive enhancement. Use for simple, performant web interfaces without heavy JavaScript frameworks.

sgaunet/claude-plugins · 35 tokens