react-frontend
Skill3 starsChanged 6 months agoMITView on GitHub
Build React applications with Next.js or Vite, TailwindCSS, shadcn/ui, Zustand, and TanStack Query. Use when creating web UI components, pages, forms, state management, or data fetching.
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- iliaal/ai-skillstheir own version, first seen Nov 28, 2026
- Fahrnetic/engineering-agent-skill-workflowtheir own version, first seen Oct 15, 2026
- hoangNguyenAngelhack/ai-agent-setupword for word, first seen May 25, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
Other versions4 projects use a version of this.
Word for word · 1
- hoangNguyenAngelhack/ai-agent-setup★ 3100% same
Edited · 0
None found.
Wrote their own version · 3
- iliaal/ai-skills★ 46same name
- Fahrnetic/engineering-agent-skill-workflow★ 2same name
- yiweiwan/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- code-reviewSkill
- nestjs-backendSkill
- nodejs-backendSkill
- react-native-mobileSkill
- tddSkill
- Code Review & QualitySkill
- Data Transformation & AnalysisSkill
- deploySkill
- Incremental ImplementationSkill
- security-reviewSkill
- Test-Driven DevelopmentSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 187
Use TypeScript with strict mode
- Very specific: line 188
Prefer const over let
- Distinctive: line 189
Use named exports for components
- Distinctive: line 190
Keep components small and focused
- Distinctive: line 192
Use CSS-in-JS sparingly (prefer Tailwind)
- Distinctive: line 198
Test user interactions, not implementation details
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Frontend Development
Build modern React applications with best practices.
Impact Levels
| Level | Description |
| CRITICAL | Must follow - security, data integrity |
| HIGH | Should follow - maintainability, performance |
| MEDIUM | Recommended - code quality |
Framework Selection (HIGH)
| Use Case | Framework |
| Landing pages, SEO, marketing | Next.js 14 (App Router) |
| Admin panels, dashboards, SPAs | React + Vite |
Tech Stack
- Styling: TailwindCSS + shadcn/ui
- State: Zustand (client) + TanStack Query (server)
- Forms: react-hook-form + Zod
- Routing: Next.js App Router or React Router
Project Structure (Vite SPA)
src/
├── components/
│ ├── ui/ # shadcn/ui components
│ └── features/ # Feature-specific components
├── pages/ # Route pages
├── hooks/ # Custom hooks
├── stores/ # Zustand stores
├── lib/ # Utils, API client
└── types/ # TypeScript typesPatterns
State Management (Zustand) (HIGH)
import { create } from 'zustand';
interface AuthState {
user: User | null;
token: string | null;
setAuth: (user: User, token: string) => void;
logout: () => void;
}
export const useAuthStore = create<AuthState>((set) => ({
user: null,
token: null,
setAuth: (user, token) => set({ user, token }),
logout: () => {
localStorage.removeItem('token');
set({ user: null, token: null });
},
}));Data Fetching (TanStack Query) (HIGH)
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
// Query
export function useUsers() {
return useQuery({
queryKey: ['users'],
queryFn: () => api.get('/users').then(res => res.data),
});
}
// Mutation with cache invalidation
export function useCreateUser() {
const queryClient = useQueryClient();
return useMutation({
mutationFn: (data: CreateUserInput) => api.post('/users', data),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['users'] });
},
});
}API Client (Axios) (CRITICAL)
import axios from 'axios';
export const api = axios.create({
baseURL: import.meta.env.VITE_API_URL || '/api',
timeout: 10000,
});
api.interceptors.request.use((config) => {
const token = localStorage.getItem('token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});
api.interceptors.response.use(
(response) => response,
(error) => {
if (error.response?.status === 401) {
useAuthStore.getState().logout();
}
return Promise.reject(error);
}
);Form Handling (HIGH)
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
const schema = z.object({
email: z.string().email(),
password: z.string().min(8),
});
function LoginForm() {
const { register, handleSubmit, formState: { errors } } = useForm({
resolver: zodResolver(schema),
});
const onSubmit = (data) => {
// Handle login
};
return (
<form onSubmit={handleSubmit(onSubmit)}>
<input {...register('email')} />
{errors.email && <span>{errors.email.message}</span>}
{/* ... */}
</form>
);
}Component Pattern (MEDIUM)
// Use shadcn/ui + Tailwind
import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils';
interface CardProps {
title: string;
children: React.ReactNode;
className?: string;
}
export function Card({ title, children, className }: CardProps) {
return (
<div className={cn('rounded-lg border p-4 shadow-sm', className)}>
<h3 className="font-semibold text-lg mb-2">{title}</h3>
{children}
</div>
);
}Best Practices
- Use TypeScript with strict mode
- Prefer
constoverlet - Use named exports for components
- Keep components small and focused
- Extract reusable logic into hooks
- Use CSS-in-JS sparingly (prefer Tailwind)
Testing (HIGH)
- Unit tests with Vitest + Testing Library
- E2E tests with Playwright
- Test user interactions, not implementation details
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

