跳到主内容
智客 ZICQ

技能库 智客分类:运维与云 docker-extend

Docker Extend

使用时:用户想用自定义工具来扩展多克,将多克环境个性化,或设置用户专用的多克定制. 触发器 : “ 扩展插件 ” , “ 扩展插件 ” , “ 添加工具到插件 ” , “ 定制插件 ” , “ 添加工具到容器 ” , “ 个性化插件设置 ” , “ 插件用户设置 ” , “ 在插件中安装工具 ” 。 是否: 互动设置 Dockerfile.user和docker-compose.override.yml 这样用户就可以在不影响维护者文件或将用户特定配置输入到git的情况下,在他们的Docker环境中添加个人工具.

278 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

使用时:用户想用自定义工具来扩展多克,将多克环境个性化,或设置用户专用的多克定制. 触发器 : “ 扩展插件 ” , “ 扩展插件 ” , “ 添加工具到插件 ” , “ 定制插件 ” , “ 添加工具到容器 ” , “ 个性化插件设置 ” , “ 插件用户设置 ” , “ 在插件中安装工具 ” 。 是否: 互动设置 Dockerfile.user和docker-compose.override.yml 这样用户就可以在不影响维护者文件或将用户特定配置输入到git的情况下,在他们的Docker环境中添加个人工具.

何时用

用户想用自定义工具来扩展多克,将多克环境个性化,或者设置用户特有的多克定制. 触发器 : “ 扩展插件 ” , “ 扩展插件 ” , “ 添加工具 ” , “ 定制插件 ” , “ 将工具添加到容器 ” , “ 个性化插件设置 ” , “ do

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Docker Extend、Step 1: Detect Context、Step 2: Check Current State、Step 3: Copy Example Files、Only if Dockerfile.user does not exist:、Only if docker-compose.override.yml does not exist:。 其中含规范建议的小节:分步指令、输入输出示例。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Use when: User wants to extend Docker with custom tools, personalize the Docker environment, or set up user-specific Docker customization. Triggers: 'extend docker', 'docker-extend', 'add tools to docker', 'customize docker', 'add my tools to the container', 'personalize docker setup', 'docker user setup', 'install tools in docker'. Does: Interactively sets up Dockerfile.user and docker-compose.override.yml so users can add personal tools to their Docker environment without affecting maintainer files or committing user-specific config to git.

Docker ExtendStep 1: Detect ContextStep 2: Check Current StateStep 3: Copy Example FilesOnly if Dockerfile.user does not exist:Only if docker-compose.override.yml does not exist:Only if deploy/Dockerfile.user does not exist:Only if deploy/docker-compose.override.yml does not exist:Step 4: Add ToolsStep 5: RebuildSummary

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
docker-extend
description
Use when: User wants to extend Docker with custom tools, personalize the Docker environment, or set up user-specific Docker customization. Triggers: 'extend docker', 'docker-extend', 'add tools to docker', 'customize docker', 'add my tools to the container', 'personalize docker setup', 'docker user setup', 'install tools in docker'. Does: Interactively sets up Dockerfile.user and docker-compose.override.yml so users can add personal tools to their Docker environment without affecting maintainer files or committing user-specific config to git.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「docker-extend」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-468b727cb6ee32cb-%E5%B5%8C%E5%85%A5%E6%89%A9%E5%B1%95.html
请存为 .cursor/skills/docker-extend/SKILL.md 或 .claude/skills/docker-extend/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/coleam00/archon' --list

npx skills add 'https://github.com/coleam00/archon' --skill 'docker-extend'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: docker-extend description: | Use when: User wants to extend Docker with custom tools, personalize the Docker environment, or set up user-specific Docker customization. Triggers: 'extend docker', 'docker-extend', 'add tools to docker', 'customize docker', 'add my tools to the container', 'personalize docker setup', 'docker user setup', 'install tools in docker'. Does: Interactively sets up Dockerfile.user and docker-compose.override.yml so users can add personal tools to their Docker environment without affecting maintainer files or committing user-specific config to git. argument-hint: '[optional: tools to install, e.g. "vim ripgrep jq"]' --- # Docker Extend Sets up personal Docker tool customization using the project's gitignored override pattern. Your `Dockerfile.user` and `docker-compose.override.yml` are yours — never committed to git. ## Step 1: Detect Context Determine if the user is in dev (source build) or deploy (GHCR) mode: !`if [ -f docker-compose.yml ] && grep -q 'build: \.' docker-compose.yml 2>/dev/null; then echo "DEV_MODE: Building from source (root docker-compose.yml)"; elif [ -f deploy/docker-compose.yml ]; then echo "DEPLOY_MODE: Using GHCR image (deploy/docker-compose.yml)"; else echo "UNKNOWN_MODE: No docker-compose.yml found in root or deploy/"; fi` **Decision:** - `DEV_MODE` → work with `Dockerfile.user` + `docker-compose.override.yml` (repo root) - `DEPLOY_MODE` → work with `deploy/Dockerfile.user` + `deploy/docker-compose.override.yml` - `UNKNOWN_MODE` → ask the user which directory their `docker-compose.yml` lives in before proceeding ## Step 2: Check Current State **DEV_MODE — check root files:** !`echo "=== Dockerfile.user ===" && (cat Dockerfile.user 2>/dev/null || echo "(not found — will create from example)") && echo "" && echo "=== docker-compose.override.yml ===" && (cat docker-compose.override.yml 2>/dev/null || echo "(not found — will create from example)")` **DEPLOY_MODE — check deploy/ files:** !`echo "=== deploy/Dockerfile.user ===" && (cat deploy/Dockerfile.user 2>/dev/null || echo "(not found — will create from example)") && echo "" && echo "=== deploy/docker-compose.override.yml ===" && (cat deploy/docker-compose.override.yml 2>/dev/null || echo "(not found — will create from example)")` **If both files already exist:** Skip to Step 4 (add tools). **If files are missing:** Proceed to Step 3 (copy from examples). **If example files are missing too:** Tell the user the project hasn't added the example files yet and to check with the maintainers or the docs. ## Step 3: Copy Example Files Run only the copy commands for whichever files are missing. Do NOT overwrite existing files. **DEV_MODE:** ```bash # Only if Dockerfile.user does not exist: cp Dockerfile.user.example Dockerfile.user # Only if docker-compose.override.yml does not exist: cp docker-compose.override.example.yml docker-compose.override.yml ``` **DEPLOY_MODE:** ```bash # Only if deploy/Dockerfile.user does not exist: cp deploy/Dockerfile.user.example deploy/Dockerfile.user # Only if deploy/docker-compose.override.yml does not exist: cp deploy/docker-compose.override.example.yml deploy/docker-compose.override.yml ``` After running the copy commands, confirm to the user which files were created. ## Step 4: Add Tools Parse `$ARGUMENTS` for tool names (space-separated, e.g., `vim ripgrep jq`). **If tools were specified:** Edit the appropriate `Dockerfile.user` to add (or uncomment) the `RUN apt-get install` block with the requested packages. Use the Edit tool — do not rewrite the entire file. The block to add/modify: ```dockerfile RUN apt-get update && apt-get install -y --no-install-recommends \ \ \ && rm -rf /var/lib/apt/lists/* ``` **If no tools were specified:** Show the user the file and ask which tools they want to add. Then edit the file accordingly. ## Step 5: Rebuild Show the user the rebuild command for their context. Do NOT run it automatically. **DEV_MODE:** ```bash docker compose build && docker compose up -d ``` **DEPLOY_MODE:** ```bash cd deploy && docker compose build && docker compose up -d ``` ## Summary Tell the user: 1. Which files were created (if any) 2. Which tools were added to `Dockerfile.user` (if any) 3. The rebuild command to run when ready 4. A reminder that `Dockerfile.user` and `docker-compose.override.yml` are gitignored — they're personal and won't be committed

相关技能

运维与云

Docker Essentials

用于容器管理,图像操作,调试的基本道克命令和工作流程.

运维与云

Find Skills

从开放的代理技能生态系统中发现并安装技能. 使用时:(1)用户问"我如何做X",X可能拥有现有技能,(2)用户说"为X找到技能"或"是否为X有技能",(3)用户问"你能否做X",X是专门能力,(4)用户想扩展代理能力,(5)用户想搜索工具,模板,或工作流程,(6)用户提到他们希望…

运维与云

Microsoft Foundry

构建,部署,评价,优化,微调,管理微软创始代理,模型,资源最终结束. 用法:铸造、azd ai代理、azd 提供/部署、托管代理脚手架/开发/运行/部署/拖放、即时代理创建、创建代理、更新代理、添加代理工具、援引代理、代理.yaml、评估代理、批量活化、连续活化、持续监测、代理C…

运维与云

Azure Deploy

执行已有.azure/部署计划.md和基础设施文件的ALREADY-PREPARED应用程序的Azure部署。 当用户向 CREATE 请求新应用程序时, 请不要使用此技能 。 这种技能运行了 azd上行, azd 部署, trarraform 应用, 和 az 部署命令带有内置…