forked from bchanot/claude
Handover: rooted reads, whole-line PROJECT_ROOT read with a one-line pre-paste rule, BDR status filter. plugin-gate: single-quoted templates, unsafe roots printed never run, apply check against the git common dir, $HOME refused (and in profile.sh). Advisor: minimal only from project signals, no extras token, ctx7 wording, print-only plugin remedy. Packs vocabulary in onboard/tour; graphify labels match the trap.
28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
---
|
|
name: plugin-check
|
|
effort: low
|
|
description: 'Audit active plugins vs project needs. Read-only advisory recommending enable/disable. Triggers: "plugin-check", "quels plugins".'
|
|
argument-hint: '[ex: "React + FastAPI" or "Rust CLI, no frontend"]'
|
|
allowed-tools: Read, Bash, Glob, Grep, Agent
|
|
---
|
|
|
|
Run `$HOME/.claude/lib/plugin-gate.md` on the context below — dispatch
|
|
plugin-probe (sonnet) → validation checkpoint → dispatch plugin-advisor
|
|
(opus) → present the PLUGIN CHECK block (BDR-077: detection and reasoning
|
|
dispatched, gates in this loop).
|
|
|
|
/plugin-check is READ-ONLY advisory: SKIP the gate's step 5 (apply) — show
|
|
the commands the main loop builds from the gate's step-5 templates (`set` /
|
|
`enable` / `disable`, with `-C '<PROJECT_ROOT>'`), after the gate's token
|
|
check, for the user instead. A PROJECT_ROOT holding `'`, a newline or a
|
|
control character is never substituted: print the commands with the root shown as `'<root>'` and a warning that
|
|
the user must quote it by hand, run nothing.
|
|
Never write: the user runs them
|
|
(`lib/profile.sh` `set <profile>` / `enable <pack>` writes the project's
|
|
`.claude/settings.local.json`, never the user scope).
|
|
|
|
If `$HOME/.claude/lib/plugin-gate.md` unreachable: emit `Plugin gate include
|
|
missing.` and STOP.
|
|
|
|
$ARGUMENTS
|