wshaddix/dotnet-skills/dotnet-add-ci
Claude Code and agent skill by wshaddix/dotnet-skills
- community
Checking that the SKILL.md file is still in the repository.
Adding CI/CD to a .NET project. GitHub Actions vs Azure DevOps detection, workflow templates.
Install
npx vskill@latest install wshaddix/dotnet-skills/dotnet-add-ciSKILL.md
dotnet-add-ci
Add starter CI/CD workflows to an existing .NET project. Detects the hosting platform (GitHub Actions or Azure DevOps) and generates an appropriate starter workflow for build, test, and pack.
Scope boundary: This skill provides starter templates only. For advanced CI/CD patterns — composable reusable workflows, matrix builds, deployment pipelines, release automation, and environment promotion — see [skill:dotnet-gha-patterns], [skill:dotnet-ado-patterns], and related CI/CD depth skills.
Prerequisites: Run [skill:dotnet-version-detection] first to determine SDK version for the workflow. Run [skill:dotnet-project-analysis] to understand solution structure.
Cross-references: [skill:dotnet-project-structure] for build props layout, [skill:dotnet-scaffold-project] which generates the project structure these workflows build.
Platform Detection
Detect the CI platform from existing repo indicators:
| Indicator | Platform | |
|---|---|---|
.github/ directory exists | GitHub Actions | |
azure-pipelines.yml exists | Azure DevOps | |
.github/workflows/ has YAML files | GitHub Actions (already configured) | |
| Neither | Ask the user which platform to target |
GitHub Actions Starter Workflow
Create .github/workflows/build.yml:
Key Decisions Explained
- `global-json-file` — uses the repo's
global.jsonto install the exact SDK version. If the project has noglobal.json, replace withdotnet-version: '10.0.x'(or the appropriate version) - `--locked-mode` — ensures
packages.lock.jsonfiles are respected; fails if they're out of date. If the project doesn't use lock files, replace with plaindotnet restore - `-c Release` — builds in Release mode so
ContinuousIntegrationBuildtakes effect - `permissions: contents: read` — principle of least privilege
- Environment variables — suppress .NET CLI noise in logs
Adding NuGet Pack (Libraries)
For projects that publish to NuGet, add a pack step:
Azure DevOps Starter Pipeline
Create azure-pipelines.yml at the repo root:
Adding NuGet Pack (Libraries)
Adapting the Starter Workflow
Multi-TFM Projects
If the project multi-targets, the default workflow works without changes — dotnet build and dotnet test handle all TFMs automatically. No matrix is needed for the starter.
Windows-Only Projects (MAUI, WPF, WinForms)
Change the runner:
Solution Filter
If the repo has multiple solutions or uses solution filters:
Verification
After adding the workflow, verify locally:
Push a branch and open a PR to trigger the workflow.
What's Next
This starter covers build-test-pack. For advanced scenarios, see the CI/CD depth skills:
- Reusable composite actions and workflow templates
- Matrix builds across OS/TFM combinations
- Deployment pipelines with environment gates
- NuGet publishing with signing
- Container image builds
- Code coverage reporting and enforcement
References
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dotnet-add-ci/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wshaddix/dotnet-skills/dotnet-add-ci)