memory-sync-setup

memory-sync-setup is a skill for Claude Code from kochetkov-ma/claude-brewcode. It costs 67 tokens per session (10,665 once invoked), scanned B, original, MIT.

A generator for a project-specific memory-sync skill. It creates organised batches, a catalogue of facts that can be checked, and instructions for verifying and re-auditing the assistant's stored project knowledge.

In plain words
What is it for?
Use it to initialise or generate a memory-sync skill and synchronise the project's recorded knowledge.
Why use it?
It helps keep project memory accurate and prevents it from growing without checks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions .claude-plugin.

Part of the brewdoc plugin — 4 skills shipped together

Good fit Use it to initialise or generate a memory-sync skill and synchronise the project's recorded knowledge.

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

Made for: Claude Code.

Or install brewdoc, the plugin that ships this one along with the rest of its 4 skills.

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 memory-sync-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/memory-sync-setup"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/memory-sync-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,665 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00067 $0.10665
Opus 5.5 $0.00027 $0.04266
Sonnet 5.5 $0.00013 $0.02133
Haiku 4.5 $0.00007 $0.01066

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

Security

Grade B, and why

memory-sync-setup scanned grade B 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 6d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/generate.sh, scripts/scope-guard.sh, tests/run.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Enumerates other installed skillslowAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

find "$ROOT/.claude/skills/memory-sync" -type f | sort

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

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

| `uninstall`/`purge` but nothing installed | The script prints `⚠️ nothing to {uninstall\|purge}`, exit 0. Report it; never `rm -rf` by hand |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

brewdoc/skills/memory-sync-setup/SKILL.md · 474 lines

How it starts

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

Memory Sync Generator (brewdoc:memory-sync-setup)

ROLE: GENERATOR. It analyzes the TARGET project and WRITES a self-contained, project-local .claude/skills/memory-sync/ into it; it NEVER syncs memory itself. Project-specific batches, invariants, verification commands, roster and language policy are what let the emitted skill tell intentional non-English aliases from violations, stale claims from current ones, and facts gone from reality from merely deleted prose.

OUTPUT: <target>/.claude/skills/memory-sync/ -- SKILL.md + references/memory-guide.md + references/agent-audit.md + references/hard-sync.md + references/prompting-guide.md; nothing else (no agent, rule or hook). <target> = the git toplevel, or MEMORY_SYNC_ROOT=<abs path>.

Prompt contract

$ARGUMENTS is one free-form RU/EN prompt; mode tokens, flags (--unattended) and the fine-tune text may sit anywhere in it.

  1. Mode: strip --unattended first: a flag, never a mode or fine-tune text (Mode: upgrade, Unattended). Then an explicit mode token wins outright; else the most distinct whole-word keyword hits (table in ## Modes below). Tie with a destructive mode -> AskUserQuestion; with status -> status; of two mutating modes -> the keyword that comes first. No hit or empty -> status if installed, else install.
  2. Scope: prose that is not a mode/id/path is still input: take the id, path or target from it -- never the first word of a sentence as a positional id. The remainder becomes the fine-tune prompt / {FOCUS_EMPHASIS}.
  3. Ask: at most ONE AskUserQuestion (max 4 questions) to resolve mode and scope, before any work, only when the answer changes what gets written. A read-only run asks nothing.

Print once, before the first action (labels literal, values in the conversation language):

PLAN — brewdoc:memory-sync-setup
INPUT:  <arguments verbatim, or "(empty)">
MODE:   <resolved> — <explicit | matched keyword: X | default>
SCOPE:  target=<absolute repo root>; emphasis=<fine-tune prompt interpretation | "none">
DO:     <2-5 imperative bullets>
RESULT: <what the user ends up holding>

Read the full file on GitHub · 474 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. 6d ago Changed 6213479a593e
  2. 7d ago Changed 33665115727c
  3. 9d ago Changed 276e99d89b9a
  4. 10d ago Changed 5e4aa7c3f220
  5. 11d ago Changed 092563262ede
  6. 12d ago Changed 6c4d02182e31
  7. 18d ago Changed 072190a35f4d
  8. 19d ago Changed 2179e4f20538
  9. 24d ago Changed e52695bd7505
  10. 27d ago First seen · 474 lines · 67 tokens per session scan B d6ccfb204db4

Subscribe to this mod's changes

memory-sync-setup is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (41 stars, last pushed 7d ago), licensed MIT. It adds 67 tokens to every session and 10,665 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (enumerates other installed skills, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

memory-sync-setup compared with skills from other repositories

memory-sync-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-sync-setupkochetkov-ma/claude-brewcodeSkill417d agoMITB67Claude Code
doc-digestegorfedorov/claude-context-optimizerSkill1366d agoMITA75Claude Code
fresh-startegorfedorov/claude-context-optimizerSkill1366d agoMITA60Claude Code
token-checkegorfedorov/claude-context-optimizerSkill1366d agoMITA66Claude Code
project-contextegorfedorov/claude-context-optimizerSkill1366d agoMITA81Claude Code
brain-logtoroleapinc/claude-brainSkill955mo agoMITB10Claude Code
session-historyalivecontext/aliveSkill13212d agoMITA74Claude Code