device-health
Skill0 starsChanged 11 days agoMITView on GitHub
Use when the owner's device is low on disk, slow, hot, or swapping, when asked for a health check or a cleanup of build output, caches, or Docker on the device, or before a large build. Runs `pakem health check`, explains findings by tier, and removes only owner-approved findings with `pakem health clean`.
- Deletes or force-pushes
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend-engineeringSkill
- change-planningSkill
- change-reviewSkill
- genai-engineeringSkill
- instruction-maintenanceSkill
- pakemSkill
- pakem-updateSkill
- project-bootstrapSkill
- release-deliverySkill
- root-cause-debuggingSkill
- sensitive-operationsSkill
- state-and-handoffSkill
- ui-ux-qualitySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Run pakem health check (add --json to read it programmatically).
- Distinctive: line 29
Follow tiers. For each tier, give the total and the largest findings with their ids, what each costs to lose (nothing, a rebuild, a pull), …
- Very specific: line 43
Run pakem health clean <id>...
≈ “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
Device Health
pakem health inspects the device and removes what the owner approves. The judgment is
yours, the deleting is the tool's: it re-verifies every finding at the moment it acts.
1. Check first
Run pakem health check (add --json to read it programmatically). Never hand-run a
recursive du over the home folder or ~/Library, which takes about a minute, and never
clean by hand: no docker volume prune or docker system prune (they delete named
database volumes), no cargo clean (its lock stalls a live session's build), no rm -rf
on a guess. If the check has no workspace roots, add the owner's workspace folders as
roots in ~/.config/pakem/health.toml and run it again.
2. Weigh urgency
The check rates the data volume critical, watch, or healthy by free space. Weigh it
against the rest of the report: memory free and swap, thermal state, battery, and the
agent sessions and builds running. A critical disk with swap in use needs space now. A
healthy device needs nothing unless the owner asks.
3. Present the findings
Follow tiers. For each tier, give the total and the largest findings with their ids, what each costs to lose (nothing, a rebuild, a pull), and what is in use. Name what stays protected (for example the named Docker volumes). Recommend:
- critical: the zero-impact tier, plus the warm findings that free the most for the least rebuild cost.
- watch: the zero-impact tier.
- healthy: nothing.
Cold candidates (whole idle repositories, old toolchains) never come from the tool. If you see them, suggest archiving them to another machine and leave the decision to the owner.
4. Clean only what the owner approved
Run pakem health clean <id>... --plan with exactly the ids the owner approved in this
session, show it, then run it again with --yes. Report what was removed, what was
skipped and why (in use, changed, refused), and run pakem health check again to show the
new free space. Never pass an id the owner did not approve.
5. Memory
The check lists idle Gradle and Kotlin daemons with the memory they hold. Stopping one
(./gradlew --stop in its project) is the owner's call. Never stop an agent session or a
process you did not start.
6. Platform notes
- macOS with Docker Desktop: Docker's disk image shrinks after a cleanup only as the VM returns blocks. The check shows its allocated and reported sizes.
- WSL: deleting files frees space inside Linux, but the Windows-side
ext4.vhdxdoes not shrink by itself. Compacting it (wsl --manage <distro> --optimize) is an owner action on the Windows side.
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.

