Repository navigation
Docs review: decision-first skill, full output grammar in reference, dedupe README - #35
Merged
Merged
Conversation
…e README SKILL.md is now a short loop with the decisions explicit: when to add --computed, base-vs-base baseline then mask, how to read a row, when to fix, accept or mask, and the verdict. The full output grammar, errors, --computed, exit codes and edge cases move to reference.md sections it points at. README links to docs/output.md for the token glossary and results.json instead of repeating them. Help text, action inputs and the example config are brought in line with the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"✗ 2 routes differ (10 shots)." instead of "✗ 10 route(s) differ.", which counted shots under the word routes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A shot with unstable pixels, a width change or an unaligned height change is never accepted; the run now prints one line counting them by reason instead of exiting 1 with no explanation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the already-made-change baseline, a static server line, default widths, route coverage for removed CSS, unshot states, exit 0 not meaning verified, per-OS accepts and section pointers; moves token examples, exit details and --cache-right to reference.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The docs had been updated a piece at a time as
--computed,--mask/--mask-media, video freezing, exit-1-by-default,summary.differing, the area-based ceiling,linelabels, pseudo-element entries and the base-build reference landed. This PR checks each of them againstsrc/, makes the agent skill spell out its decisions, and removes text that was repeated across files.Skill
SKILL.mdis now a short loop with the decisions spelled out:--computed(trustdom identical); markup migrations get pixels only; a component gets--selector.--rerun-failedand--cache-right, then a fresh full run.reference.mdsection that has the details.reference.mdhas named sections: Reference and routes, Output (summary lines, row tokens,domentries, crops), Errors,--computed, Masks/accepts/thresholds, Rationalizations, Exit codes, Iterating, Scoping, Config file, results.json, Gotchas.sel "a"→"b"text entries, thecomputed:block grammar (truncated,unmatched,snapshot failed), the complete exit-2 list,summary.accepted/stale,meta.config, and accept-where-you-check.--maskapplied only "without a config"; it is added to the config's masks.Word counts
skills/renderdiff/SKILL.mdskills/renderdiff/reference.md--computed, exit codes, and the details moved out of SKILL.md)README.mdHuman docs
docs/output.md; the README links to them.docs/output.md:line, pseudo-element entries,(re-parented),N acceptedand the verdict line.acceptedandmeta.configadded to the example.--progressregions cell was wrong ("on the report card"). It now shows the realN regions, largest WxH at (x,y)line.docs/accepted.md:--cache-rightsection (moved from the README).renderdiff.config.example.ts:freezeVideoandmaskMedia, which were missing from the "annotates every field" file.thresholdcomment states exit-1 semantics.extraCssexample no longer hides video, which freezing makes unnecessary.CONTRIBUTING.md: brings the corpus description up to date (seven controls, six equivalence pairs, guard rails for video, the area ceiling and failed assets,accepted/computedtest files) and mentionsformat:check.action.yml: theconcurrency,storage-stateandwait-timeoutdescriptions now say what the action does (default, 0600 temp file, exit 2 on timeout).src/cli.ts(help text only): exit 1 is now "differs and isn't accepted", and exit 2 includes an out dir it won't wipe.Checks:
npm run lint,npm run format:check,npm run typecheckandnpm test(271 pass) all pass.Cold-read follow-up (SKILL.md)
A fresh agent that read only the skill and answered seven scenarios found gaps. Added, mostly one line each:
beforehook.dom differsusually means, with a pointer to §--computed.dom differscome up.Moved out of SKILL.md to keep its size flat: the example tokens (now in § Output), the exit-code details (§ Exit codes) and the
--cache-rightdetails (§ Iterating).Code bugs found, fixed in separate commits
src/run.tsprinted✗ ${shots} route(s) differ.It now prints✗ 2 routes differ (4 shots).(below 97.00%with--threshold). The controls test now covers two routes at two widths.--acceptdidn't say which shots it skipped. It printed onlyaccepted N difference(s); the run then exited 1 because shots it can never accept were still differing. It now adds one line:not accepted: N differing shot(s) can't be (1 unstable, 2 width change) — reference.md § Masks, accepts and thresholds.accept.tsexports the reason. A new test inaccepted.test.tswidens one side and checks the line..claude-plugin/plugin.json,.claude-plugin/marketplace.jsonand thepackage.jsondescription now say "a local build of the base (or production)".Checks after these: lint, format:check, typecheck and
npm test(271 tests) pass. The changed visual tests were run on their own and pass: the threshold/exit tests incontrols.test.tsand the accepted-differences tests inaccepted.test.ts.🤖 Generated with Claude Code