Token导航 LogoToken导航TokenDH.com
运维和基础设施操作浏览器github未标认证来源可访问clear审计提醒

devcontainer-helper开发容器助手

Agent Skill

devcontainer-helper 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

416

周安装

17

GitHub Stars

2

下载量

135
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/gabeosx/agent-skills --skill devcontainer-helper

简介

devcontainer-helper 生成标准化的 devcontainer.json 配置文件,简化 VS Code 容器化开发流程。

  • 它根据语言、工具与扩展需求定制镜像,自动转发端口与挂载卷,提升环境搭建效率。
  • 适用于团队协作与云端开发统一,避免手动编辑 JSON 带来的语法错误与遗漏。
  • 使用前请明确所需运行时与依赖项,注意生成的配置可能包含非必要层,建议精简以减少体积。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

DevContainer Helper

This skill assists in creating and managing devcontainer.json files for consistent development environments.

Workflow

1. specific Requirements

Before generating the file, determine the user's needs:

  • Base Environment: Do they want a pre-built image (e.g., Ubuntu, Python, Node), a custom Dockerfile, or a docker-compose.yml setup?
  • Languages & Tools: What languages (Node.js, Python, Go, Rust, etc.) and tools (Git, CLI utilities) are needed?
  • Extensions: Are there specific VS Code extensions required?
  • Ports: What ports need to be forwarded?

2. Generate Configuration

Use the template in assets/devcontainer-template.json as a starting point.

For Image-based (Simplest): Use the image property. Add features for additional tools.

For Dockerfile: Use build.dockerfile property pointing to their Dockerfile.

For Docker Compose: Use dockerComposeFile and service properties.

3. Service Architecture Principles

  • Prefer Sidecars over In-Container Tools: For databases, caches, or message brokers, use dedicated services in docker-compose.yml rather than installing them via Dockerfile or features. This improves build times, resource isolation, and container startup performance.
  • Sidecars over Docker-in-Docker (DinD): When external services are needed for development/testing, prefer sidecar containers over DinD to reduce overhead and avoid the security complexities of privileged containers.

4. Add Features

Encourage using "Features" over manual Dockerfile commands for better maintainability and Dependabot support. Common features:

  • Node.js: ghcr.io/devcontainers/features/node:1 (Use versioned tags like version: "22" to enable automated updates).
  • Playwright: ghcr.io/devcontainers/features/playwright:1 (Crucial for installing OS-level browser dependencies).
  • pnpm: ghcr.io/devcontainers-contrib/features/pnpm:2.
  • Docker-in-Docker: ghcr.io/devcontainers/features/docker-in-docker:2.
  • Git: ghcr.io/devcontainers/features/git:1.

5. Performance Optimization: "Baking for Speed"

  • Strategy: Move global tool installations (e.g., npm install -g cli-tool) from postCreateCommand into a custom Dockerfile.
  • Benefit: This "bakes" the tools into the image layers, making daily container startup significantly faster as these tools are cached rather than re-installed.
  • Implementation: Reference the Dockerfile in docker-compose.yml or devcontainer.json.

6. Lifecycle Scripts vs. Features

  • Prefer Features for language runtimes and system tools (to get automated updates).
  • Use Lifecycle Scripts (postCreateCommand) only for local project setup like pnpm install or database migrations.
  • Permissions: Use specialized features or remoteUser context to handle volume permission issues instead of manual chown in scripts where possible.

7. Automation & Dependabot

  • Always recommend adding devcontainers to .github/dependabot.yml when using Features. This ensures the dev environment stays up-to-date automatically.

References

See references/cheatsheet.md for a list of common devcontainer.json properties and valid values.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Gemini CLI

30.74%
按下载量换算41

Codex

24.73%
按下载量换算33

Claude Code

17.03%
按下载量换算23

OpenCode

11.09%
按下载量换算15

Antigravity

8.46%
按下载量换算11

windsurf

3.65%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills