Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By NikiforovAllv1.0.0MITIn 1 marketplace
Formats C# files with CSharpier automatically after Claude writes or edits them. Needs CSharpier installed; a failed format warns without blocking Claude.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatic CSharpier formatting for C# files after Claude writes or edits them.
This was part of handbook-dotnet until 1.20.1. It is its own plugin now so you can take the .NET skills without the formatting hook, or the hook without the skills.
PostToolUse hook that formats .cs, .CS, .csx and .CSX files after Write or Editdotnet csharpier (repo tool manifest) first, then a global csharpier.csharpierrc if you have oneCSharpier, and jq for reading the hook's JSON input.
dotnet tool install -g csharpier
claude plugin marketplace add nikiforovall/claude-code-rules
claude plugin install dotnet-csharpier@cc-handbook
Disable the hook:
# For your shell
export CC_DOTNET_CSHARPIER_DISABLE_HOOKS=true
# For one Claude Code session
CC_DOTNET_CSHARPIER_DISABLE_HOOKS=true claude
CC_HANDBOOK_DOTNET_DISABLE_HOOKS, the name this hook used inside handbook-dotnet, still works.
To change how CSharpier formats, put a .csharpierrc or .csharpierrc.json in your project root.
.claude-plugin/plugin.json records the CSharpier version the hook is written against and the CLI options it passes:
"assumes": {
"csharpier": {
"majorVersion": 1,
"testedWith": ["1.2.6", "1.3.0"],
"options": {
"required": ["--skip-validation"],
"errorsAsWarnings": [
"--compilation-errors-as-warnings",
"--syntax-errors-as-warnings"
]
}
}
}
This is not decoration. CSharpier reads an option it does not know as a path, so a wrong option name does not produce a clear error — every run fails with There was no file or directory found at --flag and nothing is ever formatted. That is exactly what happened when --compilation-errors-as-warnings (1.2.6) became --syntax-errors-as-warnings (1.3.0).
So the hook does not hardcode a name. It reads format --help from whichever CSharpier is installed and uses the first spelling that CLI actually lists. When you add support for a new CSharpier version, add its option names here and the hook follows.
bash hooks/test-format-hook.sh
The suite checks file-type filtering, input validation, both disable variables, real formatting, and — against every CSharpier on the machine — that the options recorded in the manifest still exist. That last group is the one that catches an upstream rename before your next edit does.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nikiforovall/claude-code-rules --plugin dotnet-csharpierPlugins from other owners that cover similar ground