본문으로 건너뛰기
cccskills
무료GitHub에 공개

devcontainer

Wire up DevContainers / GitHub Codespaces — `devcontainer.json`, container images, secrets, VS Code features, port forwarding. NOT for tuning Copilot itself (use `copilot-config`).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHubDocker
설치 방법 보기

포함된 파일(1)

  • SKILL.md4.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

devcontainer

When to use

Use this skill when working with DevContainer configuration, GitHub Codespaces setup, or development environment standardization.

Do NOT use when:

  • Local Docker setup without Codespaces (use docker skill)
  • Production deployment (use aws-infrastructure skill)

Procedure: Modify DevContainer

  1. Gather context — read .devcontainer/devcontainer.json, check .devcontainer/ for env files and docs, check agents/overrides/skills/devcontainer.md for project-specific overrides.
  2. Identify change type — classify: image change, feature addition, secret addition, extension change, or env var change.
  3. Make the change — edit devcontainer.json (or related files). Follow conventions below for secrets, features, and environment variables.
  4. Build and verify — run devcontainer build to confirm the container builds. Check that extensions load and ports forward correctly.
  5. Document — if adding a new secret or dependency, update the onboarding docs in .devcontainer/.

Architecture

Custom image

DevContainers typically use a pre-built custom image hosted on a container registry (GHCR, ECR, Docker Hub). Read devcontainer.json for the image URL.

The image should include:

  • Language runtime (PHP, Node.js, Python, etc.)
  • Package managers (Composer, npm, etc.)
  • Common development tools

Features (installed on top of the image)

Common features:

FeaturePurpose
gitGit version control
github-cliGitHub CLI (gh) for API access
docker-in-dockerRun Docker inside the DevContainer

Secrets management

Secrets can be managed via:

  • File mounts: .devcontainer/.secrets/<NAME> → /run/secrets/<NAME>
  • GitHub Codespaces secrets: configured in the repository settings
  • Environment variables: in .devcontainer/devcontainer.env

Read devcontainer.json for the actual secret definitions and requirements.

Workspace

  • Workspace folder: typically /workspace or /workspaces/{repo-name}
  • Mount type: bind mount from local workspace
  • Container name and hostname: defined in devcontainer.json

IDE integration

  • VS Code Live Share for collaborative development
  • IDE extensions can be pre-configured in devcontainer.json

Conventions

Adding new secrets

  1. Add the secret definition to devcontainer.json → secrets section.
  2. Add a bind mount from .devcontainer/.secrets/<NAME> to /run/secrets/<NAME>.
  3. Document the secret with description and documentationUrl.
  4. Mark as required or optional.

Modifying the base image

  • If the base image is maintained in a separate repository, do NOT change the image tag without coordination.
  • Prefer adding features over modifying the base image.

Environment variables

  • Runtime env vars go in .devcontainer/devcontainer.env.
  • Secrets go in .devcontainer/.secrets/ (gitignored).
  • Do NOT hardcode secrets in devcontainer.json.

Output format

  1. Updated devcontainer.json or related configuration files
  2. Summary of changes and rebuild requirements

Auto-trigger keywords

  • DevContainer
  • Codespaces
  • dev environment
  • container setup

Validate

  • Verify the DevContainer builds successfully (devcontainer build).
  • Confirm all required extensions and features are installed.
  • Check that port forwarding and volume mounts work as expected.

Gotcha

  • DevContainer rebuilds are slow — test configuration changes incrementally, not all at once.
  • Secrets in devcontainer.json are visible in version control — use Codespaces secrets instead.
  • Extensions in devcontainer.json install on EVERY rebuild — keep the list short.

Do NOT

  • Do NOT commit secret files — they should be gitignored.
  • Do NOT change the workspace mount path without updating all related configs.
  • Do NOT remove required secrets without checking which services depend on them.
  • Do NOT switch base images without team approval.

Related

  • Skill: docker — Docker setup, multi-stage Dockerfile, compose services
  • Skill: traefik — local reverse proxy with real domains and HTTPS
  • Rule: docker-commands.md — commands run inside Docker

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

event4u-app/agent-config122026년 10월 19일 업데이트

event4u-app의 스킬 모두 보기

이 스킬의 문제 신고