diff --git a/README.md b/README.md index ec12490..d5da41b 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,14 @@ npx skills add gitea@livebook:images/skills.git 只安装指定 skill: ```bash -npx skills add gitea@livebook:images/skills.git --skill runtime-image-select +npx skills add gitea@livebook:images/skills.git --skill runtime-image ``` ## Skills 列表 | Skill | 说明 | | --- | --- | -| [runtime-image-select](skills/runtime-image-select/SKILL.md) | 探测项目技术栈,按 runtime-base 镜像矩阵选型并生成/修正 Dockerfile | +| [runtime-image](skills/runtime-image/SKILL.md) | 探测项目技术栈,按 runtime-base 镜像矩阵选型并生成/修正 Dockerfile | ## 目录结构 @@ -28,7 +28,7 @@ npx skills add gitea@livebook:images/skills.git --skill runtime-image-select ``` skills/ -└── runtime-image-select/ +└── runtime-image/ ├── SKILL.md # skill 主体(必需) ├── references/ # 补充参考文档 └── scripts/ # 辅助脚本 diff --git a/skills/runtime-image-select/SKILL.md b/skills/runtime-image/SKILL.md similarity index 99% rename from skills/runtime-image-select/SKILL.md rename to skills/runtime-image/SKILL.md index 3159d54..bd610a9 100644 --- a/skills/runtime-image-select/SKILL.md +++ b/skills/runtime-image/SKILL.md @@ -1,9 +1,9 @@ --- -name: runtime-image-select +name: runtime-image description: 在具体项目中探测技术栈并按 runtime-base 镜像矩阵选择正确的基础运行时镜像、生成/修正项目 Dockerfile;也能对已存在的 Dockerfile 做评估审计并修正。凡用户要求「写 Dockerfile / 容器化这个项目 / 选基础镜像 / FROM 哪个镜像 / 帮我打包成镜像 / 这个项目部署成容器 / 评估一下这个 Dockerfile / 帮我看看 Dockerfile 有没有问题 / 优化 / 评审 / 精简镜像」,或出现 容器起不来 / exec format error / 镜像太大 / pip 安装编译失败 / latest 镜像行为变了 等症状,或提到 runtime-node / runtime-pm2 / runtime-base / livebook:8418 / code.innev.cn / 镜像源 时,务必使用本 skill——即使用户没说「运行时镜像」四个字。Use whenever the user needs to pick a base runtime image (runtime- matrix), write a project Dockerfile, or audit/fix an existing Dockerfile. 边界:构建/推送业务镜像归项目 CI 或 xgent-image-push;修改 runtime 镜像本身(加镜像/改版本)归 runtime-base 仓库维护,不用本 skill。 --- -# runtime-image-select — 按项目语言与环境选运行时镜像 +# runtime-image — 按项目语言与环境选运行时镜像 依据 runtime-base 仓库的镜像矩阵(10 个镜像:Linux 7 个 Alpine 系 + Wine 3 个),在项目里完成「探测栈 → 选型 → 写 Dockerfile → 真机验证」。两种工作模式: diff --git a/skills/runtime-image-select/references/runtime-matrix.md b/skills/runtime-image/references/runtime-matrix.md similarity index 100% rename from skills/runtime-image-select/references/runtime-matrix.md rename to skills/runtime-image/references/runtime-matrix.md diff --git a/skills/runtime-image-select/scripts/detect-registry.sh b/skills/runtime-image/scripts/detect-registry.sh similarity index 100% rename from skills/runtime-image-select/scripts/detect-registry.sh rename to skills/runtime-image/scripts/detect-registry.sh