Validate Skills

作者 callstackincubator61e6e7dfdf3aMIT1.6K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

仅含说明AI & Agents
AI 生成的概览

依据 agentskills.io 规范与 Claude Code 最佳实践校验技能目录,并输出通过/失败问题报告。

功能
该技能提供一份检查清单,用于审查仓库中的技能目录。它核对规范符合项,如名称格式、名称与目录是否一致、描述长度及可选字段,以及最佳实践项,如描述写法、正文长度、单层加载、Markdown 链接、冗余与简洁性。最终产出验证报告,按技能逐条列出各规则的通过或失败结果。
适用场景
适用于审查或维护一批技能、需要统一做合规与质量检查的场景。也适合在发布或合并前对技能目录进行提交前或评审阶段的审计。
运行要求
仅为说明性内容,不附带脚本。它假定技能目录位于 skills/ 下,并引用 agentskills.io 规范与 Claude Code 最佳实践文档。示例命令使用 fd 工具,查阅所链接文档可能需要网络访问。

Validate Skills

Validate all skills in skills/ against the agentskills.io spec and Claude Code best practices.

Validation Checklist

For each skill directory, verify:

Spec Compliance (agentskills.io)

CheckRule
name format1-64 chars, lowercase alphanumeric + hyphens, no leading/trailing/consecutive hyphens
name matches directoryDirectory name must equal name field
description length1-1024 characters, non-empty
Optional fields validlicense, metadata, compatibility if present

Best Practices (Claude Code)

CheckRule
Description formatThird person, describes what + when to use
Body lengthUnder 500 lines
Loading is one-level deepSKILL.md is the only progressive-disclosure entry point: every reference file must be reachable from SKILL.md. References may cross-link each other for navigation (see note below).
Links are markdownUse [text](path) not bare filenames
No redundancyDon't repeat description in body
ConciseOnly add context Claude doesn't already have

One-level-deep vs. cross-linking. The one-level-deep rule targets progressive-disclosure loading chains — a reference that can only be discovered by loading another reference first (SKILL.md → a.md → b.md, where b.md is not linked from SKILL.md). That is a defect: it hides content from the loader.

It does not forbid navigational cross-links. Per AGENTS.md, reference files end with a "Related Skills" footer linking sibling references, and this is required. A cross-link is fine as long as both endpoints are also reachable directly from SKILL.md. Only flag a reference that is reachable exclusively through another reference.

How to Run

  1. Find all skill directories:

    bash
    fd -t d -d 1 . skills/
  2. For each skill, read SKILL.md and check against the rules above

  3. Report issues in this format:

    ## Validation Results
    ### skills/example-skill- [PASS] name format valid- [FAIL] name "example" doesn't match directory "example-skill"- [PASS] description length OK (156 chars)

References

来源与署名

来源:callstackincubator/agent-skills位于.claude/skills/validate-skills提交61e6e7d

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架