brand-sync

brand-sync is a command for coding agents from jgerton/brand-toolkit. It costs 31 tokens per session (657 once invoked), scanned A, original, MIT.

A command for synchronizing a project's brand-brief.md with a separate vault, such as an Obsidian vault, shared drive, or ordinary folder.

In plain words
What is it for?
Use it to push or pull brand briefs, compare changes, resolve conflicts, and keep project and external brand documents aligned.
Why use it?
It detects which copy changed and identifies conflicts before one version overwrites the other.

Command

Part of the brand-toolkit plugin — 10 skills, 1 command, 1 agent 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 commands/jgerton/brand-toolkit/brand-sync
Clone the repo
git clone --depth 1 https://github.com/jgerton/brand-toolkit

Or install brand-toolkit, the plugin that ships this one along with the rest of its 10 skills, 1 command, 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 brand-sync

README.md
[![agentmods](https://agentmods.dev/badge/commands/jgerton/brand-toolkit/brand-sync.svg)](https://agentmods.dev/commands/jgerton/brand-toolkit/brand-sync)
Your own site
<a href="https://agentmods.dev/commands/jgerton/brand-toolkit/brand-sync"><img src="https://agentmods.dev/badge/commands/jgerton/brand-toolkit/brand-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 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.00031 $0.00657
Opus 5 $0.00015 $0.00329
Sonnet 5 $0.00006 $0.00131
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade A, and why

brand-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.

commands/brand-sync.md · 74 lines

How it starts

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

Brand Sync

Synchronize brand-brief.md between the current project directory and an external vault location.

The vault can be anything: an Obsidian vault, a plain directory, a shared drive. The path is configured per-project via the vault_path field in your brand-brief.md.

Process

1. Locate Files

Find brand-brief.md in both locations:

  • Project: Current working directory or codebase path from the brief
  • Vault: Read vault_path from the brand brief's YAML frontmatter

If vault_path is not set, ask the user where they want to sync to. Use the project field from the YAML frontmatter to suggest a filename (e.g., {project}.md).

2. Conflict Detection

If both files exist, compare last_updated timestamps:

  • Project is newer: Offer to push project → vault
  • Vault is newer: Offer to pull vault → project
  • Same timestamp: No sync needed
  • Both modified since last sync: Conflict. Present both versions' key differences and ask user which to keep, or offer to merge.

3. Sync Actions

Push (project → vault):

  1. Read project brand-brief.md
  2. Copy to vault path, creating the brands/ directory if needed
  3. Update vault_path in the project copy
  4. Confirm: "Pushed brand-brief.md to vault at [path]"

Pull (vault → project):

  1. Read vault brand file
  2. Copy to project directory as brand-brief.md
  3. Update codebase path in the brief if different
  4. Confirm: "Pulled brand-brief.md from vault at [path]"

Create vault entry (vault doesn't exist yet):

  1. Read project brand-brief.md
  2. Ask user for vault path if vault_path is not set
  3. Create vault file at the configured path as {project}.md
  4. If the vault is an Obsidian vault (detected by .obsidian/ directory), add Obsidian-compatible frontmatter (tags, aliases)
  5. Update vault_path in project copy
  6. Confirm: "Created vault entry at [path]"

4. Vault Formatting

When creating or updating the vault copy:

  • Preserve all brand-brief YAML fields
  • Keep the markdown body intact
  • If Obsidian vault detected (.obsidian/ directory exists in vault root):
    • Add tags: [brand, {business_type}]
    • Add aliases: [{brand_name}] if brand_name is set
  • Otherwise: Plain markdown, no extra frontmatter

Read the full file on GitHub · 74 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. 4d ago First seen · 74 lines · 31 tokens per session scan A 1f690f5347b4

Subscribe to this mod's changes

brand-sync is a command published in the GitHub repository jgerton/brand-toolkit (59 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 657 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.