Skip to content
Back to skills

Sub Agent Sync

ASecurity

Use when adding, removing, renaming or editing a sub-agent, changing an agent's model or tools, or when <generator command> --check reports drift. Edits only the canonical body in <canonical agents folder> or the pin in <path to agent-models.json>, then regenerates every harness's copy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
toolsgo

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add mnaimfaizy/agent-kit --skill sub-agent-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sub Agent Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sub Agent Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mnaimfaizy-sub-agent-sync/badge)](https://www.skillsdirectory.com/skills/mnaimfaizy-sub-agent-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
# Pattern guide skeleton: docs/patterns/sub-agent-sync.md in Agent-kit.
# Copy this folder's SKILL.md into your skills directory, fill in every
# <placeholder>, and delete these comment lines.
name: <sub-agent-sync>
description: Use when adding, removing, renaming or editing a sub-agent, changing an agent's model or tools, or when <generator command> --check reports drift. Edits only the canonical body in <canonical agents folder> or the pin in <path to agent-models.json>, then regenerates every harness's copy.
---

# Sub-agent sync

## Where each fact lives

| Fact                                | Lives in                                                 | Never in             |
| ----------------------------------- | -------------------------------------------------------- | -------------------- |
| An agent's body, name, purpose      | `<canonical agents folder>/<agent>.agent.md`             | a harness's copy     |
| What it may do (`tools:` roles)     | the canonical body, as roles                             | a copy's tool list   |
| A part meant for one harness only   | the canonical body, inside a `<!-- harness:... -->` mark | a copy               |
| Which model it runs on, per harness | `<path to agent-models.json>`                            | a copy's `model:`    |
| How a role or pin is written        | `<path to sync-agents-core.mjs>` (`HARNESSES`)           | a hand-written patch |

## Rules

- Edit the canonical body or the model policy, never a generated copy. The next `--apply` overwrites a copy, and the edit is gone without a warning.
- To add an agent, add its canonical file **and** a pin for every harness in the policy, in the same change. A missing pin stops the generator.
- To delete an agent, delete its canonical file and its pins. `--apply` removes the copies.
- A change that widens a grant (adds a role to an agent, or a tool name to a role in `HARNESSES`) says so in the commit message.
- Do not change a pin to make the audit pass without checking the new name in the harness's own docs.

## Steps

1. Make the change in the canonical body or the policy.
2. Run `<generator command> --apply`.
3. Run `<generator command> --check`. It must say `IN SYNC`.
4. Read the diff of the copies. Each one should differ from before only by the change you made.
5. Commit the canonical file, the policy and every copy together.

Files in this skill

  • SKILL.md2.3 KB
  • agent-models.json267 B
  • audit-models.mjs2 KB
  • reviewer.agent.md1.1 KB
  • reviewer.claude.md948 B
  • sync-agents-core.mjs12.5 KB
  • sync-agents-core.test.mjs8.4 KB
  • sync-agents.mjs4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.