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.
npx skills add kochetkov-ma/claude-brewcode --skill memory-sync-setupgit clone --depth 1 https://github.com/kochetkov-ma/claude-brewcodeWrote 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.
[](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/memory-sync-setup)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- Mode: strip
--unattendedfirst: 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## Modesbelow). Tie with a destructive mode ->AskUserQuestion; withstatus->status; of two mutating modes -> the keyword that comes first. No hit or empty ->statusif installed, elseinstall. - 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}. - 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>
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 2.3 KB
- references/agent-audit.md 12 KB
- references/hard-sync.md 11 KB
- references/memory-guide.md 11 KB
- references/prompting-guide.md 9.6 KB
- references/SKILL.md.template 38 KB
- scripts/generate.sh 47 KB runs code
- scripts/scope-guard.sh 4.3 KB runs code
- tests/run.sh 2.6 KB runs code
- tests/suite-emit-safety.mjs 21 KB runs code
- tests/suite-placeholder-census.mjs 5.7 KB runs code
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.
- 6d ago Changed 6213479a593e
- 7d ago Changed 33665115727c
- 9d ago Changed 276e99d89b9a
- 10d ago Changed 5e4aa7c3f220
- 11d ago Changed 092563262ede
- 12d ago Changed 6c4d02182e31
- 18d ago Changed 072190a35f4d
- 19d ago Changed 2179e4f20538
- 24d ago Changed e52695bd7505
- 27d ago First seen · 474 lines · 67 tokens per session scan B d6ccfb204db4
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.
memory-sync-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-sync-setupkochetkov-ma/claude-brewcode | Skill | 41 | 7d ago | MIT | B | 67 | Claude Code |
| doc-digestegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 75 | Claude Code |
| fresh-startegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 60 | Claude Code |
| token-checkegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 66 | Claude Code |
| project-contextegorfedorov/claude-context-optimizer | Skill | 136 | 6d ago | MIT | A | 81 | Claude Code |
| brain-logtoroleapinc/claude-brain | Skill | 95 | 5mo ago | MIT | B | 10 | Claude Code |
| session-historyalivecontext/alive | Skill | 132 | 12d ago | MIT | A | 74 | Claude Code |