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 從公開儲存庫中收錄這些內容。

檢舉或申請下架