Plugins
개요
Plugins는 Claude Code의 기능을 확장하는 외부 모듈입니다. skills, agents, commands, hooks, output-styles 를 플러그인 형태로 설치할 수 있습니다.
플러그인 만들기
클로드 플러그인을 위해서는 manifest 파일이 필요합니다. 여기 작성된 플러그인들이 설치가능한 플러그인이 됩니다.
mkdir .claude-plugin
cat > .claude-plugin/plugin.json << 'EOF'
{
"name": "my-first-plugin",
"description": "A simple greeting plugin to learn the basics",
"version": "1.0.0",
"author": {
"name": "Your Name"
}
}
EOF
커스텀 커맨드를 추가하고 manifest에 추가해줍니다.
mkdir commands
cat > commands/hello.md << 'EOF'
---
description: Greet the user with a personalized message
---
# Hello Command
Greet the user warmly and ask how you can help them today. Make the greeting personal and encouraging.
EOF
cd ..
mkdir .claude-plugin
cat > .claude-plugin/marketplace.json << 'EOF'
{
"name": "test-marketplace",
"owner": {
"name": "Test User"
},
"plugins": [
{
"name": "my-first-plugin",
"source": "./my-first-plugin",
"description": "My first test plugin"
}
]
}
EOF
플러그인 사용하기
github의 owner/repo 이름으로 마켓플레이스를 설치합니다.
/plugin marketplace add owner/repo
마켓을 설치했으면 그 안에 있는 플러그인을 설치/활성화/비활성화/삭제를 할 수 있습니다.
/plugin install plugin-name@owner
/plugin uninstall plugin-name@owner
/plugin enable plugin-name@owner
/plugin disable plugin-name@owner