agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
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. Trigger on "does this match the figma", "set up screenshot
Claude Code
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill visual-qa --agent claude-code
Codex
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a codex -y
Cursor
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a cursor -y
Gemini CLI
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a gemini-cli -y
GitHub Copilot
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a github-copilot -y
OpenCode
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a opencode -y
Windsurf
$ npx skills add nimadorostkar/Claude-Skills-collection --skill visual-qa -a windsurf -y
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. Trigger on "does this match the figma", "set up screenshot tests", "layout breaks on mobile", "looks wrong in safari". Do not use for exploratory behavior testing — see the web-app-testing skill; for design critique, see the ui-review skill. 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.
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling,…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.