skill-link-check

Featured

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.

AI & Automation 185 stars 81 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 # 明确指定项目,避免依赖当前工作目录 python3 "$(dirname "$0")/check.py" --project-root /path/to/project # 只查一个作用域 python3 "$(dirname "$0")/check.py" --project-only python3 "$(dirname "$0")/check.py" --global-only # 输出稳定 JSON 证据;发现问题时仍返回 1 python3 "$(dirname "$0")/check.py" --json ``` ## 两种合法布局 两种模式都应通过: 1. **Parent symlink**:`.claude/skills` 本身指向 `....

Details

Author
yan-labs
Repository
yan-labs/yan-skills
Created
2 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

skill-audit

本リポジトリの Agent Skills(`.claude/skills/*/SKILL.md` + `.claude/commands/*.md`)を棚卸し監査する。トリガー衝突・死蔵・陳腐化(L-114 未追従含む)・肥大化・責務重複・欠落を観点別に検出し、description の発火精度を採点し、検出問題を Issue 化する。「Skill を棚卸しして」「スキル監査して」「/skill-audit」と依頼された時に使用する。個別スキルの中身の実装・修正は各スキル自身、ワークフロー健全性(PR/Issue 状態)の監査は workflow-health-check が担当するため、本スキルは Agent Skills 資産の構造監査に限定する。

0 Updated today
kai-kou
AI & Automation Listed

skill-matcher

Use this skill to find, verify, compare, install, or migrate Agent Skills across Codex, Claude Code, Cursor, OpenClaw, OpenCode, GitHub Copilot, WorkBuddy and other SKILL.md hosts. Trigger when users ask “find a skill for X”, “what skills are installed”, “search GitHub deeply”, “is this skill compatible or safe”, or “install/migrate this skill”. 支持“找个技能”“盘点本机 Skills”“全网或 GitHub 深挖”“检查兼容性、安全性”“安装或迁移技能”等中文请求。Discover and evaluate skills only; do not perform the target business task.

0 Updated 3 weeks ago
qmayxin
Code & Development Listed

skill-release-check

检查一个 Agent Skill 是否达到开源发布标准:SKILL.md frontmatter 是否合法可触发、是否跨 agent 可移植(无硬编码 home 路径)、是否健壮,以及隐私与开源合规(无密钥、无内部标识符、有 LICENSE)。当用户要发布/开源 skill、创建 skill 后想自检、检查 skill 是否对任意 agent 友好、审计 skill 是否可安全公开,或说“skill 就绪检查”“skill 发布前检查”“check skill readiness”时使用。也作为 push-to-github 发布 skill 前的强制门。

0 Updated 2 weeks ago
TongyiDai