Skip to content

Add validate-samples skill and building-samples documentation#3617

Closed
mattleibow wants to merge 8 commits into
mainfrom
dev/validate-samples-skill
Closed

Add validate-samples skill and building-samples documentation#3617
mattleibow wants to merge 8 commits into
mainfrom
dev/validate-samples-skill

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Add a Copilot skill and developer documentation for building and validating SkiaSharp sample projects.

Changes

validate-samples skill (.github/skills/validate-samples/)

A Copilot skill that automates building and validating sample projects using CI-produced NuGet packages. It downloads the latest CI artifacts, detects the preview version, and runs the samples cake target to verify all samples compile correctly. Includes a helper script for extracting the preview version from CI packages.

Building samples documentation (\documentation/dev/building-samples.md)

Developer guide explaining how to build samples using the CI artifacts feed, including wrapper package structure, the samples cake target, manual local builds, and troubleshooting.

Extracted from #3553.

Add a Copilot skill that automates building and validating sample
projects using CI-produced NuGet packages, plus a developer guide
explaining the CI artifacts feed, cake targets, and troubleshooting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move the 4 samples-related cake targets (samples-generate, samples-prepare,
samples-run, samples) from build.cake into scripts/cake/samples.cake alongside
the existing CreateSamplesDirectory helper.

Key improvements:
- Split monolithic 'samples' task into prepare/run phases
- Add --sample filter argument for building specific samples
- Enable Docker sample builds (previously commented out)
- Better error reporting: collect failures and report at the end
- Cleaner classification: build vs skip with reasons logged upfront

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow force-pushed the dev/validate-samples-skill branch from 07a8279 to def5191 Compare March 30, 2026 21:11
mattleibow and others added 6 commits March 30, 2026 23:19
- Remove non-existent validate-samples-full target from Quick Reference
- Fix --artifactsFeed to --previewFeed (correct cake argument name)
- Fix stale line references pointing to build.cake instead of samples.cake
- Replace simplified version construction with actual code including
  FEATURE_NAME handling and conditional BUILD_NUMBER append
- Fix download resolution to show actual PREVIEW_LABEL pattern
- Remove incorrect externals-download ordering advice (both targets
  clear ./output/ so neither order preserves both outputs)
- Remove externals-download from building-samples.md targets table
  and Building with Native Binaries section

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove duplicated inline bash detection logic from SKILL.md and
building-samples.md. Both now reference the detect-preview-version.sh
script, which prints values the AI agent can parse from stdout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SKILL.md is now a lean AI runbook: just the 4 workflow steps,
troubleshooting, and a link to docs. Version construction details,
download resolution, cake arguments reference, and samples-generate
internals now live exclusively in building-samples.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The docs no longer duplicate the workflow steps — they point to the
validate-samples skill instead, with example prompts showing how to
invoke it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace bash detect-preview-version.sh with detect-preview-version.ps1.
Convert all inline code blocks in SKILL.md and building-samples.md to
PowerShell using short aliases (rm, ls, etc.).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow closed this Mar 31, 2026
@mattleibow mattleibow deleted the dev/validate-samples-skill branch March 31, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant