Stack

From KhaiTrang1995/agentic-awesome-kits · View interactive version

Stack is an AI agent skill from the GitHub repository KhaiTrang1995/agentic-awesome-kits. Generate a Docker Swarm stack file — services, deploy policy (replicas, placement, rolling update/rollback), overlay network.

How to use this skill

Skill file

/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

Output

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

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.