Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

memory-sync-setup

БесплатноЗапускает вложенные скриптыНе проверен

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

kochetkov-maот kochetkov-ma★ 41 звезда на 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>

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
Полный SKILL.md на GitHub

Установить memory-sync-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Edit
Glob
Grep
Bash
Agent
AskUserQuestion

Вложенные файлы

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

FAQ

Что делает скилл memory-sync-setup?

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, синхронизируй память

Как установить скилл memory-sync-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл memory-sync-setup запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить memory-sync-setup с