DimonSmart.CopilotInstructions.Template
1.0.3
Prefix Reserved
See the version list below for details.
dotnet new install DimonSmart.CopilotInstructions.Template::1.0.3
CopilotInstructions Template
NuGet template that scaffolds a reusable copilot-instructions.md file with common C# coding standards.
Using the published template
# install from NuGet
dotnet new install DimonSmart.CopilotInstructions.Template
# create the instructions file (automatically placed inside .github)
dotnet new copilot-instructions
# customize the generated filename (still inside .github)
dotnet new copilot-instructions --filename Copilot.md
The template now places the file inside .github automatically so you don't have to remember the --output flag. A custom --filename still ends up as .github/<your-name>.md.
Development workflow
- Update
CopilotInstructions.Template/content/copilot-instructions/.github/copilot-instructions.mdwhen the guidance changes. - Adjust metadata in
CopilotInstructions.Template/content/copilot-instructions/.template.config/template.jsonif you need new parameters or post actions. - Bump the package version in the release tag (see below) before publishing.
If you want to test a build before pushing to NuGet:
dotnet pack CopilotInstructions.Template/TemplatePack.csproj --configuration Release --output artifacts
The command produces a .nupkg in the artifacts/ folder that you can install manually (for example, via dotnet new install ./artifacts/*.nupkg) before pushing it to NuGet.
Releasing to NuGet
Publishing is automated through GitHub Actions. Create and push a tag following the v* pattern (for example, v1.0.0). The workflow will:
- Pack the template with the version taken from the tag name (without the leading
v). - Push the package to NuGet using the
NUGET_API_KEYsecret. Optionally, override the feed URL with aNUGET_SOURCEsecret.
Make sure the repository secrets NUGET_API_KEY (and optionally NUGET_SOURCE) are configured before tagging a release.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.