/scout:plugin-syncfrom scout
Use when a skill or plugin that should be available is missing from the session — a plugin is enabled but its skills do not load, `/plugin` shows it enabled yet nothing appears, a skill id is unrecognised though the marketplace lists it, or a plugin was just added to `.claude/settings.json` on a branch and never showed up. Diagnoses whether the plugin is installed FOR THIS PROJECT and gives the exact fix. Do NOT use to find or choose a skill the user has not enabled yet, or to install one from the catalog (`scout:scout`) — this one starts from a plugin already enabled in settings that is not loading.
Ships in scout. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A plugin loads only when BOTH halves agree: the project enables it and the user-level registry records it as installed for that project. Nothing reconciles the two, and a disagreement is silent — the plugin's skills are simply absent, with no error anywhere.
In: a project directory with .claude/settings.json (optionally .claude/settings.local.json)
carrying enabledPlugins, and a readable ~/.claude/plugins/installed_plugins.json.
Out: a verdict per enabled plugin — installed for this project and at which scope, or not — and
for each that is not, the one command that fixes it plus the restart it needs. The checkable
expectations are in evals/rubric.json.
| half | lives in | says |
|---|---|---|
| enabled | <project>/.claude/settings.json → enabledPlugins | this project WANTS foo@acme-tools |
| installed | ~/.claude/plugins/installed_plugins.json → plugins | foo@acme-tools is on this machine, for these projects |
settings.local.json is read after settings.json and overrides it, so a false there switches off
what the committed file enabled. Only true counts as enabled.
The registry maps a plugin id to a LIST of install records, each naming the scope it covers:
| scope | covers |
|---|---|
user | every project on the machine — no projectPath field |
project | exactly the one absolute projectPath it names |
local | same as project — an older spelling, still found in existing registries |
So a plugin enabled in project A but installed only with scope: project for project B does not load
in A. That is the whole defect, and it is the common one: enabling is a committed file that travels
with the branch, installing is a per-machine act that does not.
Read both halves and compare — do not guess from /plugin's display, which shows the enabled half
only.
# What this project asks for — run from anywhere inside the project; resolves the git root itself
python3 -c "import json,os,re,subprocess,sys
ID=re.compile(r'^[A-Za-z0-9][A-Za-z0-9._-]*@[A-Za-z0-9][A-Za-z0-9._-]*\\Z')
try: root=subprocess.run(['git','rev-parse','--show-toplevel'],capture_output=True,text=True,check=True).stdout.strip()
except Exception: root=os.getcwd()
e={}; seen=0
for f in ('.claude/settings.json','.claude/settings.local.json'):
path=os.path.join(root,f)
if not os.path.exists(path): continue
try: s=json.load(open(path)); ep=s.get('enabledPlugins') if isinstance(s,dict) else None; e.update(ep if isinstance(ep,dict) else {}); seen+=1
except Exception as err: sys.exit(f'{path}: unreadable ({err})')
if not seen: sys.exit(f'no .claude/settings.json under {root} — not a project that enables plugins')
print(sorted(k for k,v in e.items() if v is True and ID.match(k)))"
# What the machine has, and for which projects — a missing or malformed registry is a fact, not a crash
python3 -c "import json,os,re,sys
ID=re.compile(r'^[A-Za-z0-9][A-Za-z0-9._-]*@[A-Za-z0-9][A-Za-z0-9._-]*\\Z')
path=os.path.expanduser('~/.claude/plugins/installed_plugins.json')
try: r=json.load(open(path))
except FileNotFoundError: sys.exit(f'{path}: absent — this machine has never installed a plugin')
except Exception as err: sys.exit(f'{path}: unreadable ({err})')
p=r.get('plugins') if isinstance(r,dict) else None
recs=p if isinstance(p,dict) else {} if (isinstance(p,list) or not isinstance(r,dict)) else r
for k,v in recs.items():
if not ID.match(k): continue
entries=v if isinstance(v,list) else []
print(k, [(x.get('scope'), x.get('projectPath')) for x in entries if isinstance(x,dict)] or 'malformed record — counts as not installed')"
Three constraints on those two commands, and none is decoration — the SessionStart hook obeys the same three, for the same reasons:
enabledPlugins, never a settings file whole. settings.local.json also carries an
env map, and dumping it puts the user's secrets into the transcript.<plugin>@<marketplace>. .claude/settings.json is a file a
REPOSITORY can ship, so its keys are text an attacker may have authored, and whatever you print
lands in your own context as trusted tool output. A key of any other shape cannot name an
installable plugin, so dropping it costs nothing and closes the injection. If you write your own
variant of these commands, carry the filter into it.plugins; the older shape is a bare map. A plugins key that is present but not a map is not
the newer shape: for null the hook reads records from the top level, for a list it finds none — and
a settings file whose enabledPlugins is not a map enables nothing. The snippets take the same
branches, because a diagnosis that disagrees with the hook that prompted it is worse than none. If you
rewrite them, keep the type checks.A plugin id present in the first output and absent — or present only under another project's path — in the second is the answer. Report it as a fact from those two files; never assert a plugin is missing without having read both.
Three distinct failures wear the same symptom. Pick by what the comparison showed:
| what you found | fix |
|---|---|
| no record covering this project | claude plugin install <id> --scope project |
| a record exists, but the cached version is stale or half-written | claude plugin update <id> |
| both look right | the session predates the change — restart it, or /reload-plugins |
An install or update changes nothing in the RUNNING session: the plugin's skills load at session start. Always say so — a user who runs the command and sees no change otherwise concludes it failed.
To confirm what a version the cache actually holds, look at the version directories under
~/.claude/plugins/cache/<marketplace>/<plugin>/ — one per installed version. An empty or absent
directory for a plugin the registry claims is installed is a half-written install, which is the
update case above.
scout ships a SessionStart hook (hooks/plugins-installed-check.js) that performs exactly this
comparison at every session start and resume, and prints the missing plugins with their install
commands. It is fail-open — a clean project prints nothing, and any unreadable file leaves it silent
— so its silence is weak evidence, but a warning from it is the diagnosis already done. When the user
quotes such a warning, go straight to Fix.
<plugin>@<marketplace> shape was echoed into the answer or the transcript,
and no settings file was dumped whole.enabledPlugins and on the registry's plugins key.evals/rubric.json.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aquivalabs/bladeforge --plugin scout2 skills in this plugin