system-maintain
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Routine upkeep for this Linux desktop — updates, autoremove, cache, log scan, disk and inode check, failing units, and a restore point before anything risky. Asks before every destructive step. Use for regular maintenance, "clean this up", or before and after a big change.
In this repository20 other files it gives its agents.
- aws-cliSkill
- cloud-deploySkill
- containersSkill
- databasesSkill
- dev-runtimesSkill
- find-skillsSkill
- incident-triageSkill
- linux-adminSkill
- log-analysisSkill
- mikrotikSkill
- network-reconSkill
- privilege-escalation-auditSkill
- remote-desktopSkill
- security-auditSkill
- shell-safetySkill
- ssh-opsSkill
- system-performanceSkill
- voip-telephonySkill
- vpn-clientSkill
- youtube-skip-adSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Do not create one before a read-only sweep — a restore point per df -h is noise that makes the useful ones hard to find.
- Distinctive: line 43
Confirm the machine still works: before cleaning: the failed-units check again, and any service the person cares about.
- Distinctive: line 49
Backups: Verify one exists and is recent.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Take a restore point before you take anything else
This desktop has snapshot_create — a real restore point, which is the one
undo that actually works here. A conversation can be rewound; an upgrade cannot.
So before an upgrade, a kernel change, or anything you would be sorry about:
snapshot_create name: before-upgrade-<date>Say you took it and name it, so the person knows what to ask for if this goes
wrong. snapshot_list shows what exists; snapshot_restore is the way back.
Do not create one before a read-only sweep — a restore point per df -h is
noise that makes the useful ones hard to find.
The pass, in order
The order matters: read before you change, and update before you clean, because cleaning first throws away the packages the update is about to want.
- What is broken right now.
check_errorsfirst — it exists for exactly this and costs one call. Thenrun_command "systemctl --failed --no-pager"andrun_command "journalctl -p 3 -b --no-pager | tail -40". - Disk before updates, because an upgrade on a full partition fails
halfway and leaves dpkg in a state somebody has to unpick:
run_command "df -h"andrun_command "df -i". - Updates.
search_packages/run_command "apt list --upgradable"to see what is coming, theninstall_packages— as a job if it is more than a handful:job_start, thenjob_wait. A wait that times out has NOT cancelled the install; calljob_waitagain. A secondapton top of a running one is how a dpkg lock becomes an afternoon. - Confirm the machine still works before cleaning: the failed-units check again, and any service the person cares about.
- Cleanup, and only now.
apt autoremoveandapt cleanare destructive in the sense that matters — autoremove has removed a kernel somebody was about to boot. Show what it would remove first (run_command "apt -s autoremove"), then ask. - Backups. Verify one exists and is recent. "There is a backup script" is not a backup; a file with today's date is.
What to report
One paragraph: what was updated, what was cleaned, what is still broken, and the name of the restore point. A maintenance pass that says "done" has told the person nothing they can act on — the value is in the list of what you found and chose not to touch.
A reboot is a decision, not a step
A kernel or libc upgrade needs one to take effect. Say so plainly, say what is
running that would be interrupted (desktop_state reports who is here), and let
a person choose the moment. Rebooting a desktop somebody is working on is the
one mistake nobody forgives.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

