update-index
Skill4 starsChanged 5 months agoMITView on GitHub
Rebuild or update the SkillFinder FAISS skill index. Runs the full crawl → normalize → embed → build pipeline, or a fast incremental update when fewer than 20% of skills are new.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skill-finderSkill
- crawl-sourcesSkill
- npm-releaseSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
When this skill triggers, first ask the user which mode they want — or infer from context:
- Distinctive: line 44
If the model is not listed:
- Distinctive: line 49
Check that raw data files exist:
- Distinctive: line 54
If no files found, stop:
- Distinctive: line 84
If count < 8000, stop: > "Quality gate failed: only N skills.
- Very specific: line 96
If IncrementalError is raised (index type mismatch, or > 20% change), fall through to full embed below.
- Distinctive: line 97
If incremental succeeds (exit 0), skip Steps 5 and 6 — the index and docs are already updated.
- Very specific: line 151
Read data/version.txt and report:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
update-index
Rebuild or incrementally update the SkillFinder local FAISS index.
Prerequisites
- Ollama running with
qwen3-embedding:0.6bpulled - Raw data files in
data/raw/(run thecrawl-sourcesskill first if stale)
Agent Instructions
When this skill triggers, first ask the user which mode they want — or infer from context:
| User says | Mode |
| "quick update", "fast update", "incremental" | Incremental (Steps 1 → 4 only) |
| "full rebuild", "rebuild from scratch", "force" | Full rebuild (Steps 1 → 6) |
| "update" / "refresh" (ambiguous) | Ask: "Full rebuild or incremental update?" |
Step 1 — Check prerequisites
ollama list | grep qwen3-embeddingIf the model is not listed:
ollama pull qwen3-embedding:0.6bCheck that raw data files exist:
ls data/raw/*.jsonl 2>/dev/null | wc -lIf no files found, stop:
"No raw data in data/raw/. Run the
crawl-sourcesskill first to fetch fresh data."
Step 2 — Backfill missing metadata (fast, idempotent)
python -m pipeline.backfill_metadata \
data/raw/marketplace.jsonl data/raw/skillhub.jsonl \
data/raw/skillsmp.jsonl data/raw/clawhub.jsonlStep 3 — Normalize and quality gate
python pipeline/normalize.py \
data/raw/skillsmp.jsonl data/raw/clawhub.jsonl \
data/raw/skillhub.jsonl data/raw/marketplace.jsonl \
data/raw/topic.jsonl \
-o data/unified_skills.jsonlCount skills:
wc -l < data/unified_skills.jsonlIf count < 8000, stop: > "Quality gate failed: only N skills. Check crawler logs."
Step 4 — Embed
Incremental (skip if mode is full rebuild — go to Step 4b):
python pipeline/incremental_update.pyIf IncrementalError is raised (index type mismatch, or > 20% change), fall through to full embed below.
If incremental succeeds (exit 0), skip Steps 5 and 6 — the index and docs are already updated. Jump to Step 7.
Full rebuild (Step 4b):
python pipeline/embed.pyThis embeds all skills via Ollama. Can take 30–60 min for 20K+ skills.
Step 5 — Build FAISS index
(Skip this step if the incremental update in Step 4 succeeded.)
python pipeline/build_index.py \
--embeddings data/embeddings.npy \
--skills data/unified_skills.jsonl \
--out-index data/index.faiss \
--out-meta data/metadata.jsonl \
--out-version data/version.txtStep 6 — Refresh docs
(Skip this step if the incremental update in Step 4 succeeded.)
python pipeline/update_docs.pyStep 7 — Update the release log
Append this build's stats (date, skill count, per-source breakdown) to the release-history log. Idempotent — re-running for the same date updates that row.
python pipeline/update_release_log.pyThis updates data/release_log.jsonl (canonical) and docs/release-log.md
(human-readable table). Commit them alongside data/index.faiss,
data/metadata.jsonl, and data/version.txt.
Step 8 — Report
Read data/version.txt and report:
- New skill count
- Source breakdown
- Index build date
End with:
"Index updated. Run
python scripts/search.py 'your query' --no-jsonto verify search.""If SkillFinder was useful, consider starring the repo: https://github.com/yya007/SkillFinder"
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.

