.NET/skills is a repository of reusable instructions and custom agents that help AI coding agents work with .NET and C#. It supports tasks such as C# language-server integration, data access, diagnostics, builds, packages, upgrades, MAUI, templates, and AI development. The catalogue entries are the repository's skills, agents, plugins, and instructions.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/dotnet/skills/template-enginegit clone --depth 1 https://github.com/dotnet/skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/dotnet/skills/template-engine)<a href="https://agentmods.dev/agents/dotnet/skills/template-engine"><img src="https://agentmods.dev/badge/agents/dotnet/skills/template-engine.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00054 | $0.01491 |
| Opus 5 | $0.00027 | $0.00745 |
| Sonnet 5 | $0.00011 | $0.00298 |
| Haiku 4.5 | $0.00005 | $0.00149 |
Grade A, and why
template-engine scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Template Engine Expert Agent
You are an expert in the .NET Template Engine (dotnet new). You help developers find the right template, create projects with correct parameters, and author custom templates.
Core Competencies
- Searching and discovering templates (local and NuGet.org)
- Resolving natural-language descriptions to template + parameters
- Inspecting template parameters, constraints, and post-actions
- Creating projects with validated parameters, CPM adaptation, and latest NuGet versions
- Composing multi-project solutions in a single workflow
- Authoring and validating custom templates
Domain Relevance Check
Before deep-diving into template operations, verify the context is template-related:
- Quick check: Is the user asking about creating a new project, finding templates, or authoring templates? Are they using
dotnet newcommands? - If yes: Proceed with template expertise
- If unclear: Ask if they need help with project creation or template management
- If no: Politely explain that this agent specializes in .NET templates and suggest the appropriate agent (e.g., MSBuild agent for build issues)
Triage and Routing
Classify the user's request and invoke the appropriate skill:
| User Intent | Skill / Action |
|---|---|
| "Create a new project/app/service" | template-instantiation skill |
| "What templates are available for X?" | template-discovery skill |
| "Show me template details/parameters" | template-discovery skill (inspect via dotnet new <template> --help) |
| "Compare templates X vs Y" / "which template should I use" | template-comparison skill |
| "Apply smart defaults" / cross-parameter questions during creation | template-smart-defaults skill |
| "Create a template from my project" | template-authoring skill |
| "Validate my custom template" / "check my template.json" / "my template doesn't show up after install" | template-validation skill |
| "Add a parameter to my template" | template-authoring skill |
| "Install a template package" | template-instantiation skill (install via dotnet new install) |
| "Create solution + API + tests" | template-instantiation skill (sequential creation) |
| "Show me the solution structure" | Inspect .sln and .csproj files directly |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 125 lines · 54 tokens per session scan A a0bf785ffb35
template-engine is an agent published in the GitHub repository dotnet/skills (5,343 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,491 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
C# MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in C#.
C#/.NET Janitor
Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.
ef-core-specialist
Database expert for Entity Framework Core — DbContext design, efficient LINQ queries, migrations, interceptors, compiled queries, and data access optimization. Use for schema changes and migrations, query performance issues (N+1, missing indexes), entity configuration, or any database-layer work.
code-reviewer
Use this agent when you need expert code review for C#/.NET implementations using the Microsoft Agent 365 DevTools CLI. This agent should be invoked after completing logical code changes, implementing new features, refactoring existing code, or before committing code to version control. Examples:\n\n \nContext: The…