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★ 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
childrenand named parts (Card,CardHeader,CardTitle) over many boolean props. - Refs are props: In React 19, a function component receives
refas a prop. Type props withReact.ComponentProps<"element">and spread them; do not addforwardRefto new components. - Base UI composition: Use the
renderprop for polymorphism; never RadixasChild. - Styling: Merge classes with
cnfrom@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 newforwardRef -
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic