Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

dockerDocker 容器开发

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

499

周安装

21

GitHub Stars

公开资料未说明

下载量

175
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:docker(Docker 容器开发)
来源仓库:https://github.com/ulpi-io/skills
仓库路径:skills/docker
安装命令:
npx skills add https://github.com/ulpi-io/skills --skill docker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ulpi-io/skills --skill docker

简介

用于辅助云资源、部署、容器和运维自动化任务。

  • 适合检查配置、整理部署步骤、分析资源状态或生成排障思路。
  • 使用时需明确目标环境、账号权限和资源组,区分测试与生产操作。
  • 涉及删除资源或修改网络配置时,应先确认影响范围。
  • 建议结合本地预览和构建检查验证操作结果。docker 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Non-negotiable rules:

  1. Read references/stack.md first to determine the project's base images, registry, and build conventions.
  2. Then load only the references needed for the actual task.
  3. Multi-stage builds by default — separate dependency install, build, and production stages.
  4. Non-root user in production — never run containers as root. Add a user and USER directive.
  5. No secrets in images — no ARG/ENV for passwords, no COPY.env, no secrets in build layers.
  6. Pin base image versionsnode:22-slim, not node:latest. Use digest pinning for critical images.
  7. .dockerignore is mandatory — exclude node_modules, .git, .env, dist, test artifacts.
  8. Frozen lockfiles in builds--frozen-lockfile / --ci for reproducible installs.

docker

Inputs

  • $request: The Docker task — Dockerfile, Compose, registry, optimization, or debugging target

Goal

Route Docker work through proven container patterns so images are small, secure, reproducible, and follow the project's infrastructure conventions.

Step 0: Read the stack contract

Always start with:

  • references/stack.md

That establishes: base images, registry, build tool (Docker/BuildKit/Podman), CI integration, and locked conventions.

Success criteria: The project's container infrastructure choices are explicit before writing any Dockerfile or Compose config.

Step 1: Load only the relevant references

Use the routing table to pick reference files. Do not bulk-load the full reference tree.

TaskRead
Base images, registry, build conventions, CIreferences/stack.md
Writing or editing a Dockerfilereferences/dockerfile.md
Multi-stage builds, layer optimization, cachingreferences/multi-stage.md
docker-compose services, networking, volumesreferences/compose.md
.dockerignore, build context optimizationreferences/build-context.md
Health checks, readiness, startup probesreferences/health-checks.md
Security: non-root, read-only FS, capabilities, scanningreferences/security.md
Image size optimization, distroless, slim, alpinereferences/image-optimization.md
Registry: push, pull, tagging, ECR/GCR/GHCR/DockerHubreferences/registry.md
BuildKit features, cache mounts, secret mountsreferences/buildkit.md
CI/CD: GitHub Actions, GitLab CI, build+push pipelinesreferences/ci-cd.md
Debugging: logs, exec, inspect, networking issuesreferences/debugging.md
Language-specific: Node.js, Python, Go, Rust, Javareferences/language-patterns.md
Volumes, bind mounts, tmpfs, named volumesreferences/volumes.md
Networking: bridge, host, overlay, DNS, port mappingreferences/networking.md

Multiple tasks? Read multiple files. The references are self-contained.

Success criteria: Only the task-relevant Docker conventions are in play.

Step 2: Implement with the core Docker guardrails

Keep these rules active:

  • multi-stage builds: deps → build → production
  • .dockerignore excludes everything unnecessary from build context
  • pin base image tags — never :latest in production
  • non-root USER in the final stage
  • COPY only what's needed in each stage — not the entire repo
  • health checks on every long-running service
  • no secrets in ARG, ENV, or COPY — use BuildKit --mount=type=secret
  • combine RUN commands to minimize layers — but keep readability
  • order layers from least to most frequently changing (deps before code)

Success criteria: The container is small, secure, reproducible, and follows the project's conventions.

Step 3: Verify the build

Use the narrowest relevant verification:

  • docker build succeeds
  • image size is reasonable for the language/framework
  • container starts and health check passes
  • .dockerignore excludes the right files (docker build --dry-run or check context size)
  • no secrets visible in docker history or docker inspect

Success criteria: The image builds, runs, and passes basic health validation.

Guardrails

  • Do not inline the whole Docker handbook in SKILL.md.
  • Do not skip references/stack.md.
  • Do not use latest tags for base images in production Dockerfiles.
  • Do not COPY.. without a proper .dockerignore.
  • Do not run containers as root.
  • Do not put secrets in build args or env vars baked into images.
  • Do not add disable-model-invocation; this is a normal domain skill.

When To Load References

  • references/stack.md Always.
  • then only the task-relevant files under references/

Output Contract

Report:

  1. which Docker references were loaded
  2. the build pattern chosen (multi-stage, single, etc.)
  3. the change made
  4. the verification run (build success, image size, health check)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.49%
按下载量换算57

Claude

29.99%
按下载量换算52

Cursor

20.74%
按下载量换算36

Gemini CLI

10.38%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills