Dotnet-skills dotnet-csharpier
Use the open-source free `CSharpier` formatter for C# and XML. Use when a .NET repo intentionally wants one opinionated formatter instead of a highly configurable `dotnet format`-driven style model.
install
source · Clone the upstream repo
git clone https://github.com/managedcode/dotnet-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/managedcode/dotnet-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/catalog/Tools/CSharpier/skills/dotnet-csharpier" ~/.claude/skills/managedcode-dotnet-skills-dotnet-csharpier && rm -rf "$T"
manifest:
catalog/Tools/CSharpier/skills/dotnet-csharpier/SKILL.mdsource content
CSharpier for .NET
Trigger On
- the repo uses or wants
CSharpier - the team prefers an opinionated formatter over many configurable style knobs
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
- repos that already standardized on
as the only formatterdotnet format
Inputs
- the nearest
AGENTS.md - current formatting ownership model
- any
or.csharpierignore.editorconfig
Quick Start
- Read the nearest
and confirm scope and constraints.AGENTS.md - Run this skill's
through theWorkflow
until outcomes are acceptable.Ralph Loop - Return the
with concrete artifacts and verification evidence.Required Result Format
Workflow
- Decide whether CSharpier is the primary formatter or only complements other tools.
- Use
mode in CI.check - Keep ignore files and config explicit in repo.
- Do not let
andCSharpier
both own the same formatting space without documentation.dotnet format
Bootstrap When Missing
If
CSharpier is not configured yet:
- Detect current state:
rg --files -g '.config/dotnet-tools.json' -g '.csharpierignore'dotnet tool list --localdotnet tool list --global
- Prefer local tool installation for reproducible CI:
(if missing)dotnet new tool-manifestdotnet tool install csharpier
- Add
when needed and define ownership vs.csharpierignore
indotnet format
.AGENTS.md - Add
to CI.dotnet csharpier check . - Run
and returndotnet csharpier check .
orstatus: configured
.status: improved - If the repo intentionally uses only
, returndotnet format
unless migration is requested.status: not_applicable
Deliver
- explicit CSharpier ownership and commands
- CI-safe formatter checks
Validate
- formatter ownership is not ambiguous
- the repo is comfortable with opinionated formatting decisions
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
with explicit reason and fallback path.status: not_applicable
Required Result Format
:status
|complete
|clean
|improved
|configured
|not_applicableblocked
: concise plan and current iteration stepplan
: concrete changes madeactions_taken
: final skills run, or skipped with reasonsvalidation_skills
: commands, checks, or review evidence summaryverification
: top unresolved items orremainingnone
For setup-only requests with no execution, return
status: configured and exact next commands.
Load References
references/commands.mdreferences/config.mdreferences/csharpier.md
Example Requests
- "Set up CSharpier for this repo."
- "Compare CSharpier and dotnet format."