Agent skill
ops-docker
Safe Docker cleanup and compose stack management. Prune unused containers/images/volumes, redeploy stacks.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ops-docker
Metadata
Additional technical details for this skill
- short description
- Safe Docker cleanup and stack management
SKILL.md
Docker Ops
Safe Docker management with dry-run defaults.
Commands
# Prune unused resources (dry-run by default)
./scripts/prune.sh
# Actually prune
./scripts/prune.sh --execute
# Prune images older than 24h
./scripts/prune.sh --until 24h --execute
# Redeploy compose stack (dry-run)
./scripts/redeploy.sh --stack docker-compose.yml
# Actually redeploy
./scripts/redeploy.sh --stack docker-compose.yml --execute
# Redeploy specific service
./scripts/redeploy.sh --stack docker-compose.yml --service web --execute
Environment Variables
| Variable | Default | Description |
|---|---|---|
DOCKER_PRUNE_UNTIL |
- | Default age filter for prune |
STACK_FILE |
docker-compose.yml | Default compose file |
HEALTH_CMD |
- | Command to run after redeploy |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?