agentleFS
peterbamuhigirepeterbamuhigire/chwezi-dev-engine/skills/devops-cloud/docker-development/SKILL.md

docker-development

Skill31 starsChanged 18 days agoMITView on GitHub

Use when containerizing PHP, Python, JavaScript, or API services with Dockerfiles, multi-stage images, Compose, CI builds, runtime permissions, and persistent dependencies.

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Use Docker Compose for local multi-service orchestration, networking, volumes, health checks, and developer commands.

    line 36
  2. Distinctive:

    Keep secrets and environment-specific config outside images.

    line 37
  3. Distinctive:

    Add CI image build, scan, tag, push, and promotion rules.

    line 38
  4. Distinctive:

    Verify startup, health checks, logs, permissions, volume behavior, and graceful shutdown.

    line 39
  5. Distinctive:

    If Docker or the target architecture is unavailable, perform static review and provide unverified build commands.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 6 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.

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

Docker Development

Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.

<!-- dual-compat-start -->

Use When

  • Containerizing PHP, Python, Node.js, JavaScript build, API, worker, queue, database, cache, or reverse-proxy services.
  • Creating or reviewing Dockerfile, compose.yml, CI build, registry, or runtime deployment patterns.
  • A project needs repeatable development environments, environment parity, production images, or service orchestration.

Do Not Use When

  • The task only needs application code and has no container, runtime, deployment, or environment concern.
  • Kubernetes-specific cluster design is the main task; use Kubernetes skills after this container baseline is correct.

Required Inputs

  • Application stack, local development needs, production runtime, ports, volumes, secrets/config, persistence services, and target OS.
  • Existing Dockerfile, Compose files, CI scripts, and deployment constraints when available.

Workflow

  1. Identify runtime roles: web, app/FPM, worker, scheduler, database, cache, queue, reverse proxy, asset build, or test runner.
  2. Choose separate development and production image strategies.
  3. Build minimal, reproducible images with pinned base versions and deterministic dependency installation.
  4. Use Docker Compose for local multi-service orchestration, networking, volumes, health checks, and developer commands.
  5. Keep secrets and environment-specific config outside images.
  6. Add CI image build, scan, tag, push, and promotion rules.
  7. Verify startup, health checks, logs, permissions, volume behavior, and graceful shutdown.

Quality Standards

  • Images are reproducible, minimal, patched, scanned, and tagged with immutable release identifiers.
  • Development Compose is ergonomic without leaking dev-only tools into production images.
  • PHP, Python, and Node dependencies are installed deterministically from lockfiles.
  • Runtime config comes from environment/secrets, not baked source edits.
  • Containers expose health checks, structured logs, and graceful stop behavior.
  • Volumes are explicit and do not hide built artifacts unexpectedly.

Anti-Patterns

  • One container running web server, database, queue worker, and scheduler because it is convenient.
  • Using latest tags in production.
  • Copying .env, secrets, test data, or host-specific paths into images.
  • Installing debug tooling in production images.
  • Rebuilding separate artifacts per environment instead of promoting one tested image.
  • Assuming Windows file permissions and Linux container permissions behave the same.

Outputs

  • Dockerfile/Compose guidance, container architecture notes, review findings, CI image-build plan, or runtime checklist.

References

  • references/php-python-js-container-delivery.md
  • references/source-register.md

Evidence Produced

CategoryArtifactFormatExample
OperabilityContainer build and runtime verificationCommand output plus manifestpinned image, non-root run, health check, dependency failure, scan, and cleanup
<!-- dual-compat-end -->

Inputs

InputRequiredPurpose
Runtime, build context, and platformyesBuild image
Dependencies and portsyesDefine runtime
Secret and persistence boundariesyesAvoid embedded state

Degraded mode

If Docker or the target architecture is unavailable, perform static review and provide unverified build commands.

Decision rules

ConditionAction
Build tool not needed at runtimeUse multi-stage build
Process needs persistent stateMount managed storage
Root is not justifiedRedesign permissions

Pair With

  • php-modern-standards for PHP app/FPM/Composer rules.
  • python-modern-standards for Python services, workers, and dependency locking.
  • javascript-modern, nodejs-development, or TypeScript skills for Node/runtime asset builds.
  • api-design-first for API contract/runtime responsibilities.
  • deployment-release-engineering for build-once promotion, rollout, and rollback.

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.