dotnet-agent-kit
AGENTS.md853 starsChanged yesterdayMITView on GitHub
This file defines how Claude Code routes work to the kit's agents and skills, and how they coordinate. The kit has three agents and 34 skills. Domain knowledge (architecture, APIs, EF Core, testing, DevOps, desktop) lives in skills that load on demand. An agent exists only where a separate context or a tool restriction pays for itself. Match user intent to an agent or a skill. When more than one row matches, the first match wins. Core skills load first.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- codewithmukesh/dotnet-claude-kitword for word, first seen Nov 28, 2026
Other versions1 project uses a version of this.
Word for word · 1
- codewithmukesh/dotnet-claude-kit★ 853100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository38 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- .opencode/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/dotnet-rules.mdCursor rule
- architecture-advisorSkill
- aspireSkill
- authenticationSkill
- build-fixSkill
- cachingSkill
- ci-cdSkill
- code-reviewSkill
- configurationSkill
- console-cliSkill
- dependency-injectionSkill
- desktop-mvvmSkill
- de-sloppifySkill
- dockerSkill
- doctorSkill
- dotnet-initSkill
- ef-coreSkill
- error-handlingSkill
- instinct-systemSkill
- loggingSkill
- messagingSkill
- migrateSkill
- minimal-apiSkill
- modern-csharpSkill
- modular-slicesSkill
- native-aotSkill
- openapiSkill
- opentelemetrySkill
- resilienceSkill
- scaffoldSkill
- specSkill
- tddSkill
- testingSkill
- verifySkill
- wrap-upSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 130
When more than one route could handle a query:
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Routing & Orchestration
This file defines how Claude Code routes work to the kit's agents and skills, and how they coordinate.
The kit has three agents and 34 skills. Domain knowledge (architecture, APIs, EF Core, testing, DevOps, desktop) lives in skills that load on demand. An agent exists only where a separate context or a tool restriction pays for itself.
Agent Roster
| Agent | File | Primary Domain |
| code-reviewer | agents/code-reviewer.md | Read-only code review: correctness, maintainability, security, performance |
| build-error-resolver | agents/build-error-resolver.md | Bounded build-fix loop |
| refactor-cleaner | agents/refactor-cleaner.md | Dead code removal and cleanup, in an isolated worktree |
Routing Table
Match user intent to an agent or a skill. When more than one row matches, the first match wins.
| User Intent Pattern | Route To | Notes |
| "review this code", "PR review", "code quality", "review changes", "conventions" | code-reviewer agent (/code-review) | Loads skills from the files under review |
| "security review", "auth review", "OWASP", "secrets", "CORS check" | code-reviewer agent, /verify security | Load authentication and configuration |
| "performance", "slow endpoint", "hot path", "allocations", "caching" | code-reviewer agent + caching skill | Add ef-core for query problems |
| "build errors", "fix build", "won't compile" | build-error-resolver agent (/build-fix) | — |
| "clean up", "dead code", "unused code", "de-sloppify" | refactor-cleaner agent (/de-sloppify) | — |
| "set up project", "folder structure", "architecture", "add module", "bounded context" | architecture-advisor skill | Default: modular-slices |
| "plan", "design this", "how should I implement", "spec" | /spec | Questions first, then the plan |
| "scaffold feature", "create feature", "add endpoint", "generate feature" | /scaffold | Loads modular-slices or the chosen architecture |
| "create endpoint", "API route", "versioning", "rate limiting" | minimal-api skill | Add openapi for docs and Scalar |
| "database", "migration", "query", "DbContext", "EF" | ef-core skill (/migrate for schema changes) | — |
| "write tests", "test strategy", "coverage", "Testcontainers" | testing skill (/tdd for test-first) | — |
| "Docker", "container", "CI/CD", "pipeline", "deploy" | docker, ci-cd skills | — |
| "Aspire", "orchestration", "service discovery" | aspire skill | — |
| "console app", "CLI", "System.CommandLine", "dotnet tool", "exit code" | console-cli skill | — |
| "desktop", "WPF", "WinForms", "Avalonia", "MAUI", "MVVM", "XAML" | desktop-mvvm skill | — |
| "Native AOT", "trimming", "single-file", "trim warning" | native-aot skill | — |
| "init project", "setup project", "generate CLAUDE.md" | /dotnet-init | — |
| "health check", "grade this project" | /verify health | — |
| "check architecture", "layer violations", "module leaks" | /verify architecture | — |
| "outdated packages", "update packages", "upgrade nuget" | /migrate packages | — |
| "refactor" | code-reviewer agent | Then architecture-advisor if structure changes |
Skill Loading Order
Core skills load first.
modern-csharp— baseline C# knowledge, loaded for any C# work- Skills named by the agent file or the routing table above
- Contextual skills, chosen from the files being touched
Per-Agent Skill Maps
| Agent | Skills |
| code-reviewer | modern-csharp, code-review, instinct-system + contextual (loads skills for the code under review, such as modular-slices, authentication, caching, ef-core, error-handling) |
| build-error-resolver | modern-csharp, build-fix + contextual: ef-core, dependency-injection |
| refactor-cleaner | modern-csharp, de-sloppify + contextual: testing, ef-core |
MCP Tool Preferences
Agents should prefer Roslyn MCP tools over file scanning to reduce token consumption.
| Task | Use MCP Tool | Instead Of |
| Find where a type is defined | find_symbol | Grep/Glob across all .cs files |
| Find all usages of a type | find_references | Grep for the type name |
| Find implementations of an interface | find_implementations | Searching for : IInterface |
| Understand inheritance | get_type_hierarchy | Reading multiple files |
| Understand project dependencies | get_project_graph | Parsing .csproj files manually |
| Review a type's API surface | get_public_api | Reading the full source file |
| Check for compilation errors | get_diagnostics | Running dotnet build and parsing output |
| Find unused code for cleanup | find_dead_code | Manual inspection of all files |
| Check for circular dependencies | detect_circular_dependencies | Manually tracing project references |
| Understand method call chains | get_dependency_graph | Reading multiple files and tracing calls |
| Check which types have tests | get_test_coverage_map | Manually searching for test files |
| Scan for .NET anti-patterns | detect_antipatterns | Manual code review across files |
| Find all callers of a method | find_callers | Grep for the method name |
| Find overrides of a virtual/abstract method | find_overrides | Searching for the override keyword |
| Get full signature, params, and XML docs (by name, SymbolId, or file position) | get_symbol_detail | Reading the entire source file |
| Read ONE method/member body | get_symbol_source | Reading the whole file for one method |
| See what's in a file before reading it | get_file_outline | Reading the file top to bottom |
| Audit NuGet packages and versions | get_nuget_packages | Parsing csproj/props files manually |
| Map routes and endpoint auth posture | get_endpoint_map | Grepping Map*/controller attributes |
| Audit DI lifetimes, duplicates, captive deps | get_di_registrations | Reading Program.cs and extension methods |
Cross-Agent Meta Skills
These skills are not tied to a specific agent. Any agent can load them when the context calls for it:
| Skill | When to Load |
instinct-system | After ANY user correction, convention detection, pattern detection across sessions, logging non-obvious discoveries; includes status/export/import modes |
wrap-up | Session start (load handoff) and session end (write handoff to .claude/handoff.md, capture learnings); checkpoint mode for a mid-session save before risky changes |
Model selection guidance lives in the always-loaded .claude/rules/workflow.md — no skill load needed. For context discipline, parallel worktrees and subagent strategy, see docs/claude-code-workflow.md.
Meta Skill Routing
| User Intent Pattern | Skill |
| "learn from mistakes", "remember this", "log this", "gotcha", "show instincts", "what have you learned", "detect conventions" | instinct-system |
| "wrap up", "done for today", "handoff", "start session", "load handoff" | wrap-up |
| "save progress", "checkpoint", "pause here" | wrap-up (checkpoint mode) |
| "review this", "what should I review", "blast radius" | code-review |
| "fix build loop", "keep fixing", "auto-fix" | build-fix |
Slash Commands
Commands map to skills and agents. Use these as shortcuts for common workflows.
Each workflow skill registers its own slash command and carries its methodology inline (the kit does not split workflows from knowledge twins).
| Command | Supporting Skills | Agent | Purpose |
/dotnet-init | architecture-advisor | — | Interactive project initialization |
/spec | architecture-advisor | — | Questions until agreed, then the implementation plan in docs/specs/ |
/verify | — | — | 7-phase verification pipeline. Modes: health, security, architecture |
/tdd | testing | — | Red-green-refactor workflow |
/scaffold | modular-slices | — | Architecture-aware feature scaffolding |
/code-review | — | code-reviewer | MCP-powered, blast-radius-prioritized code review |
/build-fix | — | build-error-resolver | Bounded build-fix and test-fix loops |
/migrate | ef-core | — | EF Core schema, .NET version, and NuGet migrations. packages mode reports outdated packages and license traps |
/de-sloppify | — | refactor-cleaner | Systematic code cleanup |
/wrap-up | instinct-system | — | Session handoff lifecycle (end + start). checkpoint mode saves mid-session |
Instinct operations (status, export, import) are modes of the instinct-system skill — say "show instincts", "export instincts", or "import instincts".
Conflict Resolution
When more than one route could handle a query:
- Architecture questions win over implementation — "How should I structure the payment module?" →
architecture-advisor, even thoughminimal-apicould handle the endpoint part - Specific beats general — "How do I optimize this EF query?" →
ef-core, not a general performance review - Security concerns are always surfaced — Even when another route is primary, flag security issues, and run
/verify securityfor a full audit - Code review is holistic — The code-reviewer loads skills contextually based on what's in the PR
Token Budget Guidance
For context management strategies, see docs/claude-code-workflow.md ("Treat context as a budget" section).
- Small queries (single pattern/fix): Load 1-2 skills, use MCP tools for context
- Medium queries (feature implementation): Load 3-4 skills, use MCP tools to understand existing code
- Large queries (architecture review): Load all relevant skills, use
get_project_graphfirst to understand the solution shape
Response Patterns
All agents should:
- Start with the recommended approach — Don't enumerate all options equally
- Show code first, explain after — Developers prefer seeing the solution, then understanding why
- Flag anti-patterns proactively — If the user's existing code has issues, mention them
- Reference skills — Point to relevant skills for deeper reading
- Use MCP tools before reading files — Reduce token consumption
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

