frontend-pattern

Codify React and TypeScript frontend patterns for components, state, and data fetching.

20|3|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/DVNghiem/FlowDeck --skill frontend-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-pattern
Source: https://github.com/DVNghiem/FlowDeck/tree/main/src/skills/frontend-pattern
Command: npx skills add https://github.com/DVNghiem/FlowDeck --skill frontend-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams implement maintainable frontend architectures using React and TypeScript by providing reusable patterns for components, state management, and data fetching.

Core Features & Use Cases

  • Component Patterns: Compound Components and Container/Presentational Split to structure UI with shared state and clean separation of concerns.
  • URL As State: Persist and reflect navigational state in the URL for bookmarkable and shareable experiences.
  • Data Fetching Patterns: Stale-While-Revalidate and Optimistic Updates to improve UX and resilience.
  • CSS Custom Properties: Use design tokens via CSS variables for consistent theming.
  • Animation Guidelines: Recommend performant animation practices and allowed CSS properties.

Quick Start

Implement a new UI module using the compound component pattern, apply a container/presentational split, and incorporate URL-based state for navigational controls.

Frequently Asked Questions about frontend-pattern

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure scalable React components with TypeScript?

Structure scalable React components using TypeScript by applying compound component and container/presentational split patterns. These frontend patterns separate state logic from presentational UI, ensuring reusable components with clean separation of concerns.

What is the best way to manage navigational state in a React application?

The best way to manage navigational state is using URL-based state patterns. This approach persists and reflects navigational controls directly in the URL, creating bookmarkable and shareable experiences without duplicating state logic.

How do I implement data fetching with optimistic updates in React?

Implement data fetching in React using stale-while-revalidate patterns combined with optimistic updates. This frontend pattern improves user experience and resilience by immediately reflecting expected data changes before server confirmation.

When should I use CSS custom properties for theming in frontend applications?

Use CSS custom properties for theming when you need consistent design tokens across your frontend application. This pattern leverages CSS variables to maintain unified styling and easily adjustable visual themes.

What animation guidelines should I follow for performant React interfaces?

Follow animation guidelines that recommend performant practices and explicitly define allowed CSS properties. This ensures smooth UI transitions without causing layout thrashing or degrading rendering performance.

Does this frontend pattern skill require specific state management libraries?

No specific state management libraries are required. The skill codifies architectural patterns like compound components and URL-based state directly within React and TypeScript, avoiding heavy external dependencies.