Skip to content

docs: add "AI in SkiaSharp" site page - #4292

Merged
mattleibow merged 3 commits into
mainfrom
mattleibow-ai-in-skiasharp-docs-page
Jun 30, 2026
Merged

mattleibow merged 3 commits into
mainfrom
mattleibow-ai-in-skiasharp-docs-page

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

What

Adds a new static page at /ai/ that documents how SkiaSharp uses agentic AI workflows and plain automation to keep a large native binding current with a small team. The goal is to show both halves: how we automate our processes and how we use AI — with humans owning API design and correctness while agents do the toil.

The page lives alongside the hand-written landing page (documentation/site/) and reuses the shared theme (header, footer, theme toggle), with a small amount of page-scoped CSS for the pipeline diagram and workflow cards.

Page contents

Everything is verified against the actual workflow frontmatter and skill files in both mono/SkiaSharp and mono/SkiaSharp-API-docs — not taken from a draft inventory on trust.

  • The loop — upstream Skia sync → build/test → API diffs + release notes → API docs → publish, with issue triage and CI feeding in, and deterministic vs agent steps marked.
  • Agentic workflows (4) — Sync - Skia Upstream, Sync - Issue Triage, Sync - Release Notes & API Diffs, and Auto API Docs Writer (in the API-docs repo). Each card lists exact cadence, engine/model, the safe-outputs allow-list, and the skill it loads.
  • Automation that pairs with the AI — the pre/post deterministic machinery: Sync - Agentic Data (persist to aw-data), Auto-merge docs PR (Learn Build gating), Go Live, plus surrounding CI.
  • Skills — the 21 reusable .agents/skills/<name>/SKILL.md files, grouped by area.
  • Guardrails & transparency — deterministic prepare first, safe-outputs constrains the agent, human review on every PR, and agentic run data persisted to aw-data.

Plumbing

  • Wires the page into the home nav, a resource card, and the footer in documentation/site/index.html.
  • Adds the copy step in .github/workflows/build-site.yml so /ai/ ships to the deployed site (and PR staging).

Validation

Docs-only change — no native build or tests required. Validated by serving the assembled site locally and rendering with a browser: light + dark themes, mobile responsiveness, all links resolve, zero console errors.

Corrections vs. the draft inventory

  • Sync - Release Notes & API Diffs opens its PR against main (via preserve-branch-name/recreate-ref with a [docs] title prefix and documentation label), not a bot/release-notes branch.
  • Sync - Issue Triage writes artifacts that the separate Sync - Agentic Data workflow commits to aw-data — triage itself doesn't persist them.

Co-authored-by: Copilot [email protected]

Add a new static page at /ai/ that documents how SkiaSharp uses agentic
AI workflows and plain automation to keep a large native binding current
with a small team.

The page covers, all verified against the actual workflow frontmatter and
skill files in both mono/SkiaSharp and mono/SkiaSharp-API-docs:

- The end-to-end loop (upstream sync, build/test, API diffs + release
  notes, API docs, publish) with deterministic vs agent steps marked.
- The 4 agentic workflows (Sync - Skia Upstream, Sync - Issue Triage,
  Sync - Release Notes & API Diffs, Auto API Docs Writer) with exact
  cadence, engine/model, safe-outputs allow-list, and the skill each loads.
- The plain automation that pairs with the AI as pre/post steps
  (Sync - Agentic Data, Auto-merge docs PR, Go Live, plus surrounding CI).
- The 21 reusable .agents/skills, grouped by area.
- Guardrails and transparency: deterministic prepare first, safe-outputs
  constrains the agent, human review on every PR, run data in aw-data.

Reuses the shared landing-page theme (header, footer, theme toggle) with a
small amount of page-scoped CSS for the loop diagram and workflow cards.

Also wires the page into the home nav, a resource card, and the footer,
and adds the copy step in build-site.yml so /ai/ ships to the site.

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4292

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4292"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4292/packages --name skiasharp-pr-4292
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4292

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

mattleibow and others added 2 commits June 30, 2026 16:25
Box Phase 1 (sync to merge) as a single horizontal flow, then render
Phase 2 as two side-by-side vertical columns so the parallel publish
flows (release notes/API diffs -> website and API docs -> Microsoft
Learn) read clearly as independent pipelines. Stacks gracefully on
mobile.

Co-authored-by: Copilot App <[email protected]>
…workflow accuracy

- Add a titled, linked target to every loop phase (Engine & bindings ->
  nuget.org, Release notes & API diffs -> website, API docs -> Microsoft
  Learn); targets are now links styled to match.
- Remove the skill-creator (Meta) skill from the board and update the
  hero count to 20.
- Drop the redundant parallel-flows note under Phase 2.
- Correct workflow card details per a source-file review: Skia sync opens
  two paired PRs (mono/skia + mono/SkiaSharp); auto-merge gates on
  OpenPublishing.Build and PoliCheck Scan; Go Live is a manual main->live
  PR that a maintainer merges; release-notes skill draws from published
  NuGets and git history.

Co-authored-by: Copilot App <[email protected]>
@mattleibow
mattleibow merged commit 8351b7f into main Jun 30, 2026
3 of 4 checks passed
@mattleibow
mattleibow deleted the mattleibow-ai-in-skiasharp-docs-page branch June 30, 2026 14:45
@mattleibow mattleibow added this to the 4.151.0-preview.1 milestone Jul 22, 2026
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