template-validation

template-validation is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 131 tokens per session (2,735 once invoked), scanned A, a copy of template-validation, MIT.

A checker for custom .NET project templates, which are reusable blueprints for creating projects with the `dotnet new` command. It reviews `template.json` files before testing or publishing.

In plain words
What is it for?
Use it to review template fields, parameters, names, and constraints, and to diagnose why an installed template does not behave as expected.
Why use it?
It catches configuration mistakes that can make templates create broken projects, fail quietly, or disappear from the template list.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review template fields, parameters, names, and constraints, and to diagnose why an installed template does not behave as expected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/template-validation
Install

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.

Any agent
npx skills add managedcode/dotnet-skills --skill template-validation
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for template-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/template-validation/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/template-validation)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/template-validation"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/template-validation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for template-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/template-validation"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/template-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.02735
Opus 5.5 $0.00052 $0.01094
Sonnet 5.5 $0.00026 $0.00547
Haiku 4.5 $0.00013 $0.00274

Measured 2mo ago against content hash 3c539ecbf1e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

template-validation 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 2mo ago.

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.

Origin

This is a copy

89% identical to template-validation — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Tools/Official-DotNet-Template-Engine/skills/template-validation/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Parse gate — stop on syntax errors. Parse JSON before applying any semantic rule. If parsing fails, report the parser's line and column, show only the smallest concrete syntax correction, and stop. Do not invent required-field, symbol, post-action, or discoverability findings from a document that did not parse. Re-parse after the correction before making any semantic claim.

The malformed-JSON final response has exactly two parts: the one-line parse verdict and a corrected snippet showing the exact edit. Do not append semantic recommendations, optional metadata, or a full replacement manifest.

1. Required Fields

Field Severity Rule
identity ERROR Must be present and non-empty
name ERROR Must be present and non-empty
shortName ERROR Must be present and non-empty
sourceName WARNING Without it, --name won't customize the generated project name
author WARNING Improves template discoverability
description SUGGESTION Helps users understand what the template creates
classifications SUGGESTION Improves search and categorization (e.g., ["Web", "API"])
defaultName SUGGESTION Provides a fallback project name when --name is not specified

Read the full file on GitHub · 227 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago Changed · +51 lines 3c539ecbf1e8
  2. 2mo ago First seen · 176 lines · 131 tokens per session scan A 10e4f175dae7

Subscribe to this mod's changes

template-validation is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 131 tokens to every session and 2,735 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to template-validation, differing in 0 lines, and is treated as a copy.

Related

template-validation compared with skills from other repositories

template-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
template-validationmanagedcode/dotnet-skillsSkill52716d agoMITA131Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
dotnetAterDev/Perigon.CLISkill544d agoApache-2.0A61Claude Code, Codex
blazorAterDev/Perigon.CLISkill544d agoApache-2.0A45Claude Code, Codex
cliAterDev/Perigon.CLISkill544d agoApache-2.0A52Claude Code, Codex
codegenAterDev/Perigon.CLISkill544d agoApache-2.0A53Claude Code, Codex