dotnet-analyzer-actions

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

A collection of .NET code tools powered by Roslyn, the compiler platform used to understand C# and other .NET code. It supports refactoring, code generation, project changes, decompilation, and XAML analysis.

In plain words
What is it for?
It is for extracting methods, renaming symbols, changing method signatures, generating interfaces, adding project references, examining XAML, and related .NET work.
Why use it?
It helps make broad code changes and inspect .NET projects without editing every reference by hand.

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 It is for extracting methods, renaming symbols, changing method signatures, generating interfaces, adding project references, examining XAML, and related .NET work.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-actions.svg)](https://agentmods.dev/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-actions)
Your own site
<a href="https://agentmods.dev/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-actions"><img src="https://agentmods.dev/badge/skills/cartapenabark/dotnetanalyzer/dotnet-analyzer-actions.svg" alt="Measured on agentmods" height="20"></a>
Per session 319 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,575 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.00319 $0.01575
Opus 5 $0.00160 $0.00788
Sonnet 5 $0.00064 $0.00315
Haiku 4.5 $0.00032 $0.00158

Measured 7d ago against content hash eedbab9e9e1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

dotnet-analyzer-actions 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 7d 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-actions/SKILL.md · 160 lines

How it starts

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

.NET Code Actions

Perform refactoring, code generation, project operations, decompilation, XAML analysis, and desktop pattern detection.

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__):

Refactoring

Tool Purpose
extract_method Extract selected code into a new method
rename_symbol Rename a symbol across all references
introduce_variable Introduce a local variable for an expression
encapsulate_field Convert field to property with backing field
extract_interface Extract public members into an interface
change_signature Add/remove/reorder method parameters
add_parameter Add a parameter to a method
inline_temporary Inline a temporary variable
safely_remove_as Remove unnecessary as cast
remove_unnecessary_code Remove dead/redundant code
convert_for_to_foreach Convert for loop to foreach
convert_foreach_to_for Convert foreach to for loop
convert_if_to_switch Convert if chain to switch
reverse_for_statement Reverse for loop direction
list_refactorers List available refactorers

Code Generation

Tool Purpose
generate_interface_impl Generate interface implementation stubs
generate_constructor Generate constructor from fields/properties
generate_property Generate auto/full property
generate_deconstructor Generate deconstructor (tuple pattern)
generate_from_usage Generate type/member from usage
remove_unused_usings Remove unused using directives
sort_usings Sort using directives (System → Third-party → Local)
add_missing_imports Add missing namespace imports
organize_imports Remove unused + sort in one pass
format_selection Format selected code

Read the full file on GitHub · 160 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. 7d ago First seen · 160 lines · 319 tokens per session scan A eedbab9e9e1a

Subscribe to this mod's changes

dotnet-analyzer-actions is a skill published in the GitHub repository CartapenaBark/DotNetAnalyzer (2 stars, last pushed 4mo ago), licensed MIT. It adds 319 tokens to every session and 1,575 once invoked, about $0.0016 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.