skill-sync
Original:🇺🇸 English
Translated
2 scripts
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).
8installs
Sourceprowler-cloud/prowler
Added on
NPX Install
npx skill4agent add prowler-cloud/prowler skill-syncTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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 .
metadataauto_invokeyaml
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 |
|---|---|
| |
| |
| |
| |
| |
Skills can have multiple scopes:
scope: [ui, api]Usage
After Creating/Modifying a Skill
bash
./skills/skill-sync/assets/sync.shWhat It Does
- Reads all files
skills/*/SKILL.md - Extracts and
metadata.scopemetadata.auto_invoke - Generates Auto-invoke tables for each AGENTS.md
- Updates the section in each file
### Auto-invoke Skills
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.mdmarkdown
### 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 uiChecklist After Modifying Skills
- Added to new/modified skill
metadata.scope - Added with action description
metadata.auto_invoke - Ran
./skills/skill-sync/assets/sync.sh - Verified AGENTS.md files updated correctly