pip install habit-hooks-csharp Copy PIP instructions
The C# plugin for Habit Hooks: finds structural code smells in C# and turns each one into guidance an AI coding agent can act on.
Until it is on PyPI, install it from this repo. Building it needs the .NET 8 SDK or later.
uv tool install habit-hooks --with git+https://github.com/isidore/HabitHooksCsharp uv tool install --force replaces every plugin, so add a --with for each plugin you already use.
# .habit-hooks/config.toml plugins = ["csharp", "generic"] Installing a plugin does not switch it on: it has to be named in plugins. The generic plugin adds oversized files and duplication.
# .habit-hooks/config.toml # Also report license headers and `///` doc comments. [sensors.comment] args = ["--include-file-header", "--include-doc-comments"] # Name the solution or project to build when the folder has more than one. [sensors.roslyn] args = ["--project", "MySolution.sln"] # Skip the build-based sensor entirely. # [sensors.roslyn] # disabled = true Detectors dotnet: the .NET SDK, 8 or later. Develop dotnet test HabitHooksCsharp.slnx # approval tests for csharp-tool uv build --wheel # builds csharp-tool into the wheel uv tool install --force habit-hooks --with ./ # try it locally The sensors in src/habit_hooks_csharp/sensors/ all call csharp-tool (comments, smells, analyzers). Commit messages use Arlo's commit notation, built with tools/create-commit-message.sh.
All 2 files in this release have provenance metadata.
ai-coding-agents code-smells csharp dotnet habit-hooks refactoring roslyn
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




