Skip to content

About

Battle-tested agentic engineering for .NET, Aspire, Azure, Fabric, Orleans and Uno Platform

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Repository files navigation

dotnet-agentic-engineering

built with: dna

Battle-tested agentic engineering for .NET, Aspire, Azure, Fabric, Orleans and Uno Platform

What this is

Agentic engineering directives, skills and tools that I use for building real-world .NET applications, plus the dev environment setup I use them with. Everything here has been used with real-world codebases - not generated with prompts and published untested.

Note

Directives are small markdown snippets with agent instructions. They are included in AGENTS.mdto ensure that agents consistently apply key habits, skills and tools.

Install dna once per machine, then one command does everything:

  • dna check scans your repo, detects your tech stack, and composes, installs and updates an optimized set of directives and skills, directly from best-in-class GitHub skills repo's. Where a directive or skill needs deterministic tooling, it installs that tool too, pinned once per repository. Run it again any time: directives, skills and tools are updated together, so they stay compatible, and a tool that is already the latest on nuget.org is left alone. A skill that a newer release no longer offers is removed again, so a repository never keeps two generations of the same skills.
  • dotnet agentic is the repo-local tool that directives and skills call for their deterministic steps; dna check installs it and keeps it versioned with them, and then dna acts as a shortcut for the dotnet agentic commands so you have less to remember and type.
  • dna prompt-log shows the prompts and answers that produced your commits.

Note

dna: dotnet-agentic-engineering in one command

This 66-second video shows the check on a new Uno Platform 7 app on .NET 11:

dna-check-uno7-clip1.mp4

This 73-second video shows what an agent then does in such a repo with one prompt, "Run the app":

agentic-engineering-run-the-app.mp4

The skills available for composition are carefully tested and are selected from best-in-class GitHub skills repo's:

This repo saves .NET software engineers a significant, ongoing effort:

  • filter proven engineering value from untested content and marketing in the agentic ecosystem
  • fill agentic ecosystem gaps, both technology-independent and for specific technologies
  • extend the agentic ecosystem with specialized technology/pattern skills for distributed/cross-platform applications
  • compose an optimal set of directives, skills and tools for your repo and tech stack, while avoiding contradictions and ambiguities that may cause agent mistakes
  • eliminate papercuts: prevents long codex timeout delays from repeatedly trying to run dotnet without network access
  • improve agent reliability and reduce context usage by moving deterministic logic out of directives and skills into dotnet agentic, a repo-local tool

Demos:

πŸ‘οΈ/⭐ this repo if this includes what you are looking for!

Get started

Prerequisites:

  • .NET 10 SDK or later
  • gh CLI. Skills are installed with gh skill, which uses GitHub's API quota. Anonymous access is enough for a handful of skills; gh auth login gives you a much higher quota, and agentic.check tells you when you need it.
  • Optional: Git. Inside a repository that has a .gitignore, dna check takes its file list from git, so ignored output folders are never scanned. Otherwise it walks the folder and skips bin, obj, TestResults and similar output folders.
  • Recommended: check the Agentic Development Environment Setup for models, harnesses and MCPs

1. Install or update in a repo

From a repo root folder, run:

dnx agentic.check

This detects .NET, ASP.NET Core, Orleans and Uno Platform usage, lists the recommended directives, skills and tools, and lets you select which to install or update.

For Uno Platform, the offered skills are further refined depending on detected:

  • MVVM or MVUX update pattern
  • Pure XAML markup or XAML combined with either Uno C# Markup or C# Markup 2
  • Fluent / Material / Simple / Cupertino design system
  • Uno.Sdk version: from 7.0 on you get the current Uno Platform Studio skills, which are written for Uno.Sdk 7; on an earlier Uno.Sdk you get the Studio skills written for it

When you move a repo to Uno.Sdk 7, the next dna check offers to replace the earlier Studio skills with the current ones.

For .NET, the cli-e2e-testing skill is offered only when a project interacts with a terminal: it is packaged as a dotnet tool, references a command-line or terminal UI package such as System.CommandLine, Spectre.Console or Hex1b, or reads console input. A console app that only writes output does not qualify.

With --preview, the dotnet-breaking-changes skill is offered only when a project is a published library, whose callers are outside the repo: it tracks its public API (PublicAPI.Shipped.txt, package validation or ApiCompat), or it sets PackageId, IsPackable or GeneratePackageOnBuild and is not a dotnet tool. A class library that only the same repo uses does not qualify. The process-api-net11 and system-text-json-net11 skills are offered, also with --preview, only when a project targets net11.0 or later. The migrate-dotnet10-to-dotnet11 skill is offered only when a project still targets net10.0.

By default skills come from the latest stable release in each source repo; --preview switches that to each source repo's default branch. The Studio skills for an Uno.Sdk before 7.0 come from the last Studio release that has them, on either channel. Target agents default to the ones found on your machine; --agents overrides that and decides the skills directories, such as .claude/skills and .agents/skills. For more options such as --dry-run and --preview, run:

dnx agentic.check -- -h

Directives are installed in AGENTS.md (which is included in CLAUDE.md), skills with gh skill, tools with dotnet tool; for Codex, rules to run dotnet with network access go in .codex/rules. Whenever dna check has something to apply in a repository whose README.md does not link here yet, it also offers a "built with: dna" badge, selected like every other recommendation and deselectable in the list.

GitHub login is optional. Without it, public sources are read anonymously, which is enough for a handful of skills. If GitHub's anonymous rate limit is reached, agentic.check stops and asks you to run gh auth loginor wait, and then rerun; completed changes are kept. When you are logged in, the gh credential is reused for all GitHub requests. Automation can set GH_TOKEN or GITHUB_TOKEN.

agentic.check offers to install or update dotnet agentic in your repo when a selected directive or skill depends on it.

A directive that tells agents to use a skill is selected together with that skill: selecting the directive selects the skill, and deselecting the skill deselects the directive.

It also offers to install the global dnashorthand command for agentic.check and dotnet agentic (the repo setup tool and the repo-local tool that directives and skills call). After this, you can also install or update repo's with:

dna check

Tip

The dnashorthand is not required; if you cannot install a global tool, or another dna command is on your PATH, use dnx agentic.check instead of dna check and use dotnet agentic <command>for any other dna <command>.

Specialize folders

You can specialize folders within your repo with subsets of directives and skills local to that context, e.g. frontend or backend folders. This reduces your agent context size as compared to installing all directives and skills in the repo root. A directive and the skill it tells agents to use are installed in the same folder. For details on this:

dna check -h

Keep your repo current

Run dna check again after adding a technology, and regularly to pick up skill updates. Directives, skills and tools are updated together. Teammates who clone the repo install dna the same way and run dna check, which restores the pinned tool; dotnet tool restore restores it alone.

Alternatively, you can manually compose and install directives and skills.

2. Work with your agent

Agents follow the installed directives and skills. Directives may use skills; directives and skills may use dotnet agentic. Humans use dna; to see the available commands, run:

dna -h

The prompt log

With the Prompt Log directive, every code commit an agent creates carries the prompts and answers that produced it - the most important part of your source : your input.

This preserves intent across sessions and agents; it enables reusing intent for context in later sessions, or even replaying intent when more capable models appear. Read it back any time:

dna prompt-log -h
dna prompt-log
dna prompt-log --since 2026-09-01

The tools

Package Command Installed Purpose
Agentic.Check dna check Not installed; dna check runs the latest stable version, as does dnx agentic.check Detects your stack; composes, installs and updates directives, skills and tools
InnoWvate.Agentic dna <command> Once per repository, pinned in the repo root's .config/dotnet-tools.json Deterministic logic that directives and skills delegate to, as commands for agents and humans; today prompt logging, plus check for the latest Agentic.Check
InnoWvate.Dna dna Global, once per machine Shorthand for agentic.checkand the repo-local dotnet agentic

What's included

Currently this repo includes technology-independent content and content specific for .NET, Microsoft Orleans and Uno Platform.

In the coming months I will be adding content for the latest .NET, Aspire, Azure, Fabric, Orleans and Uno Platform as I progress applying agentic engineering to a real-world distributed, cross-platform application that I am building with this technology stack.

Directives catalog

This repo offers the following directives (markdown snippets to include in your AGENTS.md / CLAUDE.md):

Directive Description
foundation-documentation-sources Prioritizes first-party vendor MCPs for external documentation, e.g. using Microsoft Learn before Context7 for Microsoft technologies.
foundation-prompt-log Records sanitized user prompts and agent question-and-answer pairs in code commit messages so intent is preserved and can be replayed later. Uses the dotnet agentic tool.
dotnet-cli-run Prevents long agent timeout delays from running dotnet without network access. For Codex, dna check also offers rules that run dotnet outside the sandbox without approval prompts.
dotnet-build-errors-and-warnings Configures .NET build warnings and errors and a modern C# .editorconfig, then directs agents to fix build errors and warnings or document rare justified suppressions. Uses the dotnet-modern-csharp-editorconfig skill.
dotnet-backward-compatible-renames Keeps stored data, deployed settings and other clients working when agents rename or restructure: a name that leaves the repo keeps working, or what uses it is migrated. Name the directive in a request to allow a breaking rename for that change. Deselect it in dna check while nothing outside the repo depends on the project yet. Uses the dotnet-refactoring skill.
uno-build-and-run Registers the Uno Platform MCPs at folder scope when they are missing, and standardizes Uno app launch for agents by skipping redundant pre-builds, writing per-run stdout logs via AGENT_CONSOLE_LOG, and verifying or stopping the app with the Uno runtime tools. After a change to platform-specific code, the agent also builds the other targets that compile it. Uses the uno-agentic-support skill.

Skills catalog

To complement the skills from the other GitHub repo's (listed above), this repo offers below skills. They are grouped in plugins for ease of manual installation, however dna check selects or excludes each skill individually.

dotnet plugin

Skills for .NET development.

Skill Description
cli-e2e-testing CLI end-to-end testing guide for real terminal flows with Hex1b automation, keyboard input, observable terminal output, and asciinema recordings.
dotnet-livecharts2 LiveCharts2 development guide β€” installation, XAML source generator integration, theme config, gotchas, and sample index with exact repo file paths. Covers all platforms (WinUI, Uno, Avalonia, MAUI, WPF, Blazor, WinForms, Eto).
dotnet-modern-csharp-editorconfig Drop-in opinionated .editorconfig for modern C# (C# 14 / .NET 10, also works with C# 10–13) β€” formatting, naming, style, and preview analyzer severities. Covers required .csproj flags and the .NET 8 vs .NET 9+ build-respect-editorconfig distinction.
dotnet-refactoring What a green build does not check when C# code is refactored β€” names read at runtime, edits to text that only looks like a reference, behavior drift while deduplicating, generated and partial code, and targets the default build skips. Follows the dotnet-backward-compatible-renames directive for names that leave the repo.

orleans plugin

Skills for Microsoft Orleans 10 actor-based distributed applications.

Skill Description
orleans-result-pattern Concise, version-tolerant result pattern for Orleans 8+ grain calls β€” Result / Result<T> with enum ErrorNr + string errors, [Immutable] for zero-copy within-silo calls, implicit conversions, and RFC7807 ValidationProblemDetails via TryAsValidationErrors.
orleans-multiservice-pattern Modular-monolith pattern for Orleans 10 β€” host multiple logical services in one silo with strict Apis β†’ Contracts, Apis β†’ Service, Service β†’ Contracts dependency rules so any logical service can later be extracted to its own physical microservice with minimal changes.
orleans-multitenant Multitenancy for Orleans 10 with Orleans.Multitenant β€” per-tenant grain storage and tenant separation of grain calls and streams. Covers adding the package, silo configuration, the tenant aware API for grains and streams, stream subscriptions, cross-tenant authorization, troubleshooting, and the 4.x to 5.x upgrade.

uno-platform plugin

Skills for Uno Platform cross-platform app development.

Skill Description
uno-agentic-support In-app support for agent-driven Uno app runs β€” detects AGENT_CONSOLE_LOG, captures early stdout/stderr logging, and disables Uno Studio Hot Reload / Hot Design UI during agent UI testing.
uno-csharpmarkup2 Build a Uno Platform 6 UI in pure C# with C# Markup 2 (CSharpForMarkup) β€” covers both the initial Presentation-project setup and ongoing per-page authoring via the included New-View.ps1 helper. MVVM/MVUX, Skia/native renderer, bind-without-strings, Spread, conditional children, and the markup/logic partial-class split.
uno-fluent2 Fluent 2 Design System for Uno Platform β€” color, typography, geometry, materials, motion, iconography, spacing, elevation, lightweight styling, and responsive breakpoints.
uno-hamburgermenu-databinding Data-bound, hierarchical hamburger menu with dynamic navigation using Uno Navigation Extensions NavigationView and MVVM.
uno-livecharts2-theme-switching Reliable in-app dark/light/system theme switching for LiveCharts2 in Uno Platform β€” shared palettes, central chart refresh, and rendered-pixel verification.
uno-mvvm Uno Platform MVVM with CommunityToolkit.Mvvm β€” partial observable properties, generated commands, constructor DI, x:Bind patterns, and Uno Navigation from ViewModels.
uno-xaml Uno Platform XAML correctness and performance β€” deferred loading, virtualized templates, UI lifecycle cleanup, UI-thread safety, input scopes, keyboard accelerators, focus, and drag/drop caveats without overriding selected MVVM, navigation, or design-system guidance.
uno-responsive-spanning-gridwrap-layout A responsive, non-virtualizing wrapping grid layout with column spans, proportional stretch-to-fill, and vertically aligned gaps.
uno-test-resize-app-window Resize a running Uno Platform desktop app window on macOS for visual testing using the Accessibility API.

License

MIT

About

Battle-tested agentic engineering for .NET, Aspire, Azure, Fabric, Orleans and Uno Platform

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages