docker-deployment
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Deploy Dockerfile or docker-compose based services for DevOps tasks. Use for local Docker deploys, remote Docker hosts reached through ssh-remote-operations, image build/pull/tag checks, docker compose release directories, health checks, rollback notes, and deploy reports while keeping `.env`, registry credentials, SSH credentials, and compose-resolved secrets out of model context.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- pfangueiro/claude-code-agentstheir own version, first seen Nov 8, 2026
- bingyue/fde-skillstheir own version, first seen Oct 13, 2026
- zhengliangliahu-cloud/skillstheir own version, first seen Oct 11, 2026
- fossasia/eventyaytheir own version, first seen Oct 8, 2026
- cohen-liel/hivemindtheir own version, first seen Mar 17, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- fossasia/eventyay★ 1.7ksame name
- cohen-liel/hivemind★ 108same name
- pfangueiro/claude-code-agents★ 8same name
- bingyue/fde-skills★ 5same name
- zhengliangliahu-cloud/skills★ 1same 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 repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Classify the target: If the target is local QA, follow local-deployment.
- Very specific: line 24
Find project-owned Docker assets: Use the task and architecture docs to identify Dockerfile, compose.yml, docker-compose.yml, or …
- Very specific: line 25
Validate environment inputs without secrets: Read safe templates (.env.example, .env.template, .env.sample) for key names only.
- Distinctive: line 26
Use deterministic image references: Prefer immutable tags or digests.
- Very specific: line 27
Scope Compose mutations: Always pass -p <project-slug> for compose mutations.
- Distinctive: line 29
Health-check the actual surface: Use declared HTTP health endpoints, container health status, or application smoke probes.
- Distinctive: line 34
Use SSH by reference:
- Very specific: line 42
Do not inline private keys, passwords, registry tokens, or env values.
- Very specific: line 46
Never read, print, copy, or create .env* secret files.
- Very specific: line 47
Never run full docker compose config in model-visible output.
- Distinctive: line 48
Never deploy unpinned images to staging or production unless an approved project policy allows it.
- Very specific: line 49
Never run docker system prune, docker volume prune, or cross-project container cleanup on local or remote hosts.
- Distinctive: line 50
Never copy SSH, Kubernetes, registry, or cloud credentials as part of Docker artifact staging.
- Distinctive: line 51
Never declare success until health checks pass and rollback instructions are recorded.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Docker Deployment
When to use
Use this skill when a DevOps task deploys a Dockerfile, a Docker image, or a Docker Compose stack. For the existing local QA environment flow, keep using local-deployment; use this skill when the task is broader than local QA, especially remote servers, staging-like hosts, image promotion, or compose-based releases.
Inputs and outputs
- Inputs: task ID, target environment, Dockerfile or compose path, image tag or build source, environment contract, safe env templates, target host or SSH alias for remote deploys, and rollback expectation.
- Outputs: built or pulled image evidence, compose validation result, running service health checks, rollback command, and
docs/deploy-reports/<task-id>.mdwith redacted environment evidence.
Procedure
- Classify the target. If the target is local QA, follow
local-deployment. If the target is a remote VM or server, first followssh-remote-operationsfor connectivity, approval, and remote command discipline. If the target is Kubernetes, usekubernetes-deploymentinstead. - Find project-owned Docker assets. Use the task and architecture docs to identify
Dockerfile,compose.yml,docker-compose.yml, or project-owned files underinfra/ordeploy/. Do not create a new reusable infra layout unless the task explicitly asks for it. - Validate environment inputs without secrets. Read safe templates (
.env.example,.env.template,.env.sample) for key names only. Detect.env*presence by path/status only. Usedocker compose config --quiet; never print fulldocker compose configbecause it can expand secrets. - Use deterministic image references. Prefer immutable tags or digests. If building from a Dockerfile, record source commit, build target, platform, and final image tag. Do not deploy
latestto a non-dev environment unless the architecture explicitly allows it. - Scope Compose mutations. Always pass
-p <project-slug>for compose mutations. Use a project-specific release directory on remote hosts, for example/opt/<project-slug>/releases/<task-id-or-version>. Never run global prune commands. - Deploy with a reversible sequence. Pull/build, validate config, start/update services, wait for health checks, then capture logs only when needed and with redaction. Keep the previous image tag or release directory available for rollback.
- Health-check the actual surface. Use declared HTTP health endpoints, container health status, or application smoke probes. "Container is running" is not enough.
- Write the deploy report. Include target environment, host alias (not credentials), compose files, image references, platform, env-file status, health-check results, rollback command, and known limitations. Use names/statuses only for secret-bearing files.
Remote Docker pattern
Use SSH by reference:
ssh -F .ssh/config <host-alias> 'docker version'
ssh -F .ssh/config <host-alias> 'docker compose -p <project-slug> -f /opt/<project-slug>/current/compose.yml config --quiet'
ssh -F .ssh/config <host-alias> 'docker compose -p <project-slug> -f /opt/<project-slug>/current/compose.yml up -d --wait'Do not inline private keys, passwords, registry tokens, or env values. If the remote host lacks Docker, install it only through ssh-remote-operations and only when the task approves software installation.
Hard rules
- Never read, print, copy, or create
.env*secret files. Safe templates are the only env files DevOps may read. - Never run full
docker compose configin model-visible output; useconfig --quiet. - Never deploy unpinned images to staging or production unless an approved project policy allows it.
- Never run
docker system prune,docker volume prune, or cross-project container cleanup on local or remote hosts. - Never copy SSH, Kubernetes, registry, or cloud credentials as part of Docker artifact staging.
- Never declare success until health checks pass and rollback instructions are recorded.
References
../local-deployment/SKILL.md- local QA environment composition.../ssh-remote-operations/SKILL.md- remote command execution and package install rules.../../agents/_templates/devops.md- DevOps role contract and deploy-report schema.
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.

