env-check

GitHub

检查系统是否满足 Docker & K8s 游戏运行环境要求,验证 Docker、kubectl 等工具及资源可用性。当用户询问环境配置、前置条件或遇到环境问题时触发。

.claude/skills/env-check/SKILL.md ericboy0224/learn-docker-and-k8s

触发场景

用户询问游戏前置依赖或环境要求 用户报告环境配置问题或启动失败

安装

npx skills add ericboy0224/learn-docker-and-k8s --skill env-check -g -y
更多选项

非标准路径

npx skills add https://github.com/ericboy0224/learn-docker-and-k8s/tree/main/.claude/skills/env-check -g -y

不安装直接使用

npx skills use ericboy0224/learn-docker-and-k8s@env-check

指定 Agent (Claude Code)

npx skills add ericboy0224/learn-docker-and-k8s --skill env-check -a claude-code -g -y

安装 repo 全部 skill

npx skills add ericboy0224/learn-docker-and-k8s --all -g -y

预览 repo 内 skill

npx skills add ericboy0224/learn-docker-and-k8s --list

SKILL.md

Frontmatter
{
    "name": "env-check",
    "description": "Check if the system is ready for the Learn Docker & K8s game. Verifies Docker, Docker Compose, kubectl, kind, disk space, and port availability. Use when the user asks about requirements, setup, or environment issues.",
    "argument-hint": "[--full]"
}

Environment Check

Run the environment check script and report results to the player in a friendly way:

bash engine/environment-check.sh

After the check:

All Passed

Tell the player they're all set. If this is during game start, continue to the game.

Some Warnings

Explain which optional tools are missing and when they'll need them:

  • kubectl + kind: "You won't need these until Chapters 6-7 (Kubernetes). You can install them later!"
  • curl: "Some challenge verifications use curl. Most things still work without it."

Failures

Guide the player to fix each failure:

If $ARGUMENTS contains "--full", also check:

  • Docker can pull images: docker pull hello-world
  • Docker can run containers: docker run --rm hello-world
  • Docker networking works: docker network create learn-test && docker network rm learn-test

Be encouraging — don't make missing optional tools feel like failures.

版本历史

  • da325b6 当前 2026-07-25 07:24

同 Skill 集合

.claude/skills/cleanup/SKILL.md
.claude/skills/engage-check/SKILL.md
.claude/skills/hint/SKILL.md
.claude/skills/next/SKILL.md
.claude/skills/play/SKILL.md
.claude/skills/progress/SKILL.md
.claude/skills/skip-to/SKILL.md
.claude/skills/verify/SKILL.md

元信息

文件数
0
版本
da325b6
Hash
ddf32898
收录时间
2026-07-25 07:24

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-21 08:20
浙ICP备14020137号-1