prime-sync

prime-sync is a skill for Claude Code from avibebuilder/claude-prime. It costs 54 tokens per session (1,218 once invoked), scanned A, original, MIT.

A synchronization skill for copying Claude configuration between a main repository and target projects. It detects whether the current directory is the source or a project receiving or returning configuration.

In plain words
What is it for?
Use it to push configuration from the main repository to projects or pull project changes back into the main repository. It supports paths and tracked project state.
Why use it?
It keeps shared agent instructions consistent across projects and records which projects have been synchronized. This reduces manual copying and version drift.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to push configuration from the main repository to projects or pull project changes back into the main repository. It supports paths and tracked project state.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/avibebuilder/claude-prime/prime-sync"><img src="https://agentmods.dev/badge/skills/avibebuilder/claude-prime/prime-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,218 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.00054 $0.01218
Opus 5.5 $0.00022 $0.00487
Sonnet 5.5 $0.00011 $0.00244
Haiku 4.5 $0.00005 $0.00122

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

Security

Grade A, and why

prime-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 1mo 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.

.claude/skills/prime-sync/SKILL.md · 125 lines

How it starts

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

Ultrathink.

Mode Detection

Detect operating mode before anything else:

  1. VERSION file exists in CWD → push mode (CWD is the prime repo)
  2. .claude/.prime-version exists in CWD → pull mode (CWD is a target project)
  3. Neither detected → ask user which mode and for the required path

Push Mode — Resolve Target

Source = CWD (prime repo). Target = resolved project path.

State file: .claude/prime-projects.json

Tracks known target paths, last sync time, and version. Shape:

{ "projects": [{ "path": "/absolute/path", "lastSynced": "2025-12-30T10:30:00Z", "version": "1.4.2" }] }

Create as { "projects": [] } if missing.

Resolution flow:

  1. Argument provided → Use that path, then record it after a successful sync
  2. No argument, known projects exist → Ask the user which project(s) to sync, including an All projects option
  3. No argument, no known projects → Ask the user for a path

State file management:

  • Create .claude/ only if you need to persist the state file
  • Update the synced project's time/version only after a successful sync
  • Keep one entry per absolute path

Pull Mode — Clone Prime

Source = cloned prime repo. Target = CWD.

Flow:

  1. Read current version from .claude/.prime-version in CWD
  2. Generate timestamp: date +%Y%m%d%H%M%S
  3. Clone prime repo: git clone https://github.com/avibebuilder/claude-prime.git /tmp/claude-prime-sync-<timestamp>/
  4. Set source = /tmp/claude-prime-sync-<timestamp>/, target = CWD
  5. Continue to shared process below
  6. Clean up /tmp/claude-prime-sync-<timestamp>/ after sync completes (success or failure)

No state file in pull mode — the target project is self-contained.

Process

1. Validate Target

  • Check that the target path exists, is a directory, and is not the same location as the source repo
  • Treat a valid target as a project root where writing .claude/ is appropriate
  • Read versions from target (.claude/.prime-version) and prime (VERSION)

Read the full file on GitHub · 125 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. 1mo ago First seen · 125 lines · 54 tokens per session scan A 21d37d3dc898

Subscribe to this mod's changes

prime-sync is a skill published in the GitHub repository avibebuilder/claude-prime (120 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,218 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

chief-data-officer-advisor

Chief Data Officer advisory for startups: AI training data rights and consent provenance, data product strategy (warehouse vs lakehouse vs mesh, build-vs-buy), B2B customer-data-as-asset valuation and M&A readiness, data team org evolution. Use when deciding whether to train models on customer data, choosing data…

alirezarezvani/claude-skills · 131 tokens

contract-and-proposal-writer

Generate professional, jurisdiction-aware business documents: freelance contracts, project proposals, SOWs, NDAs, and MSAs. Structured Markdown output with docx conversion instructions. Covers US (Delaware), EU (GDPR), UK, and DACH (German law) jurisdictions. Not a substitute for legal counsel — use as strong starting…

alirezarezvani/claude-skills · 106 tokens

vpe-advisor

VP of Engineering advisory for startups: delivery throughput (DORA 4 metrics + bottleneck identification), engineering hiring funnel (sourcing → screen → onsite → offer conversion + time-to-fill + pipeline gap), engineering team structure (squad/tribe/chapter design + tech-lead manager-trigger thresholds), and…

alirezarezvani/claude-skills · 130 tokens

process-mapper

Use when a BizOps lead, COO, or process-improvement owner needs to document an end-to-end business process (procurement, employee onboarding, incident handoff, customer-onboarding, claims adjudication) in BPMN-style notation, measure cycle times by stage, surface where work spends most of its time waiting vs. being…

alirezarezvani/claude-skills · 176 tokens

general-counsel-advisor

General Counsel advisory for startups: contract review (MSA, SaaS, NDA, DPA, employment), IP strategy, term sheet decoding, and regulatory landscape mapping. Use when reviewing any contract or term sheet, deciding when to engage outside counsel, defining IP strategy, evaluating regulatory exposure (HIPAA, GDPR, FDA…

alirezarezvani/claude-skills · 114 tokens

strategic-alignment

Cascades strategy from boardroom to individual contributor. Detects and fixes misalignment between company goals and team execution. Covers strategy articulation, cascade mapping, orphan goal detection, silo identification, communication gap analysis, and realignment protocols. Use when teams are pulling in different…

alirezarezvani/claude-skills · 92 tokens