dotnet-claude-kit
AGENTS.md750 starsChanged 4 months agoMITView on GitHub
This project uses dotnet-claude-kit for .NET development intelligence. OpenCode reads the root AGENTS.md natively. This file is loaded via the instructions array in opencode.json and surfaces the kit's agents, skills, MCP tools, and rules so OpenCode can route work the same way Claude Code does. The cwm-roslyn-navigator MCP server is registered in opencode.json under the mcp key. It provides Roslyn-powered, read-only code intelligence: Always prefer MCP tools over reading full source files to conserve context window. Install the server first…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/rules/agents.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/dotnet-rules.mdCursor rule
- api-versioningSkill
- arch-checkSkill
- architecture-advisorSkill
- aspireSkill
- authenticationSkill
- build-fixSkill
- cachingSkill
- checkpointSkill
- ci-cdSkill
- clean-architectureSkill
- code-reviewSkill
- configurationSkill
- container-publishSkill
- convention-learnerSkill
- dddSkill
- dependency-injectionSkill
- de-sloppifySkill
- dockerSkill
- dotnet-initSkill
- ef-coreSkill
- error-handlingSkill
- health-checkSkill
- httpclient-factorySkill
- instinct-systemSkill
- loggingSkill
- messagingSkill
- migrateSkill
- minimal-apiSkill
- modern-csharpSkill
- openapiSkill
- opentelemetrySkill
- outdatedSkill
- planSkill
- project-setupSkill
- project-structureSkill
- resilienceSkill
- scaffoldSkill
- scalarSkill
- security-scanSkill
- serilogSkill
- specSkill
- tddSkill
- testingSkill
- verifySkill
- vertical-sliceSkill
- workflow-masterySkill
- wrap-upSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Always prefer MCP tools over reading full source files to conserve context window.
- Very specific: line 67
Always-applied coding conventions are consolidated for OpenCode in .cursor/rules/dotnet-rules.md (loaded via opencode.json).
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
OpenCode Configuration
This project uses dotnet-claude-kit for .NET development intelligence.
OpenCode reads the root AGENTS.md natively. This file is loaded via the instructions array in opencode.json and surfaces the kit's agents, skills, MCP tools, and rules so OpenCode can route work the same way Claude Code does.
MCP Server
The cwm-roslyn-navigator MCP server is registered in opencode.json under the mcp key. It provides Roslyn-powered, read-only code intelligence:
| Tool | Purpose |
find_symbol | Locate where a type, method, or property is defined |
find_references | Find all usages of a symbol across the solution |
find_implementations | Find types implementing an interface or deriving from a base class |
find_callers | Find all methods calling a specific method |
find_overrides | Find overrides of virtual/abstract methods |
find_dead_code | Identify unused types, methods, and properties |
get_symbol_detail | Get full signature, parameters, return type, XML docs |
get_public_api | Get public members of a type without reading the file |
get_type_hierarchy | Get inheritance chain, interfaces, and derived types |
get_project_graph | Get solution dependency tree with frameworks and references |
get_dependency_graph | Get recursive call graph for a method |
get_diagnostics | Get compiler and analyzer diagnostics (errors, warnings) |
get_test_coverage_map | Heuristic test coverage by naming convention |
detect_antipatterns | Find .NET anti-patterns via Roslyn analysis |
detect_circular_dependencies | Find cycles in project or type dependencies |
Always prefer MCP tools over reading full source files to conserve context window.
Install the server first so the
cwm-roslyn-navigatorcommand resolves on PATH — see the main README.
Specialist Agents
Each agent below maps to a focused area of .NET work. The full agent definition (role, skills, boundaries) lives in agents/<name>.md and can be loaded directly or adapted into an OpenCode subagent under .opencode/agents/.
| Agent | File | When to Use |
| dotnet-architect | agents/dotnet-architect.md | Architecture decisions, project structure, module boundaries, feature scaffolding |
| api-designer | agents/api-designer.md | Minimal API design, OpenAPI specs, versioning, rate limiting, CORS |
| ef-core-specialist | agents/ef-core-specialist.md | Database design, EF Core queries, migrations, DbContext configuration |
| test-engineer | agents/test-engineer.md | Test strategy, xUnit v3, WebApplicationFactory, Testcontainers |
| security-auditor | agents/security-auditor.md | Auth systems, OWASP compliance, secrets management, vulnerability review |
| performance-analyst | agents/performance-analyst.md | Profiling, benchmarks, caching strategy, async pattern optimization |
| devops-engineer | agents/devops-engineer.md | Docker, CI/CD pipelines, .NET Aspire orchestration, deployment |
| code-reviewer | agents/code-reviewer.md | Multi-dimensional code review, PR review, quality gatekeeper |
| build-error-resolver | agents/build-error-resolver.md | Autonomous build error fixing, iterative compilation repair |
| refactor-cleaner | agents/refactor-cleaner.md | Dead code removal, systematic cleanup, safe refactoring |
Skills
Skills live in skills/<skill-name>/SKILL.md and follow the Agent Skills open standard. Reference them by path when you need the opinionated pattern for a topic.
.NET Domain Skills
api-versioning, architecture-advisor, aspire, authentication, caching, ci-cd, clean-architecture, configuration, container-publish, ddd, dependency-injection, docker, ef-core, error-handling, httpclient-factory, logging, messaging, minimal-api, modern-csharp, openapi, opentelemetry, project-setup, project-structure, resilience, scalar, serilog, testing, vertical-slice
Workflow Skills (each carries its methodology inline)
arch-check, build-fix, checkpoint, code-review, de-sloppify, dotnet-init, health-check, migrate, outdated, plan, scaffold, security-scan, spec, tdd, verify, wrap-up
Workflow & Learning Skills
convention-learner, workflow-mastery, instinct-system
Workflow skills map naturally onto OpenCode custom commands (
.opencode/commands/<name>.md). Create thin command wrappers that point at the matching skill's methodology when you want/verify,/scaffold,/tdd, etc.
Rules
Always-applied coding conventions are consolidated for OpenCode in .cursor/rules/dotnet-rules.md (loaded via opencode.json). The canonical per-topic source lives in .claude/rules/:
coding-style.md— C# 14 style, naming, file organizationarchitecture.md— Dependency direction, feature folders, data accesssecurity.md— Secrets, input validation, auth, transport securitytesting.md— Integration-first, xUnit v3, Testcontainers, AAAperformance.md— CancellationToken, TimeProvider, caching, asyncerror-handling.md— Result pattern, ProblemDetails, exception boundariesgit-workflow.md— Conventional commits, atomic commits, branch safetyagents.md— MCP-first tools, subagent routing, skill loadinghooks.md— Format hooks, pre-commit, post-test analysispackages.md— Latest stable NuGet versions, central package management
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.

