ããã¯ããªã«ãããããŠæžãããã®ïŒ
Claude Codeã®ãã©ã°ã€ã³ã«ã€ããŠèŠãŠã¿ããããªãšããããšã§ã
Claude Codeã®ãã©ã°ã€ã³
Claude Codeã®ãã©ã°ã€ã³ã«é¢ããããã¥ã¡ã³ãã¯ãã¡ãã
Create plugins - Claude Code Docs
ãã©ã°ã€ã³ã¯ãã¹ãã«ããµããšãŒãžã§ã³ããããã¯ãMCPãµãŒããŒãªã©ãå ±æããä»çµã¿ã§ãã
Claude Codeã§ã¯ç¬èªã«äœæããã¹ãã«ããµããšãŒãžã§ã³ããªã©ãã以äžã®2ã€ã«åé¡ããŠããããã§ãã
- ã¹ã¿ã³ãã¢ãã³
- ãããžã§ã¯ãã®
.claudeãã£ã¬ã¯ããªãŒå ã«é 眮ãããã® - åäžãããžã§ã¯ãåã
- å人çšïŒåå¥ãããžã§ã¯ãïŒã®è²ã匷ããå ±æããå¿ èŠã¯ãªã
- ããã±ãŒãžã³ã°ããåã«ã¹ãã«ãããã¯ã詊ããã
/helloãªã©ã®çãã¹ãã«åãæ¬²ãã
- ãããžã§ã¯ãã®
- ãã©ã°ã€ã³
- ããŒã ãã³ãã¥ããã£ãŒãšæ©èœãå ±æããã
- è€æ°ã®ãããžã§ã¯ãéã§äœ¿çšãã
- ããŒãžã§ã³ç®¡çãšã¢ããããŒããè¡ããã
- ããŒã±ãããã¬ã€ã¹ã§å ¬éããã
/my-plugin:helloã®ãããªåå空éä»ãã®ã¹ãã«ã«ãªã£ãŠãåé¡ã«ãªã
Create plugins / When to use plugins vs standalone configuration
ãã©ã°ã€ã³ã¯ä»¥äžã®ãã£ã¬ã¯ããªãŒãŸãã¯ãã¡ã€ã«ãã«ãŒãæ§é ã«æã¡ãŸãã
- .claude-pluginãã£ã¬ã¯ããªãŒ
- plugin.jsonãããã§ã¹ããã¡ã€ã«ïŒãã©ã°ã€ã³ãããã§ã¹ãïŒãé 眮ãããã£ã¬ã¯ããªãŒ
- commandsãagentsãskillsãhooksãã£ã¬ã¯ããªãŒ
- ãã©ã°ã€ã³ã«å«ããã¹ãã«ããµããšãŒãžã§ã³ããããã¯ãé 眮ãããã£ã¬ã¯ããªãŒ
- .mcp.jsonãã¡ã€ã«
- MCPãµãŒããŒèšå®
- .lsp.jsonãã¡ã€ã«
- LSPãµãŒããŒèšå®
- settings.jsonãã¡ã€ã«
- ãã©ã°ã€ã³ãæå¹ã«ãªã£ãæã«é©çšãããããã©ã«ãèšå®
Create plugins / Plugin structure overview
plugin.jsonã®äŸã¯ãã¡ãã
{ "name": "my-first-plugin", "description": "A greeting plugin to learn the basics", "version": "1.0.0", "author": { "name": "Your Name" } }
ãã©ã°ã€ã³éçºã¯ãããªæé ã§è¡ãããã§ãã
- ãã©ã°ã€ã³ã«å«ãããã¹ãã«ããµããšãŒãžã§ã³ããããã¯ãMCPãµãŒããŒèšå®ãªã©ãäœæ
- å¿
èŠãªå Žåã¯
settings.jsonãäœæ claude --plugin-dir [/path/to/plugin]ã³ãã³ãã§ãã©ã°ã€ã³ããã¹ã- ãã©ã°ã€ã³ã®ããŒãžã§ã³ãªã©ã
plugin.jsonã«æžããŠããŒã±ãããã¬ã€ã¹ã«ã¢ããããŒã
Create plugins / Develop more complex plugins
å ¬éãããŠãããã©ã°ã€ã³ã¯ãããŒã±ãããã¬ã€ã¹ã§æ¢ããŸãã
Discover and install prebuilt plugins through marketplaces - Claude Code Docs
Anthropicã®å ¬åŒããŒã±ãããã¬ã€ã¹ã¯ãã¡ãã
Plugins for Claude Code and Cowork | Anthropic
Anthropicã®å ¬åŒãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããããã«ã¯ã以äžã®ã¹ãã«ãå®è¡ããŸãã
/plugin install github@claude-plugins-official
ãããã¯ä»¥äžã®ã³ãã³ãã§ããã
claude plugin install github@claude-plugins-official
ãã©ã°ã€ã³å®çŸ©ã®å®äœã¯ãã¡ãã§ããã
ããŒã±ãããã¬ã€ã¹ã¯ä»¥äžã®ãªãœãŒã¹ããéžæã§ããŸãã
- Anthropicå ¬åŒããŒã±ãããã¬ã€ã¹
- GitHub
- ãã®ä»Gitãã¹ãã£ã³ã°ãµãŒãã¹
- ããŒã«ã«ãã¡ã€ã«ã·ã¹ãã
- ãªã¢ãŒãURL
ããŒã±ãããã¬ã€ã¹ã®äœæããã³é åžæ¹æ³ã¯ãã¡ãã®ããŒãžãåç §ããŸãããã
Create and distribute a plugin marketplace - Claude Code Docs
ããŒã±ãããã¬ã€ã¹ãšã¯ããã©ã°ã€ã³ããŠãŒã¶ãŒã«é
åžã§ããã«ã¿ãã°ã®ããšã§ããããŒã±ãããã¬ã€ã¹ãã¡ã€ã«ïŒmarketplace.jsonïŒãš
é
åžãããã©ã°ã€ã³ãæã¡ãŸãã
å®éã®å©çšãèãããšããã©ã°ã€ã³åäœãšããããããŒã±ãããã¬ã€ã¹ãšããŠäœæããããšã®æ¹ãå€ããããªæ°ãããŸããã
ãã©ã°ã€ã³ã®ãã£ã¬ã¯ããªãŒæ§æã®è©³çްããCLIã®äœ¿ãæ¹ãªã©ã®è©³ããæ å ±ã¯ãã¡ãã®ããŒãžãåç §ããŸãããã
Plugins reference - Claude Code Docs
ä»åã¯Claude CodeïŒGitHub Copilotã¢ãã«ã䜿ã£ãLiteLLM Proxyã§ãã©ã°ã€ã³ããããããGitLabã§ããŒã±ãããã¬ã€ã¹ã詊ããŠã¿ãŸãã
ç°å¢
ä»åã®ç°å¢ã¯ãã¡ãã
$ claude --version 2.1.92 (Claude Code)
LiteLLM Proxyã
$ uv run litellm --version LiteLLM: Current Version = 1.82.6
LiteLLM Proxyã®èšå®ãã¡ã€ã«ã
config.yaml
model_list: - model_name: claude-haiku-4.5 litellm_params: model: github_copilot/claude-haiku-4.5 drop_params: True - model_name: gpt-5-mini litellm_params: model: github_copilot/gpt-5-mini drop_params: True - model_name: gpt-4.1 litellm_params: model: github_copilot/gpt-4.1 drop_params: True - model_name: gpt-4o litellm_params: model: github_copilot/gpt-4o drop_params: True litellm_settings: master_key: sk-1234
èµ·åã
$ uv run litellm --config config.yaml
Claude Codeã®å®è¡ã
$ export ANTHROPIC_BASE_URL=http://0.0.0.0:4000 $ export ANTHROPIC_AUTH_TOKEN=sk-1234 $ claude --model gpt-5-mini
GitLabã192.168.0.7ã§åäœããŠãããã®ãšããŸãã
$ sudo gitlab-rake gitlab:env:info System information System: Ubuntu 24.04 Current User: git Using RVM: no Ruby Version: 3.3.10 Gem Version: 3.7.1 Bundler Version:2.7.1 Rake Version: 13.0.6 Redis Version: 7.2.11 Sidekiq Version:7.3.9 Go Version: unknown GitLab information Version: 18.10.1 Revision: 6bef35b5226 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 16.11 URL: http://192.168.0.7 HTTP Clone URL: http://192.168.0.7/some-group/some-project.git SSH Clone URL: git@192.168.0.7:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.47.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 18.10.1 - default Git Version: 2.53.gc61120c
Terraformã
$ terraform version Terraform v1.14.8 on linux_amd64
æºå
ãŸãã¯GitLabãããžã§ã¯ããäœæããŠãããŸãã
Terraformã®æ§æãã¡ã€ã«ã
main.tf
terraform { required_version = "1.14.8" required_providers { gitlab = { source = "gitlabhq/gitlab" version = "18.10.0" } } } variable "root_access_token" { type = string ephemeral = true } provider "gitlab" { token = var.root_access_token base_url = "http://192.168.0.7/" } resource "gitlab_group" "sample_group" { name = "sample group" path = "sample-group" visibility_level = "public" } resource "gitlab_project" "my_plugins" { name = "my-plugins" namespace_id = gitlab_group.sample_group.id default_branch = "main" visibility_level = "public" auto_devops_enabled = false only_allow_merge_if_pipeline_succeeds = true only_allow_merge_if_all_discussions_are_resolved = true } resource "gitlab_group_membership" "sample_user" { group_id = gitlab_group.sample_group.id user_id = gitlab_user.sample_user.id access_level = "owner" } resource "gitlab_user" "sample_user" { name = "sample-user" username = "sample-user" password = "P@ssw0rd" email = "sample-user@example.com" } resource "gitlab_personal_access_token" "sample_user_token" { user_id = gitlab_user.sample_user.id name = "sample-user-pat" scopes = ["api"] } output "user_personal_access_token" { value = gitlab_personal_access_token.sample_user_token.token sensitive = true }
ã°ã«ãŒãããããžã§ã¯ãããŠãŒã¶ãŒãäœæãããŠãŒã¶ãŒã®Persona Access TokenãäœæããŸãã
rootã¢ã«ãŠã³ãã®Personal Access Tokenã¯.auto.tfvarsã§èšå®ããããšã«ããŸããã
secrets.auto.tfvars
root_access_token = "glpat-xxxxx"
ãªãœãŒã¹äœæã
$ terraform init $ terraform apply
äœæãããŠãŒã¶ãŒã®Personal Access
$ terraform output user_personal_access_token "glpat-xxxxx"
ããã§GitLabåŽã®æºåã¯å®äºã§ãã
Claude Codeã®ãã©ã°ã€ã³ãäœæãã
ã§ã¯ãClaude Codeã®ãã©ã°ã€ã³ãäœæããŠã¿ãŸãããã
äž»ã«ãã¡ããèŠãªããé²ããŠãã£ãŠã¿ãŸãã
Create plugins / Create your first plugin
ãã©ã°ã€ã³çšã®ãã£ã¬ã¯ããªãŒãäœæã
$ mkdir my-plugin $ cd my-plugin
æšæ¶ããã¹ãã«ãäœæã
$ mkdir -p skills/greeting
skills/greeting/SKILL.md
--- name: greeting description: æšæ¶ããŸã --- ç°¡æœãªèªå·±ç޹ä»ããã€ã€ãçŸåšæå»ã«åãããæšæ¶ãšçŸåšæå»ã衚瀺ããŠãã ãããã¿ã€ã ãŸãŒã³ã¯JSTãšããæå»ã¯`date`ã³ãã³ãã§ç¢ºèªããŠãã ããã
ãã©ã°ã€ã³ãããã§ã¹ããäœæããŸãã
$ mkdir .claude-plugin
.claude-plugin/plugin.json
{ "name": "my-plugin", "description": "åŠç¿ç®çã®ãã©ã°ã€ã³", "version": "0.0.1" }
ãã©ã°ã€ã³ãã£ã¬ã¯ããªãŒãã--plugin-dirã§æå®ããŠå®è¡ã
$ claude --model gpt-5-mini --plugin-dir /path/to/my-plugin
䜿ã£ãŠã¿ãŸãã
⯠/my-plugin:greeting â Skill(my-plugin:greeting) â¿ Â Successfully loaded skill â Bash(TZ=Asia/Tokyo date "+%Y-%m-%d %H:%M:%S %Z") â¿ Â 2026-04-04 20:40:39 JST â ããã«ã¡ã¯ãç§ã¯ãã®ã¹ãã«ã®æšæ¶ã¢ãžã¥ãŒã«ã§ããçŸåšã®æ¥æ¬æšæºæ (JST) ã«åãããæšæ¶ããäŒãããŸãã ä»ã®æå»: 2026-04-04 20:40:39 JST ãããã¿ãªãã â è¯ãå€ããéãããã ããã
åããŸãããã
ãã®ç°å¢ã§ã¯ããã©ã°ã€ã³åã®è£å®ã¯å¹ããŸããã§ããâŠã
ããŒã«ã«ã«ããŒã±ãããã¬ã€ã¹ãäœæãã
次ã¯ããŒã±ãããã¬ã€ã¹ãäœæããŸãã
ãã¡ãã®ããŒãžãèŠãªããé²ããŸãããã
Create and distribute a plugin marketplace - Claude Code Docs
ãŸãã¯ããŒã«ã«ã«ããŒã±ãããã¬ã€ã¹ãäœæããŠã¿ãŸãã
Create and distribute a plugin marketplace / Walkthrough: create a local marketplace
ãã£ã¬ã¯ããªãŒãäœæã
$ mkdir my-plugins $ cd my-plugins
ããã¥ã¡ã³ãã§ã¯ãmarketplaceããšãããã£ã¬ã¯ããªãŒåã«ãªã£ãŠããŸãããAnthropicã®ãªãã£ã·ã£ã«ããŒã±ãããã¬ã€ã¹ã¯ãã©ã°ã€ã³ã®
è€æ°åœ¢ã«ãªã£ãŠããã®ã§ããã¡ãã«åãããæ¹ãããã®ã§ããããâŠïŒä»åã¯pluginsãšããããšã«ããŠã¿ãŸãã
å«ãããã©ã°ã€ã³çšã®ãã£ã¬ã¯ããªãŒãäœæã
$ mkdir plugins
ãã©ã°ã€ã³ãã®ãã®ã¯ãå ã»ã©äœæãããã®ã䜿ããŸãããã®åŸã®èª¬æäžã®éœåãååã¯å€æŽããŸããã
$ cp -R /path/to/my-plugin plugins/greeting-plugin
ãã©ã°ã€ã³ãããã§ã¹ããã¡ã€ã«ãå«ããŠå¿ èŠã§ãããã¡ãããã©ã°ã€ã³åã¯å€æŽããŠãããŸããã
plugins/greeting-plugin/.claude-plugin/plugin.json
{ "name": "greeting-plugin", "description": "åŠç¿ç®çã®ãã©ã°ã€ã³", "version": "0.0.1" }
pluginsãã£ã¬ã¯ããªãŒå
šäœã¯ãããªæãã§ãã
$ tree -a plugins plugins âââ greeting-plugin âââ .claude-plugin â  âââ plugin.json âââ skills âââ greeting âââ SKILL.md 5 directories, 2 files
次ã«ããŒã±ãããã¬ã€ã¹ãã¡ã€ã«ãäœæããŸãã
$ mkdir .claude-plugin
.claude-plugin/marketplace.json
{ "name": "my-plugins", "owner": { "name": "kazuhira" }, "plugins": [ { "name": "greeting-plugin", "source": "./plugins/greeting-plugin", "description": "æšæ¶ãããã©ã°ã€ã³ã§ã" } ] }
nameã«ããŒã±ãããã¬ã€ã¹ãšãããååãå
¥ããããªããšããã§ããããã©ã°ã€ã³ã®éåã®ãããªååãã€ããã®ãæ
£äŸãªã®ã§ããããâŠã
ããŒã±ãããã¬ã€ã¹ãã¡ã€ã«ã®æ§é ã¯ãã®ããããèŠãŸãããã
- Create and distribute a plugin marketplace / Marketplace schema
- Create and distribute a plugin marketplace / Plugin entries
- Create and distribute a plugin marketplace / Plugin sources
ä»åã¯sourceãåããªããžããªãŒå
ã§æå®ããŠããããšã«ãªããŸãã
Create and distribute a plugin marketplace / Plugin sources / Relative paths
ä»ã«ã¯GitHubãGitãªããžããªãŒãnpmããã±ãŒãžãæå®ã§ããŸãã
.claude-pluginãã£ã¬ã¯ããªãŒãäœåãåºãŠããŸãããããŒã±ãããã¬ã€ã¹å
šäœã§ã¯ãããªæãã§ãã
$ tree -a my-plugins my-plugins âââ .claude-plugin â  âââ marketplace.json âââ plugins âââ greeting-plugin âââ .claude-plugin â  âââ plugin.json âââ skills âââ greeting âââ SKILL.md 7 directories, 3 files
ã§ã¯ãClaude Codeãã䜿ã£ãŠã¿ãŸãããã
$ claude --model gpt-5-mini
ããŒã±ãããã¬ã€ã¹ã远å ã
⯠/plugin marketplace add /path/to/my-plugins ⿠Successfully added marketplace: my-plugins
ãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ã
⯠/plugin install greeting-plugin@my-plugins
ãããšã远å ããã¹ã³ãŒããèãããŸãã
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Plugins Discover Installed Marketplaces Errors Plugin Details greeting-plugin æšæ¶ãããã©ã°ã€ã³ã§ã Will install: · Components will be discovered at installation â Make sure you trust a plugin before installing, updating, or using it. Anthropic does not control what MCP servers, files, or other software are included in plugins and cannot verify that they will work as intended or that they won't change. See each plugin's homepage for more information. > Install for you (user scope) Install for all collaborators on this repository (project scope) Install for you, in this repo only (local scope) Back to plugin list Enter to select · Esc to back
远å ãããšã/reload-pluginsãå®è¡ããªãããšèšãããã®ã§å®è¡ãããš
⯠/reload-plugins ⿠Reloaded: 1 plugin · 0 skills · 5 agents · 0 hooks · 0 plugin MCP servers · 0 plugin LSP servers
åæ ãããã
⯠Unknown skill: greeting
Claude Codeãåèµ·åãããšåæ ãããŸããã/greetingã§ãããŒã±ãããã¬ã€ã¹ããã€ã³ã¹ããŒã«ãããã©ã°ã€ã³ã«å«ãŸããã¹ãã«ã
å®è¡ã§ããŸãã
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â¯Â /greeting ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ /greeting (greeting-plugin) æšæ¶ããŸã
å®è¡ãããš/greeting-plugin:greetingãšããŠèªã¿æ¿ããããããã§ãã
⯠/greeting-plugin:greeting â Skill(greeting-plugin:greeting) â¿ Â Successfully loaded skill â Bash(TZ=Asia/Tokyo date +"%Y-%m-%d %H:%M:%S %Z") â¿ Â 2026-04-04 20:47:34 JST â ããã«ã¡ã¯ãç§ã¯ç°¡æœã«èªå·±ç޹ä»ããŸã â ç§ã¯æšæ¶ãè¡ããã©ã°ã€ã³ã®å©ããããAIã§ãã çŸåšã®æ¥æ¬æšæºæ (JST) ã®æå»ã¯ 2026-04-04 20:47:34 JST ã§ãã å€åã§ãããããã°ãã¯ãã圹ã«ç«ãŠãããšãããã°æããŠãã ããã
çŽæ¥/greeting-plugin:greetingãšå®è¡ããŠãOKã§ãã
ãŸãããŒã±ãããã¬ã€ã¹ã¯CLIã§è¿œå ãã§ããããã§ãã
Create and distribute a plugin marketplace / Manage marketplaces from the CLI
ããã§ããã
$ claude plugin marketplace add /path/to/my-plugins Adding marketplace... â Successfully added marketplace: my-plugins (declared in user settings)
ãã©ã°ã€ã³ã®ã€ã³ã¹ããŒã«ãCLIããã§ããŸãã
$ claude plugin install greeting-plugin@my-plugins Installing plugin "greeting-plugin@my-plugins"... â Successfully installed plugin: greeting-plugin@my-plugins (scope: user)
ããã§ããŒã±ãããã¬ã€ã¹ã䜿ããŸããã
GitLabã«ããŒã±ãããã¬ã€ã¹ãäœæãã
æåŸã¯GitLabã«ããŒã±ãããã¬ã€ã¹ãäœæããŸãã
äœæããããŒã±ãããã¬ã€ã¹ããæåã«çšæããŠãããGitLabãªããžããªãŒã«ç»é²ããŸãã
$ cd my-plugins $ git init --initial-branch=main --object-format=sha1 $ git remote add origin http://192.168.0.7/sample-group/my-plugins.git $ git add .claude-plugin plugins $ git commit -m 'initial commit' $ git push origin HEAD
ããŒã±ãããã¬ã€ã¹ã远å ã
$ claude plugin marketplace add http://192.168.0.7/sample-group/my-plugins.git Adding marketplace... Refreshing marketplace cache (timeout: 120s)⊠Cloning repository (timeout: 120s): http://192.168.0.7/sample-group/my-plugins.git Clone complete, validating marketplace⊠Cleaning up old marketplace cache⊠â Successfully added marketplace: my-plugins (declared in user settings)
ã¡ãªã¿ã«ãç»é²ããããŒã±ãããã¬ã€ã¹ã¯ä»¥äžã®ã³ãã³ãã§èŠããããã§ãã
$ claude plugin marketplace list
Configured marketplaces:
⯠my-plugins
Source: Git (http://192.168.0.7/sample-group/my-plugins.git)
ãã©ã°ã€ã³ã®ã€ã³ã¹ããŒã«ã
$ claude plugin install greeting-plugin@my-plugins Installing plugin "greeting-plugin@my-plugins"... â Successfully installed plugin: greeting-plugin@my-plugins (scope: user)
å®è¡çµæã¯çç¥ããŸãã
ãããªãšããã§ããããã
ãããã«
Claude Codeã®ãã©ã°ã€ã³ãããããããŒã±ãããã¬ã€ã¹ã䜿ã£ãŠã¿ãŸããã
ãã©ã°ã€ã³ãåç¬ã§äœã£ãåŸã«ããŒã±ãããã¬ã€ã¹ã«ç§»ããšå°ãæ§é ãå€ããã®ã§æžæããŸãããããªããšããªã£ãæ°ãããŸãã
ãŸããæåããããŒã±ãããã¬ã€ã¹ãšããŠäœãã®ãããããªãšâŠã
å°ããã€æ £ããŠãããŸãããã