frontend-standards
Skill6 starsChanged 8 months agoMITView on GitHub
Component patterns, state management, styling conventions, and rendering strategies for modern frontend development.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- RadekCihlar/Claude-skillstheir own version, first seen Jul 10, 2026
- OVYVO/yan-skillstheir own version, first seen Apr 16, 2026
- zenghur/skillstheir own version, first seen Apr 11, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- RadekCihlar/Claude-skills★ 1same name
- zenghur/skills★ 1same name
- OVYVO/yan-skills★ 0same 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 repository64 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-backward-compatibilitySkill
- api-design-standardsSkill
- api-versioningSkill
- database-designSkill
- distributed-systemsSkill
- observability-by-defaultSkill
- performance-budgetsSkill
- resilience-patternsSkill
- twelve-factor-appSkill
- codex-cross-reviewSkill
- dispatching-parallel-agentsSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- architecture-awarenessSkill
- intent-to-specSkill
- project-diagnosisSkill
- using-shipworthySkill
- systematic-debuggingSkill
- documentation-as-codeSkill
- accessibilitySkill
- retrospectiveSkill
- writing-skillsSkill
- ci-cd-awarenessSkill
- context-managerSkill
- environment-setupSkill
- feature-flag-disciplineSkill
- finishing-a-development-branchSkill
- guardrail-audit-logSkill
- incident-responseSkill
- mcp-integrationSkill
- migration-strategiesSkill
- production-readinessSkill
- scope-creep-detectionSkill
- session-memorySkill
- slo-sli-definitionSkill
- tech-debt-trackingSkill
- using-git-worktreesSkill
- zero-downtime-migrationsSkill
- brainstormingSkill
- decision-frameworksSkill
- design-documentsSkill
- executing-plansSkill
- writing-plansSkill
- code-complexitySkill
- confidence-based-strictnessSkill
- error-handling-patternsSkill
- feedback-driven-adaptationSkill
- quality-gatesSkill
- response-schema-validationSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- adaptive-securitySkill
- bias-detectionSkill
- compliance-awarenessSkill
- container-securitySkill
- dependency-managementSkill
- pii-detectionSkill
- secrets-managementSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Prefer function components over class components
- Distinctive: line 18
Keep components small — if it exceeds ~150 lines, split it
- Very specific: line 23
Default to server components (no 'use client')
- Very specific: line 24
Add 'use client' ONLY when needed: useState, useEffect, event handlers, browser APIs
- Distinctive: line 25
Keep client components as leaf nodes (small, focused)
- Distinctive: line 26
Never make a layout or page a client component unless absolutely necessary
- Distinctive: line 36
Use React Context for truly global state (theme, auth, locale)
- Distinctive: line 37
Consider Zustand or Jotai for complex client state
- Distinctive: line 42
Avoid prop drilling beyond 2 levels — use Context or composition
- Distinctive: line 43
Never store derived data in state (compute it)
- Distinctive: line 44
Never mutate state directly — always create new references
- Distinctive: line 48
Prefer Tailwind CSS or CSS Modules — not inline styles
- Distinctive: line 49
Follow the project's established styling approach (check architecture.md)
- Very specific: line 63
Use React.memo only when profiling shows re-render problems
- Distinctive: line 66
Avoid unnecessary re-renders (stable references, proper deps arrays)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontend Standards
Component Patterns
File Organization
- One component per file
- Co-locate styles, tests, and types with the component
- Name files after the component:
UserProfile.tsx
Component Rules
- Prefer function components over class components
- Keep components small — if it exceeds ~150 lines, split it
- Extract custom hooks for reusable logic
- Props interfaces defined above the component
Server vs Client Components (Next.js App Router)
- Default to server components (no
'use client') - Add
'use client'ONLY when needed: useState, useEffect, event handlers, browser APIs - Keep client components as leaf nodes (small, focused)
- Never make a layout or page a client component unless absolutely necessary
State Management
Local State
useStatefor component-specific stateuseReducerfor complex state logic within a component
Shared State
- Lift state to the nearest common parent
- Use React Context for truly global state (theme, auth, locale)
- Consider Zustand or Jotai for complex client state
- Server state: use TanStack Query or SWR (not manual fetch + useState)
Rules
- State should live as close to where it's used as possible
- Avoid prop drilling beyond 2 levels — use Context or composition
- Never store derived data in state (compute it)
- Never mutate state directly — always create new references
Styling
- Prefer Tailwind CSS or CSS Modules — not inline styles
- Follow the project's established styling approach (check architecture.md)
- Design tokens (colors, spacing, typography) from a single source
- Responsive by default — mobile-first approach
Data Fetching
- Server components: fetch directly (Next.js) or in loaders
- Client components: use data fetching libraries (TanStack Query, SWR)
- Show loading states for async data
- Handle error states — don't assume fetches succeed
- Implement optimistic updates for better UX on mutations
Performance
- Use
React.memoonly when profiling shows re-render problems - Lazy-load routes and heavy components
- Optimize images (next/image, WebP, explicit dimensions)
- Avoid unnecessary re-renders (stable references, proper deps arrays)
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.

