用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/csharpfritz/Discord-Minecraft --skill dotnet-ci-foundation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | dotnet-ci-foundation |
| description | Patterns for setting up a .NET CI pipeline with GitHub Actions and xUnit test projects |
| domain | testing |
| confidence | low |
| source | earned |
When bootstrapping a .NET project's CI pipeline and initial test infrastructure. Applies to any .NET solution using GitHub Actions and xUnit.
.github/workflows/ci.yml with three steps: dotnet restore, dotnet build --no-restore, dotnet test --no-builddotnet new xunit template to generate test projects — it produces correct package versions and includes global <Using Include="Xunit" />tests/ directory, added to solution under a /tests/ folderAssert.True(true)) so CI has something to run from day one — proves the pipeline is wired end to end<IsTestProject>true</IsTestProject> in csproj so dotnet test discovers the project# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- run: dotnet restore
- run: dotnet build --no-restore
- run: dotnet test --no-build --verbosity normal
dotnet discover them at the repo rootdotnet test without --no-build when a build step already ran — wastes CI minutesdotnet new xunit to get correct, compatible package versions基于 SOC 职业分类