aj-geddes avatar

Frontend State Management

Covers the main state management libraries you'll actually use: Redux Toolkit, Zustand, MobX, and Context API with useReducer. Each reference guide shows complete implementations with TypeScript, async operations, and proper patterns. The skill pushes you toward Redux Toolkit for complex apps and Zustand for simpler cases, which is the right call. Includes slice patterns, middleware setup, and server state sync examples. Good for teams that need a consistent approach across projects or developers who want working examples instead of piecing together docs from four different libraries.

skills.sh installs
485
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill frontend-state-management --agent claude-code

Installs into .claude/skills of the current project.

Files

Frontend State Management

Table of Contents

Overview

Implement scalable state management solutions using modern patterns and libraries to handle application state, side effects, and data flow across components.

When to Use

  • Complex application state
  • Multiple components sharing state
  • Predictable state mutations
  • Time-travel debugging needs
  • Server state synchronization

Quick Start

Minimal working example:

// store/userSlice.ts
import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';

interface User {
  id: number;
  name: string;
  email: string;
}

interface UserState {
  items: User[];
  loading: boolean;
  error: string | null;
}

const initialState: UserState = {
  items: [],
  loading: false,
  error: null
};

export const fetchUsers = createAsyncThunk(
  'users/fetchUsers',
  async (_, { rejectWithValue }) => {
    try {
// ... (see reference guides for full implementation)

Reference Guides

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Frontend Development, Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1josiahsiegel avatartailwindcss-responsive-darkmodejosiahsiegel/claude-plugin-marketplaceTailwind CSS responsive design and dark mode patterns (2025-2026). PROACTIVELY activate for: (1) dark mode setup (class-based vs media-query, dark: variant), (2478skills.sh installs
2manutej avatarreact-patternsmanutej/luxor-claude-marketplaceModern React development with hooks, component patterns, state management, and performance optimization for building scalable applications473skills.sh installs
3pedronauck avatarreactpedronauck/skillsReact 19 development under the React Compiler. Use when writing React components or hooks, deciding whether a useMemo/useCallback/memo belongs in the code, diag473skills.sh installs
4dauquangthanh avatarfrontend-design-reviewdauquangthanh/hanoi-rainbowConducts comprehensive frontend design reviews covering UI/UX design quality, design system validation, accessibility compliance, responsive design patterns, co463skills.sh installs
5jwynia avatarshadcn-layoutsjwynia/agent-skillsGenerate correct shadcn/Tailwind layouts by applying CSS mental models. This skill should be used when the user asks to 'create a shadcn layout', 'fix layout is460skills.sh installs
6aj-geddes avatarfrontend-routingaj-geddes/useful-ai-promptsImplement client-side routing using React Router, Vue Router, and Angular Router. Use when building multi-page applications with navigation and route protection454skills.sh installs