Skip to main content

add-plugin

Install a Claude Code plugin and register it in settings.json so the full team can replicate the install. Use this whenever adding a new plugin to the project — it keeps settings.json in sync with what is actually installed.

소스 정보

저장소
bdfinst/agentic-dev-team
최근 소스 활동
2026년 6월 26일 20:05
감지된 SKILL.md 언어
영어
스타
302
포크
35

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
add-plugin
description
Install a Claude Code plugin and register it in settings.json so the full team can replicate the install. Use this whenever adding a new plugin to the project — it keeps settings.json in sync with what is actually installed.
argument-hint
<name@marketplace> [--repo <owner/repo>]
user-invocable
true
allowed-tools
Read, Edit, Bash
# Add Plugin Role: implementation. This skill installs a Claude Code plugin and adds it to `.claude/settings.json` so the project's plugin set is reproducible. You have been invoked with the `/add-plugin` skill. ## Implementation constraints 1. **Always update settings.json.** Installing without registering defeats the purpose — the whole point is reproducibility. 2. **Derive marketplace from the identifier.** The `name@marketplace` format encodes both; never ask the user to repeat information already in the argument. 3. **Do not duplicate entries.** Check settings.json before adding; if the plugin is already registered, report it and stop. 4. **Be concise.** Report only the outcome — no narration of each step. ## Parse Arguments Arguments: $ARGUMENTS Required: plugin identifier (`$0`) in `name@marketplace` format — e.g. `skill-creator@claude-plugins-official` or `refactoring@refactoring`. Optional: - `--repo <owner/repo>`: GitHub repository to register as the marketplace source before installing (e.g. `elifiner/refactoring`). Required for plugins not on an official marketplace. ## Steps ### 1. Parse arguments Extract: - `NAME` — the part before `@` in `$0` - `MARKETPLACE` — the part after `@` in `$0` - `REPO` — value of `--repo`, or empty string if not provided ### 2. Check for existing registration Read `.claude/settings.json`. If `enabledPlugins` already contains `"<NAME>@<MARKETPLACE>": true`, report: ``` <NAME>@<MARKETPLACE> is already registered in settings.json. Nothing to do. ``` and stop. ### 3. Register marketplace (if --repo provided) If `REPO` is non-empty, run: ```bash claude plugin marketplace add <REPO> ``` If this fails, report the error and stop. ### 4. Install the plugin Run: ```bash claude plugin install <NAME>@<MARKETPLACE> ``` If this fails, report the error and stop — do not update settings.json for a plugin that did not install successfully. ### 5. Add to settings.json Add to the `enabledPlugins` object in `.claude/settings.json`: ```json "<NAME>@<MARKETPLACE>": true ``` If a `--repo` was provided, also add to `extraKnownMarketplaces`: ```json "<MARKETPLACE>": { "source": { "source": "github", "repo": "<REPO>" } } ``` ### 6. Report ``` Installed: <NAME>@<MARKETPLACE> Repo: <REPO or "official marketplace"> settings.json: updated ```
GitHub에서 보기