Roslynator logo

Roslynator

Organization
asynkron
roslynator

Run C# static analysis, auto-fix code issues, format code, find unused code, and enforce coding standards in .NET projects. Use when the user asks about code quality, linting, static analysis, code cleanup, unused code, or formatting in C# / .NET projects.

Overview

Publisherasynkron
Repositoryasynkron-skills
Skill nameroslynator
Stars
32
Forks
3
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by asynkron on GitHub. Read the source before you install it.

Installation

Install the Roslynator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/asynkron/asynkron-skills/tree/main/skills/roslynator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/asynkron/asynkron-skills.git /tmp/asynkron-skills
mkdir -p .claude/skills
cp -r /tmp/asynkron-skills/skills/roslynator .claude/skills/roslynator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Roslynator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Roslynator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Roslynator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Prerequisites

Check if roslynator is installed:

which roslynator

If not found, try running via dnx (no install needed, .NET 10+):

dnx Roslynator.DotNet.Cli [command] [options]

Or install globally:

dotnet tool install -g roslynator.dotnet.cli

About Roslynator

Roslynator is a set of code analysis tools for C# powered by Roslyn. It provides 500+ analyzers, refactorings, and code fixes. The CLI tool can analyze, fix, and format entire solutions from the command line — no IDE needed.

The CLI itself contains no analyzers — they come from NuGet packages referenced in your project (e.g. Roslynator.Analyzers) or via --analyzer-assemblies.

Common Usage

Fix all diagnostics in a solution:

roslynator fix MySolution.sln

Fix all diagnostics in a project:

roslynator fix MyProject.csproj

Analyze without fixing (report only):

roslynator analyze MySolution.sln

Format code:

roslynator format MySolution.sln

Find unused code (dead code detection):

roslynator find-unused MySolution.sln

List symbols:

roslynator list-symbols MySolution.sln

Count lines of code:

roslynator lloc MySolution.sln

Commands

CommandPurpose
fixAuto-fix diagnostics in project/solution
analyzeReport diagnostics without fixing
formatFormat whitespace
find-unusedFind unused declarations (dead code)
list-symbolsList types, members, and symbols
llocCount logical lines of code
locCount physical lines of code
spellcheckCheck spelling in comments and strings

Key Flags (shared across commands)

FlagPurpose
--projects <name>Only process named projects
--ignored-projects <name>Skip specific projects
--include <glob>Include matching files/folders
--exclude <glob>Exclude matching files/folders
-v, --verbosity <level>Output level: quiet, minimal, normal, detailed, diagnostic
-p, --properties <NAME=VALUE>MSBuild properties (e.g. Configuration=Release)
-m, --msbuild-path <dir>Path to MSBuild directory
--language <lang>Language: cs or vb
-g, --include-generated-codeInclude generated code
--file-log <path>Write output to file
-h, --helpShow help

Analyze-specific Flags

FlagPurpose
-a, --analyzer-assemblies <path>Paths to additional analyzer assemblies
--supported-diagnostics <id>Report only these diagnostic IDs
--ignored-diagnostics <id>Skip these diagnostic IDs
--severity-level <level>Minimum severity: hidden, info, warning, error
--ignore-compiler-diagnosticsHide compiler messages
-o, --output <path>Save diagnostics to file
--output-formatReport format: xml or gitlab
--execution-timeMeasure analyzer performance

Configuration

Roslynator is configured via .editorconfig in your project:

Set severity for all Roslynator analyzers:

ini
[*.cs]
dotnet_analyzer_diagnostic.category-roslynator.severity = warning

Enable/disable specific analyzers:

ini
[*.cs]
dotnet_diagnostic.RCS1001.severity = none        # Disable specific rule
dotnet_diagnostic.RCS1036.severity = error        # Upgrade to error

Enable/disable refactorings:

ini
[*.cs]
roslynator_refactoring.add_braces.enabled = false

Exit Codes

CodeMeaning
0Success — no diagnostics found or all fixed
1Diagnostics found or not all fixed
2Error or execution canceled

Workflow with pre-pr

Roslynator is used in the /pre-pr quality gate as the first step:

  1. roslynator fix — auto-fix code issues
  2. dotnet build — verify compilation
  3. dotnet test — run tests
  4. quickdup — check for duplication
  5. dotnet format — format code

Guidelines

  • Always build the solution before running roslynator analyze — it needs compiled output
  • Use roslynator fix for auto-fixing, roslynator analyze for CI reporting
  • Use --severity-level warning to skip info/hidden diagnostics in CI
  • Use --ignored-diagnostics to suppress known false positives
  • Use roslynator find-unused periodically to catch dead code
  • Configure rules in .editorconfig rather than via CLI flags for consistency across team
  • When the user mentions "lint", "static analysis", or "code quality" in a .NET context, this is the tool to use

Frequently asked questions

What does the Roslynator AI skill do?

Run C# static analysis, auto-fix code issues, format code, find unused code, and enforce coding standards in .NET projects. Use when the user asks about code quality, linting, static analysis, code cleanup, unused code, or formatting in C# / .NET projects.

Why use Roslynator on TypingMind?

Because you install it once and use it with any model. Roslynator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Roslynator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/asynkron/asynkron-skills/tree/main/skills/roslynator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Roslynator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Roslynator?

As many as you like. As long as a model supports skills, you can use Roslynator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Roslynator AI skill free?

It is published on GitHub by asynkron. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇