Use a repo-root `.editorconfig` to configure free .NET analyzer and style rules.
Chous for Frontend File-Structure Linting in .NET Repositories
Use Chous in .NET repositories that ship sizeable frontend codebases and want file-structure linting, naming convention enforcement, and folder-layout policy as a CLI gate. Use when the problem is frontend architecture drift in the file tree rather than semantic code issues inside the files.
Trigger On
- the repo has a growing frontend tree and the user asks about naming conventions, folder structure, or file placement rules
- the repo wants to enforce layout policy for
ClientApp/,src/,apps/, orpackages/ - architectural drift in the frontend file tree is a larger problem than syntax errors
Workflow
- Define the structure problem first:
- naming convention drift - component placement - forbidden folders or files - monorepo frontend boundaries
- Start from
chous initor a known preset, then tighten only the rules the repo can explain. - Keep the checked-in
.chousfile readable enough that future contributors understand the policy. - Add repeatable commands such as:
- npx chous
- Exclude generated folders, build artifacts, and vendored assets so the signal stays architectural.
- Use Chous as a supplement to semantic linters, not as their replacement.
- Re-run after moves or refactors to confirm the structure policy still matches the intended design.
Deliver
- a checked-in frontend structure policy
- repeatable file-tree linting commands
- explicit exclusions for generated and vendored folders
Validate
- the
.chousrules reflect real architecture intent - generated output is excluded
- Chous is used alongside, not instead of, semantic linters
- the policy remains understandable after the first rollout
Related skills
Use the open-source free `CSharpier` formatter for C# and XML.
CSharpier
Use the free built-in .NET SDK analyzers and analysis levels with gradual Roslyn warning promotion.
Microsoft.CodeAnalysis.NetAnalyzers
Related agents
.NET Frontend
Frontend-focused orchestration agent for .NET repositories that ship browser-facing UI plus Node-based frontend assets.
agents install frontend
Also works: dotnet agents install frontend
Routes to
+8 more