frontend-patterns
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
Skill by SriramGandhiS
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sriramgandhis-frontend-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
frontend-patterns- Description
- Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
- License
- MIT
- Instructions
- 644 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 644 lines (spec recommends under 500)
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Frontend Development Patterns
Modern frontend patterns for React, Next.js, and performant user interfaces.
## When to Activate
- Building React components (composition, props, rendering)
- Managing state (useState, useReducer, Zustand, Context)
- Implementing data fetching (SWR, React Query, server components)
- Optimizing performance (memoization, virtualization, code splitting)
- Working with forms (validation, controlled inputs, Zod schemas)
- Handling client-side routing and navigation
- Building accessible, responsive UI patterns
## Privacy and Data Boundaries
Frontend examples should use synthetic or domain-generic data. Do not collect, log, persist, or display credentials, access tokens, SSNs, health data, payment details, private emails, phone numbers, or other sensitive personal data unless the user explicitly requests a scoped implementation with appropriate validation, redaction, and access controls.
Avoid adding analytics, tracking pixels, third-party scripts, or external data sinks without explicit approval. When handling user data, prefer least-privilege APIs, client-side redaction before logging, and server-side validation for every boundary.
## Component Patterns
### Composition Over Inheritance
```typescript
// PASS: GOOD: Component composition
interface CardProps {
children: React.ReactNode
variant?: 'default' | 'outlined'
}
export function Card({ children, variant = 'default' }: CardProps) {
return <div className={`card card-${variant}`}>{children}</div>
}
export function CardHeader({ children }: { children: React.ReactNode }) {
return <div className="card-header">{children}</div>
}
export function CardBody({ children }: { children: React.ReactNode }) {
return <div className="card-body">{children}</div>
}
// Usage
<Card>
<CardHeader>Title</CardHeader>
<CardBody>Content</CardBody>
</Card>
```
### Compound Components
```typescript
interface TabsContextValue {
activeTab: string
setActiveTab: (tab: string) => void
}
const TabsContext = createContext<TabsContextValue | undefined>(undefined)
export function Tabs({ children, defaultTab }: {
children: React.ReactNode
defaultTab: string
}) {
const [activeTab, setActiveTab] = useState(defaultTab)
return (
<TabsContext.Provider value={{ activeTab, setActiveTab }}>
{children}
</TabsContext.Provider>
)
}
export function TabList({ children }: { children: React.ReactNode }) {
return <div className="tab-list">{children}</div>
}
export function Tab({ id, children }: { id: string, children: React.ReactNode }) {
const context = useContext(TabsContext)
if (!context) throw new Error('Tab must be used within Tabs')
return (
<button
className={context.activeTab === id ? 'active' : ''}
onClick={() => context.setActiveTab(id)}
>
{children}
</button>
)
}
// Usage
<Tabs defaultTab="overview">
<TabList>
<Tab id="overview">Overview</Tab>
<Tab id="details">Details</Tab>
</TabList>
</Tabs>
```
### Render Props Pattern
```typescript
interface DataLoaderProps<T> {
url: string
children: (data: T | null, loading: boolean, error: Error | null) => React.ReactNode
}
export function DataLoader<T>({ url, children }: DataLoaderProps<T>) {
const [data, setData] = useState<T | null>(null)
const [loading, setLoading] = useState(true)
const [error, setError] = useState<Error | null>(null)
useEffect(() => {
fetch(url)
.then(res => res.json())
.then(setData)
.catch(setError)
.finally(() => setLoading(false))From SriramGandhiS/Skills, MIT.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 15, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/SriramGandhiS/Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.383score
frontend-patterns
myths-labs
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillAFreshness: A★ 36Claude Code +9 - 0.376score
frontend-patterns
agent-skills-hub
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillDFreshness: D★ 123Claude Code +9 - 0.368score
frontend-patterns
Fmarzochi
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillBFreshness: B★ 67Claude Code +9 - 0.340score
frontend-patterns
mturac
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillCFreshness: C★ 83Claude Code +9 - 0.337score
frontend-patterns
ysyecust
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillCFreshness: C★ 59Claude Code +9 - 0.299score
frontend-patterns
ViewWay
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillCFreshness: C★ 3Claude Code +9 - 0.295score
frontend-patterns
Adaptive-Liquidity
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillCFreshness: C★ 2Claude Code +9 - 0.291score
frontend-patterns
marshall0524
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillDFreshness: D★ 41Claude Code +9 - 0.289score
frontend-patterns
fimoklei
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillDFreshness: D★ 42Claude Code +9 - 0.287score
frontend-patterns
Luohaothu
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillDFreshness: D★ 26Claude Code +9 - 0.274score
frontend-patterns
Infopibe
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillDFreshness: D★ 8Claude Code +9 - 0.273score
frontend-patterns
Patkik
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
SkillCFreshness: CClaude Code +9
Cite this page
frontend-patterns skill. Agent Mart. https://agentmart.dev/skills/sriramgandhis-frontend-patterns (last updated 2026-10-24)