Use when the user wants to install, remove, upgrade, update, or manage their Claude Code plugins and skills. Triggers on: 'install this plugin', 'remove that skill', 'upgrade my plugins', 'update my stack', 'what should I upgrade', 'clean up my plugins', 'add this to divan'.
The user wants to modify their Claude Code stack. CSM handles this through the proposal pipeline with divan integration.
Check if the item is in the registry:
cd "${CLAUDE_PLUGIN_ROOT}" && PYTHONPATH=packages/core:packages/connectors:packages/agents python3 -m apps.cli.main inspect "<item-id>"
If it's a candidate, check its evaluation. If not evaluated, evaluate it:
cd "${CLAUDE_PLUGIN_ROOT}" && PYTHONPATH=packages/core:packages/connectors:packages/agents python3 -m apps.cli.main evaluate
Show the user the trust/risk assessment and ask for confirmation.
If approved and it's a divan package:
divan add <plugin-name>
Then update the CSM registry to mark it as installed.
If it's a CSM-internal component (skill/agent/workflow you built), install it directly.
divan remove <plugin-name>divan sync or reinstall/csm snapshot