agent-file-synchronization

agent-file-synchronization is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 129 tokens per session (1,414 once invoked), scanned A, original, MIT.

A synchronization tool that keeps several coding-agent instruction files aligned with CLAUDE.md, the main instruction file for Claude Code. It preserves platform-specific sections and reports differences between related rule sources.

In plain words
What is it for?
Use it to mirror instructions into GEMINI.md, GitHub Copilot instructions, and AGENTS.md, and to detect drift between agent rule directories.
Why use it?
It prevents Claude, Gemini, GitHub Copilot, and other agents from following outdated or conflicting project guidance. It also avoids erasing instructions that belong only to a particular platform.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the cli-agents plugin — 14 skills, 13 agents shipped together

Good fit Use it to mirror instructions into GEMINI.md, GitHub Copilot instructions, and AGENTS.md…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/agent-file-synchronization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richfrem/agent-plugins-skills --skill agent-file-synchronization
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install cli-agents, the plugin that ships this one along with the rest of its 14 skills, 13 agents.

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 agent-file-synchronization

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/agent-file-synchronization.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/agent-file-synchronization)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/agent-file-synchronization"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/agent-file-synchronization.svg" alt="Measured on agentmods" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,414 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.00129 $0.01414
Opus 5 $0.00064 $0.00707
Sonnet 5 $0.00026 $0.00283
Haiku 4.5 $0.00013 $0.00141

Measured today against content hash 546a009b2a4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

agent-file-synchronization 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/sync_instruction_files.py, tests/test_sync_instruction_files.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/cli-agents/skills/agent-file-synchronization/SKILL.md · 116 lines

How it starts

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

agent-file-synchronization

Identity

You synchronize project instruction files across modern AI tooling environments. Today, AGENTS.md is an open cross-tool standard (Codex, Cursor, Antigravity, and portable agents), while CLAUDE.md is used by Claude Code, GEMINI.md is used by Gemini CLI, and .github/copilot-instructions.md is used by GitHub Copilot.

A blind full-copy destroys platform-specific sections; this skill detects and re-preserves those sections automatically instead of requiring a human to re-append them by hand. It also respects repos that only want a subset of target files (via --targets) rather than forcing all 4 formats.

Scope: This skill owns mechanical replication. It does not own content quality (optimize-agent-instructions) or initial project scaffolding (project-setup).

What gets preserved per target

Target Preserved section Detected via
GEMINI.md ## Gemini CLI Tool Mapping table, appended at end of file Tail marker match
.github/copilot-instructions.md # Copilot Instructions for <repo> header + authoritative blockquote Header lines before the shared body's first line
AGENTS.md Open cross-tool standard (preserves custom header lines before anchor if any) Header lines before anchor
CLAUDE.md Anthropic Claude Code standard Header lines before anchor

Read the full file on GitHub · 116 lines

Files

What ships with it

4 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. today Changed · +4 lines · -28 tokens per session 546a009b2a4d
  2. 3d ago First seen · 112 lines · 157 tokens per session scan A 22c5d3728584

Subscribe to this mod's changes

agent-file-synchronization is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed today), licensed MIT. It adds 129 tokens to every session and 1,414 once invoked, about $0.0006 per session on Opus 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-03.