frontend-development
Skill119 starsChanged 6 months agoMITView on GitHub
Use this skill for ANY work involving React, Next.js, TypeScript, or Tailwind in the browser layer. This includes building components and pages, but equally covers debugging and fixing frontend issues: CSS/Tailwind classes not applying, form validation behavior, hydration mismatches between server and client renders, styling bugs, layout shifts, and rendering problems. Also use for refactoring components (e.g., splitting Server vs Client Components), data fetching patterns, state management, bundle optimization, and frontend tooling. If the problem involves what users see or interact with in a web browser — whether building, fixing, or refactoring — use this skill. Not for backend APIs, databases, infrastructure, or DevOps.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- lubusIN/frappe-skillstheir own version, first seen Nov 4, 2026
- its-ash/skillstheir own version, first seen Nov 1, 2026
- liushikuan63/Qoder-Optimizationtheir own version, first seen Nov 1, 2026
- KMaruthi2002/universal-llm-skillstheir own version, first seen Oct 25, 2026
- taichuy/1flowbasetheir own version, first seen Oct 23, 2026
- typv/nest-turbo-startertheir own version, first seen Oct 8, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- All-Hands-AI/OpenHands★ 93ksame name
- OpenHands/OpenHands★ 93ksame name
- taichuy/1flowbase★ 292same name
- typv/nest-turbo-starter★ 224same name
- ambient-code/platform★ 131same name
- lubusIN/frappe-skills★ 68same name
- aws-solutions/konductor★ 11same name
- Ampli-Group/agentic-mobile-blueprint★ 4same name
- liushikuan63/Qoder-Optimization★ 2same name
- dhslegen/digital-delivery-team★ 1same name
3 more not listed
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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- askSkill
- cookSkill
- create-docSkill
- diagnoseSkill
- discussSkill
- docs-seekerSkill
- fixSkill
- frontend-designSkill
- give-planSkill
- media-processorSkill
- optimus-primeSkill
- prime-syncSkill
- review-codeSkill
- self-evolveSkill
- skill-creatorSkill
- testSkill
- backend-fastapi-pythonSkill
- dockerSkill
- humanizerSkill
- monorepoSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
0
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
- Very specific: line 13
Start with Server Components.
“Common” is measured: kept by at least 6 in 10 of the 11 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
Frontend Development
Project-specific patterns for React/Next.js/TypeScript frontend work.
Architecture Decisions
Server-First Boundaries
Start with Server Components. Only add 'use client' when you need interactivity, state, or browser APIs. Extract only the interactive leaf — not the entire page or section.
Colocation Over Centralization
Types, hooks, and utilities that serve one feature live in that feature's directory. Only truly shared code goes in global directories.
Composition Over Customization
Compose existing components rather than adding props/variants. shadcn/ui components are meant to be copied and modified. Build up from primitives.
Data Flows Down, Events Flow Up
Server fetches data and passes it as props. Client components handle interactions and call server actions. Never fetch in client components what could be fetched on the server.
Gotchas
'use client'does NOT mean "runs only in the browser" — it runs on the server during SSR too. It means "include in the client bundle." Putting secrets or DB calls in a'use client'file will leak them.- Importing a Server Component into a Client Component makes it a Client Component. The boundary propagates DOWN. Pass server content as
childrenprops instead. useEffectwith empty deps fires AFTER paint — useuseLayoutEffectfor DOM measurements that affect layout, but never in Server Components.- Next.js
fetch()caches by default in App Router. Add{ cache: 'no-store' }orrevalidate: 0for data that must be fresh. Forgetting this causes stale data bugs that only appear in production. - Tailwind classes are purged at build time — dynamically constructed class names like
bg-${color}-500will be missing. Use complete class names or safelist them. keyprop on mapped elements must be stable and unique. Using array index as key causes subtle bugs when list items are reordered, inserted, or deleted.useSearchParams()requires a<Suspense>boundary in Next.js App Router or the entire page becomes client-rendered.- shadcn/ui components are source code, not a library. After
npx shadcn-ui add, the component lives in YOUR codebase — modify it directly, don't wrap it. - React Hook Form's
register()returns a ref — don't also pass your ownrefto the same input without merging them. asyncServer Components that throwredirect()ornotFound()must NOT be wrapped in try/catch — these work by throwing special errors that Next.js catches upstream.
Quick Start
- Check file structure — App Router or plain React? Check references below.
- Identify the feature boundary — What feature does this work belong to?
- Start with Server Component — Only add
'use client'when you hit a wall - Name files specifically —
login-form.tsxnotform.tsx. Must be grep-findable. - Match existing patterns — Read 2-3 similar files before creating new ones
References
| When you need... | Read |
| File naming, imports, exports | conventions.md |
| Next.js App Router patterns | overview.md |
| React component patterns | overview.md |
| TypeScript project patterns | typescript.md |
| shadcn/ui + Dice UI usage | shadcn.md |
| Tailwind configuration | tailwind.md |
| Data fetching (tRPC, TanStack, axios) | overview.md |
| Biome/linter config | biome.md |
Official Resources
For general framework docs beyond project-specific patterns, consult:
| Framework | URL |
| Next.js | https://nextjs.org/docs |
| React | https://react.dev |
| TypeScript | https://www.typescriptlang.org/docs |
| Tailwind CSS | https://tailwindcss.com/docs |
| shadcn/ui | https://ui.shadcn.com/docs |
| Dice UI | https://www.diceui.com/docs |
| TanStack Query | https://tanstack.com/query/latest/docs |
| tRPC | https://trpc.io/docs |
| Zustand | https://zustand.docs.pmnd.rs |
| React Hook Form | https://react-hook-form.com |
| Zod | https://zod.dev |
| Biome | https://biomejs.dev |
| nuqs | https://nuqs.47ng.com |
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.

