frontend-react
/frontend-react
Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem. Use this skill when building modern React applications, implementing Next.js features, creating UI components with shadcn/ui, or working with complex state management.
- Author
- HK-hub ↗
- Repository
- AgentSkills ↗
- Licence
- MIT
- Last repository change
- 18.08.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 18.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem. Use this skill when building modern React applications, implementing Next.js features, creating UI components with shadcn/ui, or working with complex state management.
Original author description
Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem. Use this skill when building modern React applications, implementing Next.js features, creating UI components with shadcn/ui, or working with complex state management.
How it works
- Technology Stack
- Project Architecture
- Best Practices
- Common Code Patterns
SKILL.md preview
---
name: frontend-react
description: Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem. Use this skill when building modern React applications, implementing Next.js features, creating UI components with shadcn/ui, or working with complex state management.
---
# React Development Skill
Comprehensive skill for modern React development, focusing on Next.js, TypeScript, Tailwind CSS, and the wider React ecosystem.
## Technology Stack
### Core Framework: React + Next.js
#### React Fundamentals
- **Component-Based**: Declarative UI building blocks
- **Hooks**: Functional state and side-effect management (`useState`, `useEffect`, `useContext`)
- **Virtual DOM**: Efficient reconciliation and rendering
- **React Server Components (RSC)**: Server-side rendering with zero client-side bundle size for static content
#### Next.js Features (App Router)
- **App Router**: File-system based routing in `app/` directory
- **Server Actions**: Direct server-side mutations from client components
- **Streaming SSR**: Progressive rendering with Suspense
- **Metadata API**: SEO and social share optimization
- **Route Handlers**: API endpoints (GET, POST, etc.) in `route.ts` files
- **Middleware**: Request interception and processing
### UI Framework: Tailwind CSS + shadcn/ui
#### Tailwind CSS
- Utility-first CSS framework
- Responsive design with prefixes (`md:`, `lg:`)
- Custom configuration via `tailwind.config.ts`
- Dark mode support
#### shadcn/ui
- Reusable components built with Radix UI and Tailwind CSS
- Accessible and customizable
- "Own your code" philosophy (components copied to your project)
- **Key Components**: Button, Dialog, Form, Dropdown, Card, Sheet
### State Management
- **Local State**: `useState`, `useReducer`
- **Global State**: React Context, Zustand (for lightweight global state)
- **Server State**: TanStack Query (React Query) for async data fetching and caching
## Project Architecture
### Recommended Directory Structure (Next.js App Router)
```
src/
├── app/
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ ├── globals.css # Global styles
│ ├── (auth)/ # Route group (doesn't affect URL path)
│ │ ├── login/
│ │ │ └── page.tsx
│ │ └── register/
│ │ └── page.tsx
│ └── api/ # API routes
├── components/
│ ├── ui/ # shadcn/ui components
│ │ ├── button.tsx
│ │ └── ...
│ ├── Navbar.tsx
│ └── Footer.tsx
├── lib/
│ ├── utils.ts # Utility functions (cn, etc.)
│ └── db.ts # Database connection
└── hooks/ # Custom React hooks
└── use-toast.ts
```
## Best Practices
### Component Design
- **Server by Default**: Use Server Components for everything that doesn't need interactivity.
- **Client Boundary**: Add `'use client'` directive only when using hooks or event listeners.
- **Composition**: Use `children` prop to avoid prop drilling.
- **Micro-Components**: Break down complex UIs into smaller, single-responsibility components.
### Performance
- **Image Optimization**: Use `next/image` for automatic optimization.
- **Font Optimization**: Use `next/font` to prevent layout shift.
- **Lazy Loading**: Use `next/dynamic` or `React.lazy` for heavy components.
- **Code Splitting**: Automatic in Next.js, but be mindful of large dependencies.
### Accessibility (a11y)
- Use semantic HTML tags (`<main>`, `<article>`, `<nav>`).
- Ensure all interactive elements have keyboard support.
- Use valid ARIA attributes when semantic HTML isn't enough.
- Radix UI primitives (used in shadcn/ui) handle many a11y concerns automatically.
## Common Code Patterns
### Next.js Page (Server Component)
```tsx
import { db } from "@/lib/db"
export default async function DashboardPage() {
const data = await db.user.findMany()
return (
<main className="p-6">
<h1 className="text-2xl font-bold">Dashboard</h1>
<ul>
{data.map(user => (
<li key={user.id}>{user.name}</li>
))}
</ul>
</main>
)
}
```
### Client Component with State
```tsx
"use client"
import { useState } from "react"
import { Button } from "@/components/ui/button"
export function Counter() {
const [count, setCount] = useState(0)
return (
<div className="flex gap-4 items-center">
<span>Count: {count}</span>
<Button onClick={() => setCount(c => c + 1)}>Increment</Button>
</div>
)
}
```
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · HK-hub/AgentSkills | 100 | MIT |
| projanvil/mindforge | 100 | MIT |
| projanvil/mindforge | 100 | MIT |
| lookatitude/guild | 90 | MIT |
Database snapshot: 13.11.2026 · package version 5cb6c9d5723c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100react-frontend-patterns
React 19+, TypeScript, Tailwind CSS, shadcn/ui component patterns, accessibility, forms, state management. Use when building or reviewing React components, pages, or frontend architecture. - 100building-web-artifacts
Use when building elaborate, multi-component HTML artifacts using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Triggers include requests for complex web artifacts requiring state management, routing, or shadcn/ui components. Not for simple single-file HTML/JSX… - 100frontend-vue
Professional Vue.js development skill covering Nuxt 3, Vue 3 Composition API, Tailwind CSS, and the Vue ecosystem. Use this skill when building Vue applications, implementing Nuxt features, using Pinia for state management, or component libraries like shadcn-vue. - 100web-artifacts-builder
Suite of tools for creating elaborate, multi-component web applications using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Use for complex projects requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX pages. - 100frontend-vue
Professional Vue.js development skill covering Nuxt 3, Vue 3 Composition API, Tailwind CSS, and the Vue ecosystem. Use this skill when building Vue applications, implementing Nuxt features, using Pinia for state management, or component libraries like shadcn-vue. - 100web-artifacts-builder
Suite of tools for creating elaborate, multi-component HTML applications using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - Bundles into a single HTML file for preview.