agentsclimarketplace

Stack

Skill KhaiTrang1995/agentic-awesome-kits/packages/agentic-awesome-kits/payload/kits/devops/docker-swarm-kit/.claude/skills/stack

Generate a Docker Swarm stack file — services, deploy policy (replicas, placement, rolling update/rollback), overlay network.From its SKILL.md

Install
npx -y skills add KhaiTrang1995/agentic-awesome-kits --skill stack

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.
  • 8 stars8 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

1.7 KB, 365 tokens by cl100k_base, as published. Nobody here has run it

/stack — Generate a Swarm Stack File

Input examples

/stack .NET API + Angular + Postgres --replicas 3
/stack worker service --replicas 2 --with-db
/stack fullstack --with-proxy    (adds a Traefik front, see traefik-proxy-stack.yml)

Process

  1. Detect the services and their dependency order.
  2. For each service: base image (reuse docker-kit/docker-conventions.md for the Dockerfile side), deploy: stanza per swarm-conventions.md, healthcheck.
  3. Sensitive values → reference an external: true secret, never an inline env var — see /secret.
  4. Attach all services to a stack-scoped overlay network.
  5. L1 approval → Write.

Mandatory rules

  • deploy.replicas explicit for every service — never rely on the Swarm default of 1
  • resources.limits + .reservations both set
  • update_config + rollback_config both set — a rollout with no rollback plan is incomplete
  • Secrets via docker secret — never plain env vars for passwords/keys/tokens
  • Stateful services (db, anything with local volume) get placement.constraints
  • No inline Ingress — routing by hostname needs a proxy front (--with-proxy), Swarm has no Ingress resource

Output

docker-stack.yml
.env.example              (placeholders only — real secrets are never written to a file the agent generates)

References

  • @.claude/rules/swarm-conventions.md
  • @../../docker-kit/.claude/rules/docker-conventions.md

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. 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.