Agent skill · Design & Presentation

template-validation

Validates custom dotnet new templates for correctness before publishing. Catches missing fields, parameter bugs, shortName conflicts, constraint issues, and common authoring mistakes that cause templates to fail silently. USE FOR: checking template.json files for errors before publishing or testing, diagnosing why a template doesn't appear after installation, reviewing template parameter definitions for type mismatches and missing defaults, finding shortName conflicts with dotnet CLI commands, validating post-action and constraint configuration. DO NOT USE FOR: finding or using existing templa

dotnetgithub.com/dotnetGitHub ↗
claude-codeMIT
Install
npx skills add dotnet/skills --skill template-validation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Path: plugins/dotnet-template-engine/skills/template-validation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 4,927
Language: C#
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Template Validation This skill helps validate custom `dotnet new` templates for correctness before publishing. It encodes the validation rules that catch common authoring mistakes — issues that cause templates to silently fail, produce broken projects, or not appear in `dotnet new list`. ## When to Use - User asks to check or validate a template.json file - User reports "my template doesn't show up after installing" - User wants to review a template before packaging and publishing to NuGet - User encounters unexpected behavior from a custom template ## When Not to Use - User wants to find or use existing templates — route to `template-discovery` - User wants to create a project — route to `template-instantiation` - User wants to create a template from an existing project — route to `template-authoring` ## Inputs | Input | Required | Description | |-------|----------|-------------| | template.json path | Yes | Path to the template.json file or the template directory containing `.template.config/template.json` | ## Validation Rules When reviewing a template.json, check ALL of the following categories systematically. Report every finding as an error, warning, or suggestion. ### 1. R

What's inside
Steps it walks through
  1. When to Use
  2. When Not to Use
  3. Inputs
  4. Validation Rules
  5. 1. Required Fields
  6. 2. Identity Format
  7. 3. ShortName Conflicts
  8. 4. Symbol Validation
  9. 5. Sources Validation
  10. 6. Post-Action Validation
  11. 7. Constraint Validation
  12. 8. Tags Validation
  13. Workflow
  14. Step 1: Locate the template.json
More from skills
All skills →
About this skill
What does the template-validation skill do?

Validates custom dotnet new templates for correctness before publishing. Catches missing fields, parameter bugs, shortName conflicts, constraint issues, and common authoring mistakes that cause templates to fail silently. USE FOR: checking template.json files for errors before publishing or testing, diagnosing why a template doesn't appear after installation, reviewing template parameter definitions for type mismatches and missing defaults, finding shortName conflicts with dotnet CLI commands, validating post-action and constraint configuration. DO NOT USE FOR: finding or using existing templa

How do I install it?

Run `npx skills add dotnet/skills --skill template-validation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dotnet/skills, a repository with 4,927 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going