Frontend Patterns

Use when the user asks about frontend component patterns: compound components, container/presentational, custom hooks, render props, HOCs, provider pattern, state reducer or headless components. Produces pattern choices with framework examples. Not for app folder structure (use react-architecture) or picking a state library (use frontend-state-management).

45 stars 6 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill frontend-patterns
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/universal/patterns ~/.claude/skills/frontend-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Frontend Design Patterns

## Purpose
Select and implement frontend component patterns that solve specific architectural problems with idiomatic framework code.

## Agent Protocol

### Trigger
User request includes: `frontend pattern`, `component pattern`, `react pattern`, `vue pattern`, `container pattern`, `hoc`, `render prop`, `compound component`, `hooks pattern`, `provider pattern`, `composable`.

### Input Context
- Framework (React, Vue, Angular, Svelte, Solid)
- Component hierarchy and data flow
- Current pain points (prop drilling, re-renders, complex state logic)
- Performance requirements

### Output Artifact
A markdown document containing:
- Selected pattern(s) with code examples
- Pattern selection rationale (why pattern A over pattern B)
- Refactoring plan if converting existing code
- Testing strategy for the pattern

### Response Format
Produce the artifact directly. No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick. If no pattern applies, output `No pattern required. Current approach is sufficient.` and stop.

——

### Completion Criteria
- Pattern implementation idiomatic to target framework
- Selection criteria documented with rejected alternatives
- Testing strategy included
- Edge cases covered (loading, error, empty states)

### Max Response Length
4096 tokens

## Pattern Architecture / Decision Trees

### Pattern Selection Decision Tree
Read the full skill on GitHub

Details

Skill name
frontend-patterns
Path
skills/frontend/universal/patterns/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Frontend Patterns skill do?

Use when the user asks about frontend component patterns: compound components, container/presentational, custom hooks, render props, HOCs, provider pattern, state reducer or headless components. Produces pattern choices with framework examples. Not for app folder structure (use react-architecture) or picking a state library (use frontend-state-management).

How do I install the Frontend Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill frontend-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Frontend Patterns popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Frontend Performance

45

j4flmao/agent-skills

Use when the user asks about bundle size, slow page loads, code splitting by route, lazy loading, rendering cost, memoization or a frontend performance budget in a framework app. Produces measure-first, framework-level optimizations. Not for Core Web Vitals field data and CrUX diagnosis (use web-performance) or image pipelines (use frontend-image-optimization).

Frontend & Design

Frontend Lit

45

j4flmao/agent-skills

Use when the user asks about Lit, LitElement, lit-html templates, reactive properties, Lit decorators, Lit context or Lit SSR. Produces typed Lit web components with shadow DOM styles and custom events. Not for framework-free custom elements (use frontend-web-components) or Stencil (use stencil).

Frontend & Design

Frontend Pwa

45

j4flmao/agent-skills

Use when the user asks to make the site installable and work offline, PWA, web app manifest, service worker with Workbox or vite-plugin-pwa, update prompts, background sync or web push. Produces manifest, caching strategies and a safe update flow with real browser limits. Not for HTTP cache headers (use frontend-browser-caching).

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.