sync

sync is a command for Claude Code from Marcel-Bich/marcel-bich-claude-marketplace. It costs 19 tokens per session (11,898 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 11,898 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.11898
Opus 5 $0.00010 $0.05949
Sonnet 5 $0.00004 $0.02380
Haiku 4.5 $0.00002 $0.01190

Measured 10d ago against content hash 02fcadfe2746, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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,640 lines

How it starts

The opening of the file, as written. The whole thing — 1,640 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"

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:// or https:// = 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                                         -> DEFAULT_SOURCE, no instructions
/dogma:sync ~/source                                -> ~/source, no instructions
/dogma:sync focus on git rules                      -> DEFAULT_SOURCE, instructions
/dogma:sync "focus on git rules"                    -> DEFAULT_SOURCE, 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

If user provided instructions, display them and follow throughout:

User instructions: "<instructions>"
Will follow these throughout the sync process.

If DEFAULT_SOURCE is "TODO_CONFIGURE_DEFAULT_SOURCE" and no source provided: Stop and tell the user: "Default source not configured. Please provide a source URL or path."

Step 2: Fetch Source to Temporary Directory

For Remote Repos

TEMP_DIR=$(mktemp -d)
git clone --depth 1 --branch main <REPO_URL> "$TEMP_DIR" 2>&1
if [ $? -ne 0 ]; then
    rm -rf "$TEMP_DIR"
    # Report error and stop
fi
SOURCE_DIR="$TEMP_DIR"

Read the full file on GitHub · 1,640 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. 10d 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 (13 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 11,898 once invoked, about $0.0001 per session on Opus 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.