sync

sync is a skill for Claude Code from rjmurillo/ai-agents. It costs 96 tokens per session (1,732 once invoked), scanned C, original, MIT.

A specification-drift detector for software projects. It scans requirement, design, and task documents for references to code that no longer exists and reports the mismatch.

In plain words
What is it for?
Scan all specifications or one specification tier for outdated code references and report the drift for later triage.
Why use it?
It finds documentation that became stale after a refactor, hotfix, or manual code edit, before the mismatch causes confusion during review.

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 Task, Skill, Read, Glob, Grep, Bash(python3 scripts/sync/detect_spec_drift.py*).

Part of the project-toolkit plugin — 125 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Scan all specifications or one specification tier for outdated code references and report the drift for later triage.

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/rjmurillo/ai-agents
agentmods
npx agentmods add skills/rjmurillo/ai-agents/sync

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 125 skills, 25 commands, 33 agents, 5 hooks.

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/sync"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,732 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00096 $0.01732
Opus 5.5 $0.00038 $0.00693
Sonnet 5.5 $0.00019 $0.00346
Haiku 4.5 $0.00010 $0.00173

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

Security

Grade C, and why

sync scanned grade C with 1 finding 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 22d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

- **Intentional forward reference**: the spec names a planned path that does not exist yet. Mark the line with a trailing `<!-- sync-drift-ignore -->` so the detector skips it.
.claude/skills/sync/SKILL.md · 130 lines

How it starts

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

Sync

Migrated from the sync command under ADR-064, which makes skills the single user-invocable surface. The command file is gone, so its path is named here in plain text rather than as a citation to something a reader could open.

The forward path (/spec -> /plan -> /build) turns intent into code. There is no clean reverse path. When you hand-edit code (refactor, hotfix, taste change), the spec drifts silently and the staleness surfaces only at /review time, late and often misattributed as "the spec was wrong" instead of "the spec needs updating". /sync closes that loop: it finds the drift while you still remember why you made the change.

What this slice does

This command detects Spec->Code drift and reports it. It does NOT auto-rewrite specs. Detection runs; patch proposal is a follow-up (see Step 3).

Triggers

Phrase Action
/sync Scan all spec tiers for stale code references
/sync .project-toolkit/specs/design Scan one spec tier
detect spec drift Run the detector and report drift

Arguments

Sync: $ARGUMENTS

If $ARGUMENTS names a spec tier, scan that tier only by passing it to --target. Otherwise scan all three tiers.

Read the full file on GitHub · 130 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. 22d ago Changed · +7 lines b7c50c82e824
  2. 24d ago Changed 1f919b20ab59
  3. 1mo ago Changed · +3 lines c0310007c86c
  4. 1mo ago First seen · 120 lines · 96 tokens per session scan C 5722f46b354a

Subscribe to this mod's changes

sync is a skill published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,732 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.