Skip to content

[skills] Close pr-commit-message gaps found in release message reviews - #4912

Merged
mattleibow merged 2 commits into
mainfrom
mattleibow-improve-pr-commit-message-skill
Sep 1, 2026
Merged

mattleibow merged 2 commits into
mainfrom
mattleibow-improve-pr-commit-message-skill

Conversation

@mattleibow

@mattleibow mattleibow commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Five completed release-PR message reviews (#4889, #4895, #4907, #4908, #4910) each needed the same kinds of correction before the message was usable. Auditing the pre/post pairs showed most corrections traced back to a rule the pr-commit-message skill never stated, rather than to one-off drafting slips. This adds those rules and rebuilds the skill's eval set so the cases actually test the judgement the reviews had to perform.

Worked through the repository's skill-creator workflow: snapshot the baseline, build a private pre/post evidence matrix, run with-skill vs baseline evals, grade with independent grader subagents, aggregate, and review.

Instruction gaps closed (each traced to a specific correction):

Change Backed by
A shared mechanism carrying a guarantee its consumers don't own is a topic #4889 — shared command safety collapsed into siblings
A removal keeps its name, departed behavior, and new home #4889 — deleted release-status runtime under-covered
Requires: is the immediate dependency; a stack ancestor is Context: #4907, #4910 — both required a grandparent PR
Enumerate a family's members along the dimension generalized #4889 — "every workflow was one manual job", falsified by a scheduled and a CI-only workflow in the same directory
Coverage claims stated in the terms the assertions use #4889 — claimed "remote branch authority"; tests asserted guarded pushes and invocation guards
Safety adjectives replaced by what cannot happen, and to whom #4907 "read-only" → never gates or mutates publication; #4895 marker ownership
Re-read measurements at current head #4910 — 4,793→4,798 files, nightly 26429.2→26431.1
Config splits and removals added to the per-change-kind content list #4910 — build-feed vs public-package boundary
Scope-negotiation notes are chronology #4910 — dropped "excluded by request" bullets
Sibling sections carry comparable evidence #4895 — final review added the missing regression-coverage sentence
House-style trailers are not evidence; trailers go inside the fence Observed during evals (see Testing)
Split two entities the evidence calls by the same role word Reproduced 2/2 in live drafting runs against this PR (see Testing)

#4908 needed no corrections and is kept as a control case, so the changes are checked against a PR the skill already handled well.

Net +44 lines in SKILL.md (+56/-12), which is now 352 lines against the 500-line guideline. Name, description, intent, and section structure are unchanged.

Related issues

None.

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None — repository skill and its eval set only. No public API, no runtime or build behavior, and no generated output changes. The merge-message workflow reads .agents/skills/pr-commit-message/SKILL.md at runtime and does not embed it, so no .lock.yml regeneration is required.

Testing

Evaluated with the skill-creator loop: 7 cases × 2 configurations (revised vs. the pre-edit snapshot), graded by independent grader subagents that were not told which configuration was which.

The first pass proved nothing and is reported as such. It scored 33/35 vs 32/35, inside run-to-run noise. The evals were at fault: the prompts handed over the conclusions ("the difference is deliberate", "cannot merge before it"), the notes were numbered so the topic count was given away, and one assertion hard-coded a section count from a single PR. Both graders independently flagged the assertions as non-discriminating.

The cases were rebuilt to present raw evidence plus the stale claim that caused the real correction — a PR description asserting a false universal its own trigger blocks contradict, a description requiring the wrong PR in a stack, a reviewer inviting the config unification that previously let a verification run pass against a build feed, and two revisions of a measurement with neither labelled current.

Eval revised baseline
shared-mechanism-topic-count 5/5 4/5
heterogeneous-family-universals 6/6 6/6
coverage-and-safety-claims 5/6 4/6
stacked-pr-relationships 6/6 5/6
mixed-context-configuration 4/5 4/5
attribution-verified-emails 6/6 6/6
control-single-topic-compact 7/7 7/7
total 39/41 (95.1%) 36/41 (87.8%)

At least equal on every eval, winning three. An arithmetic audit caught three grader summary miscounts, which were corrected downward before aggregation; the corrections are symmetric.

The wins are the targeted gaps. On the stack case the baseline left #5205 in body prose and emitted no Requires: line for it — the exact #4907/#4910 failure — while the revised skill emits Requires: acme/toolbox#5205. On the shared-mechanism case the baseline folded the guard layer in with the test harness; the revised skill gives it its own home. On the safety case the baseline led with "safe to run" before giving concrete permissions.

Both configurations already refused the false universal and the overclaimed coverage, so those two additions are insurance rather than proven wins on this set. Neither caused a regression, and the control case stayed compact in both.

The eval runs also caught two real defects in the revised skill, both fixed and re-verified: a run invented a Co-authored-by: Copilot <…@users.noreply.github.com> trailer from no evidence, and a run placed a trailer outside the fenced block where it would never reach the commit. After the fixes, the two trailer-sensitive cases re-ran at 7/7 and 6/6.

Live validation on this PR

The skill was then run against this PR itself — four independent agents, the
plain prompt "give me a commit message for the pr 4912", graded by a script that
re-derives ground truth from the live PR (2 changed files, 0 closing issues,
2 commit authors, 0 human reviewers). All four passed 15/15 mechanical checks.
Two traps were avoided every time: the bot-reported -414.5 KB package-size
delta, which a docs-only PR cannot cause, and the superseded 33/35 eval figures
that sit in this description beside the shipped 39/41.

Two runs then produced the same semantic defect independently — joining an
eval-rebuild clause to the fact that #4908 needed no corrections, because this
description happens to use "control case" for both #4908 and the compact eval.
The mixed-truth check covered the symptom but not the cause, so it now names the
case where two entities share a role word. The two follow-up runs kept them
apart, one stating the distinction outright. That is the second commit.

A third finding was recorded and deliberately not encoded: one run asserted an
unsupported detail about where release-status responsibilities moved. It did
not reproduce, and patching on a single sample is the overfitting this PR
otherwise avoids.

Validated with skill-creator/scripts/quick_validate.py ("Skill is valid!"). No rendering change, so no screenshots apply.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Filed a docs issue in mono/SkiaSharp-API-docs so reference docs can be written later
  • Native change? Companion mono/skia PR linked above and bindings regenerated

Five completed release-PR message reviews needed the same kinds of
correction before they were usable, and each one traced back to a rule the
skill did not state. Add those rules and rebuild the eval set so the cases
actually test the judgement the reviews had to perform.

~~ Instruction gaps taken from the reviews ~~

A shared mechanism that every other topic routes through reads as plumbing,
so its guarantee gets distributed as a sentence per consumer and never gets
a home; it is now a topic when it carries a guarantee its consumers do not
own. A removal keeps its name, the behavior that left with it, and where
that responsibility moved, because the message is the only thing a future
search for the deleted name will find.

`Requires:` now names the immediate dependency. In a stack the earlier
ancestor explains context but is not what the change requires, which is how
two messages ended up requiring a grandparent PR.

A family of similar artifacts has to be enumerated member by member along
the dimension being generalized. Reading two of five workflows is what
produced "every workflow is one manual job" when a scheduled workflow and a
CI-only workflow were sitting in the same directory.

Coverage claims are now stated in the terms the assertions use rather than
the capability they gesture at, and safety adjectives such as read-only or
advisory are replaced by the specific thing that cannot happen and to which
neighboring system. Measurements are re-read at the current head, since a
number captured before a later push was true when observed and is wrong
now. Scope-negotiation notes are chronology and stop being true once the
follow-up lands.

Configuration splits and removals join the per-change-kind content list,
because an undocumented split reads as an inconsistency and the next reader
unifies it and reintroduces the failure it was preventing.

~~ Attribution and output shape ~~

A trailer the drafting environment would normally append is not evidence; a
run invented a Copilot noreply trailer from nothing on a PR whose evidence
recorded a single author. Trailers are also explicitly inside the fenced
block now, after a run placed one outside it where it would never reach the
commit.

~~ Evals rebuilt to discriminate ~~

The first eval pass scored 33/35 against 32/35 and proved nothing: the
prompts handed over the conclusions ("the difference is deliberate",
"cannot merge before it"), numbered the notes so the topic count was given
away, and one assertion hard-coded a section count from a single PR. Both
graders independently flagged the assertions as non-discriminating.

The seven cases now present raw evidence plus the stale claim that caused
the real correction: a PR description asserting a false universal that its
own trigger blocks contradict, a description requiring the wrong PR in a
stack, a reviewer inviting a config unification that previously let a
verification run pass against a build feed, and two revisions of a
measurement with no revision labelled current. Rerun scores 39/41 against
36/41 with no eval regressing, winning on direct stack dependency, shared
mechanism placement, and concrete safety claims.

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

github-actions Bot commented Sep 1, 2026

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 -- 4912

PowerShell / Windows:

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

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4912/packages --name skiasharp-pr-4912
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-4912

@github-actions

github-actions Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #4912

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 40 slower · 🟢 7 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · macOS · 143.9 ns → 204.4 ns (+42%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 1024) · Windows · 15.56 µs → 20.20 µs (+30%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Linux · 2.54 µs → 3.22 µs (+27%)
  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · Windows · 100.44 µs → 126.03 µs (+25%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Linux · 204.9 ns → 255.0 ns (+24%)
  • …and 42 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.26431.1)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.54 µs 3.22 µs 🔴 +27%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 204.9 ns 255.0 ns 🔴 +24%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 95.51 µs 112.65 µs 🔴 +18%
ColorMathBenchmark.PreMultiply(Colors: 4096) 12.87 µs 14.09 µs 🔴 +9%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 247.41 µs 267.76 µs 🔴 +8%
ColorMathBenchmark.ToColor(Colors: 4096) 15.41 µs 14.29 µs 🟢 -7%
PathBoundsBenchmark.TightBounds(Points: 64) 971.4 ns 1.03 µs 🔴 +6%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.45 µs 12.10 µs 🔴 +6%

Windows

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.26431.1)

Benchmark baseline this PR Δ
PathBoundsBenchmark.TightBounds(Points: 1024) 15.56 µs 20.20 µs 🔴 +30%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 100.44 µs 126.03 µs 🔴 +25%
PathBoundsBenchmark.TightBounds(Points: 64) 1.53 µs 1.87 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 142.84 µs 166.79 µs 🔴 +17%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 241.78 µs 281.35 µs 🔴 +16%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.97 µs 10.35 µs 🔴 +15%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 115.42 µs 128.88 µs 🔴 +12%
MatrixOpsBenchmark.Concat(Count: 4096) 227.80 µs 250.57 µs 🔴 +10%
ColorParseBenchmark.Parse(Iterations: 1000) 75.81 µs 83.17 µs 🔴 +10%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.29 µs 7.97 µs 🔴 +9%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.13 ms 22.93 ms 🔴 +9%
ColorMathBenchmark.ToColor(Colors: 4096) 15.54 µs 16.86 µs 🔴 +8%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.64 ms 2.86 ms 🔴 +8%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.10 µs 8.73 µs 🔴 +8%
ColorMathBenchmark.PreMultiply(Colors: 4096) 13.23 µs 14.23 µs 🔴 +8%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 130.12 µs 139.43 µs 🔴 +7%
MatrixOpsBenchmark.Invert(Count: 4096) 128.42 µs 136.79 µs 🔴 +7%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 266.18 µs 252.06 µs 🟢 -5%

macOS

⏱️ Time (vs 🌙 nightly 4.152.0-nightly.26431.1)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 256) 143.9 ns 204.4 ns 🔴 +42%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.22 µs 1.49 µs 🔴 +22%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.20 ms 7.23 ms 🔴 +17%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 663.84 µs 762.19 µs 🔴 +15%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.23 µs 3.61 µs 🔴 +12%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 120.55 µs 106.41 µs 🟢 -12%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.50 ms 1.67 ms 🔴 +11%
ColorMathBenchmark.PreMultiply(Colors: 4096) 10.91 µs 9.78 µs 🟢 -10%
ColorMathBenchmark.ToColor(Colors: 4096) 22.37 µs 24.65 µs 🔴 +10%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.96 ms 3.24 ms 🔴 +10%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 5.87 ms 6.39 ms 🔴 +9%
CanvasDrawBenchmark.Draw(Shapes: 512) 14.42 ms 13.27 ms 🟢 -8%
MatrixOpsBenchmark.Concat(Count: 4096) 130.39 µs 120.50 µs 🟢 -8%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.84 µs 1.97 µs 🔴 +7%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 54.99 µs 51.19 µs 🟢 -7%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.32 ms 1.40 ms 🔴 +7%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.62 ms 1.72 ms 🔴 +6%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 71.83 µs 76.29 µs 🔴 +6%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.89 µs 6.22 µs 🔴 +6%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 192.32 µs 202.64 µs 🔴 +5%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.31 µs 8.74 µs 🔴 +5%

📈 Full interactive perf-dashboard & run details →

@github-actions

github-actions Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

📦 Artifact size report

Packages from this PR (build 1577744) vs the latest nightly baseline 4.152.0-nightly.47 (observed 2026-09-01).

Total .nupkg size: 569.6 MB → 569.3 MB (−399.1 KB, -0.1%)

Packages

⚠️ marks growth over 500.0 KB or 2%. Changes under 50.0 KB are treated as noise.

Package baseline this PR Δ Δ%
SkiaSharp.NativeAssets.WinUI 109.1 MB 108.5 MB 🟢 −542.4 KB -0.5%
SkiaSharp.NativeAssets.WebAssembly 69.7 MB 69.7 MB 🔴 +56.9 KB +0.1%

+39 package(s) unchanged (< 50.0 KB).

Per-file changes

SkiaSharp.NativeAssets.WinUI

File Size
runtimes/win-arm64/native/libGLESv2.pdb 64.5 MB → 64.4 MB (🟢 −144.0 KB)
runtimes/win-x86/native/libGLESv2.pdb 67.3 MB → 67.2 MB (🟢 −80.0 KB)
runtimes/win-x64/native/libGLESv2.pdb 66.6 MB → 66.6 MB (🟢 −64.0 KB)

Informational only — this never blocks the PR. Native binaries are labelled by os/arch.

Three independent drafting runs against #4912 itself exercised the new rules
on live evidence. Two of the three joined an eval-rebuild clause to the fact
that #4908 needed no corrections, producing "rebuild the evals ... while
retaining #4908 as a compact control". Both halves are true and the join is
not: #4908 is a control case study in the audit, while the compact control is
an eval fixture that never references it.

The source invites the merge. This PR's own description uses "control case"
for the unchanged review and for the compact eval a few paragraphs apart, and
that is the ordinary situation rather than a special one. Baseline, fixture,
and config carry the same hazard whenever a PR's evidence names two things by
one role word.

The mixed-truth check already covered the symptom but described only a fact
joined to an unsupported qualifier, which does not prompt anyone to ask which
of two same-named things a clause is about. Extend it to name that case, so
the check fires while the sentence is being written rather than after a
reviewer notices the join.

A rerun after the change kept the two apart, describing #4908 as an unchanged
review in the overview and the compact control as one of the seven eval cases,
with the other fifteen ground-truth checks still passing.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@mattleibow
mattleibow merged commit ed822d4 into main Sep 1, 2026
22 of 82 checks passed
@mattleibow
mattleibow deleted the mattleibow-improve-pr-commit-message-skill branch September 1, 2026 23:40
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.

2 participants