From cortex
Re-run the cortex plugin setup hook with the current userConfig and verify the Docker Compose deployment. Use when the user asks to redeploy cortex, apply plugin config changes immediately, rerun the setup hook, refresh the Docker deployment, or recover after an automated SessionStart/ConfigChange hook did not run.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex:cortex-redeployThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the binary-owned plugin setup hook directly, then verify the selected deployment mode is healthy.
Run the binary-owned plugin setup hook directly, then verify the selected deployment mode is healthy.
Explain that the hook exports current userConfig into environment variables, then delegates to cortex setup repair. The shared setup path repairs ~/.cortex/.env, writes Compose assets under ~/.cortex/compose, recreates the Docker Compose container when needed, and removes stale user-level cortex.service units/drop-ins left by older plugin versions. Recreating the container causes a brief /health gap.
If the user asked for a dry run only, stop after describing what would happen.
Run:
${CLAUDE_PLUGIN_ROOT}/scripts/plugin-setup.sh
Capture stdout, stderr, and exit code.
Verify HTTP health:
curl -sS -m 3 -o /dev/null -w '%{http_code}' "$CLAUDE_PLUGIN_OPTION_SERVER_URL/health"
Expect 200.
Verify the active runtime:
docker ps --filter name=cortex --format '{{.Status}}'; expect Up ... (healthy) or briefly (starting) just after recreate. Wait up to 60 seconds before treating (starting) as a failure.Verify runtime freshness:
${CLAUDE_PLUGIN_ROOT}/scripts/check-runtime-current.sh
# Note: if this script is missing, run: docker inspect $(docker compose ps -q cortex) --format '{{.Image}}'
Expect CURRENT. Treat STALE or FAIL as a failed redeploy verification and include the printed fix: line when present.
Include:
cortex: ... summary line printed by the hookCURRENT, STALE, or FAIL)If anything failed, recommend cortex-dr for the comprehensive diagnostic.
npx claudepluginhub jmagar/dendrite --plugin cortexCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.