Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.
日本語の概要は準備中です。原文の説明を表示しています。
Design UI, build components, write Playwright E2E tests, run WCAG accessibility audits, and do visual review. Use when building or testing frontend/UI work. Trigger on "build a component", "frontend", "E2E test", "accessibility audit", "a11y", "visual review", "make this look good".
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Unified frontend skill for visual design, component creation, E2E testing, accessibility audits, and visual review. Composes five design dimensions with tech-specific implementations.
/frontend # Show dimensions, suggest next action
/frontend design # 6 design dimensions + 9-phase workflow
/frontend component <name> # Create UI component with variants, tests, preview
/frontend e2e # Write Playwright E2E tests (page object model)
/frontend a11y # WCAG 2.1 AA accessibility audit
/frontend review # Gemini visual review (screenshot + code)
/frontend verify # Quick verification decision tree
Parse $ARGUMENTS for explicit subcommand. If no arguments:
*.html, *.css, *.ts, *.tsx, *.jinja2, *.scss)/frontend verify/frontend designBefore routing to any subcommand, check for a persistent design system file:
.design/system.md in the project root (search from CWD upward, stop at git root)Design system loaded: [list the Mode + Typography + Color + Depth values]On /frontend design Phase 1 completion:
.design/system.md if it does not exist (use the Design Brief output as seed).design/system.md should be committed to version control (it is a project artifact)After each design phase (typography, color, spatial, etc.):
.design/system.md with the decisions madeDetermine whether this is a brand or product context. Detection priority:
.design/system.md ## Mode field — use it if present/app/, /dashboard/, /admin/ routes; auth middleware; data table components → product. Hero sections, CTA buttons, marketing copy, no auth → brandBrand mode — marketing pages, landing pages, portfolios, editorial. Prioritize: personality, differentiation, emotional impact, dramatic hierarchy.
Product mode — dashboards, app UI, admin panels, tools. Prioritize: clarity, information density, consistency, functional hierarchy.
Record the detected mode in .design/system.md ## Mode field.
/frontend design — Visual DesignThe 6 Design Dimensions:
Tech implementations (choose one, loaded from sub-skills/):
| Sub-skill | Stack |
|---|---|
react-vite.md | React + Vite + Framer Motion |
htmx.md | HTMX + Jinja2 + hyperscript |
jinja2.md | Jinja2 template patterns |
sass.md | Sass/SCSS design tokens |
vue.md | Vue (Options/Composition API) |
svelte.md | Svelte custom animations |
html.md | HTML/CSS/SCSS fundamentals |
tailwind.md | Tailwind CSS |
shadcn-ui.md | shadcn/ui design system |
radix-ui.md | Radix UI primitives |
material-design.md | Material Design |
hugo.md | Hugo static site |
typescript.md | TypeScript patterns |
css-scss.md | Advanced CSS/SCSS |
11-Phase Workflow:
sub-skills/design-thinking.md)sub-skills/typography.md)sub-skills/color-theme.md)sub-skills/motion.md)sub-skills/spatial.md)sub-skills/page-composition.md)sub-skills/imagery.md)sub-skills/backgrounds.md)sub-skills/ui-polish.md)
9.5. Delight pass — run /impeccable delight to add one unexpected element. If Impeccable is not installed, apply patterns from sub-skills/ui-polish.md Interaction Polish section instead.prompts/litmus-checks.md) → run bash scripts/design-lint.sh . --mode [brand|product] → fix warn findings → Visual validation → /frontend review (optional)Additional resources in design-references/, design-systems/, prompts/, tools/.
/frontend component <name> — UI ComponentsCreate production-ready UI components with TypeScript, variants, tests, and preview.
/frontend component Button "Primary action button with variants"
/frontend component Modal "Dialog component for user interactions"
Creates:
src/components/ui/[name]/[name].tsx — Component with variants (primary/secondary/success/danger/warning), sizes (sm/md/lg), states (disabled/hover/focus/active)src/components/ui/[name]/[name].test.tsx — Tests for all variants, states, keyboard navsrc/app/preview/page.tsxRequirements:
aria-label, aria-disabled, aria-describedby)outline: 2px solid, :focus-visible)Reference: templates/component-scaffold.md
/frontend e2e — Playwright E2E TestsWrite comprehensive E2E tests using Playwright with page object model pattern.
Templates (in templates/e2e/):
| Template | Purpose |
|---|---|
playwright-config.ts | Multi-browser configuration |
page-object-model.ts | BasePage class + page objects |
custom-fixtures.ts | Test data + authenticated state |
responsive-tests.ts | Desktop/tablet/mobile viewports |
visual-regression.ts | Screenshot comparison + snapshots |
api-mocking.ts | Mock API responses with MSW |
auth-setup.ts | Authentication state reuse |
Structure: tests/e2e/{auth,features,workflows}/, tests/pages/
/frontend a11y — Accessibility AuditValidate WCAG 2.1 Level AA compliance combining automated + manual testing.
WCAG 2.1 Principles:
Workflow:
templates/a11y/accessibility-report.mdReference: templates/a11y/wcag-checklist.md
/frontend review — Visual Design ReviewCapture screenshot + source code → send to Gemini for visual design analysis against 5 dimensions.
Requires: Gemini API (vision-capable model). Does not work with Claude.
/frontend review # Auto-detect localhost
/frontend review http://localhost:3000 # Specific URL
/frontend review /path/to/screenshot.png # Existing screenshot
/frontend review --full-page # Full scrollable page
/frontend review --color-scheme dark # Dark mode
Uses shared screenshot utility at ~/.claude/shared/companions/lib/screenshot.sh.
/frontend verify — Quick VerificationDecision tree for verifying frontend changes after implementation using playwright-cli:
Is the dev server running?
playwright-cli for visual check + interactionWhat needs verification?
playwright-cli screenshotplaywright-cli snapshot (YAML with element refs)playwright-cli open → fill/click/type with refsplaywright-cli consoleplaywright-cli networkplaywright-cli resize at multiple viewportsTool selection:
playwright-cli screenshotplaywright-cli commands (open, snapshot, click, fill)npx playwright test or uv run pytest tests/e2e/When the pencil MCP server is connected (claude mcp list shows pencil: ✓ Connected), design phases 6–9 can run directly on a live canvas instead of writing code:
read_canvas — inspect current canvas state (frames, layers, tokens)get_selected_frame — work on the frame selected in Pencilget_style_guide — extract or apply design tokens from the canvasCanvas mode replaces the code-first approach for visual iteration: design on canvas → extract tokens → implement. Use it for early-phase exploration before committing to code. Falls back to normal file-based workflow when Pencil is not connected.
Invoked by: User directly (/frontend)
Connected skills:
/frontend design → implement → /frontend verify → /frontend review (validate)/frontend component → /frontend e2e (test the component)/frontend a11y → standalone audit, often after /frontend verifyExternal tools (Claude Code only):
/impeccable — 23-command design skill at ~/.local/share/skills/impeccable. Use /impeccable delight in Phase 9.5, /impeccable audit for a full anti-pattern scan, /impeccable detect for CI-gatable output.pencil MCP — Canvas-based design iteration. Check with claude mcp list.Agents:
browser-tester — Interactive testing with playwright-cli (auto-scales from quick verification to full-app discovery + fix)まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.
日本語の概要は準備中です。原文の説明を表示しています。
Analyze feature requirements, dependencies, and security considerations. Use when starting feature implementation from GitHub issues to understand scope, technical feasibility, and risks.
日本語の概要は準備中です。原文の説明を表示しています。
Run SQL queries against psql, BigQuery, or MySQL from the terminal, including natural-language-to-SQL and schema exploration. Use when analyzing data, inspecting DB state, or debugging tables. Trigger on "query the database", "SQL", "show me data from", "explore table".
日本語の概要は準備中です。原文の説明を表示しています。
Design REST APIs or function contracts with clear request/response specifications, error handling patterns, authentication strategies, and comprehensive documentation.
日本語の概要は準備中です。原文の説明を表示しています。
Generate comprehensive API endpoint tests for REST and GraphQL APIs. Creates tests for all HTTP methods, status codes, authentication, and validation.
日本語の概要は準備中です。原文の説明を表示しています。
Design component architecture and module structure using established architectural patterns for clean, maintainable, and scalable systems.
日本語の概要は準備中です。原文の説明を表示しています。