Skip to main content

skill-sync

Syncs skill metadata to AGENTS.md Auto-invoke sections. Trigger: When updating skill metadata (metadata.scope/metadata.auto_invoke), regenerating Auto-invoke tables, or running ./skills/skill-sync/assets/sync.sh (including --dry-run/--scope).

来源信息

仓库
prowler-cloud/prowler
最近来源活动
2026年2月26日 09:26
检测到的 SKILL.md 语言
英语
星标
15,155
Forks
2,479

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
skill-sync
description
Syncs skill metadata to AGENTS.md Auto-invoke sections. Trigger: When updating skill metadata (metadata.scope/metadata.auto_invoke), regenerating Auto-invoke tables, or running ./skills/skill-sync/assets/sync.sh (including --dry-run/--scope).
license
Apache-2.0
metadata
{"author":"prowler-cloud","version":"1.0","scope":["root"],"auto_invoke":["After creating/modifying a skill","Regenerate AGENTS.md Auto-invoke tables (sync.sh)","Troubleshoot why a skill is missing from AGENTS.md auto-invoke"]}
allowed-tools
Read, Edit, Write, Glob, Grep, Bash
## Purpose Keeps AGENTS.md Auto-invoke sections in sync with skill metadata. When you create or modify a skill, run the sync script to automatically update all affected AGENTS.md files. ## Required Skill Metadata Each skill that should appear in Auto-invoke sections needs these fields in `metadata`. `auto_invoke` can be either a single string **or** a list of actions: ```yaml metadata: author: prowler-cloud version: "1.0" scope: [ui] # Which AGENTS.md: ui, api, sdk, root # Option A: single action auto_invoke: "Creating/modifying components" # Option B: multiple actions # auto_invoke: # - "Creating/modifying components" # - "Refactoring component folder placement" ``` ### Scope Values | Scope | Updates | |-------|---------| | `root` | `AGENTS.md` (repo root) | | `ui` | `ui/AGENTS.md` | | `api` | `api/AGENTS.md` | | `sdk` | `prowler/AGENTS.md` | | `mcp_server` | `mcp_server/AGENTS.md` | Skills can have multiple scopes: `scope: [ui, api]` --- ## Usage ### After Creating/Modifying a Skill ```bash ./skills/skill-sync/assets/sync.sh ``` ### What It Does 1. Reads all `skills/*/SKILL.md` files 2. Extracts `metadata.scope` and `metadata.auto_invoke` 3. Generates Auto-invoke tables for each AGENTS.md 4. Updates the `### Auto-invoke Skills` section in each file --- ## Example Given this skill metadata: ```yaml # skills/prowler-ui/SKILL.md metadata: author: prowler-cloud version: "1.0" scope: [ui] auto_invoke: "Creating/modifying React components" ``` The sync script generates in `ui/AGENTS.md`: ```markdown ### Auto-invoke Skills When performing these actions, ALWAYS invoke the corresponding skill FIRST: | Action | Skill | |--------|-------| | Creating/modifying React components | `prowler-ui` | ``` --- ## Commands ```bash # Sync all AGENTS.md files ./skills/skill-sync/assets/sync.sh # Dry run (show what would change) ./skills/skill-sync/assets/sync.sh --dry-run # Sync specific scope only ./skills/skill-sync/assets/sync.sh --scope ui ``` --- ## Checklist After Modifying Skills - [ ] Added `metadata.scope` to new/modified skill - [ ] Added `metadata.auto_invoke` with action description - [ ] Ran `./skills/skill-sync/assets/sync.sh` - [ ] Verified AGENTS.md files updated correctly
在 GitHub 查看