plugin-syncer

plugin-syncer is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 74 tokens per session (636 once invoked), scanned A, original, MIT.

A synchronisation tool that restores registered agent plugins from plugin-sources.json and removes files that are no longer wanted.

In plain words
What is it for?
Use it to synchronise all plugins, preview changes with a dry run, or clean up stale files without reinstalling everything.
Why use it?
It keeps the local agent setup aligned with its inventory and desired-state files instead of leaving stale or disabled components installed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 plugins/dev-utils/scripts/symlink_manager.py audit.

Part of the plugin-manager plugin — 3 skills shipped together

Good fit Use it to synchronise all plugins, preview changes with a dry run, or clean up stale files without reinstalling everything.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills
agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/plugin-syncer

Made for: Claude Code.

Or install plugin-manager, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plugin-syncer

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-syncer/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-syncer)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-syncer"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-syncer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plugin-syncer

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/plugin-syncer"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/plugin-syncer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00636
Opus 5.5 $0.00030 $0.00254
Sonnet 5.5 $0.00015 $0.00127
Haiku 4.5 $0.00007 $0.00064

Measured 13d ago against content hash cf5c52af0ba9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-syncer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync_with_inventory.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plugin-manager/skills/plugin-syncer/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plugin Syncer (plugin-syncer)

Synchronizes registered plugins from plugin-sources.json while enforcing .agents/ownership/ desired-state manifests.

Contents

Critical Constraints

  • Canonical Sync Tool: Always run sync_with_inventory.py for "sync" or "resync" requests; never call plugin_add.py.
  • Preserve Ownership States: Honoring should_install: false choices in .agents/ownership/<plugin>.json is strictly required; disabled components must not be resurrected.
  • Dry-Run Preview: Preview proposed file modifications and symlink updates before executing live sync.
  • Orphan Pruning: Stale or unreferenced symlinks pointing to disabled components must be cleaned automatically.

Quick start

# Preview synchronization changes (dry-run)
python3 plugins/plugin-manager/scripts/sync_with_inventory.py --dry-run

# Run full synchronization
python3 plugins/plugin-manager/scripts/sync_with_inventory.py

# Clean up stale artifacts only
python3 plugins/plugin-manager/scripts/sync_with_inventory.py --cleanup-only

Workflow

  1. Phase 1: Registry Scan: Read .agents/plugin-sources.json and load ownership manifests from .agents/ownership/.
  2. Phase 2: Preview & Diff: Execute with --dry-run to inventory additions, deletions, and component toggles.
  3. Phase 3: Component Synchronization: Deploy enabled components to .agents/ and remove assets marked "should_install": false.
  4. Phase 4: Multi-IDE Pruning & Audit: Refresh symlinks across .claude/ and .gemini/ environments and audit link health.

Verification

# Verify environment symlink health
python3 plugins/dev-utils/scripts/symlink_manager.py audit

# Audit skill compliance
python3 plugins/agent-scaffolders/scripts/audit_skill.py plugins/plugin-manager/skills/plugin-syncer --mode source

Read the full file on GitHub · 63 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · +18 lines cf5c52af0ba9
  2. 18d ago Changed · +2 lines · +42 tokens per session 2c233d6dde57
  3. 29d ago First seen · 43 lines · 32 tokens per session scan A f80218fbc374

Subscribe to this mod's changes

plugin-syncer is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 636 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.