Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

react-component-dev

БесплатноБез исполняемых скриптовНе проверен

Build reusable, accessible React components with predictable APIs and React 19 refs as props. Use when creating or refactoring components or defining…

Asymmetric-alот Asymmetric-al★ 354 звезды на GitHub

Об этом скилле

React component development in Core

Core runs React 19 (react in package.json). Shared components live in packages/ui; read packages/ui/AGENTS.md before adding or changing one, and use the moai-library-shadcn and base-ui skills for shadcn and primitive work.

Rules

  • Composition over configuration: Prefer children and named parts (Card, CardHeader, CardTitle) over many boolean props.
  • Refs are props: In React 19, a function component receives ref as a prop. Type props with React.ComponentProps<"element"> and spread them; do not add forwardRef to new components.
  • Base UI composition: Use the render prop for polymorphism; never Radix asChild.
  • Styling: Merge classes with cn from @asym/ui/lib/utils, express variants with CVA, and use semantic tokens (bg-card, text-muted-foreground) rather than raw palette colors. The design-system lint enforces this.
  • Accessibility: Use semantic HTML first; add ARIA only when needed (accessibility-review).
  • Predictable props: Follow controlled/uncontrolled conventions; extract complex behavior into hooks.
  • Ownership: Reusable components belong in packages/ui; apps compose them and do not fork them.

Checklist

  • Single responsibility; small, composable API
  • Props typed from React.ComponentProps, spread onto the DOM element; no new forwardRef
  • data-slot, cn, CVA, and semantic tokens follow neighboring components
  • Semantic HTML and keyboard interaction work
  • Shared components live in packages/ui

Example

Shared components follow this shape (see packages/ui/components/shadcn/card.tsx):

import * as React from "react";

import { cn } from "@asym/ui/lib/utils";

function Card({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card"
      className={cn(
        "bg-card text-card-foreground rounded-xl border",
        className,
      )}
      {...props}
    />
  );
}

Установить react-component-dev в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл react-component-dev?

Build reusable, accessible React components with predictable APIs and React 19 refs as props. Use when creating or refactoring components or defining component APIs, favoring composition over configuration and slots/children over many boolean props. Not needed for style-only or content-only edits that do not change a component API.

Как установить скилл react-component-dev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл react-component-dev запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить react-component-dev с