Skip to content
Back to skills

Vault Maintenance

ASecurity

Retrieve and diagnose an existing Obsidian second-brain vault. Use for BM25F lookup, context packs, graph navigation, indexing, task/tag/staleness reports, broken-link checks, or vault health diagnostics. Not for new capture, Inbox filing, or weekly review; use the focused vault skills.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 26, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 26, 2026

npx -y skills add sjkeller/second-brain-template --skill vault-maintenance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vault Maintenance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vault Maintenance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sjkeller-vault-maintenance-a2e0fdf8/badge)](https://www.skillsdirectory.com/skills/sjkeller-vault-maintenance-a2e0fdf8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vault-maintenance
description: Retrieve and diagnose an existing Obsidian second-brain vault. Use for BM25F lookup, context packs, graph navigation, indexing, task/tag/staleness reports, broken-link checks, or vault health diagnostics. Not for new capture, Inbox filing, or weekly review; use the focused vault skills.
---

# Vault Maintenance

Use `python3` in the commands below; `py` is the fallback for Windows installations that
do not expose that executable name.

Operate from the vault root. Every command below is deterministic: it costs no reasoning,
so call it instead of inferring the answer.

## Retrieve

```
python3 90-system/automation/vault.py query "<terms>" --limit 8 --compact
python3 90-system/automation/vault.py query "<terms>" --type concept --tag learning --since 2026-01-01
python3 90-system/automation/vault.py pack "<terms>" --budget-tokens 4000
python3 90-system/automation/vault.py related "<path>.md" --depth 2
```

`query` ranks with BM25F and falls back to prefix expansion; add `--fuzzy` for typos.
`pack` returns one token-budgeted bundle instead of several reads. See
[[90-system/Retrieval Guide]] for when to use which.

When changing retrieval behavior, use the ignored human-judged cases described in
[[90-system/Retrieval Evaluation]] and run `vault.py eval-retrieval`. Do not recommend or
enable semantic retrieval from anecdotes; apply the documented evidence gate.

## Maintain existing notes

Preserve meaning and provenance when repairing links, metadata, or MOC membership. Read
[[90-system/Vault Contract]] and [[90-system/Link Policy]]. When frontmatter or placement
is material, also read [references/schema.md](references/schema.md). Add only meaningful
lateral links. Hand new captures to `vault-capture`, Inbox filing to `vault-triage`, and
periodic review to `vault-review`.

For current facts, also read [[90-system/Freshness Policy]]. Treat freshness findings as
review prompts: re-verify, convert to a truth pointer, or preserve the value in a dated
snapshot. Typed-link inverse warnings require judgement; never invent an inverse merely to
silence the checker.

## Report

```
python3 90-system/automation/vault.py tasks --state open --compact
python3 90-system/automation/vault.py stale --days 180 --compact
python3 90-system/automation/vault.py tags --compact
```

## Validate

```
python3 90-system/automation/vault.py index
python3 90-system/automation/vault.py check
```

`check` separates errors from warnings and exits nonzero only on errors. Fix broken links,
duplicate ids or titles, and stale skill pointers first. Placement, MOC-coverage, orphan,
staleness, and tag warnings are judgement calls — report them, do not silently "fix" them.
Do not delete notes automatically. Merge only after explicit user agreement and only with
the hashed preview/apply workflow in [[90-system/Safe Merge Policy]].

For interrupted multi-session work, update [[90-system/AI Handoff]] with confirmed state
and the next safe action.

Files in this skill

  • SKILL.md2.9 KB
  • agents/openai.yaml226 B
  • references/schema.md4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.