dotnet-format
Skill13 starsChanged 8 months agoMITView on GitHub
Use the free first-party `dotnet format` CLI for .NET formatting and analyzer fixes. Use when a .NET repo needs formatting commands, `--verify-no-changes` CI checks, or `.editorconfig`-driven code style enforcement.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- EJRyan89/coding-agent-skillstheir own version, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- EJRyan89/coding-agent-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- dotnet-analyzer-configSkill
- dotnet-architectureSkill
- dotnet-archunitnetSkill
- dotnet-aspireSkill
- dotnet-aspnet-coreSkill
- dotnet-asynkron-profilerSkill
- dotnet-azure-functionsSkill
- dotnet-biomeSkill
- dotnet-blazorSkill
- dotnet-chousSkill
- dotnet-clocSkill
- dotnet-code-analysisSkill
- dotnet-codeqlSkill
- dotnet-code-reviewSkill
- dotnet-complexitySkill
- dotnet-coverletSkill
- dotnet-csharpierSkill
- dotnet-entity-framework6Skill
- dotnet-entity-framework-coreSkill
- dotnet-eslintSkill
- dotnet-grpcSkill
- dotnet-htmlhintSkill
- dotnet-legacy-aspnetSkill
- dotnet-libvlcSkill
- dotnet-managedcode-communicationSkill
- dotnet-managedcode-markitdownSkill
- dotnet-managedcode-mimetypesSkill
- dotnet-managedcode-orleans-graphSkill
- dotnet-managedcode-orleans-signalrSkill
- dotnet-managedcode-storageSkill
- dotnet-mauiSkill
- dotnet-mcaf-agile-deliverySkill
- dotnet-mcaf-devexSkill
- dotnet-mcaf-documentationSkill
- dotnet-mcaf-feature-specSkill
- dotnet-mcaf-human-review-planningSkill
- dotnet-mcaf-ml-ai-deliverySkill
- dotnet-mcaf-nfrSkill
- dotnet-mcafSkill
- dotnet-mcaf-source-controlSkill
- dotnet-mcaf-ui-uxSkill
- dotnet-mcpSkill
- dotnet-metalintSkill
- dotnet-meziantou-analyzerSkill
- dotnet-microsoft-agent-frameworkSkill
- dotnet-microsoft-extensions-aiSkill
- dotnet-microsoft-extensionsSkill
- dotnet-minimal-apisSkill
- dotnet-mixed-realitySkill
- dotnet-mlnetSkill
- dotnet-modern-csharpSkill
- dotnet-mstestSkill
- dotnet-mvvmSkill
- dotnet-netarchtestSkill
- dotnet-nunitSkill
- dotnet-orleansSkill
- dotnet-profilingSkill
- dotnet-project-setupSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 8 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
leave reusable project context so future tasks are faster and safer
- Distinctive: line 36
Read the nearest AGENTS.md and confirm scope and constraints.
- Very specific: line 37
Run this skill's Workflow through the Ralph Loop until outcomes are acceptable.
- Very specific: line 42
Prefer the SDK-provided dotnet format command instead of inventing custom format scripts.
- Very specific: line 43
Start with verify mode in CI: dotnet format TARGET --verify-no-changes.
- Distinctive: line 44
Use narrower subcommands only when the repo needs them:
- Very specific: line 48
Keep .editorconfig as the source of truth for style preferences.
- Very specific: line 49
If the repo also uses CSharpier, document which tool owns which file types or rules.
- Very specific: line 53
If dotnet format is requested but not available yet:
- Very specific: line 58
Treat dotnet format as SDK-provided, not as a separate repo-local tool by default.
- Very specific: line 59
If the command is missing, install or upgrade to a supported .NET SDK, then recheck dotnet format --version.
- Distinctive: line 60
Add explicit local and CI commands to AGENTS.md, usually:
- Very specific: line 62
Run the chosen command once and return status: configured or status: improved.
- Very specific: line 63
If the repo intentionally uses only CSharpier for formatting ownership, return status: not_applicable.
- Distinctive: line 73
no overlapping formatter ownership is left ambiguous
- Distinctive: line 77
Use the Ralph Loop for every task, including docs, architecture, testing, and tooling work.
- Distinctive: line 82
write a detailed execution plan
- Distinctive: line 87
Update the plan after each iteration.
- Very specific: line 89
If a dependency is missing, bootstrap it or return status: not_applicable with explicit reason and fallback path.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
dotnet format
Trigger On
- the repo uses
dotnet format - you need a CI-safe formatting check for .NET
- the repo wants
.editorconfig-driven style enforcement
Value
- produce a concrete project delta: code, docs, config, tests, CI, or review artifact
- reduce ambiguity through explicit planning, verification, and final validation skills
- leave reusable project context so future tasks are faster and safer
Do Not Use For
- repositories that intentionally use
CSharpieras the only formatter - analyzer strategy with no formatting command change
Inputs
- the nearest
AGENTS.md - the solution or project path
- the current
.editorconfig
Quick Start
- Read the nearest
AGENTS.mdand confirm scope and constraints. - Run this skill's
Workflowthrough theRalph Loopuntil outcomes are acceptable. - Return the
Required Result Formatwith concrete artifacts and verification evidence.
Workflow
- Prefer the SDK-provided
dotnet formatcommand instead of inventing custom format scripts. - Start with verify mode in CI:
dotnet format TARGET --verify-no-changes. - Use narrower subcommands only when the repo needs them:
whitespacestyleanalyzers
- Keep
.editorconfigas the source of truth for style preferences. - If the repo also uses
CSharpier, document which tool owns which file types or rules.
Bootstrap When Missing
If dotnet format is requested but not available yet:
- Detect current state:
dotnet --infodotnet format --version
- Treat
dotnet formatas SDK-provided, not as a separate repo-local tool by default. - If the command is missing, install or upgrade to a supported .NET SDK, then recheck
dotnet format --version. - Add explicit local and CI commands to
AGENTS.md, usually:dotnet format TARGET --verify-no-changes
- Run the chosen command once and return
status: configuredorstatus: improved. - If the repo intentionally uses only
CSharpierfor formatting ownership, returnstatus: not_applicable.
Deliver
- explicit
dotnet formatcommands for local and CI runs - formatting that follows
.editorconfig
Validate
- formatting is reproducible on CI
- no overlapping formatter ownership is left ambiguous
Ralph Loop
Use the Ralph Loop for every task, including docs, architecture, testing, and tooling work.
- Plan first (mandatory):
- analyze current state
- define target outcome, constraints, and risks
- write a detailed execution plan
- list final validation skills to run at the end, with order and reason
- Execute one planned step and produce a concrete delta.
- Review the result and capture findings with actionable next fixes.
- Apply fixes in small batches and rerun the relevant checks or review steps.
- Update the plan after each iteration.
- Repeat until outcomes are acceptable or only explicit exceptions remain.
- If a dependency is missing, bootstrap it or return
status: not_applicablewith explicit reason and fallback path.
Required Result Format
status:complete|clean|improved|configured|not_applicable|blockedplan: concise plan and current iteration stepactions_taken: concrete changes madevalidation_skills: final skills run, or skipped with reasonsverification: commands, checks, or review evidence summaryremaining: top unresolved items ornone
For setup-only requests with no execution, return status: configured and exact next commands.
Load References
references/dotnet-format.mdreferences/commands.mdreferences/config.md
Example Requests
- "Add
dotnet formatto this repo." - "Make formatting fail CI if files drift."
- "Explain when to use
dotnet formatversusCSharpier."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

