analyze

analyze is a command for Claude Code from CartapenaBark/DotNetAnalyzer. It costs 22 tokens per session (578 once invoked), scanned A, original, MIT.

A .NET project and solution checker that maps projects, examines diagnostics, and produces a structured overview. .NET is Microsoft's platform for building applications, often using C#.

In plain words
What is it for?
Use it to inspect a .NET project or solution, see how its projects depend on each other, review diagnostics, and gather recommendations.
Why use it?
It saves time spent manually tracing project structure and collecting compiler or configuration problems. It puts the main findings in one summary.

Command 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 it to inspect a .NET project or solution, see how its projects depend on each other, review diagnostics, and gather recommendations.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cartapenabark/dotnetanalyzer/analyze
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.

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 analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/cartapenabark/dotnetanalyzer/analyze/github.svg)](https://agentmods.dev/commands/cartapenabark/dotnetanalyzer/analyze)
Your own site
<a href="https://agentmods.dev/commands/cartapenabark/dotnetanalyzer/analyze"><img src="https://agentmods.dev/badge/commands/cartapenabark/dotnetanalyzer/analyze/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 analyze

Your own site · 80×15
<a href="https://agentmods.dev/commands/cartapenabark/dotnetanalyzer/analyze"><img src="https://agentmods.dev/badge/commands/cartapenabark/dotnetanalyzer/analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.00022 $0.00578
Opus 5.5 $0.00009 $0.00231
Sonnet 5.5 $0.00004 $0.00116
Haiku 4.5 $0.00002 $0.00058

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

Security

Grade A, and why

analyze 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/commands/analyze.md · 72 lines

How it starts

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

/netan:analyze — .NET Project Analysis

Analyze a .NET solution or project and present a structured summary of its structure, diagnostics, and recommendations.

Prerequisite Check

  1. Run dotnet-analyzer --version to verify the global tool is installed
  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 dotnet tool install --global DotNetAnalyzer and continue
    • If declined, provide the manual install command and stop

Arguments

The user may optionally provide a project or solution path:

  • If provided: use that path directly
  • If not provided: auto-detect by looking for *.slnx or *.sln in the current working directory
  • If no solution file found: ask the user for the path

Steps

  1. Identify the target:

    • Use the provided path, or auto-detect *.slnx / *.sln in the current directory
    • If it's a .sln/.slnx, use it as solutionPath
    • If it's a .csproj, use it as projectPath
  2. List projects (solution only):

    • Call list_projects with the solution path
    • Note project count and dependency relationships
  3. Get solution info (solution only):

    • Call get_solution_info for build order and startup projects
  4. Get project info:

    • Call get_project_info for the main project(s)
    • Note target framework, output type, document count
  5. Check diagnostics:

    • Call get_diagnostics with the project or solution path
    • Count errors, warnings, and informational messages
  6. Present summary:

    ## Analysis Summary: [Solution/Project Name]
    
    ### Structure
    - Projects: N
    - Build order: [list]
    - Startup project: [name]
    
    ### Diagnostics
    - Errors: N
    - Warnings: N
    - Info: N
    
    ### Key Findings
    - [List notable issues or observations]
    
    ### Recommendations
    - [Actionable suggestions based on findings]
    

Notes

  • Use MCP tools with the prefix mcp__plugin_netan_dotnet-analyzer__
  • If diagnostics show errors, highlight them prominently in the summary
  • For large solutions (>10 projects), focus on the main project and its direct dependencies

Read the full file on GitHub · 72 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 · 72 lines · 22 tokens per session scan A 371abb7c0a4a

Subscribe to this mod's changes

analyze is a command published in the GitHub repository CartapenaBark/DotNetAnalyzer (2 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 578 once invoked, about $0.0001 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.