AgentSkillsCN

creating-devcontainers

创建并审查符合组织标准的 DevContainer 配置。适用于用户要求设置开发容器、配置开发环境、创建 devcontainer.json 文件、添加生命周期钩子、审查现有 DevContainer 是否合规,或提升容器安全性时使用。涵盖基础镜像、功能模块、扩展插件、生命周期钩子以及安全加固措施。

SKILL.md
--- frontmatter
name: creating-devcontainers
description: 'Create and review DevContainer configurations that follow organisational standards. Use when a user asks to set up a dev container, configure a development environment, create a devcontainer.json, add lifecycle hooks, review an existing DevContainer for compliance, or improve container security. Covers base images, features, extensions, lifecycle hooks, and security hardening.'
license: MIT
compatibility: 'VS Code with Dev Containers extension (ms-vscode-remote.remote-containers)'
allowed-tools: Bash

DevContainer Skill

Overview

This skill provides capabilities for creating and reviewing DevContainer configurations that comply with organisational standards.

Capabilities

CapabilityActionDescription
Createactions/create.mdGenerate a standards-compliant DevContainer configuration
Reviewactions/review.mdAnalyse an existing DevContainer for compliance and improvements

Standards

This skill bundles the following standards in standards/:

StandardFileDescription
Corecore.mdBase image, lifecycle hooks, container configuration, file structure
Extensionsextensions.mdVS Code extension requirements and guidelines
Featuresfeatures.mdDevContainer features configuration and versioning
Securitysecurity.mdSecurity requirements and risk guidance
Checklistchecklist.mdConsolidated compliance checklist
Templatetemplate.jsonBase configuration template

External Standards

This skill references shared language standards from ../../standards/languages/. See ../../standards/languages/standards.index.md for the full index of supported languages and standard categories. Load the relevant language standards based on detected or specified project technologies.

Usage

  1. Load this skill manifest
  2. Identify the required capability (create or review)
  3. Load the bundled standards from standards/
  4. Load relevant language standards from ../../standards/languages/<language>/ (especially development-environment.md)
  5. Execute the action following actions/<capability>.md