做什么
创建优化 具有多级建筑、安保最佳做法和最低图像尺寸的多克集装箱
技能库 智客分类:安全测试 docker-containerization
创建优化 多阶段建筑、安全最佳做法和最小图像尺寸的多克容器。 在容器化应用时使用,创建多克文件,优化容器图像,或设置多克编译服务.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
创建优化 具有多级建筑、安保最佳做法和最低图像尺寸的多克集装箱
[#当-用时]
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Docker Containerization、Table of Contents、Overview、When to Use、Quick Start、Multi-stage build for Node.js application。
文件分析:除 SKILL.md 外,正文引用了 references/multi-stage-builds.md、references/optimization-techniques.md、references/security-best-practices.md、references/docker-compose-for-multi-container.md、references/dockerignore-file.md、references/python.md,属于带资源的技能包,这些文件按需再读。
Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes. Use when containerizing applications, creating Dockerfiles, optimizing container images, or setting up Docker Compose services.
Docker ContainerizationTable of ContentsOverviewWhen to UseQuick StartMulti-stage build for Node.js applicationStage 1: BuildStage 2: ProductionCopy only production dependencies and built filesSecurity: Run as non-root userReference GuidesBest Practices
来源分类:skills.sh agent-skill
namedocker-containerizationdescriptionreferences/multi-stage-builds.mdreferences/optimization-techniques.mdreferences/security-best-practices.mdreferences/docker-compose-for-multi-container.mdreferences/dockerignore-file.mdreferences/python.md以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。
具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「docker-containerization」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-cc7814f8763be614-%E9%9B%86%E8%A3%85%E7%AE%B1%E5%8C%96.html 请存为 .cursor/skills/docker-containerization/SKILL.md 或 .claude/skills/docker-containerization/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。 该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/aj-geddes/useful-ai-prompts 取完整目录,不要只建一个 SKILL.md。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/aj-geddes/useful-ai-prompts' --list
npx skills add 'https://github.com/aj-geddes/useful-ai-prompts' --skill 'docker-containerization'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
Build production-ready Docker containers following best practices for security, performance, and maintainability.
Minimal working example:
# Multi-stage build for Node.js application
# Stage 1: Build
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
# Stage 2: Production
FROM node:18-alpine
WORKDIR /app
# Copy only production dependencies and built files
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY package*.json ./
# Security: Run as non-root user
RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
USER nodejs
EXPOSE 3000
CMD ["node", "dist/index.js"]
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Multi-Stage Builds | Multi-Stage Builds | | Optimization Techniques | Optimization Techniques | | Security Best Practices | Security Best Practices, Environment Configuration | | Docker Compose for Multi-Container | Docker Compose for Multi-Container | | .dockerignore File | .dockerignore File | | Python | Python (Django/Flask), Java (Spring Boot), Go |
安全测试
人工智能特工的安全第一技能审查。 在安装来自 ClawdHub, GitHub 或其他来源的任何技能之前使用 。 检查红旗,许可范围,可疑图案.
安全测试
MoltGuard——由OpenGuardrails担任OpenClaw保安. 安装 MoltGuard 以保护你和你的人类免受迅速注射、数据过滤和恶意命令的影响。 资料来源:https://github.com/openguardrails/openguardrails/tre…
安全测试
用于审查安全漏洞代码,实施认证流,审计OWASP Top 10,配置CORS/CSP头,处理秘密,输入验证,SQL注射预防,XSS保护,或任何与安全相关的代码审查.
安全测试
安装任何AI代理技能前的安全审查协议. 红旗侦取入证盗取,疏通密码,放出. 风险分类:低/中/高/高。 编制结构化审查报告。 不先运行此功能, 绝不安装不信任的技能 .