Token导航 LogoToken导航

Agent Skill · 研究检索

container-development(容器开发)

container-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

container-development 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 39,317。

总安装 1,434周安装 58GitHub Stars 28下载 450核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill container-development

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Container Development 提供安全优先的容器化开发专业知识。聚焦精简镜像、12-factor 应用、多阶段构建与语言特定优化技巧。推荐使用 scratch、distroless 或 Alpine 变体减少攻击面与体积。适合构建轻量、可审计且符合合规要求的容器化服务。

container-development 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/container-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/laurigates/claude-plugins --skill container-de…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

container-development 怎么安装?

在终端执行 npx skills add https://github.com/laurigates/claude-plugins --skill container-development。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

container-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

container-development 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

container-development 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

container-development 用的人多吗?

公开数据是累计安装 1,434 次,近一周安装 58 次,下载 450 次,GitHub 28 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

container-development 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
container-development

容器开发 · 本页

1,43428接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Container Development

Expert knowledge for containerization and orchestration with focus on security-first, lean container images and 12-factor app methodology.

When to Use This Skill

Use this skill when...Use a language-specific sibling (go-containers, nodejs-containers, python-containers) instead when...
Writing or optimizing language-agnostic DockerfilesOptimizing Go static binaries, Node.js Alpine builds, or Python slim images
Authoring multi-stage build patterns or 12-factor configurationThe image-size goal is dominated by language runtime choices (scratch, distroless, musl/glibc)
Hardening containers (non-root, minimal base, secrets)Running Skaffold sync (skaffold-filesync) or OrbStack networking (skaffold-orbstack)
Composing services with Docker ComposeThe work is purely a Skaffold pre-deploy test (skaffold-testing)

Security Philosophy (Non-Negotiable)

Non-Root is MANDATORY: ALL production containers MUST run as non-root users. This is not optional.

Minimal Base Images: Use Alpine (~5MB) for Node.js/Go/Rust. Use slim (~50MB) for Python (musl compatibility issues with Alpine).

Multi-Stage Builds Required: Separate build and runtime environments. Build tools should NOT be in production images.

Core Expertise

Container Image Construction

  • Dockerfile/Containerfile Authoring: Clear, efficient, and maintainable container build instructions
  • Multi-Stage Builds: Creating minimal, production-ready images
  • Image Optimization: Reducing image size, minimizing layer count, optimizing build cache
  • Security Hardening: Non-root users, minimal base images, vulnerability scanning

Container Orchestration

  • Service Architecture: Microservices with proper service discovery
  • Resource Management: CPU/memory limits, auto-scaling policies, resource quotas
  • Health & Monitoring: Health checks, readiness probes, observability patterns
  • Configuration Management: Environment variables, secrets, configuration management

Key Capabilities

  • 12-Factor Adherence: Ensures containerized applications follow 12-factor principles, especially configuration and statelessness
  • Health & Reliability: Implements proper health checks, readiness probes, and restart policies
  • Skaffold Workflows: Structures containerized applications for efficient development loops
  • Orchestration Patterns: Designs service meshes, load balancing, and container communication
  • Performance Tuning: Optimizes container resource usage, startup times, and runtime performance

Image Crafting Process

  1. Analyze: Understand application dependencies and build process
  2. Structure: Design multi-stage Dockerfile, separating build-time from runtime needs
  3. Ignore: Create comprehensive .dockerignore file
  4. Build & Scan: Build image and scan for vulnerabilities
  5. Refine: Iterate to optimize layer caching, reduce size, address security
  6. Validate: Ensure image runs correctly and adheres to 12-factor principles

Best Practices

Core Optimization Principles

1. Multi-Stage Builds (MANDATORY):

  • Separate build-time dependencies from runtime
  • Keep build tools out of production images
  • Typical reduction: 60-90% smaller final images

2. Minimal Base Images:

  • Start with the smallest base that works
  • Prefer Alpine for most languages (except Python)
  • Consider distroless for maximum security

3. Non-Root Users (MANDATORY):

  • Always create and use non-root user
  • Set UID/GID explicitly (e.g., 1001)
  • Security compliance requirement

4..dockerignore (MANDATORY):

  • Exclude .git, node_modules, __pycache__
  • Prevent secrets and dev files from entering image
  • Reduces build context by 90-98%

5. Layer Optimization:

  • Copy dependency manifests separately from source
  • Put frequently changing layers last
  • Combine related RUN commands with &&

Version Checking

CRITICAL: Before using base images, verify latest versions:

Use WebSearch or WebFetch to verify current versions.

Language-Specific Optimization

For detailed language-specific optimization patterns, see the dedicated skills:

LanguageSkillKey OptimizationTypical Reduction
Gogo-containersStatic binaries, scratch/distroless846MB → 2.5MB (99.7%)
Node.jsnodejs-containersAlpine, multi-stage, npm/yarn/pnpm900MB → 100MB (89%)
Pythonpython-containersSlim (NOT Alpine), uv, venv1GB → 100MB (90%)

Quick Base Image Guide

Choose the right base image:

  • Go: scratch or distroless/static (2-5MB)
  • Node.js: node:XX-alpine (50-150MB)
  • Python: python:XX-slim (80-120MB) - Never use Alpine for Python!
  • Nginx: nginx:XX-alpine (20-40MB)
  • Static files: scratch or nginx:alpine (minimal)

Multi-Stage Build Template

# Build stage - includes all build tools
FROM <language>:<version> AS builder
WORKDIR /app

# Copy dependency manifests first (better caching)
COPY package.json package-lock.json ./  # or go.mod, requirements.txt, etc.

# Install dependencies
RUN <install-command>

# Copy source code
COPY . .

# Build application
RUN <build-command>

# Runtime stage - minimal
FROM <minimal-base>
WORKDIR /app

# Create non-root user
RUN addgroup --gid 1001 appgroup && \
    adduser --uid 1001 --gid 1001 --disabled-password appuser

# Copy only what's needed from builder
COPY --from=builder --chown=appuser:appuser /app/dist ./dist

USER appuser
EXPOSE <port>

HEALTHCHECK --interval=30s CMD <health-check-command>

CMD [<start-command>]

Security Requirements (Mandatory)

  • Non-root user: REQUIRED - never run as root in production
  • Minimal base images: Choose smallest viable base

- Typical CVE reduction: 50-100% (full base: 50-70 CVEs → minimal: 0-12 CVEs) - No shell = no shell injection attacks - No package manager = no supply chain attacks

  • Multi-stage builds: REQUIRED - keep build tools out of runtime
  • HEALTHCHECK: REQUIRED for Kubernetes liveness/readiness probes
  • Vulnerability scanning: Use Trivy, Grype, or Docker Scout in CI
  • Version pinning: Always use specific tags (e.g., node:20.10-alpine), never latest
  • .dockerignore: REQUIRED - prevents secrets,.env,.git from entering image

Typical Impact of Full Optimization:

  • Image size: 85-99% reduction
  • Security: 70-100% fewer CVEs
  • Pull time: 80-98% faster
  • Build time: 40-60% faster (with proper caching)
  • Memory usage: 60-80% lower
  • Storage costs: 90-99% reduction

12-Factor App Principles

  • Configuration via environment variables
  • Stateless processes
  • Explicit dependencies
  • Port binding for services
  • Graceful shutdown handling

Container Labels (OCI Annotations)

Container labels provide metadata for image discovery, linking, and documentation. GitHub Container Registry (GHCR) specifically supports OCI annotations to link images to repositories and display descriptions.

Required Labels for GHCR

LabelPurposeExample
org.opencontainers.image.sourceLinks image to repository (enables GHCR features)https://github.com/owner/repo
org.opencontainers.image.descriptionPackage description (max 512 chars)Production API server
org.opencontainers.image.licensesSPDX license identifier (max 256 chars)MIT, Apache-2.0

Recommended Labels

LabelPurposeExample
org.opencontainers.image.versionSemantic version1.2.3
org.opencontainers.image.revisionGit commit SHAabc1234
org.opencontainers.image.createdBuild timestamp (RFC 3339)2025-01-19T12:00:00Z
org.opencontainers.image.titleHuman-readable nameMy Application
org.opencontainers.image.vendorOrganization nameForum Virium Helsinki
org.opencontainers.image.urlProject homepagehttps://example.com
org.opencontainers.image.documentationDocumentation URLhttps://docs.example.com

Adding Labels in Dockerfile

# Static labels (set at build time)
LABEL org.opencontainers.image.source="https://github.com/owner/repo" \
      org.opencontainers.image.description="Production API server" \
      org.opencontainers.image.licenses="MIT" \
      org.opencontainers.image.vendor="Forum Virium Helsinki"

# Dynamic labels (via build args)
ARG VERSION=dev
ARG BUILD_DATE
ARG VCS_REF

LABEL org.opencontainers.image.version="${VERSION}" \
      org.opencontainers.image.created="${BUILD_DATE}" \
      org.opencontainers.image.revision="${VCS_REF}"

Adding Labels at Build Time

docker build \
  --label "org.opencontainers.image.source=https://github.com/owner/repo" \
  --label "org.opencontainers.image.description=My container image" \
  --label "org.opencontainers.image.licenses=MIT" \
  --build-arg VERSION=1.2.3 \
  --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --build-arg VCS_REF=$(git rev-parse --short HEAD) \
  -t myapp:1.2.3 .

GitHub Actions with docker/metadata-action

The docker/metadata-action automatically generates OCI labels from repository metadata:

- id: meta
  uses: docker/metadata-action@v5
  with:
    images: ghcr.io/${{ github.repository }}
    labels: |
      org.opencontainers.image.title=My Application
      org.opencontainers.image.description=Production API server
      org.opencontainers.image.vendor=Forum Virium Helsinki

- uses: docker/build-push-action@v6
  with:
    labels: ${{ steps.meta.outputs.labels }}

Auto-generated labels by metadata-action:

  • org.opencontainers.image.source (from repository URL)
  • org.opencontainers.image.revision (from commit SHA)
  • org.opencontainers.image.created (build timestamp)
  • org.opencontainers.image.version (from tags/refs)

Skaffold Preference

  • Favor Skaffold over Docker Compose for local development
  • Continuous development loop with hot reload
  • Production-like local environment

Agentic Optimizations

When building and testing containers, use these optimizations for faster feedback:

ContextCommandPurpose
Quick buildDOCKER_BUILDKIT=1 docker build --progress=plain -t app.BuildKit with plain output
Build with cachedocker build --cache-from app:latest -t app:new.Reuse layers from previous builds
Security scan`docker scout cves app:latest \head -50`Quick vulnerability check
Size analysisdocker images app --format "{{.Size}}"Check image size
Layer inspectiondocker history app:latest --human --no-truncAnalyze layer sizes
Build without cachedocker build --no-cache --progress=plain -t app.Force clean build
Test containerdocker run --rm -it app:latest /bin/shInteractive testing
Quick health checkdocker run --rm app:latest timeout 5 /healthVerify startup

Build optimization flags:

  • --target=<stage>: Build specific stage only (faster iteration)
  • --build-arg BUILDKIT_INLINE_CACHE=1: Enable inline cache
  • --secret id=key,src=file: Mount secrets without including in image

For detailed Dockerfile optimization techniques, orchestration patterns, security hardening, and Skaffold configuration, see REFERENCE.md.

Related Skills

Language-Specific Container Optimization:

  • go-containers - Go static binaries, scratch/distroless (846MB → 2.5MB)
  • nodejs-containers - Node.js Alpine patterns, npm/yarn/pnpm (900MB → 100MB)
  • python-containers - Python slim (NOT Alpine), uv/poetry (1GB → 100MB)

Related Commands

  • /configure:container - Comprehensive container infrastructure validation
  • /configure:dockerfile - Dockerfile-specific configuration
  • /configure:workflows - GitHub Actions including container builds
  • /configure:skaffold - Kubernetes development configuration

平台分布

Codex

35.97%
按下载量换算162

Claude

29.36%
按下载量换算132

Cursor

17.1%
按下载量换算77

Gemini CLI

7.71%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills