Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides creating and validating custom dotnet new templates from existing projects, generating template.json preserving source conventions.
55% 95%+41 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 12 of 22 without it.
I know the exact relative path of the generated project file (src/MyApi.csproj). Which property in the restore post-action configuration is preferred for targeting this single project file?
The restore post-action configuration uses primaryOutputs to specify the project path.
3 of 3 safety checks passed
This skill helps an agent create and validate custom dotnet new templates. It guides bootstrapping templates from existing projects and validates template.json files for authoring issues before publishing.
.template.config/template.json from scratchtemplate-discovery or template-instantiationdotnet-msbuild plugin| Input | Required | Description |
|---|---|---|
| Source project path | For creation | Path to the .csproj to use as template source |
| template.json path | For validation | Path to an existing template.json to validate |
| Template name | For creation | Human-readable name for the template |
| Short name | Recommended | Short name for dotnet new <shortname> usage |
Use these structures exactly; do not invent fields from other template features.
Deliver the requested artifact. When the user says "show", "write", or "give me the
content", put the complete JSON/XML in the final response even if you also wrote it to disk.
Never edit this skill's SKILL.md or plugin documentation as a substitute for authoring the
user's template. Only create or modify template files when the user requested file changes and
the target template/project is present.
| Need | Correct structure | Never use |
|---|---|---|
Conditional XML in a .csproj | XML comments such as <!--#if (database == "SqlServer") --> and <!--#endif --> around the complete element | bare #if lines, which make the XML invalid |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.