skills/shutdown/SKILL.md
Safely stop ALL running services (Paperclip, Hermes, Ollama, bots) before PC shutdown/restart to prevent DB corruption, stale locks, and orphaned runs
npx skillsauth add asets-gobizit/claude-skills shutdownInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Gracefully stop every service running on Danny's PC before a shutdown or restart. This is the single shutdown procedure — not just Hermes-specific.
/shutdownEvery new service Danny installs must be added to this skill. When installing anything that runs in the background (daemon, service, scheduled task, bot, database, LLM server, message queue, etc.), update this skill to include:
.gitignore rules protect its dataCurrently managed services (last verified 2026-04-25):
pka.gobizit.ai + gmnr.gobizit.ai)/api/* proxy)-FullShutdown)Abrupt shutdown causes:
postmaster.pid) — next start fails until removedStop-ScheduledTask -TaskName 'PaperclipAI' -ErrorAction SilentlyContinue
Wait 5 seconds for the restart loop to exit.
# Kill lingering Paperclip processes + embedded Postgres
wsl -d Ubuntu -- bash -lc "pkill -TERM -f 'paperclip' 2>/dev/null; sleep 3; pkill -KILL -f 'paperclip' 2>/dev/null; pkill -TERM -f 'postgres.*54329' 2>/dev/null"
Wait another 5 seconds for Postgres to flush WAL and release postmaster.pid.
wsl -d Ubuntu -- bash -lc "systemctl --user stop n8n 2>/dev/null; pkill -TERM -f 'n8n' 2>/dev/null"
Wait 3 seconds for in-flight executions to complete.
# Guy's GMNR Bot (if running)
wsl -d Ubuntu -- bash -lc "pkill -TERM -f 'guy_gmnr_bot.py' 2>/dev/null"
# OpenClaw @DansksunBot (Windows-side, if running)
powershell -Command "Get-CimInstance Win32_Process | Where-Object { \$_.CommandLine -match 'openclaw' } | ForEach-Object { Stop-Process -Id \$_.ProcessId -Force -ErrorAction SilentlyContinue }"
wsl -d Ubuntu -- bash -lc "source ~/.local/bin/env 2>/dev/null; hermes gateway stop"
(Uses systemctl --user stop hermes-gateway under the hood — NOT sudo systemctl which would fail.)
wsl -d Ubuntu -- bash -lc "systemctl --user stop nanoclaw 2>/dev/null"
wsl -d Ubuntu -- bash -lc "pkill -TERM -f 'ollama serve' 2>/dev/null"
Note: Ollama may auto-restart if installed as a Windows service. Check with powershell Get-Service Ollama if suspicious.
curl http://127.0.0.1:3100/api/health 2>&1 # should fail
curl http://127.0.0.1:5678/api/v1/workflows 2>&1 # should fail
powershell -Command "netstat -ano | findstr 54329" # Postgres port - should be empty
wsl -d Ubuntu -- bash -lc "systemctl --user is-active hermes-gateway" # should say 'inactive'
wsl -d Ubuntu -- bash -lc "systemctl --user is-active n8n" # should say 'inactive'
wsl -d Ubuntu -- bash -lc "pgrep -f 'paperclip|guy_gmnr_bot|ollama|n8n'" # should be empty
Only use for full PC shutdown/reboot:
wsl --shutdown
wsl call)systemctl --user is-enabled hermes-gateway = enabled)systemctl --user is-enabled n8n = enabled)PaperclipAI task# Paperclip
Start-ScheduledTask -TaskName 'PaperclipAI'
# Hermes (correct — user service, not sudo)
wsl -d Ubuntu -- bash -lc "hermes gateway start"
# or: systemctl --user start hermes-gateway
# Guy's GMNR Bot
wsl -d Ubuntu -- bash -lc "cd /mnt/c/Users/dansk/Claude/Danny-Hermes-Projects/GMNR-Bot && source telegram_bot_env/bin/activate && python guy_gmnr_bot.py &"
# Ollama
wsl -d Ubuntu -- bash -lc "ollama serve &"
/shutdown # stop all services, WSL keeps running
/shutdown --full # also shutdown WSL (before reboot)
Or directly:
powershell -File "C:\Users\dansk\.claude\skills\shutdown\shutdown.ps1"
powershell -File "C:\Users\dansk\.claude\skills\shutdown\shutdown.ps1" -FullShutdown
If shutdown was forced (power loss, BSOD, forgot to run this):
wsl -d Ubuntu -- bash -lc "rm /home/dansk/.paperclip-db/postmaster.pid"/hermes-restart skillpkill -f guy_gmnr_bot.py then restartWhen you install ANY new service, tool, daemon, or bot on this PC, you MUST:
.gitignore protection needed/hermes-restart — diagnose and fix Hermes issues after bad startup/paperclip-update — update Paperclip safely (includes DB backup)data-ai
Automated backup skill for PKA + Obsidian + Claude memory. Snapshots pka.db (via SQLite .backup so WAL is handled safely), the Obsidian vault, Claude memory files, agent profiles, and the help-content Excel into a single timestamped zip in Zoho WorkDrive. Daily/weekly/monthly retention rotation built in. USE WHEN Danny says "backup", "run backup", "snapshot pka", or to recover from a snapshot.
testing
Run any question, idea, or decision through a council of 5 AI advisors who independently analyze it, peer-review each other anonymously, and synthesize a final verdict. Based on Karpathy's LLM Council methodology, packaged as the stress-test skill. MANDATORY TRIGGERS: 'stress-test this', 'stress test this', 'pressure-test this', 'pressure test this', 'war room this', 'council this', 'run the council', 'debate this'. STRONG TRIGGERS (use when combined with a real decision or tradeoff): 'should I X or Y', 'which option', 'what would you do', 'is this the right move', 'validate this', 'get multiple perspectives', 'I can't decide', 'I'm torn between'. Do NOT trigger on simple yes/no questions, factual lookups, or casual 'should I' without a meaningful tradeoff (e.g. 'should I use markdown' is not a stress-test question). DO trigger when the user presents a genuine decision with stakes, multiple options, and context that suggests they want it pressure-tested from multiple angles.
content-media
Weekly scan of Obsidian vault for empty/low-content notes. Moves them to zToBeDeleted/ for user review. Use when the user says "tidy obsidian", "clean obsidian", "obsidian cleanup", or on scheduled weekly run.
development
Design-first website builder. Accepts a Claude Design export (HTML or screenshot) as a visual blueprint, collects business inputs, calls Claude API to generate a design-matched index.html, and publishes to GitHub Pages. Falls back to vibe-based generation if no design is provided. Use when the user says "make-website-design", "design website", "build from design", or provides a Claude Design export for website generation.