moc-update

moc-update is a skill for Claude Code from thoreinstein/obsidian-rag. It costs 57 tokens per session (369 once invoked), scanned A, a copy of moc-update, MIT.

A skill for updating Maps of Content, or MOCs: notes that organize links to related notes in an Obsidian vault.

In plain words
What is it for?
Use it to find relevant MOCs, suggest where a new note belongs, and prepare a proposed link; changes are appended only after approval.
Why use it?
It helps keep those note indexes current after a new Engineering note is created.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the obsidian-rag plugin — 13 skills, 2 agents shipped together

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/thoreinstein/obsidian-rag/moc-update
Any agent
npx skills add thoreinstein/obsidian-rag --skill moc-update
Clone the repo
git clone --depth 1 https://github.com/thoreinstein/obsidian-rag

Made for: Claude Code.

Or install obsidian-rag, the plugin that ships this one along with the rest of its 13 skills, 2 agents.

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/obsidian-rag/moc-update.svg)](https://agentmods.dev/skills/thoreinstein/obsidian-rag/moc-update)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/obsidian-rag/moc-update"><img src="https://agentmods.dev/badge/skills/thoreinstein/obsidian-rag/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. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 5d ago against content hash 4b7548e8746e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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

This is a copy

100% identical to moc-update — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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. 5d 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/obsidian-rag (2 stars, last pushed 1mo ago), licensed MIT. 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. It is 100% identical to moc-update, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

tasknotes

Manage tasks in an Obsidian TaskNotes vault. Use for creating, reading, updating, or completing tasks; checking what is open or in progress; adding items to a list; marking tasks done or in progress; updating task status or priority; investigating why a task is missing from a view or board; troubleshooting TaskNotes…

vanillaflava/tasknotes-skill · 120 tokens

create-cmd-instruct

Reshape my PREVIOUS message using extra instructions, then save it as a slash command.

fayis672/slash-IT · 17 tokens

list-cmds

List all my custom slash commands with their descriptions. Use when the user wants to see, browse, or review the custom slash commands they have saved.

fayis672/slash-IT · 30 tokens

coaching-mode

Use when the user wants to coach someone — a report, peer, or mentee — through a problem rather than solve it for them. Trigger phrases include "coach me through how to talk to [report]", "I want to help [name] figure out X without telling them what to do", "let me practice a coaching conversation", "GROW conversation…

shwetank/bettersense · 0 tokens

manage-glue-workers

Use when managing engineers who naturally gravitate toward glue work (onboarding, documentation, unblocking, process improvement) and need protection from burnout, visibility for their impact, and career development that doesn't force them off the IC track. Trigger phrases include "my report does too much glue", "how…

shwetank/bettersense · 122 tokens

user-profile

Use to create or update the user's anchor profile — a single private file (/bettersense-work-reflections/profile.md) that captures who the user is, what they do, what context other skills need to know about them. Read automatically by other skills in the bundle when present, so the user doesn't re-explain themselves…

shwetank/bettersense · 131 tokens