Asserts hard-to-specify output by reviewing a human-readable snapshot once, approving it, then failing on any later diff. Useful when correct results are easy to recognize but tedious to write as explicit assertions.
Some outputs resist hand-written assertions: a rendered invoice, a generated
SQL query, a serialized object graph, an ASCII report. Spelling out every
field in assertEquals is brittle to write and unreadable afterward.
Approval testing inverts the flow: the code prints its result, a human reads
it once and approves it, and the framework guards that approved value from
then on.
invoice.received.txt; the test compares it to invoice.approved.txt.
A missing or mismatched approved file fails the test. Tools like
ApprovalTests, Verify, syrupy, or insta manage this pair for you..approved
file in a pull request is a behavior change. Treat an unexplained one as a
red flag, the same as a suspicious source edit.Approval testing shines when output is large and recognition is easy; for a rule expressible in one line, a plain assertion is clearer and defer to unit-test-design. For screenshots specifically, use visual-regression-testing, which handles image thresholds this text-oriented method cannot.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job