/linux-debugging:log-inspectfrom linux-debugging
Inspect non-journal log sources on a Linux desktop — Xorg/Wayland session logs, application logs in ~/.cache and ~/.local/state, /var/log/* leftovers, and dmesg — using AI-friendly tools (ripgrep, jq, structured queries) that produce focused, parseable output instead of raw log dumps. Use when journald doesn't have what you need or when an app writes its own log files.
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.
Not everything goes through journald. This skill covers the other surfaces, with an emphasis on tools whose output an AI agent can usefully analyze without burning context.
rg (ripgrep) over grep — faster, respects gitignore-like filters, better default output.jq for any JSON log (Chrome, VS Code, modern Node apps).tail -n N with explicit count, never tail -f in an agent session.awk '/pattern/' when you need field-level slicing.Avoid cat on large logs — open with Read (limit + offset) or pipe through rg -m N to cap results.
| Source | Path |
|---|---|
| User systemd unit logs | journalctl --user -u <unit> |
| App-managed logs | ~/.cache/<app>/, ~/.local/state/<app>/, ~/.config/<app>/logs/ |
| Xorg (legacy) | ~/.local/share/xorg/Xorg.0.log, /var/log/Xorg.0.log |
| Wayland compositor | journald, user scope: journalctl --user -t kwin_wayland (KDE), -t gnome-shell (GNOME) |
| GPU / Mesa | dmesg, plus MESA_DEBUG=1 runtime env |
| APT / dpkg | /var/log/apt/, /var/log/dpkg.log |
| Auth | /var/log/auth.log (or journalctl _COMM=sudo) |
| Cron | journalctl _COMM=cron (modern) or /var/log/syslog |
| Snap | journalctl _COMM=snapd, snap logs <snap> |
| Flatpak | flatpak run --log-session-bus <app> for live, otherwise journald |
rg -i --no-ignore -t log -m 5 -e '(error|fatal|panic|traceback|stack)' ~/.local/state/<app>/ ~/.cache/<app>/
journalctl --user -t kwin_wayland --since "24 hours ago" --no-pager -p warning
ls -lt ~/.cache/kwin/ ~/.local/share/sddm/ 2>/dev/null
rg -i -m 20 -e '\(EE\)|\(WW\)|FATAL' ~/.local/share/xorg/Xorg.0.log
snap logs <snap-name> -n 200
journalctl --user --since "1 hour ago" --no-pager | rg -i <appname>
zcat -f /var/log/dpkg.log* | rg ' (install|upgrade|remove) ' | tail -50
zcat -f /var/log/apt/history.log* | tail -100
If the file is JSON-lines:
jq -c 'select(.level=="error" or .level=="fatal") | {t:.time, m:.msg, ctx:.context}' < log.jsonl | tail -50
If it's plain but timestamped, slice by time:
awk '/^2026-04-28T14:2[0-5]/' app.log
What SKILL.md sets; muted values are Claude Code's defaults
10 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
linux-debugging@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin linux-debugging