Skip to content
Back to skills

Reload

ASecurity

Rebuild the project and restart the Amber systemd user service. Only run when the user explicitly requests it.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add tpolasek/amber --skill reload --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reload?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reload
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tpolasek-reload/badge)](https://www.skillsdirectory.com/skills/tpolasek-reload)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reload
description: Rebuild the project and restart the Amber systemd user service. Only run when the user explicitly requests it.
allowed-tools: Bash
---

Hot-reload the Amber server: rebuild, then restart the `amber` systemd user service.

Only run this when the user explicitly requests it (/reload, or asks to restart/reload the server). Never invoke it proactively — a reload terminates the user's active session mid-run.

1. Build first, so a failed build cannot take the running server down:

   ```
   npm run build
   ```

   If the build fails, stop and report it; the running server is untouched.

2. Restart the service detached (setsid keeps the restart alive when this session's server is torn down):

   ```
   setsid systemctl --user restart amber.service >/tmp/amber-restart.log 2>&1 </dev/null & disown; echo "restart issued"
   ```

   If the unit is not installed yet (`systemctl --user cat amber.service` fails), install it with `./install_service.sh` — or, if the user just wants the legacy flow, fall back to `nohup ./run.sh >/tmp/amber-restart.log 2>&1 </dev/null & disown`.

IMPORTANT: the server being restarted hosts this agent session, so this run is terminated mid-flight when the restart lands. That is expected — do not treat it as a failure. Tell the user the reload is underway and that they may need to reconnect or reload the page; the session persists server-side and resumes from disk. Do not attempt to verify the new server from this run. After a restart, logs are in `journalctl --user -t amber`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.