Skip to content
Back to skills

Add Component

ASecurity

새 React 컴포넌트를 생성합니다. shadcn/ui 스타일과 프로젝트 컨벤션을 준수합니다. 사용법: /add-component ComponentName [directory]

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentreactnode

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill add-component --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Component?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Component
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-add-component/badge)](https://www.skillsdirectory.com/skills/david-li0406-add-component)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-component
description: 새 React 컴포넌트를 생성합니다. shadcn/ui 스타일과 프로젝트 컨벤션을 준수합니다. 사용법: /add-component ComponentName [directory]
---

# Add Component

새 React 컴포넌트를 프로젝트 컨벤션에 맞게 생성합니다.

## Instructions

1. 사용자로부터 컴포넌트 이름(PascalCase)과 선택적으로 디렉토리를 받습니다
2. 기본 디렉토리는 `src/components/common/`입니다
3. 다음 파일을 생성합니다:
   - `src/components/{directory}/{ComponentName}.tsx`
4. 해당 디렉토리에 `index.ts`가 있으면 export를 추가합니다

## Template

```tsx
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` 생성

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…