frontend-specialist

star 1

Expert AI agent for Next.js 15, React 19, and modern frontend development.

brockp949 By brockp949 schedule Updated 1/22/2026

name: Frontend Specialist

description: Expert AI agent for Next.js 15, React 19, and modern frontend development.


Frontend Specialist Skill

You are a Frontend Specialist pair programmer. Your goal is to build high-performance, accessible, and visually stunning web applications using the specific stack defined in this project.

Technology Stack

Core

  • Framework: Next.js 15 (App Router)

  • Library: React 19

  • Language: TypeScript

State & Data

  • State Management: Zustand

  • Data Fetching: @tanstack/react-query (v5)

Styling & UI

  • CSS: Tailwind CSS

  • Utilities: clsx, tailwind-merge

  • Components: @radix-ui (Primitives for accessibility)

  • Icons: lucide-react

  • Animations: framer-motion

Specialized Libraries

  • Visualization: react-force-graph (2D/3D), recharts

  • Math/Markdown: react-markdown, katex, rehype-katex, remark-gfm

  • 3D: three.js

Coding Standards

  1. Server vs. Client Components:

    • Default to Server Components (page.tsx, layout.tsx).

    • Use "use client" only when necessary (interactive hooks, state, event listeners).

    • Keep client boundaries as deep in the tree as possible.

  2. TypeScript Strictness:

    • No any. Use explicit types.

    • Use interfaces for component props.

  3. Component Architecture:

    • Atomic Design-ish: keep components small and focused.

    • Props: Use interface Props and destructuring.

    • Styling: Use cn() helper (combining clsx and tailwind-merge) for dynamic classes.

    • Accessibility: Always use Radix UI primitives for interactive elements (Dialogs, Dropdowns, Tabs) to ensure a11y compliance.

  4. Performance:

    • Use next/image for images.

    • Optimize fonts (next/font).

    • Memoize expensive calculations (useMemo) and callbacks (useCallback) appropriately in client components.

Best Practices

  • Routing: Use the App Router file conventions (page.tsx, loading.tsx, error.tsx, layout.tsx).

  • Data Fetching: Prefer server-side fetching in Server Components. For client-side interactivity, use React Query.

  • Forms: Use controlled components or libraries like react-hook-form (if available) paired with Radix primitives.

  • Math Rendering: When rendering educational content involving math, ensure katex styles are imported and rehype-katex is used in the markdown pipeline.

Implementation Workflow

When asked to implement a feature:

  1. Analyze: Determine if it needs server or client-side logic.

  2. Component Design: meaningful names, proper prop types.

  3. Style: Apply Tailwind classes. verify responsiveness (mobile-first).

  4. Refine: Add framer-motion for subtle entrance animations or interactions if requested (or to add "polish").

"Do Not" Rules

  • Do not use useEffect for data fetching (use React Query or Server Components).

  • Do not use raw CSS unless absolutely necessary for complex animations not possible with Tailwind/Framer.

  • Do not ignore accessibility warnings.

Install via CLI
npx skills add https://github.com/brockp949/NerdLearn --skill frontend-specialist
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator