Builds the Arcade SDK from source, sets up a local NuGet feed, and validates changes by building a consumer repo against the local packages. Use when testing local Arcade modifications before merging.
Ships in dotnet-arcade. 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; scripts run unread.
Build the Arcade SDK from a local checkout, publish the artifacts to a local NuGet feed, and validate by building a test repository against those packages.
Workflow: Gather paths (Step 0) → run the script (Step 1) → interpret results (Step 2) → present summary (Step 3). The script handles repo resets, building, feed configuration, global.json updates, and test repo builds end-to-end.
Not for: CI/CD pipeline analysis, Helix test failures, publishing Arcade packages to official feeds, or dependency flow troubleshooting.
For coordinated product/test owners, use cross-repo-validation from the
independently installed dotnet-validation plugin for authorization, versioned
plans, immutable candidate/harness manifests, collection policy, and terminal
evidence. This skill remains the Arcade-specific build/feed/pinning adapter; do
not copy its script into a second validation workflow. Neither plugin requires
the other for standalone use.
Before invoking the script, confirm permission for its concrete side effects:
it deletes .packages and artifacts in the affected repos, may clean a shared
feed, clears user-wide NuGet caches, and changes the test repo's NuGet.config
and global.json. Preserve existing evidence and snapshot configuration first.
The script does not restore those files automatically; restore owned changes
without overwriting concurrent edits and verify cleanup after failures or stops.
For a handoff, freeze and hash the packages from one coherent Arcade build and record source/patch identity, build configuration, logs, and exact package pins. The shared temp feed is mutable, not an immutable candidate. Verify the packages actually resolved by the consumer from restore/build evidence, not just the requested version. Do not clear a feed or cache used by another active run.
Before running this skill, ensure the following are available:
pwsh): the script is implemented in PowerShell Core for cross-platform portabilitydotnet/arcade repo and a test repo (e.g., arcade-validation, runtime, sdk) must be cloned locally.For investigating build failures, the binlog MCP server can parse .binlog files produced during builds.
# Full build-and-test
pwsh ./scripts/Test-Arcade.ps1 -Arcade /path/to/arcade -TestRepo /path/to/test-repo
# Clean the local feed before running (e.g., after switching arcade branches)
pwsh ./scripts/Test-Arcade.ps1 -Arcade /path/to/arcade -TestRepo /path/to/test-repo -CleanFeed
# Build and run Signing Validation (SignCheck) on test repo output
pwsh ./scripts/Test-Arcade.ps1 -Arcade /path/to/arcade -TestRepo /path/to/test-repo -SignCheck
# Run SignCheck against a custom directory
pwsh ./scripts/Test-Arcade.ps1 -Arcade /path/to/arcade -TestRepo /path/to/test-repo -SignCheck -SignCheckDir /path/to/files
Both the Arcade repo and the test repo must be cloned locally. The test repo can be any .NET repo that consumes the Arcade SDK (e.g., arcade-validation, runtime, sdk, aspnetcore).
-Arcade argument points to the local dotnet/arcade checkout with the changes to test-TestRepo argument points to any Arcade-consuming repo to validate againstThe local NuGet feed is stored at arcade-local-feed/ inside the system temp directory (e.g., $env:TEMP/arcade-local-feed on Windows, /tmp/arcade-local-feed on Linux/macOS). It is not cleaned up between runs — use -CleanFeed to explicitly clear it when needed (e.g., after switching branches or testing a different Arcade change). Because this is a shared path, stale packages from previous runs may persist; always use -CleanFeed when switching Arcade branches.
Run scripts/Test-Arcade.ps1 with the required -Arcade and -TestRepo arguments. The script performs these phases in order:
.packages and artifacts directories in both repos to ensure a clean state-CleanFeed is passed)build.sh on Linux/macOS, Build.cmd on Windows) with --configuration Release --pack and an auto-generated future-dated OfficialBuildIddotnet nuget push to populate a flat local feed from artifacts/packages/Release/NonShipping, clears all NuGet caches, and adds the feed as a named source (ArcadeLocalFeed) to the test repo's NuGet.config using --configfileMicrosoft.DotNet.Arcade.Sdk package, extracts its version, and updates existing Microsoft.DotNet.Arcade.Sdk and Microsoft.DotNet.Helix.Sdk entries in the test repo's global.json (only keys already present are modified)-SignCheck) — runs the SDK task SigningValidation against the test repo's output packages. Defaults to artifacts/packages/<config>/NonShipping; override with -SignCheckDir| Argument | Required | Description |
|---|---|---|
-Arcade <path> | ✅ | Path to the local dotnet/arcade checkout |
-TestRepo <path> | ✅ | Path to the Arcade-consuming repo to test against |
-CleanFeed | ❌ | Delete and recreate the local feed directory before running. Use when switching branches or testing a different Arcade change |
-SignCheck | ❌ | Run Signing Validation (SignCheck) after building the test repo. Checks files in artifacts/packages/<config>/NonShipping by default |
-SignCheckDir <path> | ❌ | Directory to validate with SignCheck. Implies -SignCheck. Use to check a custom directory instead of the default |
-SkipArcadeBuild | ❌ | Reuse an already verified build, feed and test repo SDK pins. Skips Arcade build, feed setup and global.json updates; only resets the test repo |
-SkipArcadeBuild does not prepare a new candidate handoff: verify the existing
feed contents and consumer pins against the candidate manifest first.
-CleanFeed has no effect with -SkipArcadeBuild. Do not rerun a valid product
build merely to obtain a fresh baseline when the recorded candidate still applies.
The script streams build output to stdout/stderr in real time. It exits on the first failure ($ErrorActionPreference = 'Stop'). Check the exit code and output to determine success or failure.
| Failure | Likely Cause | Remediation |
|---|---|---|
| Arcade build fails | Code error in Arcade changes | Check artifacts/log/ for .binlog files; fix the code |
Arcade package not found | Build didn't produce expected packages | Verify build completed with --pack; check artifacts/packages/Release/NonShipping/ |
Could not extract Arcade version | Package filename doesn't match expected pattern | Check .nupkg filenames in NonShipping directory |
| Test repo restore fails | NuGet feed not configured correctly or cache is stale | Run dotnet nuget locals all --clear; verify feed path contains .nupkg files |
| Test repo build fails | Arcade changes broke compatibility | Compare with a build against official Arcade; check for breaking API changes |
| SignCheck: no packages directory | Test repo didn't produce packages | Build with --pack, or specify -SignCheckDir pointing to existing files |
| SignCheck: signing validation fails | Unsigned or incorrectly signed files found | Review SignCheck log in artifacts/log/; update eng/Signing.props or exclusions as needed |
| Network errors during restore | Azure DevOps feeds unreachable | Check network/VPN; verify feed URLs in NuGet.config |
Lead with a 1-2 sentence verdict, then a summary.
Example output format:
## Arcade Test Results
**Verdict**: All phases passed. The test repo builds successfully against local Arcade changes.
| # | Phase | Result |
|---|-------|--------|
| 1 | Reset repos | ✅ |
| 2 | Build Arcade | ✅ |
| 3 | Configure feed | ✅ |
| 4 | Update global.json | ✅ |
| 5 | Build test repo | ✅ |
| 6 | Signing Validation | ✅ *(if -SignCheck)* |
Arcade SDK version: {VersionPrefix}-beta.<OfficialBuildId>
Packages published to: <temp-dir>/arcade-local-feed/
When -SignCheck is used, also include the SignCheck results. Read the per-file outcomes from artifacts/log/Debug/signcheck.xml and the summary from signcheck.log:
**SignCheck results** (from `signcheck.xml`):
| File | Outcome | Details |
|------|---------|---------|
| `dotnet-sdk-source-10.0.104.tar.gz` | Signed | Timestamp: 02/23/26 17:13:46 (RSA) |
| `release.json` | Skipped | — |
| `dotnet-sdk-source-10.0.104.tar.gz.sig` | Skipped | — |
Summary: 3 files total — 1 signed, 0 unsigned, 2 skipped, 1 not unpacked. No signing issues found.
Possible Outcome values in the XML: Signed, Unsigned (error), Skipped, Excluded, SkippedAndExcluded. Any Unsigned file is an error — include it prominently in the results.
If any phase fails, include the error details and remediation guidance from the table above.
For coordinated validation, use one terminal summary under the shared protocol instead of sending this phase table as a second final report. Link the exact command, candidate/harness manifests, restore/build logs and SignCheck evidence. Distinguish setup-invalid failures from product failures and tests that were not reached: the script stops at the first failure and does not collect every requested case. A successful build does not prove a requested runtime test executed. If a complete first pass is required, the test owner must explicitly collect the authorized independent cases with the repository's harness after valid setup.
❌ Don't reuse a stale feed directory. The script only resets the feed when run with
-CleanFeed. If you're re-running without that flag or running steps manually, always clear the feed and NuGet caches before re-testing with new Arcade changes.
❌ Don't assume build failures are Arcade's fault. The test repo may have its own issues. Compare with a build against the official Arcade SDK to isolate the cause.
❌ Don't manually modify NuGet.config or global.json when the script handles it. Manual edits risk inconsistency and are harder to reproduce.
❌ Don't test unrecorded source. Prefer a clean source state. When intentionally validating uncommitted changes, capture tracked patches and relevant untracked inputs in the source identity before building; a commit stamp alone is insufficient. Do not stash or discard the user's changes just to run validation.
❌ Don't install a .NET SDK manually. The build process installs its own SDK via
eng/common/dotnet.sh. Manual SDK installations can cause version conflicts.
references/build-artifacts.md (opens in a new tab)references/building-arcade.md (opens in a new tab)references/global-json-pinning.md (opens in a new tab)references/nuget-feed-setup.md (opens in a new tab)references/signing-validation.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/Test-Arcade.ps1 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dotnet-arcade:test-arcadefrom dotnet-arcade
npx claudepluginhub dotnet/arcade-skills --plugin dotnet-arcadeOther plugins' skills for the same job