skill-link-check skillA
skill-link-check is agent-read markdown (skill) from yan-labs/yan-skills: Audit project and global .agents/skills and .claude/skills layouts. Verify that .agents/skills contains the real source and .claude/skills mirrors it through a parent or per-skill symlink. Use whenever a skill or slash command is missing, not loading, duplicated, inconsistent, or described as "skill 没生效", "skill 不一致", "为什么 skill 没识别到", "检查 skill 链接", ghost skill, broken skill link, or missing skill. Also use when a skill exists in one directory but not the other..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Skill Link Check ## 安装与更新 来源:[Skills.sh](https://skills.sh/yan-labs/yan-skills) ```bash # 首次全局安装,或更新失败时重新安装 npx skills add yan-labs/yan-skills --skill skill-link-check -g -y # 更新已安装的全局 Skill npx skills update skill-link-check -g -y ``` 若使用项目级安装,去掉安装命令中的 `-g`;项目级更新使用 `npx skills update skill-link-check -p -y`。 本 Skill 只审计目录布局,不自动移动、删除或覆盖文件: - `.agents/skills/<name>/` 保存真实源文件。 - `.claude/skills` 要么整体链接到 `.agents/skills`,要么通过逐个子项链接镜像它。 最常见的漂移是 Skill 被直接创建成 `.claude/skills/<name>/` 真实目录,却没有进入 `.agents/skills/`。它看似已安装,实际不会随正常备份、同步或迁移流程保存。 ## Goal Contract 在 `/goal`、autopilot 或其他持续执行器中,本 Skill 的完成条件是“审计证据完整”,不是“退出码必须为 0”。发现问题是有效结果,不能为了让检查通过而擅自修复。 ```xml <goal>审计所有适用作用域,判定 Skill 源目录与运行时镜像是否一致,并为每个问题提供可复核证据和修复命令。</goal> <gate>检查脚本已从用户目标项目运行;每个适用作用域都有布局模式、问题分类和退出状态。</gate> <done-when>无问题时明确报告 clean;有问题时完整列出数量、类别、路径和建议命令;未自动修改任何被审计目录。</done-when> ``` 因此: - 退出码 `0`:审计完成且没有发现问题。 - 退出码 `1`:审计完成且发现问题,不代表 Skill 执行失败。 - Python traceback、参数错误或无法读取目标:才属于执行失败,需要修复后重跑。 ## 运行方式 ```bash python3 "$(dirname "$0")/check.py" ``` 默认审计: - **Project**:当前目录下的 `.agents/skills` 与 `.claude/skills`。 - **Global**:`$HOME` 下的同名目录。 自动化或 checker 可使用: ```bash # 明确指定项目,避免依赖当前工作目录 …
Read the whole file at its exact version.
How to install
mdr add yan-labs/yan-skills/skill-link-check@git:20260801.45daefemdr add yan-labs/yan-skills/skill-link-check@sha256:914ae8dc9f82ffcePin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_bagvajcyfwc7hs3i)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260801.45daefe latest | 2026-08-01 | 45daefe | 4,404 B | A | view · diff |
| git:20260705.6abb68b | 2026-07-05 | 6abb68b | 3,568 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4404 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
yan-labs/yan-skills · 203 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bagvajcyfwc7hs3i GET https://markdownregistry.com/api/v1/resolve?ref=yan-labs/yan-skills/skill-link-check GET https://markdownregistry.com/api/v1/blob/914ae8dc9f82ffceec025757c92270566d45b53df9c06d3bed8969488d247d89
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.