Agent skill
dotnet-mcaf
Adopt MCAF governance in a .NET repository with the right AGENTS.md layout, repo-native docs, skill installation, verification rules, and non-trivial task workflow. Use when bootstrapping or updating MCAF alongside the dotnet-skills catalog.
Install this agent skill to your Project
npx add-skill https://github.com/managedcode/dotnet-skills/tree/main/catalog/Platform/MCAF/skills/dotnet-mcaf
SKILL.md
MCAF Adoption
Trigger On
- bootstrapping MCAF in a new or existing repository that also contains
.NETwork - updating root or project-local
AGENTS.mdfiles to follow a durable repo workflow - deciding which MCAF governance skills and
dotnet-*implementation skills to install together - organizing repo-native docs for architecture, features, ADRs, testing, development, and operations
Workflow
-
Start from the canonical bootstrap surface:
- tutorial:
https://mcaf.managed-code.com/tutorial - concepts:
https://mcaf.managed-code.com/ - public MCAF skills:
https://mcaf.managed-code.com/skills
- tutorial:
-
Place root
AGENTS.mdat the repository or solution root. -
Add project-local
AGENTS.mdonly when the solution has multiple projects with genuinely different local rules. -
Install MCAF governance skills (
dotnet-mcaf-*) for process areas anddotnet-*implementation skills for framework work. Checkreferences/skill-map.mdfor overlap before adding duplicate surfaces. -
Route to the narrowest MCAF skill once the governance concern is clear:
Concern Skill Delivery workflow and feedback loops dotnet-mcaf-agile-deliveryDeveloper onboarding and local inner loop dotnet-mcaf-devexDurable docs structure and source-of-truth placement dotnet-mcaf-documentationExecutable feature behaviour docs dotnet-mcaf-feature-specHuman review for large AI-generated drops dotnet-mcaf-human-review-planningML/AI product delivery process dotnet-mcaf-ml-ai-deliveryExplicit quality attributes and trade-offs dotnet-mcaf-nfrBranch, merge, and release hygiene dotnet-mcaf-source-controlDesign-system, accessibility, front-end direction dotnet-mcaf-ui-ux -
Scaffold repo-native documentation:
docs/ ├── Architecture.md ├── Features/ ├── ADR/ ├── Testing/ ├── Development/ └── Operations/ -
Encode the non-trivial task flow in
AGENTS.md:<slug>.brainstorm.mdthen<slug>.plan.mdthen implementation and validation. -
Treat verification as part of done: tests, analyzers, formatters, coverage, and any architecture or security gates the repo configured.
flowchart LR
A["Adopt MCAF"] --> B["Root AGENTS.md"]
B --> C{"Multi-project?"}
C -->|Yes| D["Project-local AGENTS.md"]
C -->|No| E["Root policy only"]
B --> F["Install mcaf-* governance skills"]
B --> G["Install dotnet-* implementation skills"]
D --> H["Document boundaries and commands"]
E --> H
F --> I["Repo-native docs scaffolds"]
G --> J[".NET implementation guidance"]
H --> K["Run full quality pass"]
I --> K
J --> K
Deliver
- repository-ready MCAF adoption with clear root and local
AGENTS.mdresponsibilities - correct split between
mcaf-*governance anddotnet-*implementation skills - repo-native docs and verification expectations instead of chat-only instructions
Validate
- root
AGENTS.mdexists at the repository or solution root - project-local
AGENTS.mdfiles exist only where genuinely needed - repo documents exact build, test, format, analyze, and coverage commands
- durable docs exist for architecture and behavior, not only inline comments
- non-trivial work follows the brainstorm-to-plan flow before implementation
- the full quality pass is part of done, not only a narrow happy-path test run
References
- references/adoption.md - canonical MCAF entry points, bootstrap rules, and the local-mirror boundary between governance and implementation skills
- references/skill-map.md - MCAF catalog map with overlap-vs-new split for precise routing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dotnet-project-setup
Create or reorganize .NET solutions with clean project boundaries, repeatable SDK settings, and a maintainable baseline for libraries, apps, tests, CI, and local development.
csharp-scripts
Run single-file C# programs as scripts (file-based apps) for quick experimentation, prototyping, and concept testing. Use when the user wants to write and execute a small C# program without creating a full project.
dotnet-pinvoke
Correctly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P/Invoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed/native boundary. DO NOT USE FOR: COM interop, C++/CLI mixed-mode assemblies, or pure managed code with no native dependencies.
nuget-trusted-publishing
Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo — replaces long-lived API keys with short-lived tokens. USE FOR: trusted publishing, NuGet OIDC, keyless NuGet publish, migrate from NuGet API key, NuGet/login, secure NuGet publishing. DO NOT USE FOR: publishing to private feeds or Azure Artifacts (OIDC is nuget.org only). INVOKES: shell (powershell or bash), edit, create, ask_user for guided repo setup.
dotnet-legacy-aspnet
Maintain classic ASP.NET applications on .NET Framework, including Web Forms, older MVC, and legacy hosting patterns, while planning realistic modernization boundaries.
dotnet-code-review
Review .NET changes for bugs, regressions, architectural drift, missing tests, incorrect async or disposal behavior, and platform-specific pitfalls before you approve or merge them.
Didn't find tool you were looking for?