semyonfox/dotfiles/helium-graceful-shutdown
Claude Code and agent skill by semyonfox/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Use when Helium loses sessions after a PC reboot.
Install
npx vskill@latest install semyonfox/dotfiles/helium-graceful-shutdownSKILL.md
The same SKILL.md was published earlier as semyonfox/dotfiles/helium-graceful-shutdown.
Helium graceful shutdown on Semyon's PC
Use when Helium on pc (CachyOS/Hyprland) loses Discord or other web-app sessions after a full system reboot.
Diagnose first
- Confirm the running parent process uses the intended secure store:
``bash ssh pc 'ps -u "$USER" -o pid=,args= | grep "/opt/helium-browser-bin/helium " | grep -v -- "--type="' ` Expected flag: --password-store=gnome-libsecret`.
- Confirm
org.freedesktop.secretsis owned by GNOME Keyring:
``bash ssh pc 'busctl --user --no-pager list | grep org.freedesktop.secrets' ``
- Inspect
~/.config/net.imput.helium/Default/Preferencesread-only. Ifprofile.exit_typerepeatedly readsCrashed, investigate graceful shutdown rather than replacing the password-store backend. - Check for a clear-on-exit policy before changing lifecycle behavior. Do not read or print browser tokens/cookie values.
Durable fix
The PC dotfiles own these host-specific files:
pc/.local/bin/helium-graceful-exitpc/.config/systemd/user/helium-graceful-shutdown.service
The helper sends SIGTERM only to Helium’s non---type parent process, waits up to 12 seconds for Chromium to commit its profile data, and only then sends SIGKILL if needed. The systemd user unit is PartOf= and After= graphical-session.target, so its ExecStop runs before the graphical session is stopped during a reboot.
Deploy/enable from the PC:
Verify
- Static checks:
``bash bash -n ~/.local/bin/helium-graceful-exit systemctl --user show helium-graceful-shutdown.service -p PartOf -p After -p ExecStop -p ActiveState ``
- Have the user reboot normally, open Discord in Helium, and verify their session persists.
- If it still fails, collect non-secret journal and profile-exit evidence. The password-store shim should be reconsidered only if
gnome-keyring/org.freedesktop.secretsfails at the same time.
Pitfalls
- Do not use
--password-store=basicwhilegnome-keyringis healthy; it weakens secret storage and does not address crash-like browser exits. - Do not target all Chromium child processes: signal only
/opt/helium-browser-bin/heliumwithout a--type=argument, otherwise the parent may lose the opportunity to flush storage. - Keep the service PC-specific; do not deploy it through the shared
homeStow package.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghermes/.hermes/skills/helium-graceful-shutdown/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/semyonfox/dotfiles/helium-graceful-shutdown)