agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when verifying that a UI renders correctly. Covers visual regression testing, responsive checks across breakpoints, cross-browser verification, and screenshot-based review of an implementation against a design.
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill visual-qa --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/visual-qaContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when verifying that a UI renders correctly. Covers visual regression testing, responsive checks across breakpoints, cross-browser verification, and screenshot-based review of an implementation against a design.
name: visual-qa description: Use when verifying that a UI renders correctly. Covers visual regression testing, responsive checks across breakpoints, cross-browser verification, and screenshot-based review of an implementation against a design. metadata: category: frontend version: 1.0.0 tags: [visual-testing, regression, screenshots, responsive, qa]
Catch visual defects before users do. Functional tests confirm the button works; they say nothing about the button being invisible, overlapping, or off-screen on a phone.
1. **Enumerate the states** — Not just the happy one. Empty, loading, error, long content, and the state with a 60-character name in a field designed for eight. 2. **Make screenshots deterministic** — Freeze time, seed data, disable animations, and wait for fonts and images. A flaky visual test is worse than no visual test; it will be ignored, then deleted. 3. **Capture at every breakpoint** — Mobile (375), tablet (768), desktop (1280), wide (1920). Check the boundaries themselves, where layouts switch. 4. **Diff against the baseline** — Review each diff. Approve intentional changes to update the baseline; investigate the rest. 5. **Check the overflow cases** — Long words, long lists, missing images, and a 200% browser zoom. These are where layouts break, and where designs rarely go.
**Deterministic Playwright visual test across breakpoints and states:**
const VIEWPORTS = [
{ name: "mobile", width: 375, height: 812 },
{ name: "tablet", width: 768, height: 1024 },
{ name: "desktop", width: 1280, height: 800 },
];
for (const vp of VIEWPORTS) {
test.describe(`order card @ ${vp.name}`, () => {
test.use({ viewport: { width: vp.width, height: vp.height } });
for (const state of ["default", "loading", "error", "long-content"] as const) {
test(state, async ({ page }) => {
await page.clock.setFixedTime(new Date("2026-01-15T12:00:00Z")); // freeze time
await page.goto(`/storybook/order-card?state=${state}`);
await page.waitForFunction(() => document.fonts.ready); // fonts settled
await expect(page.getByTestId("order-card")).toHaveScreenshot(
`order-card-${state}-${vp.name}.png`,
{ animations: "disabled", maxDiffPixelRatio: 0.01 },
);
});
}
});
}**Catching overflow that a functional test would pass:**
test("long customer name does not overflow the card", async ({ page }) => {
await page.goto("/orders/ord_1?customer=Bartholomew%20Wintersmith-Kensington");
const card = page.getByTestId("order-card");
const overflows = await card.evaluate(
(el) => el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight,
);
expect(overflows).toBe(false);
});A curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Repo: nimadorostkar/Claude-Skills-collection
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what does not, structure, and…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory, structuring notes for retrieval, and…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should not be trusted to remember,…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling, versioning, testing, and…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive disclosure, and the difference between a…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base model, and measuring whether the…