dotnet-analyzer-code-quality

dotnet-analyzer-code-quality is a skill for Claude Code from CartapenaBark/DotNetAnalyzer. It costs 242 tokens per session (1,041 once invoked), scanned A, original, MIT.

.NET code analysis tools that inspect projects for code-quality problems, design-rule violations, unused code, technical debt, and performance issues.

In plain words
What is it for?
Use them to detect code smells, estimate technical debt, generate quality reports, read diagnostics, find dead code, and identify performance bottlenecks.
Why use it?
They help locate maintenance problems and compiler diagnostics that can be difficult to find by reviewing a large .NET codebase manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the netan plugin — 5 skills, 3 commands shipped together

Good fit Use them to detect code smells, estimate technical debt, generate quality reports, read diagnostics, find dead code, and identify performance bottlenecks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality
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.

Any agent
npx skills add CartapenaBark/DotNetAnalyzer --skill dotnet-analyzer-code-quality
Clone the repo
git clone --depth 1 https://github.com/CartapenaBark/DotNetAnalyzer

Made for: Claude Code.

Or install netan, the plugin that ships this one along with the rest of its 5 skills, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-analyzer-code-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality/github.svg)](https://agentmods.dev/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality)
Your own site
<a href="https://agentmods.dev/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality"><img src="https://agentmods.dev/badge/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-analyzer-code-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality"><img src="https://agentmods.dev/badge/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 242 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00242 $0.01041
Opus 5.5 $0.00097 $0.00416
Sonnet 5.5 $0.00048 $0.00208
Haiku 4.5 $0.00024 $0.00104

Measured 1mo ago against content hash f3ff32b1b3e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-analyzer-code-quality 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 1mo 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.

plugin/skills/dotnet-analyzer-code-quality/SKILL.md · 93 lines

How it starts

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

.NET Code Quality Analysis

Detect and quantify code quality issues, architecture violations, and technical debt in .NET projects.

Prerequisite Check

Before any analysis, verify dotnet-analyzer is installed:

  1. Run dotnet-analyzer --version in a shell
  2. If it fails, ask the user: "DotNetAnalyzer global tool is not installed. Shall I run dotnet tool install --global DotNetAnalyzer for you?"
    • If confirmed, run the install command and continue
    • If declined, provide the manual install command and stop

Available MCP Tools

Use these MCP tools (prefixed with mcp__plugin_netan_dotnet-analyzer__):

Tool Purpose Key Parameters
detect_code_smells Detect 12 types of code smells projectPath, optional minSeverity
quantify_technical_debt Quantify tech debt in hours projectPath, optional includeTrend
generate_quality_report Comprehensive quality report projectPath
get_diagnostics Compiler errors, warnings, info projectPath, optional filePath
find_dead_code Find unused types and methods projectPath
analyze_performance Identify performance bottlenecks projectPath
generate_heatmap Complexity or change-frequency heatmap projectPath, type
generate_dependency_graph Dependency graph (Mermaid/JSON/DOT) projectPath, optional format
check_architecture_rules Check architecture constraints (SARIF) projectPath

Workflow

Quick Quality Check

  1. Get diagnostics: Call get_diagnostics for compiler errors/warnings
  2. Detect code smells: Call detect_code_smells with minSeverity: "Major"
  3. Summarize: Present error count, warning count, and top code smells

Comprehensive Quality Report

  1. Diagnostics: get_diagnostics for compilation status
  2. Code smells: detect_code_smells for all severity levels
  3. Technical debt: quantify_technical_debt for debt estimates
  4. Architecture: check_architecture_rules for dependency violations
  5. Dead code: find_dead_code for unused code
  6. Performance: analyze_performance for bottlenecks
  7. Report: Call generate_quality_report for combined output

Read the full file on GitHub · 93 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. 1mo ago First seen · 93 lines · 242 tokens per session scan A f3ff32b1b3e6

Subscribe to this mod's changes

dotnet-analyzer-code-quality is a skill published in the GitHub repository CartapenaBark/DotNetAnalyzer (2 stars, last pushed 6mo ago), licensed MIT. It adds 242 tokens to every session and 1,041 once invoked, about $0.0010 per session on Opus 5.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 skills, from other repositories

river-review-architecture

An architecture-review guide that checks whether software design decisions, system boundaries, and data models fit together consistently. An architecture review examines the structure and dependencies of a system.

s977043/river-review · 53 tokens

dekko-verify

Sanity-check a suspiciously low or zero call-graph result from dekko (getcallers, getcallees, findusages, impactedtests, unused) before concluding "no callers" or "dead code," or a heritage/throws-provenance result (query supertypes, query subtypes, query throws) that labels something (external) when you expect it to…

aahlijia/dekko · 151 tokens

ch015-verifier

Run CH015 adversarial verification workflows to independently validate security reports, recheck file-line evidence, find false positives, severity errors, missed findings, and dependencies.

ch015/code-pentester · 37 tokens

ch015-pentest

Run CH015 penetration testing workflows for attacker-minded source-code review, exploit scenarios, POC generation, dry-run or live verification, and security findings.

ch015/code-pentester · 35 tokens

review

The definitive code review, for any codebase. Five-phase workflow: git context detection (worktree, branch, base, changed files), Pharaoh recon (architecture map, module context, blast radius in one call, with a fallback when the repo isn't mapped), parallel specialized agent dispatch (code quality, security against…

Pharaoh-so/pharaoh-mcp · 115 tokens

ADR Decision Quality

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

s977043/river-review · 28 tokens