React component dev

From Asymmetric-al/core · View interactive version

React component dev is an AI agent skill from the GitHub repository Asymmetric-al/core. 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 th

How to use this skill

Skill file

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

Checklist

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}
    />
  );
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.