/linux-debugging:validate-persistent-journalfrom linux-debugging
Verify that systemd-journald is configured for persistent storage so logs survive reboot — essential for diagnosing hard crashes and unexpected reboots. Configures it if not. Use proactively on any new desktop, and as a precondition before any post-crash investigation skill.
Ships in linux-debugging. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
By default on some distros, journald stores logs only in /run/log/journal (tmpfs) and they vanish on reboot. For crash forensics you need them in /var/log/journal so journalctl -b -1 works after the system comes back up.
journalctl --list-boots --no-pager | head -10
ls -la /var/log/journal/ 2>/dev/null
ls -la /run/log/journal/ 2>/dev/null
grep -E '^Storage=' /etc/systemd/journald.conf /etc/systemd/journald.conf.d/*.conf 2>/dev/null
Three states to distinguish:
/var/log/journal/<machine-id>/ exists and contains .journal files; --list-boots shows multiple entries./run/log/journal/ exists; --list-boots shows one entry; previous boots are gone.Storage=auto (the default) but /var/log/journal/ doesn't exist, so journald falls back to volatile.sudo mkdir -p /var/log/journal
sudo systemd-tmpfiles --create --prefix /var/log/journal
sudo systemctl restart systemd-journald
journalctl --list-boots --no-pager | head -3
For an explicit configuration (not relying on auto), drop in:
sudo tee /etc/systemd/journald.conf.d/persistent.conf <<'EOF'
[Journal]
Storage=persistent
SystemMaxUse=2G
SystemKeepFree=1G
SystemMaxFileSize=200M
MaxRetentionSec=1month
ForwardToSyslog=no
EOF
sudo systemctl restart systemd-journald
Tune SystemMaxUse to taste — 2G holds many weeks of desktop logs.
After enabling, the test is on the next reboot:
journalctl --list-boots --no-pager | head -5
Should show at least 2 entries with distinct timestamps. If -b -1 returns content, you're good.
State explicitly:
journalctl --disk-usage)What SKILL.md sets; muted values are Claude Code's defaults
linux-debugging@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin linux-debugging10 skills in this plugin
/boot-inspectInspect boot health on a systemd Linux system — failed units, slow services, kernel boot messages, and boot-to-boot comparison. Use when the user reports slow boot, services not starting, or wants to check post-reboot health. Targets Ubuntu/Debian + Wayland desktops but works on any systemd host./inspect-oom-eventsFind past out-of-memory kill events in the journal — both kernel OOM killer invocations and userspace systemd-oomd / earlyoom kills — and reconstruct what was running at the time. Use when the user reports an unexplained freeze, lost work, or a process disappearing./interactive-debuggingCollaboratively debug a misbehaving Linux desktop app or service in real time with the user. Two modes — live (tail logs while the user reproduces) and retrospective (something just happened, capture evidence before it gets buried). Produces a diagnosis and optionally a written-up bug report with attached log excerpts. Use when the user says "something won't launch", "let's debug this together", "X just crashed", "a bug just happened", or describes an issue they want to reproduce.Other plugins' skills for the same job