sync

sync is a skill for Claude Code, Codex from Chemaclass/agnostic-ai. It costs 48 tokens per session (493 once invoked), scanned A, original, MIT.

A synchronisation skill for regenerating AI-tool configuration files from the specifications in the .agnostic-ai directory. It can also check for differences without changing files.

In plain words
What is it for?
Use it after editing agnostic-ai specifications, to check for configuration drift, to review regenerated files, or to watch for changes while developing.
Why use it?
It keeps generated configuration files aligned with their source specifications and identifies stale files before CI or deployment.

Skill for Claude CodeCodex

Part of the agnostic-ai plugin — 4 skills shipped together

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/chemaclass/agnostic-ai/sync
Any agent
npx skills add Chemaclass/agnostic-ai --skill sync
Clone the repo
git clone --depth 1 https://github.com/Chemaclass/agnostic-ai

Made for: Claude Code, Codex.

Or install agnostic-ai, the plugin that ships this one along with the rest of its 4 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 sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/sync.svg)](https://agentmods.dev/skills/chemaclass/agnostic-ai/sync)
Your own site
<a href="https://agentmods.dev/skills/chemaclass/agnostic-ai/sync"><img src="https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 493 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.00048 $0.00493
Opus 5 $0.00024 $0.00246
Sonnet 5 $0.00010 $0.00099
Haiku 4.5 $0.00005 $0.00049

Measured 4d ago against content hash 63cdebeaa775, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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.

plugins/agnostic-ai/skills/sync/SKILL.md · 38 lines

What it actually says

sync

Emits one set of specs to every configured target in its native format.

Steps

  1. Run agnostic-ai sync. It writes only the files whose content changed, so git status after a no-op run is empty.
  2. Read the summary. Each line names a target and the paths it wrote.
  3. Show the user the diff: git diff --stat (or git status --short when generated files are gitignored).

Checking instead of writing

agnostic-ai sync --check compares planned output against what is on disk and writes nothing. Exit 0 means no drift; non-zero prints a diff per stale file. That is the CI gate:

- uses: chemaclass/agnostic-ai-action@v1
  with: { command: check }

When --check fails, decide by what changed:

  • A spec was edited and the generated file lags: run agnostic-ai sync and commit both.
  • The CLI was upgraded and output shifted: run sync, review the diff, and commit it as a regeneration with no semantic change.
  • Someone hand-edited a generated file: their edit is about to be lost. Move the change into the matching spec under .agnostic-ai/, then sync.

Notes

  • agnostic-ai sync --watch re-emits on every save, touching only affected targets. Useful while authoring several specs.
  • agnostic-ai sync --backup keeps a .bak beside each overwritten file; agnostic-ai revert restores them. Without --backup, revert deletes generated files.
  • agnostic-ai status reports spec counts, configured targets, the last sync time, and whether output is stale. agnostic-ai doctor is the stricter pre-merge check.
  • A warning about an unsupported kind means the target has no surface for it (for example hooks on a target with no hook system). Silence it per project with on-unsupported: silent.
  • Never resolve drift by editing generated files. The spec is the source of truth.
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. 4d ago First seen · 38 lines · 48 tokens per session scan A 63cdebeaa775

Subscribe to this mod's changes

sync is a skill published in the GitHub repository Chemaclass/agnostic-ai (11 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 493 once invoked, about $0.0002 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.