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.

Stars 302
Forks 22

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 .NET work
  • updating root or project-local AGENTS.md files 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

  1. 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
  2. Place root AGENTS.md at the repository or solution root.

  3. Add project-local AGENTS.md only when the solution has multiple projects with genuinely different local rules.

  4. Install MCAF governance skills (dotnet-mcaf-*) for process areas and dotnet-* implementation skills for framework work. Check references/skill-map.md for overlap before adding duplicate surfaces.

  5. Route to the narrowest MCAF skill once the governance concern is clear:

    Concern Skill
    Delivery workflow and feedback loops dotnet-mcaf-agile-delivery
    Developer onboarding and local inner loop dotnet-mcaf-devex
    Durable docs structure and source-of-truth placement dotnet-mcaf-documentation
    Executable feature behaviour docs dotnet-mcaf-feature-spec
    Human review for large AI-generated drops dotnet-mcaf-human-review-planning
    ML/AI product delivery process dotnet-mcaf-ml-ai-delivery
    Explicit quality attributes and trade-offs dotnet-mcaf-nfr
    Branch, merge, and release hygiene dotnet-mcaf-source-control
    Design-system, accessibility, front-end direction dotnet-mcaf-ui-ux
  6. Scaffold repo-native documentation:

    docs/
    ├── Architecture.md
    ├── Features/
    ├── ADR/
    ├── Testing/
    ├── Development/
    └── Operations/
    
  7. Encode the non-trivial task flow in AGENTS.md: <slug>.brainstorm.md then <slug>.plan.md then implementation and validation.

  8. Treat verification as part of done: tests, analyzers, formatters, coverage, and any architecture or security gates the repo configured.

mermaid
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.md responsibilities
  • correct split between mcaf-* governance and dotnet-* implementation skills
  • repo-native docs and verification expectations instead of chat-only instructions

Validate

  • root AGENTS.md exists at the repository or solution root
  • project-local AGENTS.md files 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

Expand your agent's capabilities with these related and highly-rated skills.

managedcode/dotnet-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.

302 22
Explore
managedcode/dotnet-skills

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.

302 22
Explore
managedcode/dotnet-skills

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.

302 22
Explore
managedcode/dotnet-skills

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.

302 22
Explore
managedcode/dotnet-skills

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.

302 22
Explore
managedcode/dotnet-skills

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.

302 22
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results