Skip to content

Include C# coding guidelines skills from csharpcodingguidelines.com in every generated template#86

Merged
dennisdoomen merged 1 commit into
mainfrom
dennisdoomen/download-csharp-guidelines-skills
May 17, 2026
Merged

Include C# coding guidelines skills from csharpcodingguidelines.com in every generated template#86
dennisdoomen merged 1 commit into
mainfrom
dennisdoomen/download-csharp-guidelines-skills

Conversation

@dennisdoomen

@dennisdoomen dennisdoomen commented May 16, 2026

Copy link
Copy Markdown
Owner

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/CSharpGuidelines at a pinned tag and places them in .agents/skills/csharp-guidelines/ inside every generated template variant.

  • New parameter CSharpGuidelinesVersion (default "6.0.0") — bump this string to upgrade to a newer release of the guidelines.
  • New async target DownloadCSharpGuidelinesSkills (runs after PrepareTemplates):
    • Downloads SKILL.md and all references/*.md from the pinned tag via the GitHub API
    • Uses GitHubApiKey for authenticated requests when available (avoids rate limiting)
    • Writes the files into .agents/skills/csharp-guidelines/ in all 6 template variant output directories (Normal, NormalOss, SourceOnly, SourceOnlyOss, NormalAzdo, SourceOnlyAzdo)
  • Compile now depends on DownloadCSharpGuidelinesSkills, so the skills are always present before packing.

The templates/Source directory is not modified — files are written directly into Artifacts/templates/<variant>/ at build time.

Closes #66

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>
@dennisdoomen dennisdoomen changed the title Add DownloadCSharpGuidelinesSkills target to Nuke pipeline Include C# coding guidelines skills from csharpcodingguidelines.com in every generated template May 16, 2026
@dennisdoomen dennisdoomen added the enhancement New feature or request label May 16, 2026
@dennisdoomen dennisdoomen merged commit e055740 into main May 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AI instructions for Copilot and Junie

1 participant