Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to pin an agent skill to an exact version

说明与用途

使用内容哈希和 mdr.lock 将代理技能固定到特定版本,可确保确定性执行并跟踪更改。

问题

Agent skills can change frequently, causing runtime inconsistencies when an agent loads a skill by path and receives the latest file contents.

结果

By pinning skills to a content hash and using a lockfile, agents run deterministic skill versions, detect upstream changes, and can safely update after reviewing diffs.

工作流

  • Install the mdr CLI from https://markdownregistry.com/cli
  • Run mdr add owner/repo/skill@version to install a specific version and generate a lockfile
  • Use mdr outdated to list pinned skills whose SKILL.md changed
  • Run mdr diff owner/repo/skill to view changes between the pinned and latest versions
  • If updates are acceptable, run mdr update owner/repo/skill to overwrite with the new version
  • If local edits exist, back up the skill directory before updating and manually merge changes

证据

Pin a skill by a fingerprint of its exact contents, not just by where it lives.

来源

In the registry's own crawl, of 47,724 agent markdown files watched for at least 14 days, at least 19.9% changed on GitHub within 14 days of being collected

来源

mdr add owner/repo/skill@version installs that version's files from their source commit on GitHub and checks every file against its published fingerprint before writing anything

来源

mdr outdated anthropics/skills/skill-creator git:20260225.3d59511 to git:20260306.b0cbd3d audit A (2026-03-06) mdr diff anthropics/skills/skill-creator $? 2

来源

  • 记录日期: 2026-10-08T00:55:49.298Z