← スキル一覧に戻る

add-component
by stolink
frontend
⭐ 1🍴 0📅 2026年1月21日
SKILL.md
name: add-component description: 새 React 컴포넌트를 생성합니다. shadcn/ui 스타일과 프로젝트 컨벤션을 준수합니다. 사용법: /add-component ComponentName [directory]
Add Component
새 React 컴포넌트를 프로젝트 컨벤션에 맞게 생성합니다.
Instructions
- 사용자로부터 컴포넌트 이름(PascalCase)과 선택적으로 디렉토리를 받습니다
- 기본 디렉토리는
src/components/common/입니다 - 다음 파일을 생성합니다:
src/components/{directory}/{ComponentName}.tsx
- 해당 디렉토리에
index.ts가 있으면 export를 추가합니다
Template
import { cn } from "@/lib/utils";
interface ${ComponentName}Props {
className?: string;
children?: React.ReactNode;
}
export function ${ComponentName}({ className, children }: ${ComponentName}Props) {
return (
<div className={cn("", className)}>
{children}
</div>
);
}
Checklist
- Props 인터페이스 정의
cn()유틸리티 사용- className prop 지원
- named export 사용
Examples
/add-component UserAvatar common
→ src/components/common/UserAvatar.tsx 생성
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です