Communitygithub.com

iamk3nnyt/claude-skills

Applies an agreed visual direction to a page or component by reusing existing components first, then verifies every width and dark mode with the headless-Chrome audit plus a before/after pixel diff, and reviews against Refactoring UI, Nielsen and WCAG 2.2. Use when asked to redesign, restyle, polish or "make it look like the reference", after design-ref or when the direction is already clear.

What is claude-skills?

claude-skills is a Claude Code agent skill that applies an agreed visual direction to a page or component by reusing existing components first, then verifies every width and dark mode with the headless-Chrome audit plus a before/after pixel diff, and reviews against Refactoring UI, Nielsen and WCAG 2.2. Use when asked to redesign, restyle, polish or "make it look like the reference", after design-ref or when the direction is already clear.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/iamk3nnyt/claude-skills/tree/HEAD/skills/design-pass

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

design-pass

Target: $ARGUMENTS Toolkit: ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/ · Checklist: ${CLAUDE_SKILL_DIR}/reference/review-checklist.md

1. Baseline (before touching code)

Make sure the dev server is running (start it in the background if needed; never run a production build), then:

node ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/audit.mjs http://localhost:<port> --pages <path> --widths 375,768,1440 --dark --out /tmp/design-pass/before

2. Audit before patching

  • Find every component the target renders, and every other place that renders the same pattern (grep class strings and component names).
  • Reuse an existing primitive (button, card, modal, section heading) before writing a new one. If the same markup appears 2+ times, extract it, then restyle once.
  • Build exactly what was asked. No new sections, badges, toggles or animations unless asked.
  • Use project tokens only. If a value isn't in the scale, use the nearest step, or propose a token (see design-ref).

3. Apply

Work through the checklist: hierarchy, one primary action per view, the spacing scale, the type scale, empty/loading/error states, and inputs ≥ 16 px on mobile.

4. Verify

node ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/audit.mjs http://localhost:<port> --pages <path> --widths 375,768,1440 --dark --out /tmp/design-pass/after
node ${CLAUDE_SKILL_DIR}/../ui-audit/scripts/diff.mjs /tmp/design-pass/before /tmp/design-pass/after
  • Read the after-sheets for every width in light and dark mode. Look at the diff PNGs for unintended changes outside the target.
  • Grayscale check: re-run one width with --inject "document.documentElement.style.filter='grayscale(1)'".
  • Then the full ui-audit width set once, and typecheck + lint (no build).
  • If the project keeps a Figma file in sync with code, update the matching frames in the same task.

Exit criteria

  • No sideways scroll, no new contrast or axe findings compared with before.
  • Diff shows changes only where intended.
  • No new component that duplicates an existing one, and no unrequested UI.
  • Dark mode checked, or confirmed the project has none.
  • Typecheck and lint pass.
  • A short summary to the user, plus the 1–2 sheet paths worth looking at.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

iamk3nnyt/claude-skills

Turns a feature idea into a one-page spec covering problem, audience, MVP scope, non-goals, numbered Given/When/Then acceptance criteria, affected routes, data and emails, and open questions. Use when the user says "brief", "spec this", "scope this" or "what would it take", or before starting a feature whose scope is unclear.

iamk3nnyt/claude-skills

Checks UI copy across locales by comparing key parity between next-intl message catalogs and in-code sv/en COPY objects, finding placeholder and array mismatches and words from the other language leaking in (the "och" in English bug), then manually reviewing claims against terms and pricing and the project's banned phrases. Use after editing copy or translations, before shipping a page with new text, or when asked to proofread or check translations.

iamk3nnyt/claude-skills

Extracts the visual system from a reference site or pasted HTML (colour roles, type scale, spacing scale, radii, shadows, button/card/eyebrow anatomy, tone) and maps it onto the current project's existing tokens as a short token table. Use when the user shares a reference ("make it look like <site>", "in this style", a URL or HTML paste) before a redesign.

iamk3nnyt/claude-skills

QAs a project's transactional and digest emails by rendering every template without DB or network, screenshotting at 600 and 375 px in light, dark and images-off, and checking for placeholder leaks (undefined, NaN, {{…}}), preheader, unsubscribe, alt text, absolute links, Outlook-safe buttons, viewport meta and Gmail's 102 KB clip. Use when email templates change, before sending a campaign, or when asked to check how emails look.

Related Skills