Agent skill

Refresh Index

by Abilityai in Abilityai/cornelius

Rebuild the Local Brain Search FAISS index to reflect vault changes

MITAuto-check: notesDatabases

Install Refresh Index

skills CLI
$ npx skills add Abilityai/cornelius --skill refresh-index -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Abilityai/cornelius refresh-index --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Abilityai/cornelius.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/refresh-index .claude/skills/refresh-index && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refresh-index
GitHub stars
109
Token cost
~1.5k tokens
SKILL.md length
734 words
Files
1
Skills in repo
56
Repo updated
First seen
Licence
MIT

At a glance

Rebuild the Local Brain Search FAISS index to reflect vault changes

  • Works in 4 steps: Verify Prerequisites → Run the Indexer (incremental, short,… → Verify Index → …
  • Tasks that involve Vector databases
  • SKILL.md covers Purpose, State Dependencies, Prerequisites and Process, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Refresh Index is an agent skill from Abilityai/cornelius. Rebuild the Local Brain Search FAISS index to reflect vault changes

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Vector databases. The repository describes itself as: AI-powered second brain template for Claude Code + Obsidian. The licence is MIT.

When your agent uses it

  • Tasks that involve Vector databases

Example prompts

  • “/refresh-index”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Verify Prerequisites
  2. Run the Indexer (incremental, short, resumable)
  3. Verify Index
  4. Re-bootstrap Brain Dependency Graph (MANDATORY — do not defer)

What it can do on your machine

Read from SKILL.md and the folder at commit fd5e9a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refresh Index loads about 1.5k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 734 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Abilityai/cornelius at commit fd5e9a4, republished under its MIT licence (© Abilityai). 734 words, ~1,500 tokens.

Download SKILL.mdSave it as .claude/skills/refresh-index/SKILL.md (or your agent's skills folder).
name
refresh-index
description
Rebuild the Local Brain Search FAISS index to reflect vault changes
allowed-tools
Bash
automation
autonomous
schedule
0 5 * * *

Refresh Index

Rebuild the Local Brain Search vector index to ensure semantic search reflects current vault state.

Purpose

The FAISS index is not auto-updated. This playbook refreshes it so semantic search (and the BDG enrichment layer the Brain Orb reads) reflect the current vault. The indexer is incremental — it re-embeds only changed/new notes — so a daily refresh is a matter of seconds and never a long-running job.

State Dependencies

SourceLocationReadWriteDescription
Brain notesBrain/**/*.md✓Source content to index
Index scriptresources/local-brain-search/run_index.sh✓Indexer
FAISS indexresources/local-brain-search/brain_index/✓Output index

Prerequisites

  • Local Brain Search installed at resources/local-brain-search/
  • Python environment with FAISS dependencies

Process

Step 1: Verify Prerequisites

Check indexer exists:

bash
test -f resources/local-brain-search/run_index.sh && echo "OK" || echo "MISSING"

If missing, abort.

Step 2: Run the Indexer (incremental, short, resumable)

The indexer is incremental: it reuses the embedding of every note whose content is unchanged and re-embeds only the delta. A normal daily run touches a handful of notes and finishes in seconds — there is no long-running job here anymore. Run it, then read the LAST line of its output:

bash
resources/local-brain-search/run_index.sh

The final line is machine-readable:

RESULT reused=<N> embedded=<N> remaining=<N>
  • remaining=0 → the index is complete; go to Step 3.
  • remaining>0 → a large (cold/forced) rebuild was split into short, Trinity-safe batches (default cap: 500 notes/run). Run the exact same command again — each call reuses what's already indexed and embeds the next batch. Repeat until remaining=0. Daily runs are always a single pass.

Execution rules — each call is short (seconds to ~2 min) and must STREAM:

  • Run it in the foreground and let its heartbeat lines stream. Do NOT pipe it through tail/head/grep — they buffer to EOF, so the call looks silent and the 300s stall watchdog can SIGKILL it. And do NOT background it and end the turn to "await a completion notification" — a scheduled turn ending kills the child, so the job never finishes (this is exactly what made this skill silently skip for days). Loop short foreground calls instead; that is the sanctioned Trinity pattern for work that would otherwise be long.
  • Do not stop after the indexer — Steps 3 and 4 MUST run in the same turn, once remaining=0.

The indexer writes the FAISS index, the connection graph, and a build manifest (data/manifest.json, stamping the cosine_ip edge formula + builder_version) — the manifest is written only on the final pass (remaining=0).

Full rebuild after an indexing/edge-logic change (e.g. the semantic-edge formula): bump BUILDER_VERSION in memory_config.py, then force every note to re-embed by removing the stale index and running the normal resumable loop, so every call stays short:

bash
rm -f resources/local-brain-search/data/brain.faiss resources/local-brain-search/data/brain_metadata.pkl
# then loop Step 2 until remaining=0

(run_index.sh --force also re-embeds everything, but in ONE unbounded pass — use it only for an attended manual rebuild, never on a Trinity schedule.)

Show full SKILL.md (298 more words)Show less
Step 3: Verify Index

Confirm index works:

bash
resources/local-brain-search/run_connections.sh --stats --json

Should return valid JSON with note count > 0.

Step 4: Re-bootstrap Brain Dependency Graph (MANDATORY — do not defer)

This is the step the whole pipeline exists for. It writes resources/brain-graph/data/graph_enrichments.json — the enrichment layer that the Brain Orb and every coherence/lifecycle skill read. If the run ends before this step (backgrounded indexer, watchdog kill, "I'll finish later"), the index may be fresh but the enrichment layer stays stale and the orb graph stops updating. Run it in the SAME turn as Steps 2-3, as a foreground call:

bash
resources/brain-graph/run_brain_graph.sh bootstrap --force

Verify:

bash
resources/brain-graph/run_brain_graph.sh status

Should show enriched nodes matching the new index count. The run is only complete once this reports a node count close to the indexer's — a fresh FAISS index with a stale graph_enrichments.json is a FAILED run, not a partial success, even though the index step "succeeded."

Outputs

  • Rebuilt FAISS index at resources/local-brain-search/data/
  • Refreshed BDG enrichments at resources/brain-graph/data/graph_enrichments.json
  • Stats output confirming note count

Error Handling

ErrorRecovery
Script missingAbort - check Local Brain Search installation
Index failsCheck Python env, disk space
Stats return 0 notesRe-run indexer, check Brain path
remaining>0 after a runExpected for a cold/forced rebuild - just run Step 2 again; repeat until remaining=0. If remaining is not decreasing across runs, the partial index isn't persisting (check disk space / write perms on data/)
Indexer killed ~300s with no outputThe stall watchdog fired - you piped/buffered or backgrounded it. Re-run per Step 2's execution rules: a foreground call, output streaming, no tail/pipe, no backgrounding
BDG bootstrap failsRetry once. If it still fails, the LBS index is fresh but the orb/coherence enrichment layer is stale - report it; this is NOT a clean run

Completion Checklist

  • Indexer script exists
  • Index rebuilt without errors
  • Stats query returns valid JSON
  • Note count > 0
  • BDG re-bootstrapped

© Abilityai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/refresh-index of Abilityai/cornelius.

Open the folder on GitHubat commit fd5e9a4

Compare with similar skills

Refresh Index next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refresh Index compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refresh Index this skillAbilityai/cornelius109—~1.5kAutomated safety check: NotesMIT
Qdrant Horizontal Scalingqdrant/skills2532 repos~833Automated safety check: PassApache-2.0
Qdrant Indexing Performance Optimizationqdrant/skills2532 repos~1.2kAutomated safety check: PassApache-2.0
Redis Searchredis/agent-skills1651 repos~2.9kAutomated safety check: PassMIT
Qdrant Minimize Latencyqdrant/skills2532 repos~725Automated safety check: PassApache-2.0
Foldseekadaptyvbio/protein-design-skills1634 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    Diagnoses and guides Qdrant horizontal scaling decisions. An agent skill from qdrant/skills.

    253 GitHub starsUsed in 2 repos~833 tokens
    DatabasesAuto-check passed
  • Redis Search

    redis/agent-skills

    Official

    Redis Search guidance covering FT.CREATE schema design, field type selection (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, JSON path), DIALECT 2 query syntax, FT.SEARCH / FT.AGGREGATE / FT.HYBRID…

    165 GitHub starsUsed in 1 repo~2.9k tokens
    DatabasesAuto-check passed
  • Official

    Guides Qdrant query latency optimization. An agent skill from qdrant/skills.

    253 GitHub starsUsed in 2 repos~725 tokens
    DatabasesAuto-check passed
  • Foldseek

    adaptyvbio/protein-design-skills

    Structure similarity search with Foldseek. An agent skill from adaptyvbio/protein-design-skills.

    163 GitHub starsUsed in 4 repos~1.1k tokens
    DatabasesAuto-check passed
  • Agent skill for v3-memory-specialist - invoke with $agent-v3-memory-specialist

    74k GitHub starsUsed in 2 repos~2.3k tokens
    DatabasesAuto-check passed

More from Abilityai/cornelius

All 56 skills in this repo
  • Nano Banana Image Generator

    Abilityai/cornelius

    Generate images using Google's Nano Banana (Gemini 2.5 Flash Image).

    109 GitHub stars~1.2k tokensUpdated 15 days ago
    Auto-check: notes
  • Changelog Protocol

    Abilityai/cornelius

    Protocol for creating dated changelog files after significant agent sessions.

    109 GitHub stars~555 tokensUpdated 15 days ago
    Auto-check passed
  • Create Article

    Abilityai/cornelius

    Create long-form articles from knowledge base insights. An agent skill from Abilityai/cornelius.

    109 GitHub stars~2.1k tokensUpdated 15 days ago
    Auto-check: notes
  • Epistemic Classification

    Abilityai/cornelius

    Framework for distinguishing research findings from hypotheses and speculative synthesis.

    109 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Get Youtube Transcript

    Abilityai/cornelius

    Extract the transcript from a YouTube video by URL or video ID.

    109 GitHub stars~525 tokensUpdated 15 days ago
    Auto-check: notes
  • Insight Capture Format

    Abilityai/cornelius

    Standard format for capturing and documenting insights in the knowledge base.

    109 GitHub stars~616 tokensUpdated 15 days ago
    Auto-check passed

Categories

Questions about Refresh Index

What does Refresh Index do?

Rebuild the Local Brain Search FAISS index to reflect vault changes. Refresh Index is an agent skill from Abilityai/cornelius.

When should I use Refresh Index?

Refresh Index fits situations like: tasks that involve Vector databases.

How do I install Refresh Index in Claude Code?

Run `npx skills add Abilityai/cornelius --skill refresh-index -a claude-code`. Or copy the skill folder (.claude/skills/refresh-index in Abilityai/cornelius) into .claude/skills/refresh-index in your project. Claude Code loads it when a task matches its description.

How do I install Refresh Index in Codex?

Run `npx skills add Abilityai/cornelius --skill refresh-index -a codex`. Or copy the skill folder (.claude/skills/refresh-index in Abilityai/cornelius) into .agents/skills/refresh-index in your project. Codex loads it when a task matches its description.

Can I use Refresh Index in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Abilityai/cornelius --skill refresh-index -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refresh-index, .gemini/skills/refresh-index, .github/skills/refresh-index and .opencode/skills/refresh-index in your project.

What does Refresh Index need to run?

SKILL.md names no scripts, command-line tools or credentials: Refresh Index is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash.

Does Refresh Index access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Refresh Index safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Refresh Index use?

Refresh Index is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Refresh Index use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refresh Index?

Skills that share tags, products or a category with Refresh Index: Qdrant Horizontal Scaling (qdrant/skills, 253 stars), Qdrant Indexing Performance Optimization (qdrant/skills, 253 stars), Redis Search (redis/agent-skills, 165 stars) and Qdrant Minimize Latency (qdrant/skills, 253 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refresh Index?

Abilityai (a GitHub organization) maintains it in Abilityai/cornelius, which has 109 GitHub stars. The repository holds 56 skills in this directory. The repository was last updated on September 22, 2026.

Source: Abilityai/cornelius on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.