agentleFS
the-gigithe-gigi/learn-claude-code/skills/docker-desktop/SKILL.md

docker-desktop

Skill1 starsChanged 6 months agoMITView on GitHub

Ensure Docker Desktop is running and responsive on macOS. Use whenever a task needs the Docker daemon (docker, kind, k3d, docker-compose, etc.) and the daemon is unresponsive, hung, or not started. Do not stop and ask the user — start it, restart it, force-restart it, and troubleshoot.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. G1Joshi/Agent-Skills★ 15same name

    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 repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If it is responsive, exits 0 immediately.

    line 27
  2. Distinctive:

    If Docker Desktop is running but the daemon is hung, waits up to 30s for it to come around.

    line 28
  3. Distinctive:

    If still hung, gracefully quits Docker Desktop, then re-launches it.

    line 29
  4. Distinctive:

    If Docker Desktop is not running, launches it.

    line 30
  5. Distinctive:

    Does not modify Docker config or settings.

    line 40

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docker Desktop

Ensure the Docker daemon is running and responsive on macOS Docker Desktop. If a task needs Docker (docker, kind, k3d, docker-compose, etc.) and the daemon is hung or not started, run the script below before giving up. Never just bail out and ask the user to start Docker.

When to use

Trigger this skill the moment any of these signals appear:

  • docker info, docker ps, or any docker command hangs, returns "EOF", or fails with "Cannot connect to the Docker daemon"
  • kind create cluster errors with failed to list clusters: ... command "docker ps ..." failed
  • A task you are about to perform requires the Docker daemon (kind clusters, container builds, compose stacks)

Usage

./scripts/ensure-docker.sh

The script:

  1. Probes the daemon with docker info (5s timeout).
  2. If it is responsive, exits 0 immediately.
  3. If Docker Desktop is running but the daemon is hung, waits up to 30s for it to come around.
  4. If still hung, gracefully quits Docker Desktop, then re-launches it.
  5. If Docker Desktop is not running, launches it.
  6. Polls the daemon for up to 90s after launch.
  7. As a last resort, force-kills lingering Docker processes and re-launches once more.
  8. On final failure, prints diagnostics: process list, socket path, and tail of Docker Desktop logs.

Exit code is 0 if the daemon is responsive, 1 if all attempts failed.

Scope

  • macOS Docker Desktop only. For OrbStack, Colima, Rancher Desktop, or Linux Docker Engine, do not use this skill.
  • Does not modify Docker config or settings. Only starts, stops, and waits.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.