skill-sync

Sync AGENTS.md auto-invoke tables with SKILL.md frontmatter metadata.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/theofernandezz/ai-library --skill skill-sync-theofernandezz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-sync
Source: https://github.com/theofernandezz/ai-library/tree/main/.opencode/skills/skill-sync
Command: npx skills add https://github.com/theofernandezz/ai-library --skill skill-sync-theofernandezz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Keeps AGENTS.md auto-invoke sections aligned with the latest skill metadata, removing manual drift.

Core Features & Use Cases

  • Auto-discovers SKILL.md files across skills and generic skill directories.
  • Updates Auto-invoke sections in AGENTS.md files according to metadata.scope and metadata.auto_invoke.
  • Supports dry-run mode to preview changes before applying.

Quick Start

Run the sync script to refresh all Auto-invoke sections across AGENTS.md.

Frequently Asked Questions about skill-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep AGENTS.md auto-invoke tables synced with skill metadata?

You can sync AGENTS.md auto-invoke tables by running a Bash script that auto-discovers SKILL.md files and updates the repository root AGENTS.md based on skill metadata. This removes manual drift between files.

What is an AGENTS.md auto-invoke section and when do I need to update it?

An AGENTS.md auto-invoke section is a table that maps skill metadata to automatic triggers. You need to update it whenever you add or modify SKILL.md frontmatter to ensure your documentation reflects current configurations.

Can I preview AGENTS.md sync changes before applying them?

Yes, you can preview AGENTS.md sync changes using the optional dry-run mode. This allows you to review the proposed updates to your auto-invoke sections before committing them to the file.

Does the AGENTS.md sync script support scoped directories like UI or backend?

Yes, the AGENTS.md sync script supports scoped directories like UI, backend, auth, or testing. It applies updates to these areas when the metadata.scope value includes them in the SKILL.md frontmatter.