Automated summary
Re-runs the vendored module gallery after a parser change and compares each module's counts (nodes, edges, roots, unresolved) against the committed baseline record.
Strengths
- Forces a full-gallery run rather than a subset, preventing silent "no change" results for modules that were never executed
- Requires a per-module before/after table with an explanation for every row, including the ones that did not move
- Asks for a prediction before the run and reports it against the outcome, turning an unexpected rise into a finding
- Treats an empty or near-empty graph as a likely parser defect rather than a property of the module
Limitations
- The procedure is generalised from a single execution, as the document itself admits
- Tightly coupled to a specific repository layout (gallery/fetch.ps1, run.ps1, corpus.lock.json) and to PowerShell
- Assumes a clean git state under gallery/results/ and modules already fetched, so a fresh clone needs preparation first
Use it after any change to extraction, node identity, edge resolution or graph shape, and before tagging.
Don't use it to debug one module or iterate quickly on an isolated case, or when the gallery sources have not been fetched yet.
Security analysis
SafeThe skill is a transparent workflow document for rerunning a vendored gallery and diffing parser outputs. It invokes repository-local PowerShell scripts and git, but contains no destructive commands, secret exfiltration, obfuscated payloads, or safety-disabling instructions. Network use via fetch.ps1 is implied and legitimate for corpus checkout.
No concerns found
How this analysis is madeExamples
I just changed edge resolution in the parser. Run the corpus-diff procedure over the whole gallery — no -Name subset — and give me the before/after table for all eight modules with a note on what moved each row.Re-run the vendored gallery against the committed baseline and explain every row, including the modules whose counts stayed identical. Don't summarise the rest as 'no change'.Before running gallery/run.ps1, I'll state my prediction that roots should fall after the identity fix — then run the full gallery, report the actual counts per module, and tell me whether the rise in SqlServerDsc roots is a finding or a regression.name: corpus-diff description: Re-run the vendored gallery after a parser change and report every module's counts against its committed record - all eight, never a summary. Written on first use rather than second, deliberately. when_to_use: After any change to extraction, node identity, edge resolution or the graph shape. Also invocable by name before a tag that touches the parser.
corpus-diff
The gallery exists so that a parser change is measured on real modules instead
of on one nine-node fixture. The committed results in gallery/results/ are the
baseline, git is the history, and the diff is the deliverable.
This has been performed once. It is written down after one use rather than
two — a deliberate exception to the two-scale bar in meta-pattern, taken
because the procedure is expensive to reconstruct, the next parser change will
need it, and getting the reporting wrong is what makes the whole gallery
worthless rather than merely late. Treat the guidance below as one measurement
generalised, not as a law.
The procedure
1. Have the modules. gallery/fetch.ps1 verifies against
gallery/corpus.lock.json. Sources are never committed; a missing checkout is
the normal state of a fresh clone, not a fault.
2. Record the baseline before you change anything. The committed results are
the baseline, so git status --short must be clean under gallery/results/
before the run. Diffing against records already overwritten by a half-finished
change measures nothing, and there is no second copy.
3. Run the whole gallery, not the module you are thinking about.
./gallery/run.ps1
One child process per module with a timeout, so a hang is a timeout record
rather than a lost afternoon. -Name exists for iterating and is not how the
diff is produced — a subset run leaves the other records at their old values
and the diff silently reports "no change" for every module nobody ran.
4. Report every module in one table. Nodes, edges, roots, unresolved, before and after, plus one column saying what moved it.
5. Explain every row, including the ones that did not move.
The two things that are not obvious
A module whose counts do not move is as informative as one that jumps. The instinct is to report the movers and summarise the rest, and that instinct throws away the finding. Pester's unresolved count went 19 → 19 across a change to node identity, and that number is the result: Pester's single duplicated name produces no ambiguous edge, so the identity fix could not have helped it, and what Pester is actually waiting on — a sigil filter dropping 491 call sites — was untouched and said so by not moving. Az went 3 → 3 → nothing at all, which is the corpus reporting that a module of pure re-exports exercises none of this. A summary would have printed "six of eight improved" and lost both.
A number going up can be the honest answer. SqlServerDsc's roots went 186 of
496 to 252 of 532 after the identity fix, and the prediction had been that they
would fall — 144 nodes were roots because their name was shadowed, read as "144
false roots that will disappear". They did not disappear. They were roots
already, for the wrong reason; the fix moved the inbound edges onto the right
nodes and made the reason inspectable. The composition is now checkable — 62 are
*-TargetResource, 37 are file top levels — and it is the checkability, not the
direction, that says the change worked.
So state the prediction before the run and report it against the outcome. A prediction that turns out wrong is worth more than an outcome with no prediction behind it, and in this instance it was the only thing that turned a rise into a finding rather than into a regression nobody could argue with.
Traps
An empty or near-empty graph is a probable defect in the parser, not a
property of the module. Az.Accounts reports 47 declared exports against seven
nodes and an outcome of ok. Say which you concluded and why; the silent
version of this is the same failure as a gate that cannot fail — see
knowledge/patterns/0017-nothing-could-have-said-otherwise.md.
A failed module still produces a record. PSDepend has failed every run.
That is data and it stays in the table; a corpus where failures are absent
measures only the modules that worked.
Counts are not correctness. A diff shows that numbers moved, never that they
moved to the right numbers. For at least one module, verify a handful of the
changed nodes by hand against the source and name which ones — that is how the
two copies of DscResource.Common 0.24.5 inside SqlServerDsc were found, and
nothing in the counts would have surfaced them.
Nothing here may import a corpus module. The parser is static analysis; if something in a diff would be easier with an import, that is the bug.
What failure looks like here
- A diff reported as a summary. The rows that did not move are the ones dropped.
- A diff produced with
-Nameafter iterating on one module. - A rise reported as a regression, or a fall reported as an improvement, with no prediction written down beforehand to argue against.
- Committed results overwritten before the baseline was read.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/run-gallery-diff-after-parser-change-mte1lgp6/download' --output '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md.part' && mv '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md.part' '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && test -s '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/corpus-diff' && cp -R '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6' '.claude/skills/corpus-diff'Cursor
test -f '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && test -s '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/corpus-diff' && cp -R '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6' '.cursor/skills/corpus-diff'Codex
test -f '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && test -s '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/corpus-diff' && cp -R '.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6' '.agents/skills/corpus-diff'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6'openskills read 'run-gallery-diff-after-parser-change-mte1lgp6'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/run-gallery-diff-after-parser-change-mte1lgp6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
ClickHouse Performance Comparison
Testing
Evaluate ClickHouse performance test results, check PR performance changes, compare with history, and assess whether a result is actionable.
Analyze CI Performance Reports
Testing
Analyze CI performance comparison reports for a ClickHouse PR. Cross-references master history to distinguish real regressions from flaky tests.
Santa Method
Testing
Multi-agent adversarial verification with two independent reviewers. Output is checked twice and iteratively fixed until both pass before shipping.