Agent skill
create-component
Creates React components for SideDish. Use when adding new UI components, modals, forms, or interactive elements. Includes TypeScript interfaces, styling patterns, and security considerations.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/create-component-jhlee0409-sidedish
SKILL.md
Create Component Skill
Instructions
- Create in
src/components/ComponentName.tsx - Add
'use client'for interactive components - Define props interface above component
- Use
React.FC<Props>pattern - Export as default
Component Template
'use client'
import { useState } from 'react'
interface ComponentNameProps {
title: string
onClick?: () => void
children?: React.ReactNode
}
const ComponentName: React.FC<ComponentNameProps> = ({ title, onClick, children }) => {
const [isLoading, setIsLoading] = useState(false)
return (
<div className="bg-white rounded-xl p-6 shadow-lg">
<h2 className="text-lg font-bold text-slate-900">{title}</h2>
{children}
</div>
)
}
export default ComponentName
Korean Text
- Buttons: 등록하기, 저장하기, 취소, 삭제
- Labels: 제목, 설명, 태그
- Errors: 오류가 발생했습니다
Security
import SafeMarkdown from '@/components/SafeMarkdown'
<SafeMarkdown>{userContent}</SafeMarkdown>
For form components, modal template, and complete patterns, see reference.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?