kiri-health
Skill5 starsChanged 5 days agoMITView on GitHub
Trigger: docker no funciona, revisa kiri, health check docker, kiri setup, docker context, builder multiarch, restos de orbstack/colima. Diagnose Kiri, Docker context, daemon, builders and leftover runtimes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alvaroofernaandez/dotfilesword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- alvaroofernaandez/dotfiles★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aval-architectureSkill
- aval-docsSkill
- aval-release-notesSkill
- aval-releaseSkill
- aval-testingSkill
- accessibilitySkill
- ai-sdk-5Skill
- architecture-evidenceSkill
- branch-prSkill
- chained-prSkill
- cognitive-doc-designSkill
- design-pipelineSkill
- design-refactorSkill
- docker-build-optimizedSkill
- docker-space-optimizerSkill
- herdrSkill
- issue-creation-proSkill
- kiri-dockerSkill
- laws-of-uxSkill
- lightpanda-browserSkill
- mac-disk-cleanupSkill
- pdf-reportSkill
- plan-deckSkill
- prs-proSkill
- react-19Skill
- readme-guardianSkill
- readme-portalSkill
- repo-prepSkill
- skill-creatorSkill
- strict-tddSkill
- tailwind-4Skill
- typescriptSkill
- work-unit-commitsSkill
- zod-4Skill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read-only by default: diagnose and report.
- Distinctive: line 16
Never touch Docker state while diagnosing: no prune, rm, or context changes.
- Very specific: line 17
If OrbStack/Colima/Lima traces are found, NEVER remove them automatically: show the exact removal plan (commands, paths, sizes) and wait …
- Very specific: line 43
Run: docker context ls, docker context show, docker info, docker buildx ls, docker system df, kiri --version, df -h /.
- Very specific: line 44
Run: ls -l ~/.kiri/run/docker.sock /var/run/docker.sock, launchctl list | rg dev.kiri, kiri diag logs -n 50 --errors.
- Very specific: line 45
Run: ps aux | rg -i 'colima|lima|orbstack' | rg -v ' rg ', command -v colima limactl, ls -d /Applications/OrbStack.app, rg -n -i …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Activation Contract
Load when Docker fails, the user asks for a Docker/Kiri health check, a build produces the wrong architecture, or there is any suspicion of a second runtime (OrbStack, Colima, Lima, Docker Desktop) on the machine.
Hard Rules
- Read-only by default: diagnose and report; change nothing without approval, except the recovery commands below once the user agrees.
- Never touch Docker state while diagnosing: no prune, rm, or context changes.
- If OrbStack/Colima/Lima traces are found, NEVER remove them automatically: show the exact removal plan (commands, paths, sizes) and wait for confirmation.
- A sleeping VM (idle > 60 s) is normal; it wakes in ~0.15 s on the next command.
- Report only measured values; a check that was not run is reported as "not run".
Decision Gates
| Check | Healthy | Recommended action if not |
docker context show | kiri | docker context use kiri; if absent, kiri setup |
echo $DOCKER_HOST | empty | remove it from shell rc files (ask) |
ls -l ~/.kiri/run/docker.sock /var/run/docker.sock | socket exists, /var/run links to it | kiri setup |
ls /Library/LaunchDaemons | rg com.docker | nothing | Docker Desktop's com.docker.socket helper re-links /var/run/docker.sock to the dead ~/.docker/run/docker.sock on every boot, and Kiri's dev.kiri.docker-socket only links when the path is absent, so Docker's wins. With the user's sudo: launchctl bootout system/com.docker.socket, remove /Library/LaunchDaemons/com.docker.{socket,vmnetd}.plist and /Library/PrivilegedHelperTools/com.docker.*, then ln -sfn ~/.kiri/run/docker.sock /var/run/docker.sock |
launchctl list | rg dev.kiri.daemon | listed | kiri setup (re-creates the agent) |
docker info | succeeds | kiri diag logs --errors, then kiri setup |
kiri diag logs -n 50 --errors | no recent errors | quote the errors; kiri diag report for a bundle |
docker buildx ls | builder multiarch present | docker buildx create --name multiarch --driver docker-container --driver-opt default-load=true --bootstrap kiri |
echo $BUILDX_BUILDER | multiarch | export it in ~/.zprofile / ~/.zshrc |
command -v kiri | resolves (~/.kiri/bin) | add ~/.kiri/bin to PATH |
command -v colima limactl, ls -d /Applications/OrbStack.app | none | removal plan (ask) |
OrbStack.app, ~/.orbstack, ~/.colima, ~/.lima, login items | absent | removal plan with du -sh sizes (ask) |
Contexts other than kiri/default in docker context ls | absent | docker context rm <name> (ask) |
df -h / free | > 20 GiB | load docker-space-optimizer |
du -sh ~/Library/Application\ Support/Kiri | measured and reported | load docker-space-optimizer if large |
Execution Steps
- Run:
docker context ls,docker context show,docker info,docker buildx ls,docker system df,kiri --version,df -h /. - Run:
ls -l ~/.kiri/run/docker.sock /var/run/docker.sock,launchctl list | rg dev.kiri,kiri diag logs -n 50 --errors. - Run:
ps aux | rg -i 'colima|lima|orbstack' | rg -v ' rg ',command -v colima limactl,ls -d /Applications/OrbStack.app,rg -n -i 'colima|orbstack|DOCKER_HOST|BUILDX_BUILDER' ~/.zshrc ~/.zprofile ~/.bashrc ~/.profile. - Evaluate every row of the decision table.
- Recovery, only after approval:
kiri setup(re-creates context, agent and builder;kiri setup --uninstallremoves them), then recreatemultiarchif missing, then prove it withdocker run --rm hello-worldand a native vs--platform linux/amd64build checked withdocker image inspect -f '{{.Architecture}}'.
Output Contract
Return one table: Check | Status (OK / WARN / FAIL / not run) | Measured value | Recommended action. Then, if any OrbStack/Colima trace exists, the removal plan awaiting confirmation.
References
../kiri-docker/SKILL.md— daily use and the multiarch build rule.../docker-space-optimizer/SKILL.md— when space checks fail.
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.

