Back to list
aladin002dz

create-component

by aladin002dz

App for donating blood

2🍴 0📅 Jan 20, 2026

SKILL.md


name: Create Component description: Instructions for creating new React UI components with consistent styling and typing.

Create Component Skill

When the user asks you to create a new React component or UI element, follow these standards:

  1. File Location:

    • Place reusable UI components in components/ui/.
    • Place feature-specific components in components/<feature>/.
  2. Naming Convention:

    • Use PascalCase for filenames and component names (e.g., MyButton.tsx).
  3. Imports:

    • Always import cn for class merging: import { cn } from "@/lib/utils";
    • Import React hooks as needed (e.g., import { useState } from "react";).
  4. Structure:

    • Define a TypeScript interface for props named <ComponentName>Props.
    • Allow a className prop and spread it onto the root element using cn().
    • Export the component as the default export.
  5. Template:

    import { cn } from "@/lib/utils";
    import React from "react";
    
    interface MyComponentProps extends React.HTMLAttributes<HTMLDivElement> {
      // Add custom props here
      customProp?: string;
    }
    
    export default function MyComponent({ className, customProp, ...props }: MyComponentProps) {
      return (
        <div className={cn("base-styles here", className)} {...props}>
          {/* Component logic */}
        </div>
      );
    }
    
  6. Accessibility:

    • Ensure all interactive elements have proper aria attributes if needed.

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon