vault-index
Skill0 starsChanged 2 months agoMITView on GitHub
Use when an agent must navigate a vault, or when the user says 'index the vault', 'refresh indexes', 'add index.md everywhere'. Writes an auto-generated index block into an index.md at every folder level; hand-written text outside the markers is preserved.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- letsloose501/sqs-agent-memorytheir own version, first seen Nov 3, 2026
- slogsdon/skills-vault-knowledgetheir own version, first seen Aug 12, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- letsloose501/sqs-agent-memory★ 2same name
- slogsdon/skills-vault-knowledge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- agent-harness-constructionSkill
- claudex-loopSkill
- click-path-auditSkill
- context-budgetSkill
- councilSkill
- deploy-projectSkill
- dreamSkill
- loop-design-checkSkill
- rebootSkill
- regex-vs-llm-structured-textSkill
- rules-distillSkill
- scrapling-officialSkill
- session-auditSkill
- shinen-designSkill
- skillspectorSkill
- skill-stocktakeSkill
- token-budgetSkill
- vault-ingestSkill
- vault-lintSkill
- vault-querySkill
The file
Files
vault-index — an index.md at every folder level
When to use
Agents navigate a vault by reading, not by grepping blind. One index.md per folder (a short list of subfolders + notes with a one-line title each) lets an agent walk top-down and open only what it needs — Chase-style progressive disclosure. Run it after bulk imports, or weekly.
Run
S="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/way-stack}/skills/vault-index/scripts/vault_index.py"
python3 "$S" --vault ~/Workspace --dry # preview: lists CREATE / UPDATE lines
python3 "$S" --vault ~/Workspace # apply- Vault path:
--vault PATHor envWAY_VAULT. Neither → the script errors with usage. --follow-symlink NAME(repeatable): descend into that symlinked folder. Default none: symlinked folders are only listed.- Output ends with
changes=N written=M notes_total=K. A second run must reportchanges=0(idempotent).
Rules the script follows
- Writes ONLY between
<!-- auto-index:start -->and<!-- auto-index:end -->. Text you wrote outside the markers is preserved. An existingindex.mdwithout markers gets the block appended. - Missing
index.md→ created with a# <folder>header. - A pre-existing
index.mdis copied toindex.md.bakbefore its first rewrite. - Skips
.obsidian .git node_modules .trash graphify-outand dotfiles. - A subfolder that is a git repo (contains
.git) is listed as "repo, not indexed" and never entered. - A folder with more than 300 notes is summarized by month instead of listed.
Schedule weekly (optional)
# cron: Sunday 07:00
(crontab -l 2>/dev/null; echo '0 7 * * 0 WAY_VAULT=$HOME/Workspace python3 $HOME/.claude/plugins/way-stack/skills/vault-index/scripts/vault_index.py >> $HOME/.claude/vault-index.log 2>&1') | crontab -On macOS prefer launchd if cron lacks disk access to your vault folder.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

