mm-vault

A setup tool that creates a private GitHub repository for an Obsidian project memory folder and connects it to Claude.ai project knowledge. Obsidian is a note-taking app that stores information as files.

In plain words
What is it for?
Use it to create a memory vault, set up memory synchronization, or initialize the Git repository used for that synchronization.
Why use it?
It keeps long-term project notes synchronized without manually copying them between tools. It also checks the project and memory-folder settings needed for the setup.

Skill for Claude CodeCodex

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 skills/mworldorg/markdown-memory/mm-vault
Any agent
npx skills add mworldorg/markdown-memory --skill mm-vault
Clone the repo
git clone --depth 1 https://github.com/mworldorg/markdown-memory

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,594 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.00069 $0.01594
Opus 5 $0.00034 $0.00797
Sonnet 5 $0.00014 $0.00319
Haiku 4.5 $0.00007 $0.00159

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

Security

Grade A, and why

mm-vault 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 3d 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.

skills/mm-vault/SKILL.md · 107 lines

How it starts

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

mm-vault — Memory Vault Git Sync Initializer

Инициализирует и настраивает приватный git-репозиторий для папки памяти проекта Obsidian Vault. Это позволяет синхронизировать долгосрочную память с claude.ai Project Knowledge/Files через интеграцию с GitHub, исключая ручной копипаст.

Конфиг

Загрузи mm-config.json по алгоритму из <repo>/docs/CONFIG-LOADING.md. Поддержка mm-config.local.json overlay обязательна.

Понадобятся:

  • paths.obsidian_projects
  • paths.obsidian_vault

Процесс

Шаг 1. Определи проект и папку памяти (Vault Root)

  1. Определи проект по passport.md в текущей cwd или её родительских директориях.
    • Извлеки имя проекта из YAML frontmatter project: (или из поля "Имя" таблицы Идентификация).
    • Если passport.md не найден, выведи предупреждение и спроси имя проекта или предложи запустить /mm new сначала.
  2. Определи slug проекта (в нижнем регистре, с заменой пробелов на дефисы). Для markdown-memory slug равен markdown-memory.
  3. Определи путь базы знаний <vault_root> по единому алгоритму резолва:
    • (1) из секции ## Obsidian Knowledge Vault в CLAUDE.md со строкой Хранилище знаний: <путь>, если она есть;
    • (2) локальная папка .vault/ в корне проекта;
    • (3) глобальная папка проекта <obsidian_projects>/<slug>/ из конфига.
  4. Выведи пользователю подтвержденный путь папки памяти.

Шаг 2. Покажи состав папки и прогони Secret-Scan

  1. Сделай рекурсивный обход папки <vault_root> и покажи дерево файлов, которые попадут в репозиторий.
  2. Прогони все файлы папки через паттерны из канона <repo>/config/secret-patterns.json (пояснение — <repo>/docs/SECRET-PATTERNS.md).
    • Класс A (Высокоточные секреты):
      • Если найден хотя бы один реальный секрет, останови выполнение (hard-stop).
      • Покажи пользователю найденную строку и файл.
      • Жди явного исправления/подтверждения перед созданием репозитория. Не продолжай автоматически. Блокирует только реальный секрет (когда человек сам убирает реальный секрет).
    • Класс B (Широкие совпадения / предупреждения):
      • Выведи предупреждения в формате: ⚠️ возможный секрет/длинная строка в <файл>, строка N: <первые 12 симв.>… — проверь вручную (не замаскировано).
      • Важно: Класс B служит только для предупреждения пользователя. НИКОГДА не редактируй содержимое файлов памяти проекта ради сканера. Скилл никогда не переписывает текст заметок.
  3. Жди подтверждения (y/n) от пользователя для создания репозитория и первого пуша.

Read the full file on GitHub · 107 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. 3d ago First seen · 107 lines · 69 tokens per session scan A dfe2a749dc5a

Subscribe to this mod's changes

mm-vault is a skill published in the GitHub repository mworldorg/markdown-memory (25 stars, last pushed 16d ago), licensed MIT. It adds 69 tokens to every session and 1,594 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

constraint-driven-development

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or…

addyosmani/agent-skills · 154 tokens

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump…

addyosmani/agent-skills · 74 tokens

test-driven-development

Drives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.

addyosmani/agent-skills · 50 tokens

documentation-and-adrs

Records decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

addyosmani/agent-skills · 43 tokens

shipping-and-launch

Prepares production launches. Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

addyosmani/agent-skills · 45 tokens

spec-driven-development

Creates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear, ambiguous, or only exist as a vague idea. Use when a single requirement spans several independently testable capabilities and needs decomposing into a…

addyosmani/agent-skills · 67 tokens