obsidian-memory

obsidian-memory is a skill for Codex from Ancienttwo/repo-harness. It costs 212 tokens per session (2,280 once invoked), scanned A, original, MIT.

A memory workflow that recalls relevant notes from an Obsidian vault, a folder of linked Markdown notes, and saves useful conclusions after work.

In plain words
What is it for?
Use it before a task to recover related context and afterward to record durable lessons in the relevant project sub-vault and index.
Why use it?
It carries decisions, pitfalls, and solutions between projects while keeping the repository's files as the authoritative source.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Good fit Use it before a task to recover related context and afterward to record durable lessons in the relevant project sub-vault and index.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ancienttwo/repo-harness/obsidian-memory
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 Ancienttwo/repo-harness --skill obsidian-memory
Clone the repo
git clone --depth 1 https://github.com/Ancienttwo/repo-harness

Made for: Codex.

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 obsidian-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/ancienttwo/repo-harness/obsidian-memory/github.svg)](https://agentmods.dev/skills/ancienttwo/repo-harness/obsidian-memory)
Your own site
<a href="https://agentmods.dev/skills/ancienttwo/repo-harness/obsidian-memory"><img src="https://agentmods.dev/badge/skills/ancienttwo/repo-harness/obsidian-memory/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 obsidian-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/ancienttwo/repo-harness/obsidian-memory"><img src="https://agentmods.dev/badge/skills/ancienttwo/repo-harness/obsidian-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 212 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,280 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 88
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00212 $0.02280
Opus 5 $0.00106 $0.01140
Sonnet 5 $0.00042 $0.00456
Haiku 4.5 $0.00021 $0.00228

Measured 2d ago against content hash 7f6adb89a7e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

obsidian-memory 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 2d 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.

assets/skills/obsidian-memory/SKILL.md · 91 lines

How it starts

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

obsidian-memory — cross-project long-term memory (Obsidian brain vault)

Outcome Contract

  • Outcome: recall relevant background from the vault before a task; after the task, persist the conclusions that will still be useful later into the matching project sub-vault, and keep the index current.
  • Done when: the recalled notes have been folded into the current context as leads (after re-verification against current state), or the added/updated notes are on disk and the sub-vault index.md is in sync.
  • Authority model (inviolable): the in-repo artifacts (tasks/, docs/, MEMORY.md, the code) are each project's source of truth; the vault is only a cross-project aggregation/projection layer, and the direction is always repo → brain. When the vault conflicts with current state, current state wins, and the vault gets corrected on the spot.
  • Two readers: the vault is read by agents and by the user. A note must be prose a person can read and learn from directly — complete sentences that state the why and the tradeoff, not agent shorthand and not piles of raw logs; index.md is the human reading entrypoint.
  • Boundary: this skill may only be invoked explicitly by the model or the user. Hooks never execute it — the hook layer may at most emit a [BrainPromote]-style advisory string, and never reads or writes vault state.

Vault resolution (fail-closed, and the vault itself is optional)

  1. Read brainRoot from ~/.repo-harness/config.json.
  2. Not configured, or the path does not exist → stop and say so. Do not scan the disk to guess a vault, and do not create a vault root on the fly.
  3. The project sub-vault is <brainRoot>/<project-slug>/; <project-slug> is the repo directory name or a name the user gives.

Having no brainRoot configured is a legitimate steady state, not a defect awaiting repair. Unconfigured simply means this machine does not use the vault layer: the in-repo artifacts remain a complete, authoritative memory surface, and at closeout the conclusions go into the existing slots such as tasks/lessons.md and docs/researches/. Do not create a vault just so this skill can run. Only when the user explicitly wants the vault layer enabled, point them at repo-harness install --brain-root <path> or repo-harness update --brain-root <path>.

Read the full file on GitHub · 91 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. 2d ago Changed 7f6adb89a7e7
  2. 9d ago First seen · 91 lines · 212 tokens per session scan A 434ceb8d391f

Subscribe to this mod's changes

obsidian-memory is a skill published in the GitHub repository Ancienttwo/repo-harness (431 stars, last pushed today), licensed MIT. It adds 212 tokens to every session and 2,280 once invoked, about $0.0011 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

codebase-memory-mcp

Resolve canonical Git checkouts, index and verify codebase-memory-mcp graphs through the guarded CLI, and safely audit duplicate worktree caches. Use when a user mentions codebase memory MCP, searchgraph, tracepath, indexrepository, worktree indexes, or oversized graph caches.

vincentkoc/dotskills · 62 tokens

mastermind-project-history

Retrieve and reason from durable project decisions, failed approaches, audits, reports, and lessons without treating provenance, search rank, or user approval as technical proof. Use when asking why a design exists, whether an approach was tried, what supersedes an older decision, what prior evidence should constrain…

xcrft/mastermind · 79 tokens

maintain-codex-wiki

Maintain a review-first Markdown knowledge base for Codex practices with source provenance, engineering capture, citation-aware queries, explicit archive and promotion, and deterministic linting. Use when asked to capture a durable engineering lesson, ingest Codex research, query or archive what the repository knows…

Phelan164/codex-howto · 76 tokens

context-compactor

Scans codebase directories and generates a high-level, token-efficient structural overview of all classes, functions, and docstrings, omitting implementation details.

aragaobruno/toolbelt · 34 tokens

workspace-mirror

Sync and backup Antigravity IDE sessions, transcripts, SQLite database metadata, and brain artifacts locally into a structured workspace directory (.gemini-local/) with a rich interactive viewer.html page. Use this skill whenever the user mentions backups, workspace syncing, fswatch real-time mirroring, viewing…

ahadkhan9/workspace-mirror-skill · 82 tokens

capture-to-vault

Use during /research, /scope (or any recipe) to write or update a vault note via dossier-mcp. Agent drafts slug + frontmatter + body + citations, writes the note, and surfaces what was captured so the user can redirect afterward. Supports create (new note) and update (refine existing note) modes.

ethanaubuchon/dossier-tradecraft · 72 tokens