client-components

Generate client-side React components with Radix UI and useServerAction hooks.

2|Updated Aug 20, 2025
One-click install
npx skills add https://github.com/JasonPaff/head-shakers --skill client-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: client-components
Source: https://github.com/JasonPaff/head-shakers/tree/main/.claude/skills/client-components
Command: npx skills add https://github.com/JasonPaff/head-shakers --skill client-components

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures all client-side React components adhere to Head Shakers' specific conventions, covering everything from hook organization and event handling to Radix UI integration and server action consumption, reducing development time and improving maintainability.

Core Features & Use Cases

  • Standardized Component Structure: Enforces the 'use client' directive, consistent hook organization, and naming conventions for state and event handlers.
  • Accessible UI with Radix: Guides the integration of Radix UI primitives for building accessible and robust interactive elements.
  • Seamless Server Action Consumption: Ensures client components correctly consume server actions using the useServerAction hook, managing loading states and toast notifications.
  • Use Case: When building an interactive search dropdown, this Skill ensures the component is marked 'use client', uses useState for query, useEffect for debouncing, useCallback for event handlers, and useServerAction for fetching search results, all while adhering to accessibility standards.

Quick Start

Generate a new client-side React component that uses useState and useEffect to manage local state, and consumes a server action via useServerAction for data mutations.