agents-sync

agents-sync is a skill for Claude Code from googlarz/agents-sync. It costs 82 tokens per session (1,575 once invoked), scanned A, original, MIT.

A tool for generating and updating instruction files for different coding assistants from one shared project description. It can create files such as AGENTS.md, CLAUDE.md, .cursorrules, and editor-specific rule files.

In plain words
What is it for?
Use it when setting up a new project or refreshing assistant instructions after changes to the project's structure, dependencies, documentation, or conventions.
Why use it?
Without synchronization, each coding tool may follow different or outdated project guidance. A shared source keeps those instructions aligned as the codebase changes.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it when setting up a new project or refreshing assistant instructions after changes to the project's structure, dependencies, documentation, or conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlarz/agents-sync/skill
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 googlarz/agents-sync --skill skill
Clone the repo
git clone --depth 1 https://github.com/googlarz/agents-sync

Made for: Claude Code.

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 agents-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlarz/agents-sync/skill/github.svg)](https://agentmods.dev/skills/googlarz/agents-sync/skill)
Your own site
<a href="https://agentmods.dev/skills/googlarz/agents-sync/skill"><img src="https://agentmods.dev/badge/skills/googlarz/agents-sync/skill/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 agents-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlarz/agents-sync/skill"><img src="https://agentmods.dev/badge/skills/googlarz/agents-sync/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,575 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.00082 $0.01575
Opus 5.5 $0.00033 $0.00630
Sonnet 5.5 $0.00016 $0.00315
Haiku 4.5 $0.00008 $0.00158

Measured 2mo ago against content hash 668d6a58597e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agents-sync 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 2mo ago.

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.

skill/SKILL.md · 209 lines

How it starts

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

agents-sync

Generate and sync AI context files across every coding tool you use.

Prerequisites

Add to your Claude Code MCP config (.claude/settings.json or ~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "agents-sync": {
      "command": "npx",
      "args": ["@googlarz/agents-sync"],
      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
    }
  }
}

Then restart Claude Code to connect.

Commands

/agents-sync init

First-time setup. Reads your codebase and generates all context files.

When to use: New project, or starting from scratch.

What it does:

  1. Scans your codebase (manifests, structure, source samples, docs, TODO/FIXME comments)
  2. Extracts project metadata via Claude API
  3. Generates canonical AGENTS.md
  4. Derives CLAUDE.md, .cursorrules, .github/copilot-instructions.md, GEMINI.md, .windsurfrules, .clinerules, .roomodes, CONVENTIONS.md, .kiro/steering/agents-sync.md, .trae/rules/agents-sync.md
  5. Saves a snapshot for drift detection

Usage:

Run /agents-sync init on this project

Claude will call agents_sync_init with the current project path.


/agents-sync sync

Re-sync after your codebase has changed. Preserves any manual customizations.

When to use: After major refactors, new dependencies, architecture changes.

Options:

  • Add --fast to skip Claude API call when drift is minor (re-derives from existing AGENTS.md, still refreshes MCP + codegraph sections for free)
  • Add --dry-run to preview changes without writing

Usage:

Sync my AI context files /agents-sync sync --fast


/agents-sync derive

Re-derive all tool files from the current AGENTS.md without re-running the scanner or calling the Claude API.

When to use: After manually editing AGENTS.md and wanting all tool files to reflect the changes immediately.

Usage:

/agents-sync derive I edited AGENTS.md, update all tool files


/agents-sync drift

Read the full file on GitHub · 209 lines

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. 2mo ago First seen · 209 lines · 82 tokens per session scan A 668d6a58597e

Subscribe to this mod's changes

agents-sync is a skill published in the GitHub repository googlarz/agents-sync (5 stars, last pushed 5mo ago), licensed MIT. It adds 82 tokens to every session and 1,575 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-08-31.

Related

agents-sync compared with skills from other repositories

agents-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents-syncgooglarz/agents-syncSkill55mo agoMITA82Claude Code
agent-config-setupofershap/create-agent-configSkill22d agoMITA43Claude Code, Codex
project-spine-kickoffPetriLahdelma/project-spineSkill212d agoMITA84Claude Code, Codex
project-spinePetriLahdelma/project-spineSkill212d agoMITA80Claude Code, Codex
project-spine-driftPetriLahdelma/project-spineSkill212d agoMITA87Claude Code, Codex
project-spine-templatePetriLahdelma/project-spineSkill212d agoMITA66Claude Code, Codex
project-spine-rationalePetriLahdelma/project-spineSkill212d agoMITA57Claude Code, Codex