xiao0916/lm-skills · Archived

docker-first-runner

引导 AI 使用 Docker 优?

First seen Mar 23, 2026

Installation

$ npx skills add xiao0916/lm-skills --skill docker-first-runner

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from xiao0916/lm-skills · top by installs.

npx skills add xiao0916/lm-skills

Browse all from xiao0916/lm-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,528 B
  • docs SUMMARY.md 255 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Docker 优先执行器

用于在运行脚本时决定使用 Docker 容器化还是本地执行的指南。

何时使用

  • 运行/执行 Python 脚本
  • 运行/执行 Node.js 脚本
  • 运行/执行任何代码文件
  • 执行需要特定运行时版本的命令

快速开始

# 1. 检测环境
node scripts/detect-env.js

# 2. 如需要,比较版本
node scripts/version-compare.js "$(本地版本)" "$(所需版本)"

# 3. 使用选定的方法执行

工作流程

  1. 使用 scripts/detect-env.js 检测环境

``bash node scripts/detect-env.js ``

  1. 解析 JSON 输出 - 脚本返回关于可用运行时的结构化数据
  1. 选择执行方式

- 如果 docker.usable 为 true → 使用 Docker - 如果 Docker 不可用 → 使用 scripts/version-compare.js 检查本地版本 - 根据比较结果构建合适的命令

  1. 使用选定的方法执行

参考文件

文件 用途
scripts/detect-env.js 环境检测 - 检查 Docker 和本地运行时
scripts/version-compare.js 版本比较工具
references/language-matrix.md 各语言的版本要求
references/strategy-guide.md 详细的决策逻辑和边界情况