vault-prefetch

Generates a compact digest of vault MOCs and top notes from git context and staged-file changes.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/wtyler2505/ProtoPulse --skill vault-prefetch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vault-prefetch
Source: https://github.com/wtyler2505/ProtoPulse/tree/main/.claude/skills/vault-prefetch
Command: npx skills add https://github.com/wtyler2505/ProtoPulse --skill vault-prefetch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyYAML, and includes scripts (resource) components.

What problem does it solve?

Reduces session-start latency by generating a cached digest of relevant vault topics based on the current working context and recent activity, eliminating the need for immediate vault searches during the early part of a session.

Core Features & Use Cases

  • Detects session context (cwd, recent git activity, and staged files) and maps it to vault topics.
  • Queries the knowledge vault for matching MOCs and top notes to produce a concise digest.
  • Writes the digest to ops/cache/prefetch-<branch>.md for fast ambient context in prompts.
  • Can be invoked at session start via a SessionStart hook or manually with /vault-prefetch.
  • Supports caching and fast refresh with a one-hour freshness window.

Quick Start

Run /vault-prefetch at session start to generate the digest used as ambient context for this session.

Frequently Asked Questions about vault-prefetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pre-fetch vault context to reduce AI session start latency?

Pre-fetching vault context generates a cached digest of relevant topics based on your current working directory and recent git activity. This digest serves as immediate ambient context, eliminating the need for manual vault searches during early session initialization.

Can I automate vault context prefetching when a new session starts?

Yes, you can automate vault context prefetching by invoking it at session start through a SessionStart hook. This automatically detects your working context and recent git staged changes to map them to relevant vault topics.

What is a vault digest and how does it work with AI system prompts?

A vault digest is a machine-readable summary of matching MOCs and top notes retrieved based on your session context. It is rendered into a compact format suitable for direct inclusion in AI system prompts for immediate background knowledge.

Does vault prefetching work with staged git changes and recent activity?

Vault prefetching works by identifying session context signals from your current working directory, recent git activity, and staged files. It then queries the knowledge vault to map these git changes to relevant MOCs and top notes.

What are the limitations of caching vault digests for AI context?

The main limitation of caching vault digests is a one-hour freshness window. After one hour, the cached prefetch file at ops/cache may become stale and require a manual refresh or a new session start to capture recent git activity accurately.