moc-update

moc-update is a skill for Claude Code, Codex from thoreinstein/gemini-obsidian. It costs 57 tokens per session (369 once invoked), scanned A, original, ISC.

A helper that finds Maps of Content (MOCs), which are notes used as topic indexes, for a newly created Engineering note. It suggests where to add links and waits for approval before editing.

In plain words
What is it for?
Use it to find relevant MOCs, choose the right section, draft a link, and add it to the index after confirmation.
Why use it?
It removes the need to manually search through indexes after writing a note. It can also suggest a starter MOC when none exists.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find relevant MOCs, choose the right section, draft a link, and add it to the index after confirmation.

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

Made for: Claude Code, 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 moc-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoreinstein/gemini-obsidian/moc-update.svg)](https://agentmods.dev/skills/thoreinstein/gemini-obsidian/moc-update)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/gemini-obsidian/moc-update"><img src="https://agentmods.dev/badge/skills/thoreinstein/gemini-obsidian/moc-update.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 369 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 pass 7 Sept 2026
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.00057 $0.00369
Opus 5 $0.00028 $0.00185
Sonnet 5 $0.00011 $0.00074
Haiku 4.5 $0.00006 $0.00037

Measured 8d ago against content hash 4b7548e8746e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

moc-update 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/moc-update/SKILL.md · 40 lines

What it actually says

MOC Update After New Note

Find the Maps of Content (MOCs) that should link to a newly created note and suggest the additions.

Workflow

  1. Identify the new note — Path follows the skill invocation. If not provided, ask.

  2. Semantic MOC search — Call obsidian_rag_query with the note title as query, limit: 10. Flag results that are MOC-style notes (path contains "MOC", filename ends in "-MOC", or type: moc frontmatter).

  3. Keyword fallback — Call obsidian_search_notes with key terms from the note title to catch MOCs that aren't yet indexed.

  4. Present suggestions — For each candidate MOC, show:

    • The MOC path
    • Which heading the link should go under (if readable)
    • A proposed link line: - [[NoteName]] — one-line description
  5. Append on confirmation — Call obsidian_insert_at_heading (preferred) or obsidian_append_note to add the link. Never edit without user approval.

Arguments

New note path: /moc-update Engineering/AuthPatterns.md

Tips

  • If the vault has no MOCs yet, offer to create a starter one at MOCs/<Topic>-MOC.md
  • Daily Notes are not MOCs — skip them in results
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. 8d ago First seen · 40 lines · 57 tokens per session scan A 4b7548e8746e

Subscribe to this mod's changes

moc-update is a skill published in the GitHub repository thoreinstein/gemini-obsidian (102 stars, last pushed 1mo ago), licensed ISC. It adds 57 tokens to every session and 369 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.