AGENT SKILL

skill-sync

Validates skill metadata (scope, auto_invoke) across all skill sources. Trigger: When adding or modifying skills, or to troubleshoot missing metadata.

License 许可
Apache-2.0
最近更新
2026-11-15
Stars
★ 0
Forks
2

01 前言 Front Matter

name
skill-sync
license
Apache-2.0
metadata
{ "scope": [ "root" ], "author": "prowler-cloud", "version": "2.0", "auto_invoke": [ "After creating/modifying a skill", "Troubleshoot why a skill has missing or invalid metadata" ] }
description
Validates skill metadata (scope, auto_invoke) across all skill sources. Trigger: When adding or modifying skills, or to troubleshoot missing metadata.
allowed-tools
Read, Glob, Bash

02 资源文件 1

03 SKILL.md 正文

Purpose

Validates that every skill in the project has complete sync metadata (metadata.scope and metadata.auto_invoke) required by the CLI sync pipeline.

sync.sh discovers every SKILL.md under the repo (across local, recipe, and dep sources), validates metadata through lib/_internal/skill_contract.py, and reports skills with missing or invalid fields. It does not generate any registry artifact — that was removed in v2.0.

Required skill metadata

Each skill that should participate in auto-invoke needs metadata.scope and metadata.auto_invoke as canonical YAML lists. Skills can live in ai-specs/skills/<name>/SKILL.md, .recipe/<id>/skills/<name>/, or .deps/<id>/skills/<name>/. See skill-creator/SKILL.md.

Scope values

Scopes control which agent targets receive a skill. Skills may use multiple scopes: scope: [root, docs].

Usage

ai-specs/skills/skill-sync/assets/sync.sh
ai-specs/skills/skill-sync/assets/sync.sh --dry-run
bin/ai-specs sync .

Checklist after modifying skills

  • [ ] metadata.scope and metadata.auto_invoke set on new or changed skills
  • [ ] Ran ai-specs/skills/skill-sync/assets/sync.sh or bin/ai-specs sync .
  • [ ] No skills reported with missing metadata

04 同仓库更多 Skills