/bricelam:dotnet-solution-templatefrom bricelam
Repo-root config files, license, and CI for a brand-new .NET repo. Use whenever starting a new .NET repo from scratch, not when adding a project to an existing one.
Ships in bricelam. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bundled repo-root files (template/ next to this SKILL.md) to drop into a brand-new .NET repo before creating any projects. Copy them as-is---no placeholders to fill in.
git init the new repo if it isn't one already; the version files below need a git repo to work correctly.
Copy everything from template/ into the repo root, preserving paths (.github/workflows/cicd.yml, .github/dependabot.yml included).
Fetch the current .gitignore from https://raw.githubusercontent.com/github/gitignore/main/VisualStudio.gitignore and save it as .gitignore in the repo root---don't use a locally cached/older copy.
Create LICENSE.md based on what the repo is for:
| Repo is... | License | Source |
|---|---|---|
| A reusable library | Ms-PL (Microsoft Public License) | Copy licenses/Ms-PL.md |
| An app | Ms-RL (Microsoft Reciprocal License) | Copy licenses/Ms-RL.md |
| Just example code | The Unlicense | Fetch https://unlicense.org/UNLICENSE |
If it's unclear which the repo is, ask before picking one.
Commit before building---Nerdbank.GitVersioning (wired in via Directory.Packages.props) computes the version from git history and needs at least one commit.
Create the solution and projects with the dotnet CLI (dotnet new sln, dotnet new classlib/console/etc., dotnet sln add)---cicd.yml builds/tests the solution, so projects added to it don't need any CI changes.
Because Directory.Packages.props turns on central package management, add package versions there (<PackageVersion Include="..." Version="..." />), not in individual .csproj files---package references in project files omit the Version attribute.
global.json pins the test runner to Microsoft.Testing.Platform---use xunit.v3 (which runs on MTP) for test projects rather than the legacy VSTest-based setup. See the dotnet-testing skill for test project conventions.
No README---add one per-repo since it varies by project.
licenses/Ms-PL.md (opens in a new tab)licenses/Ms-RL.md (opens in a new tab)template/Directory.Build.props (opens in a new tab)template/Directory.Packages.props (opens in a new tab)template/global.json (opens in a new tab)template/nuget.config (opens in a new tab)template/version.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bricelam/bricelam-plugins --plugin bricelam15 skills in this plugin
/csharp-collectionsC# collection conventions---choosing between ToList, new List, and collection-expression spread to materialize or copy a sequence, and which collection interface to use for method parameters and return types. Use whenever materializing an enumerable into a list or declaring a collection-typed parameter or return type (arrays, `List<T>`, `IEnumerable<T>`, dictionaries, etc.)./csharp-csvhelperConventions for using CsvHelper in C#---aliasing its generically named attribute types. Use whenever writing or reviewing code that reads or writes CSV with CsvHelper, or whenever using CsvHelper's `FormatAttribute`, `IgnoreAttribute`, `NameAttribute`, or `TypeConverterAttribute`---even if CsvHelper isn't named explicitly./csharp-