Include C# coding guidelines skills from csharpcodingguidelines.com in every generated template#86
Merged
dennisdoomen merged 1 commit intoMay 17, 2026
Conversation
Downloads SKILL.md and all references/*.md files from the dennisdoomen/CSharpGuidelines repo at the specified tag (default: 6.0.0) into .agents/skills/csharp-guidelines/ in every generated template variant. - New [Parameter] CSharpGuidelinesVersion (default "6.0.0") - New async target DownloadCSharpGuidelinesSkills (depends on PrepareTemplates) - Uses GitHubApiKey for authenticated requests when available - Downloads files once, then copies to all 6 template variant directories - Compile now depends on DownloadCSharpGuidelinesSkills Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Ensure that every project generated from this template ships with the C# coding guidelines as an AI agent skill, so Copilot and other agents automatically apply those guidelines when writing or reviewing C# code.
What changed
A new Nuke target downloads the skills directly from
dennisdoomen/CSharpGuidelinesat a pinned tag and places them in.agents/skills/csharp-guidelines/inside every generated template variant.CSharpGuidelinesVersion(default"6.0.0") — bump this string to upgrade to a newer release of the guidelines.DownloadCSharpGuidelinesSkills(runs afterPrepareTemplates):SKILL.mdand allreferences/*.mdfrom the pinned tag via the GitHub APIGitHubApiKeyfor authenticated requests when available (avoids rate limiting).agents/skills/csharp-guidelines/in all 6 template variant output directories (Normal,NormalOss,SourceOnly,SourceOnlyOss,NormalAzdo,SourceOnlyAzdo)Compilenow depends onDownloadCSharpGuidelinesSkills, so the skills are always present before packing.The
templates/Sourcedirectory is not modified — files are written directly intoArtifacts/templates/<variant>/at build time.Closes #66