| name | lossless-claude-upgrade |
| description | Rebuild, reinstall, and restart lossless-claude from source.
Fixes hooks, restarts daemon, runs diagnostics.
Trigger: /lossless-claude:upgrade
|
| user-invocable | true |
lossless-claude Upgrade (lcm)
Rebuild from source, restart daemon, and verify installation.
Instructions
- Derive the repo root from this skill's base directory (go up 3 levels — remove
/skills/lossless-claude-upgrade from the path, then remove .claude-plugin).
- Run with Bash:
cd <REPO_ROOT> && npm run build && npm link
- Restart daemon with Bash:
PID_FILE="$HOME/.lossless-claude/daemon.pid"
if [ -f "$PID_FILE" ]; then
PID=$(cat "$PID_FILE")
if ps -p "$PID" -o args= 2>/dev/null | grep -q 'lcm.*daemon'; then
kill "$PID" 2>/dev/null
fi
rm -f "$PID_FILE"
fi
lcm daemon start --detach
- Run doctor with Bash:
lcm doctor
- IMPORTANT: After all Bash commands complete, re-display key results as markdown text directly in the conversation. Format as:
## lossless-claude upgrade
- [x] Built from source
- [x] npm linked globally
- [x] Daemon restarted (PID XXXX)
- [x] Hooks configured
- [x] Doctor: all checks PASS
Use [x] for success, [ ] for failure. Show actual version and any warnings.
Tell the user to restart their Claude Code session to pick up the new version.