Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

memory-sync-setup

FreeRuns bundled scriptsNot checked

Generates a project-tailored memory-sync skill: memory surface batches, checkable-fact catalogue, non-growth sync, independent verify, self-sync, agent…

kochetkov-maby kochetkov-ma★ 41 GitHub stars

About this skill

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>

What the emitted skill does

A long-running multi-agent coordinator that diffs instruction memory against the code for a SCOPE and repairs it -- facts FIRST, dedup second, compression third -- under a NON-GROWTH prime directive (every file ends <= its original line count, total delta <= 0). It sweeps the WHOLE memory surface every run in disjoint batches, so parallel edits never collide. Three orthogonal axes: {SCOPE} = WHICH change facts drive the sweep, {DEPTH} = HOW HARD the surface is cut, {REACH} = HOW WIDE the editable set is.

Axis Emitted behaviour
Scopes session (DEFAULT -- facts from THIS conversation, no gather agent), branch (diff vs the derived default branch), commit <sha> / commit <a>..<b>, recent[:N] (default 10), all (every checkable fact re-verified)
Depth NORMAL (DEFAULT -- fact sync + dedup + compression) or HARD (+ the two passes of references/hard-sync.md), from the token hard or that intent in prose ("too much context", "aggressive", "почисти жёстко")
Reach MEMORY (DEFAULT -- the instruction surface only) or REFS (plus the git-TRACKED outside references that always-loaded instruction files cite and tell their reader to open); never overrides the docs/source/secrets exclusions
HARD pass A rules paths: PRECISION audit -- a missing glob loads the rule into EVERY context at launch, a broad one on the first matching file access (nearly every session), so the glob must be the narrowest covering the rule's real subject. Verdicts OK / TOO_BROAD / TOO_NARROW / DANGLING / MISSING / CORRECTLY_GLOBAL; a genuinely repo-wide subject carries none and one is never invented
HARD pass B OBVIOUS-KNOWLEDGE PURGE -- what a competent model already knows is DELETED, not compressed; kept: decisions that invert a default, domain invariants, environment quirks, explicit prohibitions
Focus free text after the scope token: emphasis ordering only, never a filter or batch skip
Phase GATHER parallel read-only agents: change facts + target inventory BY ENUMERATION ({ENUMERATION_BASH}), never a hardcoded list
Phase SYNC ONE bounded agent per disjoint batch, ALL spawned in ONE message, each given its files, the change facts and house invariants
Phase VERIFY independent read-only checkers, one per EDITED batch, never its writer: re-verify added/fixed facts in code, prove removed facts gone from REALITY, assert frontmatter/ids/secrets/language
Phase SELF-SYNC updates ITSELF: re-enumerated counts, new batches, sections for memory layers the project gained. Scope DECISIONS (batch table, exclusions) change only on explicit user instruction
Phase PROPOSE new age
Full SKILL.md on GitHub

Install memory-sync-setup in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Edit
Glob
Grep
Bash
Agent
AskUserQuestion

Bundled files

README.mdreferences/SKILL.md.templatereferences/agent-audit.mdreferences/hard-sync.mdreferences/memory-guide.mdreferences/prompting-guide.mdscripts/generate.shscripts/scope-guard.sh

FAQ

What does the memory-sync-setup skill do?

Generates a project-tailored memory-sync skill: memory surface batches, checkable-fact catalogue, non-growth sync, independent verify, self-sync, agent re-audit. Triggers: memory sync init, generate memory sync, sync memory skill, установи memory-sync, синхронизируй память

How do I install the memory-sync-setup skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the memory-sync-setup skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare memory-sync-setup with