sync

sync is a command for Claude Code from Marcel-Bich/marcel-bich-claude-marketplace. It costs 19 tokens per session (13,605 once invoked), scanned D, original, MIT.

A command that merges Claude instruction files from a local path or remote Git repository into the current project, while asking the user to decide how each change should be handled.

In plain words
What is it for?
Use it to sync instruction files from a repository or folder and focus the merge on specific guidance, such as Git rules.
Why use it?
It helps bring shared project rules into a repository without silently overwriting existing instructions or making every merge decision automatically.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dogma plugin — 9 commands, 1 agent shipped together

Good fit Use it to sync instruction files from a repository or folder and focus the merge on specific guidance, such as Git rules.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Marcel-Bich/marcel-bich-claude-marketplace
Claude Code
/plugin install dogma

Made for: Claude Code.

Or install dogma, the plugin that ships this one along with the rest of its 9 commands, 1 agent.

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/commands/marcel-bich/marcel-bich-claude-marketplace/sync/github.svg)](https://agentmods.dev/commands/marcel-bich/marcel-bich-claude-marketplace/sync)
Your own site
<a href="https://agentmods.dev/commands/marcel-bich/marcel-bich-claude-marketplace/sync"><img src="https://agentmods.dev/badge/commands/marcel-bich/marcel-bich-claude-marketplace/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/commands/marcel-bich/marcel-bich-claude-marketplace/sync"><img src="https://agentmods.dev/badge/commands/marcel-bich/marcel-bich-claude-marketplace/sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 13,605 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00019 $0.13605
Opus 5.5 $0.00008 $0.05442
Sonnet 5.5 $0.00004 $0.02721
Haiku 4.5 $0.00002 $0.01361

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

Security

Grade D, and why

sync scanned grade D with 2 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/plugins/installed_plugins.json 2>/dev/null | grep -i "<plugin-name>"

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$TEMP_DIR"
plugins/dogma/commands/sync.md · 1,751 lines

How it starts

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

Claude-Dogma: Intelligent Sync of Claude Instructions

You are executing the /claude-dogma command. Your task is to intelligently merge Claude instruction files from a source into the current project with user interaction for every decision.

Configuration

DEFAULT_SOURCE="https://github.com/Marcel-Bich/marcel-bich-claude-dogma"

Source precedence (first match wins):

  1. A source given as argument (/dogma:sync ~/source)
  2. The environment variable CLAUDE_MB_DOGMA_SOURCE (git URL incl. SSH host aliases, or a local path)
  3. When CLAUDE_MB_DOGMA_SOURCE is unset: ask once and offer to store it (Step 1.1)
  4. DEFAULT_SOURCE (last fallback)

CLAUDE_MB_DOGMA_SOURCE is also what the source broadcasts read (the source owner's NOTICES.md, see the README section "Source broadcasts").

Step 1: Parse Arguments

The user provided: $ARGUMENTS

Parse into SOURCE and INSTRUCTIONS (order does not matter, quotes optional):

Source detection (recognizable patterns):

  • Starts with http://, https://, ssh://, git:// or file:// = Remote Git repo
  • scp-like [user@]host:path (e.g. [email protected]:owner/repo.git, or an SSH host alias like git@github-work:owner/repo.git) = Remote Git repo
  • Starts with ~/, ./, ../, / = Local path

Instructions detection:

  • Everything else that is NOT a recognizable source pattern
  • Quotes "..." are optional but recommended for clarity

Valid combinations:

/dogma:sync                                         -> configured source (Step 1.1), no instructions
/dogma:sync ~/source                                -> ~/source, no instructions
/dogma:sync focus on git rules                      -> configured source (Step 1.1), instructions
/dogma:sync "focus on git rules"                    -> configured source (Step 1.1), instructions
/dogma:sync ~/source focus on git rules             -> ~/source, instructions
/dogma:sync ~/source "focus on git rules"           -> ~/source, instructions
/dogma:sync "focus on git rules" ~/source           -> ~/source, instructions
/dogma:sync focus on git rules ~/source             -> ~/source, instructions

Read the full file on GitHub · 1,751 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. 12d ago Changed · +26 lines 87b034a5fe28
  2. 17d ago Changed · +85 lines 48ac4b5e3de5
  3. 1mo ago First seen · 1,640 lines · 19 tokens per session scan D 02fcadfe2746

Subscribe to this mod's changes

sync is a command published in the GitHub repository Marcel-Bich/marcel-bich-claude-marketplace (12 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 13,605 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.