claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialproductivity

🗂️obsidian-vault

プラグイン
desktop-commander

説明

Obsidian vaultをMOC、wikilink、frontmatter/properties、ダッシュボード、orphan noteチェック、クリーンアップワークフローで整理します。 次のような場合に使用: ユーザーが明示的にObsidianに言及している場合のみ。具体的には、「Obsidian」という名前、Obsidian「vault」、またはwikilink(「[[ ]]」)、DataviewプラグインやBasesプラグイン、Obsidian PropertiesといったObsidian固有の機能を挙げている場合です。 Obsidianのコンテキストでは、以下の作業をカバーします: - Maps of Contentの作成 - wiklinkの追加/修正 - orphan noteの検出 - YAML frontmatterの正規化 - Dataview/Basesダッシュボードの生成 - フォルダの整理 - noteの重複排除または名前変更 - AI使用に向けたvaultの準備 注意: 汎用的なnote-taking、Markdown、またはObsidianに言及していない知識ベース関連のリクエストには、このskillを使用しないでください。

原文を表示

Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties, dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user explicitly refers to Obsidian — by naming "Obsidian", an Obsidian "vault", or an Obsidian-specific feature such as wikilinks ("[[ ]]"), the Dataview or Bases plugins, or Obsidian Properties. Within that Obsidian context it covers creating Maps of Content, adding/fixing wikilinks, finding orphan notes, normalizing YAML frontmatter, generating Dataview/Bases dashboards, organizing folders, deduplicating or renaming notes, and preparing the vault for AI use. Do NOT use this skill for generic note-taking, Markdown, or knowledge-base requests that don't mention Obsidian.

ユースケース

  • Maps of Contentを作成するとき
  • wiklinkの追加/修正が必要なとき
  • orphan noteを検出したいとき
  • YAML frontmatterを正規化するとき
  • Dataview/Basesダッシュボードを生成するとき
  • noteの重複排除または名前変更をするとき

本文(日本語訳)

Obsidian Vault Assistant

ユーザーが Obsidian vault を整理・維持する支援:MOC と wikilink でナビゲーションを構築、メタデータを正規化、ダッシュボードを生成、孤立したノートを検出・修正、フォルダを整理、重複排除・リネーム、AI 活用向けの vault を準備する。

Obsidian固有の仕様(すべてのルールの基礎):

  • リンクは wikilink であり、パスではなく ファイル名 で解決される:[[Note title]]。Obsidian内でノートをリネームすると、リンクが自動的に更新されるが、Obsidian外でファイルを移動するとリンクが壊れる — 可能な限り常に Obsidian 内でリネームすること。
  • メタデータはノート先頭の Properties(YAML frontmatter)。
  • ダッシュボードは Dataview(クエリ言語、読み取り専用、柔軟)または Bases(ネイティブ、編集可能なテーブル、大規模 vault で高速、property のみ対応)から生成される。

実行前に、vault のルートフォルダを確認し、ユーザーが Dataview plugin をインストール済みか確認する(Bases は Obsidian 1.9 以降に組み込み)。リクエストが曖昧な場合(整理 vs. クリーンアップ vs. ダッシュボード)、どのタスクかを質問する。

Wikilink

  • 基本:[[Three laws of motion]] — ファイル名で解決、拡張子やパスは含まない。
  • 表示テキスト(pipe):[[atomic-habits|James Clear — Atomic Habits]]
  • 見出しリンク:[[Note#Section]]。ブロックリンク:[[Note#^block-id]]
  • 埋め込み・トランスクルード:![[Note]]![[Note#Section]]![[image.png]]
  • エイリアス:aliases property を追加して、別の名前でノートを解決できるようにする。
  • ファイル名に # | ^ : % [ ] は避ける — これらはリンク内で特別な意味を持つ。
  • 内部ナビゲーションには wikilink を使用;vault が wikilink をパースできないツールに公開される場合にのみ、標準 Markdown リンクを使用する。

リンク追加時は unlinked mentions(unlinked 提及)も明らかにする:ノートのタイトルが他のノートにプレーンテキストとして現れた場合、それらを wikilink に変換する。

Maps of Content(MOC)

MOC は関連するノートをトピック上でリンクするノート — vault のナビゲーション層(フォルダやタグより柔軟で、制度的知識が不要)。

慣例:

  • MOC に明確な名前を付け、タグを付与:tags: [moc](または type: moc property)して、すべての MOC が自身も検出可能にする。
  • すべてのトピック MOC にリンクするトップレベルの Home / Index MOC を保持する。
  • MOC は簡潔なイントロと分類された wikilink を含み、手動キュレーションまたは Dataview/Bases クエリ(ダッシュボード参照)で自動生成できる。

MOC テンプレート:

---
type: moc
tags: [moc]
updated: 2026-06-18
---
# Auth — Map of Content

認証、セッション、アクセス制御に関するノート。

## Core
- [[auth-flow]]
- [[session-tokens]]

## Related MOCs
- [[security-moc]]

Frontmatter / Properties

すべてのノートに一貫した property ブロックを追加。推奨される基本形:

---
title: Session tokens
aliases: [tokens, session token]
tags: [auth, security]
type: note            # note | moc | dashboard | template | person | project
created: 2026-06-18
updated: 2026-06-18
status: evergreen     # seedling | growing | evergreen
related: ["[[auth-flow]]"]
---

ルール:

  • 制御された tag 語彙 を使用 — tag を事前に決定して再利用;ネストされた tag(auth/tokens)は可。tag が増殖しないようにする。
  • frontmatter 内の tags# は不要。日付は ISO YYYY-MM-DD 形式。
  • vault 全体で property 名と型を一貫させる — Bases と Dataview は共にこれに依存する。正規化時、概念ごとに 1 つの名前を選択(例:createdcreated/date/Created ではなく)して、残りを移行する。

ダッシュボード

ユーザーのセットアップに基づいてエンジンを選択:

Bases(ネイティブ、編集可能、高速 — 運用ボード向けが最適):

  • .base ファイルまたは base コードブロックを作成;property からテーブル/ボードビューが構築される。各セルは基礎となるノートの frontmatter を編集する。
  • タスクリスト、読書リスト、プロジェクトパイプライン、ポイント・アンド・クリックな用途に使用。

Dataview(plugin、読み取り専用、最柔軟 — レポート/自動 MOC 向けが最適):

TABLE status, updated, tags
FROM #auth
WHERE type = "note"
SORT updated DESC

トピック内のすべてを対象とした自動 MOC:

LIST FROM #auth WHERE type != "moc" SORT file.name ASC

最近更新されたノート:

TABLE updated FROM "" WHERE updated >= date(today) - dur(7 days) SORT updated DESC

注:大規模 vault では重い Dataview クエリがラグを引き起こす可能性 — そこでは Bases を優先する。

孤立ノートとリンク衛生

孤立ノートはインバウンドまたはアウトバウンドリンクを持たないノート。検出・修正するには:

  1. Desktop Commander から(アプリ不要、大規模 vault にスケール):vault で [[ ]] リンクを各ノートのタイトルに対して start_search — ゼロヒットはインバウンドリンク無し(unlinked ノート);真の孤立(インバウンドかつアウトバウンドなし)を確認するには、ノート自身の本体で [[...]] もスキャンする。同じ検索で unlinked mentions[[ ]] でラップされていないプレーンテキストのタイトル)と broken links(ファイルが欠落している [[target]])も明らかにする。

  2. Graph view(Cmd/Ctrl+G):孤立ノートは端の孤立した点として浮上する。

  3. Dataview query でリンクなしのノートを検出:

    LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0
    
  4. 各孤立ノートについて:関連 MOC/ノートからリンク(edit_block で wikilink を挿入)、#needs-link でタグ付けしてバッチ処理、または廃止なら保存。

  5. unlinked mentions を実際の wikilink に変換し、edit_block で broken links を修正;残りは Obsidian の右サイドバーから解決する。

フォルダ整理

  • フォルダは大ざっぱなバケット;MOC + tag が本当の整理を行う。フォルダをネストさせすぎない。

  • 実用的なレイアウト:

    00-inbox/        # unsorted captures
    10-notes/        # atomic notes
    20-mocs/         # maps of content
    30-projects/
    90-assets/       # images/attachments
    99-archive/
    templates/
    
  • Settings で attachment folder を設定して、埋め込みが 90-assets/ に着地するようにする。

  • 移動・リネームは Obsidian 内で実施 して wikilink を自動的に更新 — move_file は使用しない、すべての [[link]] を壊す。Desktop Commander からは、content のみ編集(edit_block / write_file);移動・リネームはアプリ内でユーザーに任せる。

重複排除・リネーム

  • 重複:タイトル/エイリアスで start_search してほぼ同一のノートを検出;1 つにマージし、最もリンク数の多いファイル名を保持、edit_block で固有コンテンツをコピー、破棄予定ノートへのインバウンド [[links]]start_search して削除前にリポイント。
  • リネーム:Obsidian 内で実施(Rename note / F2)してバックリンクを更新 — move_file 経由ではなく。広くリファレンスされていた場合は、古い名前の aliases エントリを保持。
  • ファイル名を標準化:kebab-case または Title Case のいずれか 1 つの慣例を選択し、一貫して適用;上記の特殊文字は避ける。

AI 活用向け vault を準備

  • 一貫した frontmatter(同じ property 名・型)を確保して、agent がメタデータをフィルタし推論できるように。
  • Home/Index MOC を単一のエントリポイントとして保持(agent が最初に読む)。
  • ノートごとに 1 行の summary/description property を記述(素早いスキャン向け)。
  • 孤立と broken links を削減してリンクグラフを信頼できるマップに。
  • ノートを atomic に保つ(各ノートは 1 つのアイデア)— agent が取得・引用しやすくなる。
  • AI ツールが [[ ]] をパースできない場合は wikilink を標準 Markdown リンクにエクスポート検討。

ワークフロー

  • ナビゲーション構築:トピック MOC を write_file → ノートの中を edit_block してリンク → Home MOC をリフレッシュ → unlinked mentions を変換。
  • メタデータ正規化:property を監査するため read_multiple_files → 標準名を選択 → 各ノートを edit_block → ベースライン property を追加。
  • クリーンアップパス:孤立、broken links、unlinked mentions を start_search → 重複排除 → 何が変更されたか報告(リネームは Obsidian に留まる)。
  • ダッシュボード:Dataview と Bases を確認 → property/tag からビューを write_file

完了前のチェックリスト

  • [ ] 新規・変更ノートが一貫した frontmatter(標準 property 名)を持つ。
  • [ ] リネーム・移動は Obsidian 内で実施済み;リンク壊れなし。
  • [ ] 新規ノートが少なくとも 1 つの MOC またはノートからリンクされている(新規孤立なし)。
  • [ ] Tag が制御された語彙から引き出されている。
  • [ ] ダッシュボードが実際に存在する property/tag を参照している。
  • [ ] 変更ノートの updated がバンプされている。
原文(English)を表示

Obsidian Vault Assistant

Help the user organize and maintain an Obsidian vault: build navigation with MOCs and wikilinks, normalize metadata, generate dashboards, find and fix orphans, organize folders, deduplicate/rename, and prepare the vault for AI use.

Obsidian-specific facts that shape every rule here:

  • Links are wikilinks resolved by filename, not path: [[Note title]]. Renaming a note auto-updates links inside Obsidian, but moving files outside Obsidian breaks them — always rename via Obsidian when possible.
  • Metadata is Properties (YAML frontmatter) at the top of a note.
  • Dashboards come from Dataview (query language, read-only, flexible) or Bases (native, editable tables, fast on big vaults, properties-only).

Before acting, confirm the vault's root folder and whether the user has the Dataview plugin installed (Bases is built in since Obsidian 1.9). When a request is ambiguous (organize vs. clean up vs. dashboard), ask which task.

Wikilinks

  • Basic: [[Three laws of motion]] — resolves by filename, no extension/path.
  • Display text (pipe): [[atomic-habits|James Clear — Atomic Habits]].
  • Heading link: [[Note#Section]]. Block link: [[Note#^block-id]].
  • Embed/transclude: ![[Note]], ![[Note#Section]], ![[image.png]].
  • Aliases: add an aliases property so the note resolves under other names.
  • Avoid # | ^ : % and [ ] in filenames — they have special meaning in links.
  • Prefer wikilinks for internal navigation; use standard Markdown links only if the vault is also published to a tool that can't parse wikilinks.

When adding links, also surface unlinked mentions: if a note's title appears as plain text in other notes, convert those to wikilinks.

Maps of Content (MOCs)

A MOC is a note that links the related notes on a topic — the vault's navigation layer (more flexible than folders or tags, and needs no institutional knowledge).

Conventions:

  • Name MOCs clearly and tag them: tags: [moc] (or a type: moc property) so every MOC is itself discoverable.
  • Keep a top-level Home / Index MOC that links to all topic MOCs.
  • A MOC holds a short intro plus grouped wikilinks; it can be hand-curated or auto-generated with a Dataview/Bases query (see Dashboards).

MOC template:

---
type: moc
tags: [moc]
updated: 2026-06-18
---
# Auth — Map of Content

Notes on authentication, sessions, and access control.

## Core
- [[auth-flow]]
- [[session-tokens]]

## Related MOCs
- [[security-moc]]

Frontmatter / Properties

Add a consistent property block to every note. Recommended baseline:

---
title: Session tokens
aliases: [tokens, session token]
tags: [auth, security]
type: note            # note | moc | dashboard | template | person | project
created: 2026-06-18
updated: 2026-06-18
status: evergreen     # seedling | growing | evergreen
related: ["[[auth-flow]]"]
---

Rules:

  • Use a controlled tag vocabulary — decide tags up front and reuse them; nested tags (auth/tokens) are fine. Don't let tags sprawl.
  • tags use no # in frontmatter. Dates in ISO YYYY-MM-DD.
  • Keep property names and types consistent across the vault — Bases and Dataview both depend on this. When normalizing, pick one name per concept (e.g. created, not created/date/Created) and migrate the rest.

Dashboards

Pick the engine based on the user's setup:

Bases (native, editable, fast — best for operational boards):

  • Create a .base file or a base code block; it builds table/board views from properties. Each cell edits the underlying note's frontmatter.
  • Use for task lists, reading lists, project pipelines, anything point-and-click.

Dataview (plugin, read-only, most flexible — best for reports/auto-MOCs):

TABLE status, updated, tags
FROM #auth
WHERE type = "note"
SORT updated DESC

Auto-MOC of everything in a topic:

LIST FROM #auth WHERE type != "moc" SORT file.name ASC

Recently updated:

TABLE updated FROM "" WHERE updated >= date(today) - dur(7 days) SORT updated DESC

Note: large vaults can lag with heavy Dataview queries — prefer Bases there.

Orphan notes & link hygiene

An orphan is a note with no inbound or outbound links. To find and fix:

  1. From Desktop Commander (no app needed, scales to big vaults): start_search the vault for [[ ]] links to each note's title — zero hits means no inbound links (an unlinked note); to confirm a true orphan (no inbound and no outbound), also scan the note's own body for [[...]]. The same searches surface unlinked mentions (the title as plain text, not wrapped in [[ ]]) and broken links (a [[target]] whose file is missing).
  2. Graph view (Cmd/Ctrl+G): orphans float as isolated dots at the edges.
  3. Dataview query for notes with no links:
    LIST WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0
    
  4. For each orphan: link it from a relevant MOC/note (edit_block to insert the wikilink), tag it #needs-link for a batch pass, or archive if obsolete.
  5. Convert unlinked mentions into real wikilinks and fix broken links with edit_block; resolve the rest from Obsidian's right sidebar.

Folder organization

  • Folders are for coarse buckets; MOCs + tags do the real organizing. Don't over-nest folders.
  • A workable layout:
    00-inbox/        # unsorted captures
    10-notes/        # atomic notes
    20-mocs/         # maps of content
    30-projects/
    90-assets/       # images/attachments
    99-archive/
    templates/
    
  • Set the attachment folder in Settings so embeds land in 90-assets/.
  • Moves/renames must happen inside Obsidian so wikilinks update automatically — do not use move_file for these, it breaks every [[link]]. From Desktop Commander, only edit content (edit_block / write_file); leave moving and renaming to the user in the app.

Deduplicate & rename

  • Duplicates: start_search titles/aliases to find near-identical notes; merge into one, keep the most-linked filename, copy unique content with edit_block, then start_search for inbound [[links]] to the discarded note and repoint them before deleting it.
  • Renames: do them inside Obsidian (Rename note / F2) so backlinks update — not via move_file. Keep an aliases entry for the old name if it was widely referenced.
  • Standardize filenames: pick one convention (kebab-case or Title Case) and apply it consistently; avoid the special characters listed above.

Prepare the vault for AI use

  • Ensure consistent frontmatter (same property names/types) so an agent can filter and reason over metadata.
  • Maintain a Home/Index MOC as the single entry point an agent reads first.
  • Write a one-line summary/description property per note for quick scanning.
  • Reduce orphans and broken links so the link graph is a reliable map.
  • Keep notes atomic (one idea each) — easier for an agent to retrieve and cite.
  • Consider exporting wikilinks to standard Markdown links if the AI tool can't parse [[ ]].

Workflows

  • Build navigation: write_file topic MOCs → edit_block notes to link them in → refresh the Home MOC → convert unlinked mentions.
  • Normalize metadata: read_multiple_files to audit properties → pick canonical names → edit_block each note → add missing baseline properties.
  • Cleanup pass: start_search for orphans, broken links, and unlinked mentions → dedupe → report what changed (renames stay in Obsidian).
  • Dashboard: confirm Dataview vs. Bases → write_file the view from properties/tags.

Checklist before finishing

  • [ ] New/changed notes have consistent frontmatter (canonical property names).
  • [ ] Renames/moves done inside Obsidian; no links broken.
  • [ ] New notes linked from at least one MOC or note (no new orphans).
  • [ ] Tags drawn from the controlled vocabulary.
  • [ ] Dashboards reference properties/tags that actually exist.
  • [ ] updated bumped on changed notes.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。