跳到正文
cccskills
免费在 GitHub 公开

vault-health

Audit the vault for structural issues: unresolved wikilinks, orphan notes, dead-end notes, and Obsidian sync conflicts. Optional --fix flags create stubs or surface fixable issues.

中文简介正在准备中。当前显示原文说明。

集成工具Obsidian
查看安装方法

包含的文件(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Vault Health

Usage

  • /vault-health — Run all checks, present a triage report.
  • /vault-health unresolved — Only show unresolved [[wikilinks]].
  • /vault-health orphans — Only show notes with no incoming links.
  • /vault-health deadends — Only show notes with no outgoing links.
  • /vault-health sync — Only check Obsidian sync conflicts.
  • /vault-health --fix-people — For unresolved [[@*]] links, prompt to create Teams/People/@Name.md stubs in batch (delegates to /people-stubs).

Why this skill exists

The vault grows over time and accumulates structural debt:

  • Dead [[@Jane Doe]] links because the person file was never created.
  • Notes orphaned in subfolders, never linked from any project/team page.
  • Sync conflicts when two devices edit the same file simultaneously.

This skill surfaces all of that in one pass.

Workflow

Step 1: Run all checks (or the subset requested)

CheckCommandWhat it returns
Unresolved linksobsidian unresolved format=jsonAll [[link]] pointers with no target file.
Orphansobsidian orphans format=jsonFiles no other file links to.
Deadendsobsidian deadends format=jsonFiles with no outgoing links.
Sync conflictsobsidian sync:status format=jsonFiles with unresolved sync versions.

Run only the requested subset; full sweep when no argument is given.

Step 2: Categorize and present

Group findings by type and severity:

## Unresolved wikilinks (12)

People-flavored ([[@*]]) — likely missing People files:
| # | Link | Referenced in (count) |
|---|------|----------------------|
| 1 | [[@Jane Doe]] | 6 meetings |
| 2 | [[@John Smith]] | 3 meetings |

Other unresolved:
| # | Link | Referenced in |
|---|------|---------------|
| 3 | [[+SomeNewTeam]] | 1 meeting |

## Orphan notes (4)
| # | Path | Created | Reason it might matter |
|---|------|---------|------------------------|
| 1 | Meetings/Engineering/Old Notes.md | 2026-01-12 | Probably needs to link to a project page |

## Deadend notes (8)
...

## Sync conflicts (0)
✓ All synced.

For people-flavored unresolved links, sort by count descending — most-referenced unresolved person is most worth creating a file for.

Step 3: Offer fixes

  • For --fix-people (or after presenting): prompt the user to create People stubs in batch. Delegate to /people-stubs which handles the actual creation.
  • For orphans/deadends: don't auto-fix. They might be intentional. Just surface.
  • For sync conflicts: don't auto-fix. Sync conflicts need human judgment. Surface and tell the user to resolve via Obsidian's UI or obsidian sync:history.

Step 4: Commit

See /commit. The skill itself doesn't write files (except via /people-stubs if invoked). If anything changed, commit message: chore(vault-health): create N people stubs from unresolved links (or similar).

Sync conflict resolution

When obsidian sync:status reports conflicts:

  1. List them with obsidian sync:status format=json (path + version count per file).
  2. For each conflicted file, surface in the report with these next-action hints:
    • View versions: obsidian sync:history file="<path>" — see what each side wrote.
    • Read a specific version: obsidian sync:read file="<path>" version=<N> — preview without writing.
    • Restore: obsidian sync:restore file="<path>" version=<N> — pick one side.
    • Manual merge (preferred when both sides have meaningful changes): open the file in Obsidian, use the Sync history pane to pick chunks.
  3. Never auto-restore — sync conflicts mean both sides have edits the user might want. Surface and let them choose.

Display sync conflicts at the top of the report (not last) — they're time-sensitive (the longer they sit, the more divergent the versions get).

Important Notes

  • The skill is read-only by default — only --fix-people triggers writes (and even then, via /people-stubs with confirmation).
  • Some orphans are intentional (e.g. USER.md, README.md). Consider an exclusion list in a future iteration.
  • Sync conflict detection assumes Obsidian Sync is configured. If not, this check is a no-op (prints "✓ Sync not configured — skipped").
  • Obsidian CLI requires the desktop app to be running. If it's not, the skill should print a helpful error.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Fetch & embed AI transcripts as Obsidian callouts. Args: <path>, all, refresh <path>. Prompts for URLs if empty.

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

commit

免费

Stage and commit with flexible intent parsing. Accepts file/folder scope, free-text description, amend, or any combination.

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

defuddle

免费

Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

Resolve and fill Participants frontmatter + link unlinked names in body. Args: <path>, all.

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

Extract action items as plain markdown bullets (with confirmation). Args: <path>. No args = run [/note-status pending --step=todos](../note-status/SKILL.md#pending-mode).

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.

中文简介正在准备中。当前显示原文说明。

benoror/obsidianos_work1652026年6月11日 更新

查看 benoror 的全部技能

报告此技能的问题