agentsclimarketplace

Case 00870

Skill knownasnaffy/prompthound/dataset/case_00870

Manage a remote Docker host via a Tecnativa docker-socket-proxy instance. Unlike raw Docker socket access (which is root-equivalent), docker-socket-proxy acts as a firewall: each API section is individually enabled or disabled via env vars, so the agent only gets access to what you explicitly allow. Requires docker-socket-proxy exposed over TCP. Covers the full Docker REST API surface: container lifecycle (list, start, stop, restart, kill, pause, unpause, rename, exec), inspection (logs, stats, top, changes), images, networks, volumes, Swarm, plugins, system info, and event streaming.From its SKILL.md

Install
npx -y skills add knownasnaffy/prompthound --skill case_00870

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.2 KB, 919 tokens by cl100k_base, as published. Nobody here has run it

Docker Socket Proxy

Manages Docker containers via the tecnativa/docker-socket-proxy REST API using curl and jq. Which modes are available depends on which API sections the proxy instance has enabled.

Trigger conditions

  • User asks to list, start, stop, restart, kill, pause, or unpause a container or service
  • User wants container logs, stats, top processes, or filesystem changes
  • User asks about Docker images, networks, volumes, swarm services, or tasks
  • A service needs to be restarted after a config change

Usage

bash {baseDir}/scripts/run-docker.sh <mode> [args...]

Run with no arguments for full usage. Proxy URL is resolved from $DOCKER_PROXY_URL$DOCKER_HOST (tcp→http) → http://localhost:2375.

Modes

System

ModeDescription
pingHealth check
versionDocker version
infoHost summary (containers, memory, etc.)
events [--since T] [--until T] [--filters k=v]Recent events (1s window)
system-dfDisk usage by images/containers/volumes

Containers

ModeDescription
listRunning containers
list-allAll containers including stopped
inspect <name>Full container details
top <name> [ps-args]Running processes inside container
logs <name> [tail]Container logs (default tail=100)
stats <name>CPU, memory, network, block I/O
changes <name>Filesystem changes since start
start <name>Start container
stop <name> [timeout]Stop container
restart <name> [timeout]Restart container
kill <name> [signal]Kill container (default SIGKILL)
pause <name>Pause container
unpause <name>Unpause container
rename <name> <new-name>Rename container
exec <name> <cmd> [args...]Run command in container
prune-containersRemove stopped containers

Images

ModeDescription
imagesList images
image-inspect <name>Image details
image-history <name>Layer history
prune-imagesRemove unused images

Networks

ModeDescription
networksList networks
network-inspect <name>Network details and connected containers
prune-networksRemove unused networks

Volumes

ModeDescription
volumesList volumes
volume-inspect <name>Volume details
prune-volumesRemove unused volumes

Swarm

ModeDescription
swarmSwarm info
nodesList nodes
node-inspect <name>Node details
servicesList services
service-inspect <name>Service details
service-logs <name> [tail]Service logs
tasksList tasks
configsList configs
secretsList secrets

Plugins

ModeDescription
pluginsList plugins

Name matching

Container names can be partial — myapp matches project-myapp-1. Exact match is tried first, then substring. Errors clearly if 0 or 2+ containers match.

Notes

  • Modes that require disabled proxy sections (e.g. IMAGES, NETWORKS, VOLUMES, SYSTEM) will return HTTP 403. This is expected — enable the relevant env var on the proxy to unlock them.
  • exec is two-step (create + start) and streams multiplexed output.
  • events uses a 1-second window by default; use --since / --until to adjust.

What ships with it: 2 files

24.0 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 326,782. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.