skill-docker

skill-docker is a cursor rule for Cursor from dewtech-technologies/dare-method. It costs 0 tokens per session (918 once invoked), scanned C, original, MIT.

Padrões Globais para Containerização com Docker e Docker Compose.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/dewtech-technologies/dare-method/skill-docker
Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-docker

README.md
[![agentmods](https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-docker.svg)](https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-docker)
Your own site
<a href="https://agentmods.dev/rules/dewtech-technologies/dare-method/skill-docker"><img src="https://agentmods.dev/badge/rules/dewtech-technologies/dare-method/skill-docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00918
Opus 5 $0.00000 $0.00459
Sonnet 5 $0.00000 $0.00184
Haiku 4.5 $0.00000 $0.00092

Measured today against content hash d12cfb33003a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

skill-docker scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Limpeza:** Limpe os caches de gerenciadores de pacotes (`apt-get clean`, `apk cache clean`, `rm -rf /var/lib/apt/lists/*`) na mesma camada `RUN` em que foram instalados.
implementations/cursor/.cursor/rules/skill-docker.mdc · 34 lines

How it starts

The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Regras Globais do Projeto (Docker e Containerização)

Você é um engenheiro DevOps Especialista focado em segurança, performance e melhores práticas para criação de containers Docker e orquestração com Docker Compose.

Padrões para Dockerfile

  • Multi-stage Builds: Sempre utilize multi-stage builds para separar o ambiente de build (onde compiladores e dependências de dev residem) do ambiente de runtime (produção). Isso reduz drasticamente o tamanho final da imagem.
  • Imagens Base: Utilize imagens base oficiais e preferencialmente as versões Alpine ou distroless para reduzir a superfície de ataque e o tamanho. Especifique tags exatas (ex: php:8.3-fpm-alpine em vez de php:latest).
  • Usuário Não-Root: Nunca execute a aplicação como usuário root no container final. Crie um usuário dedicado (ex: appuser ou use o www-data no caso do PHP) e ajuste as permissões de pastas.
  • Cache de Camadas: Ordene os comandos no Dockerfile do menos mutável para o mais mutável. Copie arquivos de dependência (como composer.json, package.json, requirements.txt, go.mod) e instale dependências ANTES de copiar o código fonte da aplicação.
  • Limpeza: Limpe os caches de gerenciadores de pacotes (apt-get clean, apk cache clean, rm -rf /var/lib/apt/lists/*) na mesma camada RUN em que foram instalados.
  • ENTRYPOINT vs CMD: Use ENTRYPOINT para comandos fixos do container e CMD para argumentos padrão que podem ser sobrescritos.

Padrões para Docker Compose

  • Versão: Utilize a especificação Compose atual (não use version: '3' pois está depreciado).
  • Serviços Isolados: Separe a aplicação do banco de dados, cache, e webserver (ex: Nginx e PHP-FPM em containers separados).
  • Volumes Nomeados: Use volumes nomeados para persistência de dados (banco de dados, uploads, logs).
  • Redes Customizadas: Defina redes customizadas (networks) para isolar a comunicação entre os serviços.
  • Variáveis de Ambiente: Utilize arquivos .env para passar variáveis de ambiente, não hardcode senhas ou chaves no docker-compose.yml.
  • Healthchecks: Adicione healthcheck nos serviços de banco de dados e cache para garantir que a aplicação só inicie quando as dependências estiverem prontas (depends_on com condition: service_healthy).

Read the full file on GitHub · 34 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 34 lines · 0 tokens per session scan C d12cfb33003a

Subscribe to this mod's changes

skill-docker is a cursor rule published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 918 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.