From linux-system-optimisation
Audit installed packages on a Linux desktop and surface candidates for removal — manually-installed packages that haven't been used recently, orphaned dependencies, large packages, and unused Flatpak / Snap apps. Cross-references package-manager records with binary access times where available. Reports only — does not uninstall. Triggers on "what can I uninstall", "audit installed packages", "find unused programs".
npx claudepluginhub danielrosehill/claude-code-plugins --plugin linux-system-optimisationThis skill uses the workspace's default tool permissions.
Reports candidates for cleanup across apt/dpkg, Flatpak, and Snap. The user decides what actually goes.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
Reports candidates for cleanup across apt/dpkg, Flatpak, and Snap. The user decides what actually goes.
apt-mark showmanualapt autoremove --dry-run — already a good list of removable cruft.dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | head -50 (sizes in KB).flatpak list --app --columns=application,name,size,installationflatpak uninstall --unused --dry-run — surfaces unused runtimes (often big).snap list plus snap list --all | awk '/disabled/{print $1, $3}' for old disabled revisions (Snap keeps two by default; clean with sudo snap remove --revision=<rev> <name>).dpkg-query -L <pkg> | grep -E '^/usr/(bin|local/bin|sbin)/' and check stat -c '%X %n' <bin> for atime. If noatime is on, skip this signal entirely and surface that to the user.~/.var/app/<app-id>/) — recent activity = recently used.Suggest for removal:
autoremove --dry-run.--unused --dry-run.noatime.Do not suggest for removal:
required, important, or standard (dpkg-query -Wf '${Priority}\t${Package}\n').linux-image-*, linux-headers-*) — separate cleanup tooling.*-dev packages without explicit user consent.python3-*, lib* — usually pulled in by something else.Apt:
Orphaned (autoremove): 14 packages, 312 MiB reclaimable
sudo apt autoremove
Top 10 largest installed:
1.2 GiB texlive-full
480 MiB android-platform-tools
...
Manually installed but unused (atime > 180d):
inkscape last used 2024-08-12
audacity last used 2024-06-03
...
Flatpak:
Unused runtimes: 4 (1.8 GiB)
flatpak uninstall --unused
Apps with no recent data activity (>180d):
org.kde.krita ~/.var/app last touched 2024-09-01
Snap:
Old disabled revisions: 11 (3.4 GiB)
sudo snap set system refresh.retain=2
sudo snap remove --revision=<n> <name> # per snap, see report
Kernel cleanup (separate, run with care):
3 old kernels installed (~600 MiB). Use `sudo apt autoremove --purge` after verifying current kernel boots cleanly.
mount | grep noatime shows the home filesystem is noatime, skip the atime heuristic entirely and say so.