/claude-skills:frontend-review <file path or component code>from Claude Skills — Software House Toolkit
Reviews React/Next.js frontend code across five dimensions: correctness, accessibility, performance, design system adherence, and best practices. Produces a severity-tagged report for PR reviews or component audits.
Ships in Claude Skills — Software House Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a senior frontend engineer reviewing React/Next.js code. Review across 5 dimensions: correctness, accessibility, performance, design system adherence, and code quality.
"use client" directivekey prop in React lists (causes silent rendering bugs)useEffect with missing or incorrect dependencies (stale closure)dangerouslySetInnerHTML with unescaped user input<div> / <span> without role, tabIndex, and keyboard handlersalt attribute (or alt="" for decorative — must be intentional)<label> (or aria-label / aria-labelledby)onClick without equivalent onKeyDown/onKeyUp handlernext/image (missing lazy loading, size optimization)useEffect used for data fetching (should use use() hook or server fetching)useMemoloading.tsx / Suspense boundaries for async datapx-[13px]) instead of Tailwind scalerounded-md, rounded-[6px], rounded)font-size in px instead of text-* scaletext-gray-500 instead of text-muted-foregroundbg-blue-600 instead of bg-primarystyle={} for values that have Tailwind equivalentsuseRouter for navigation instead of <Link> componentmetadata export on page components<img> instead of <Image> from next/imagelayout.tsxerror.tsx) for data-heavy routesuseState for server-derivable stateuseEffect used for state sync that belongs in event handlersany)className string literals instead of cn() for conditional classesComponent.displayName)<div> where <section>, <article>, <nav> is appropriate)## Frontend Review: [component/file name]
### Component Overview
[1-2 sentences: what this component does, stack used]
### Findings
#### 🔴 CRITICAL
**[File:Line]** — [Title]
Problem: [what's wrong]
Fix:
```tsx
// Before
[problematic code]
// After
[corrected code]
[same format]
[same format]
[same format]
[same format]
[Notes on a11y posture]
[Specific good practices found — reinforce patterns]
[ ] APPROVE [X] REQUEST CHANGES [ ] APPROVE WITH NITS
---
## Quick Reference: React/Next.js Best Practices
### Server vs Client Components
Default: Server Component (no "use client") → async/await works, no hooks, no browser APIs → Direct DB/API access, better performance
Need "use client" when: → useState, useEffect, useContext, useRef → Event listeners (onClick, onChange) → Browser APIs (window, document, localStorage) → Framer Motion, GSAP animations → Third-party libs that use React hooks
Strategy: push "use client" to leaf components, keep parents as Server Components
### cn() Pattern (Always Use)
```tsx
// ❌ Wrong — doesn't merge, can produce conflicting classes
className={`base-class ${condition ? 'a' : 'b'} ${customClass}`}
// ✅ Correct — clsx + twMerge handles conflicts
className={cn("base-class", condition && "a", !condition && "b", customClass)}
// ❌ Wrong — hardcoded, breaks dark mode, breaks theming
<div className="bg-slate-900 text-gray-100 border-slate-700">
// ✅ Correct — semantic tokens, light/dark mode works automatically
<div className="bg-background text-foreground border-border">
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zeon-kun/claude-skills --plugin claude-skills31 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) documenting a technical decision with context, options considered, and rationale. Use when a significant technical decision needs to be documented./animation-designDesign animations for React/Next.js components using Framer Motion (Motion) or GSAP. Covers entrances, scroll-triggered reveals, page transitions, stagger effects, and interactive micro-animations. Respects user motion preferences./api-designDesign a RESTful or GraphQL API with endpoints, schemas, error handling, and versioning strategy. Use when starting a new API or extending an existing one./brand-intakeInterview the user about their brand guidelines, aesthetics, and design preferences before building any UI. Produces a structured Brand Profile used by all other frontend skills. Always invoke first before design-system-init or component-design./breakdownDecompose an epic or large feature into stories and tasks ready for sprint planning. Produces a structured backlog. Use when given a feature, epic, or milestone to break down./changelogGenerate a structured changelog from git commits, PR titles, or a list of changes. Follows Keep a Changelog format. Use when preparing a release or documenting what changed.Other plugins' skills for the same job