add-code-analyzers
Turn the mechanical code-quality rules into build errors for .NET (banned time APIs, unnecessary usings, accessibility modifiers, nullable) using Directory.Build.props, .editorconfig and BannedSymbols
SKILL.md.claude/skills/add-code-analyzers/SKILL.md
GitHubDelegate to implementer with a pointer prompt:
- Templates:
.ai/templates/dotnet/. For each ofDirectory.Build.props,BannedSymbols.txt: if absent at the solution root, copy with a shell command; if present, add only the missing properties/items with targeted edits. .editorconfig: if absent, copyeditorconfig.templateas.editorconfig; if present and it lacks the# ai-kit:code-qualitymarker, append the template content.- Run
dotnet build. Do not fix violations. OutputVIOLATIONS: <rule id> <count>per diagnostic id, thenNEXT: fix in a separate task.