← Back to list

create-component
by seosd97
unwrap web application
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: create-component description: Create a new React component following project conventions. Use when creating components, UI elements, or reusable modules.
Create Component
Instructions
When creating a new component:
-
Create folder structure using kebab-case naming:
src/components/[component-name]/ ├── index.tsx └── [component-name].types.ts # if types needed -
Component template:
export function ComponentName() { return ( <div> {/* content */} </div> ) } -
With types:
// index.tsx import type { ComponentNameProps } from './component-name.types' export function ComponentName({ prop }: ComponentNameProps) { return <div>{prop}</div> }// component-name.types.ts export interface ComponentNameProps { prop: string }
Naming Rules
| Type | Convention | Example |
|---|---|---|
| Folder | kebab-case | user-avatar/ |
| Component | PascalCase | UserAvatar |
| Types file | kebab-case | user-avatar.types.ts |
Example
Creating user-profile component:
mkdir -p src/components/user-profile
// src/components/user-profile/index.tsx
export function UserProfile() {
return (
<div className="user-profile">
<h2>User Profile</h2>
</div>
)
}
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon