docker

docker is a skill for Claude Code, Codex from spinspire/pocketbase-sveltekit-starter. It costs 27 tokens per session (1,160 once invoked), scanned A, original, MIT.

A set of conventions for Docker Compose projects, where Compose describes and runs groups of related containers. It covers service setup, users, environment files, local overrides, images, and project naming.

In plain words
What is it for?
It helps create or modify Compose files with documented environment variables, non-root service users, lightweight images, named projects, and an example override file for local customisations. It also keeps host port forwarding out of the base configuration.
Why use it?
It keeps development containers predictable and avoids common problems such as running unnecessarily as root, exposing ports by default, or committing local secrets and settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It helps create or modify Compose files with documented environment variables, non-root service users, lightweight images, named projects, and an example override file for local customisations. It also keeps host port forwarding out of the base configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spinspire/pocketbase-sveltekit-starter/docker
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.

Any agent
npx skills add spinspire/pocketbase-sveltekit-starter --skill docker
Clone the repo
git clone --depth 1 https://github.com/spinspire/pocketbase-sveltekit-starter

Made for: Claude Code, Codex.

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 docker

README.md
[![agentmods](https://agentmods.dev/badge/skills/spinspire/pocketbase-sveltekit-starter/docker.svg)](https://agentmods.dev/skills/spinspire/pocketbase-sveltekit-starter/docker)
Your own site
<a href="https://agentmods.dev/skills/spinspire/pocketbase-sveltekit-starter/docker"><img src="https://agentmods.dev/badge/skills/spinspire/pocketbase-sveltekit-starter/docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original 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.1 $0.00027 $0.01160
Opus 5 $0.00014 $0.00580
Sonnet 5 $0.00005 $0.00232
Haiku 4.5 $0.00003 $0.00116

Measured 8d ago against content hash 23382a083c7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docker scanned grade A with 0 findings 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/docker/SKILL.md · 132 lines

How it starts

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

Docker Compose conventions

Apply these conventions when creating or modifying docker-compose.yml.

Principles

  1. .env (git-ignored) + .env.example (checked in, with doc comments).
    All secrets and environment-specific values live in .env. The example file documents each variable.

  2. No root.
    Every service that doesn't need root gets user: "${UID:-1000}:${GID:-1000}".

    • Dockerfiles must make the working directory group-writable (RUN chmod g+w .).
    • Postgres is exempt — its official image handles user switching.
  3. No port forwarding in the base compose file.
    ports: only appear in override files. The base file exposes nothing to the host.

  4. Override file (example only).
    Write docker-compose.override-example.yml with documented, commented-out options.
    Users copy it to docker-compose.override.yml (git-ignored) for their local customisations.
    Never write docker-compose.override.yml into the project — only the example.

  5. Lightweight images.
    Prefer -alpine or -slim variants.

  6. Named project.
    Set name: at the top so volumes and containers are predictable. Or use COMPOSE_PROJECT_NAME env var.

  7. Mandatory env vars.
    Use ${VAR:?required} so compose errors immediately when a required variable is missing.

  8. Short service names.
    pg, bun, ml, py, sk (SvelteKit), pb (PocketBase), etc. If there's a "primary" app, their service should be named app.

  9. Restart policy.
    restart: unless-stopped for long-lived services, on-failure:N for batch jobs. Never use always (it reanimates after intentional docker compose stop).

  10. Read-only root.
    read_only: true on every service that doesn't need to write to its own filesystem. Mount tmpfs for paths that must be writable (/tmp, /run). Combine with tmpfs for the writable paths the app actually needs.

  11. Log rotation.
    Every service gets logging.driver: json-file with max-size: 10m and max-file: 3. Prevents disk fills.

Read the full file on GitHub · 132 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. 8d ago First seen · 132 lines · 27 tokens per session scan A 23382a083c7b

Subscribe to this mod's changes

docker is a skill published in the GitHub repository spinspire/pocketbase-sveltekit-starter (508 stars, last pushed 16d ago), licensed MIT. It adds 27 tokens to every session and 1,160 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.