/lsp-hooks:lsp-reboot-daemonfrom lsp-hooks
Restart the lsp-hooks daemon. Use when LSP context stops appearing or the daemon is unresponsive.
Ships in lsp-hooks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Follow these steps exactly:
cd "${CLAUDE_PLUGIN_ROOT}" && python3 -c "
from lsp_hooks_paths import *
print(f'PID_PATH={PID_PATH}')
print(f'SOCKET_PATH={SOCKET_PATH}')
print(f'VERSION_PATH={VERSION_PATH}')
"
Save the printed paths for use in subsequent steps.
Read the PID file. If it exists and contains a numeric PID, kill the daemon:
PID_FILE="<PID_PATH from step 1>"
if [ -f "$PID_FILE" ]; then
OLD_PID=$(cat "$PID_FILE")
kill "$OLD_PID" 2>/dev/null || true
sleep 0.3
fi
Remove the PID, version, and socket files so the new daemon starts cleanly:
rm -f "<PID_PATH>" "<VERSION_PATH>" "<SOCKET_PATH>"
cd "${CLAUDE_PLUGIN_ROOT}" && python3 lsp_hooks_daemon.py &
disown
sleep 0.5
Check that the PID file reappears:
PID_FILE="<PID_PATH from step 1>"
if [ -f "$PID_FILE" ]; then
echo "Daemon restarted successfully (PID $(cat "$PID_FILE"))"
else
echo "WARNING: PID file did not reappear — daemon may have failed to start. Check the log file."
fi
Report the result to the user.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub danielselnick/claude-hooks-lsp --plugin lsp-hooks2 skills in this plugin