Discipline check versions
Skill yli769227-jpg/awesome-claude-code-cn/skills/discipline-check-versions
Karpathy 教你 LLM 会犯什么错。我教你 LLM 在我这犯了什么错、怎么治。8 条铁律 + 真实反例 + 中文 Claude Code 实战包
npx -y skills add yli769227-jpg/awesome-claude-code-cn --skill discipline-check-versionsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
先测炉温再铸剑 —— 涉及语言特性、运行时行为、框架 API 时,先查实际版本,再查文档,再写代码。触发: 即将使用任何具体语言特性 / 运行时 API / 框架方法(Node/Python/Go/Rust/任何 SDK)、即将判定"这个 API 应该这么用"、即将怀疑训练数据里记得的写法时。禁止基于 AI 训练数据的版本假设直接写代码。
SKILL.md
1.2 KB, as published. Nobody here has run it
四、先测炉温,再铸剑(版本与文档)
涉及语言特性、运行时行为、框架 API 的开发或调试时:
- 先确认版本:执行版本检查命令,确认实际运行时版本。
- 再查文档:用官方文档确认该版本下特性的实际行为。
- 后写代码:基于已确认的版本和文档进行开发。
绝对禁止:基于 AI 训练数据中的版本假设直接编写依赖特定语言特性的代码。
加载时机
- 即将使用任何具体语言 / 运行时 / SDK / 框架的 API
- 怀疑"我记得这样写"但不确定
- 用户报错涉及版本相关行为(如 ESM/CJS、Python 3.x 行为差、Node API 弃用)
- 跨项目迁移代码片段
配套
具体反面例子 / 正面例子见 EXAMPLES.md。