Rechercher

PythonReactSEOPDF
GitHub Skill

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).

Rzyfront☆ 4 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

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:

metadata:
  author: your-org
  version: "1.0"
  scope: [root]                                    # Which AGENTS.md: root, backend, frontend
  
  # 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)
backend apps/backend/AGENTS.md (example)
frontend apps/frontend/AGENTS.md (example)

Skills can have multiple scopes: scope: [root, backend]


Usage

After Creating/Modifying a Skill

./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:

# skills/my-skill/SKILL.md
metadata:
  scope: [root]
  auto_invoke: "Creating/modifying React components"

The sync script generates in AGENTS.md:

### Auto-invoke Skills

When performing these actions, ALWAYS invoke the corresponding skill FIRST:

| Action | Skill |
|--------|-------|
| Creating/modifying React components | `my-skill` |

Commands

# 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 root

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

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-03-03
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!