Agent Skills: component-development

Use when creating or modifying React components. Ensures proper Server/Client component patterns, performance optimization, and accessibility.

UncategorizedID: programming-in-th/programming.in.th/component-development

Install this agent skill to your local

pnpm dlx add-skill https://github.com/programming-in-th/programming.in.th/tree/HEAD/.claude/skills/component-development

Skill Files

Browse the full folder contents for component-development.

Download Skill

Loading file tree…

.claude/skills/component-development/SKILL.md

Skill Metadata

Name
component-development
Description
Use when creating or modifying React components. Ensures proper Server/Client component patterns, performance optimization, and accessibility.

See React patterns for full reference.

Quick rules:

  • Default to Server Components (no directive)
  • Use 'use client' only for: onClick, useState, useEffect, browser APIs
  • Push client boundary to smallest component
  • Tailwind only, use dark: variants

Example:

// Server Component (default)
export function TaskCard({ task }: { task: Task }) {
  return <div className="p-4 dark:bg-gray-800">{task.title}</div>
}

Checklist: Minimal client components, dark: variants, accessible inputs.