agentleFS
yli769227-jpgyli769227-jpg/agent-discipline/skills/check-versions/SKILL.md

check-versions

Skill1 starsChanged 6 months agoMITView on GitHub

Check the forge temperature before you cast. When touching a language feature, runtime behavior, or framework/SDK API, verify the actual installed version first, then read that version's docs, then write code. Triggers before using any concrete API (Node/Python/Go/Rust/any SDK), when you'd be trusting how-you-remember-it, or on version-sensitive errors. Never code from training-data version assumptions. 先测炉温再铸剑:用任何 API 前先查实际版本→查该版本文档→再写代码。禁止凭训练数据的版本假设直接写代码。

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. cboone/agent-harness-plugins★ 2same name
    2. ahelme/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

Files
SKILL.md

Check Versions / 先测炉温,再铸剑

The API you remember and the API that's installed are not the same API until you've checked. 你记得的 API 和实际装着的 API,在你查证之前不是同一个 API。

The discipline / 纪律

  1. Verify the version first — run the version-check command, confirm the actual runtime/library version. 先确认版本:执行版本检查命令,确认实际运行时/库版本。
  2. Then read the docs — confirm how the feature actually behaves in that version. 再查文档:用官方文档确认该版本下特性的实际行为。
  3. Then write code — built on the confirmed version and docs. 后写代码:基于已确认的版本和文档开发。

Forbidden: writing code that depends on a specific language feature based on a version assumption from training data. 绝对禁止: 基于训练数据里的版本假设,直接写依赖特定特性的代码。

When this triggers / 触发时机

  • About to use any concrete language / runtime / SDK / framework API.
  • You suspect "I remember it's written like this" but aren't sure.
  • A version-sensitive error (ESM/CJS, Python 3.x behavior diffs, deprecated Node APIs).
  • Porting a snippet across projects.

Done criterion (verifiable) / 完成判据(可验证)

✅ You pasted the actual version-check command and its output (e.g. node -v → v18.20.4) and cited the docs section/URL for that version — not just "I checked". ⚠️ You couldn't verify the version — say so, and mark the code as needing a version check. ❌ You wrote API-dependent code from memory with no version check. Stop and verify.

Worked examples / 实战反例

Real before/after cases for this discipline live in EXAMPLES.md — read them before you act. 本纪律的真实 before/after 反例见 EXAMPLES.md —— 动手前先对照。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.