← Back to list

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:
-
File Location:
- Place reusable UI components in
components/ui/. - Place feature-specific components in
components/<feature>/.
- Place reusable UI components in
-
Naming Convention:
- Use PascalCase for filenames and component names (e.g.,
MyButton.tsx).
- Use PascalCase for filenames and component names (e.g.,
-
Imports:
- Always import
cnfor class merging:import { cn } from "@/lib/utils"; - Import React hooks as needed (e.g.,
import { useState } from "react";).
- Always import
-
Structure:
- Define a TypeScript interface for props named
<ComponentName>Props. - Allow a
classNameprop and spread it onto the root element usingcn(). - Export the component as the default export.
- Define a TypeScript interface for props named
-
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> ); } -
Accessibility:
- Ensure all interactive elements have proper
ariaattributes if needed.
- Ensure all interactive elements have proper
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


