sync-agent-instructions

A workflow for keeping CLAUDE.md, GEMINI.md, and AGENTS.md project-instruction files identical across different AI coding tools.

In plain words
What is it for?
Use it to detect changed instruction files, copy one file's contents to the other two, stage the updates with Git, and report the result.
Why use it?
It prevents tools from following different instructions and removes the need to copy updates by hand. If several files changed, it asks which one should be treated as the source.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/reflexioai/claude-smart/sync-agent-instructions
Any agent
npx skills add ReflexioAI/claude-smart --skill sync-agent-instructions
Clone the repo
git clone --depth 1 https://github.com/ReflexioAI/claude-smart

Made for: Claude Code, Codex.

Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00062 $0.00298
Opus 5 $0.00031 $0.00149
Sonnet 5 $0.00012 $0.00060
Haiku 4.5 $0.00006 $0.00030

Measured yesterday against content hash 1a7b4e9d1d7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync-agent-instructions 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/sync-agent-instructions/SKILL.md · 24 lines

What it actually says

Sync Agent Instructions

Keep CLAUDE.md, GEMINI.md, and AGENTS.md in sync so all AI coding tools share the same project instructions.

Workflow

  1. Detect changes — Run git diff HEAD -- CLAUDE.md GEMINI.md AGENTS.md to see which file(s) have uncommitted changes.

  2. Determine source file:

    • One file changed — That file is the source. Copy its content to the other two.
    • Multiple files changed — Ask the user which file to use as the source.
    • No files changed — Compare all three with diff. If they differ, report which sections differ and ask the user which file to use as source. If identical, report "All instruction files are in sync." and stop.
  3. Sync — Read the source file and write its exact content to the other two files.

  4. Stage — Run git add on the two modified files.

  5. Report — Tell the user which file was the source and that the other two have been updated.

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. yesterday First seen · 24 lines · 62 tokens per session scan A 1a7b4e9d1d7a

Subscribe to this mod's changes

sync-agent-instructions is a skill published in the GitHub repository ReflexioAI/claude-smart (774 stars, last pushed 3d ago), licensed Apache-2.0. It adds 62 tokens to every session and 298 once invoked, about $0.0003 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-08-30.