leann
/leann
Operate StarTrail-org/LEANN for local document indexing and semantic retrieval: inspect a checkout, configure embeddings/backends, build or incrementally update an index, search it, or troubleshoot index behavior. Use when the task explicitly names LEANN or needs its graph-assisted vector-index workflow. Route code-architecture memory graphs to mex/Graphify, workspace text search to zvec-grep, and other RAG stacks to langchain-rag.
- Author
- akillness ↗
- Repository
- jeo-skills ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 5
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/preflight.py
What it does and when to use it
Operate StarTrail-org/LEANN for local document indexing and semantic retrieval: inspect a checkout, configure embeddings/backends, build or incrementally update an index, search it, or troubleshoot index behavior. Use when the task explicitly names LEANN or needs its graph-assisted vector-index workflow. Route code-architecture memory graphs to mex/Graphify, workspace text search to zvec-grep, and other RAG stacks to langchain-rag.
Original author description
Operate StarTrail-org/LEANN for local document indexing and semantic retrieval: inspect a checkout, configure embeddings/backends, build or incrementally update an index, search it, or troubleshoot index behavior. Use when the task explicitly names LEANN or needs its graph-assisted vector-index workflow. Route code-architecture memory graphs to mex/Graphify, workspace text search to zvec-grep, and other RAG stacks to langchain-rag.
How it works
- Instructions
- Examples
- Best practices
- References
SKILL.md preview
--- name: "leann" description: "Operate StarTrail-org/LEANN for local document indexing and semantic retrieval: inspect a checkout, configure embeddings/backends, build or incrementally update an index, search it, or troubleshoot index behavior. Use when the task explicitly names LEANN or needs its graph-assisted vector-index workflow. Route code-architecture memory graphs to mex/Graphify, workspace text search to zvec-grep, and other RAG stacks to langchain-rag." allowed-tools: Bash Read Grep Glob compatibility: Works with compatible agent clients that can read files and run shell commands; upstream CLI requires its supported Python/native dependency environment. metadata: version: "1.0.0" source: "https://github.com/StarTrail-org/LEANN" upstream_commit: "00710edff4aba84c41f4adfc75b79175b28132f2" --- # LEANN operator ## Instructions 1. **Identify the exact checkout and pin.** From the jeo-skills repository root, run `python3 .agent-skills/leann/scripts/preflight.py --repo /absolute/upstream --json` (or invoke `scripts/preflight.py` from the installed skill root). An omitted `--repo` is inventory only. The helper compares selected pinned-file hashes; it does not prove Git HEAD, the whole checkout, installed dependencies, or runtime readiness. Read [the pinned source notes](references/upstream.md). 2. **Keep the system model straight.** LEANN is a vector index that uses graph-based selective recomputation to reduce stored embedding data. Its graph is an index/search optimization, not a semantic knowledge graph or durable code-architecture graph. Route the latter to `mex` or `graphify`. 3. **Plan local indexing before running it.** Confirm source paths, file types/exclusions, index directory, chosen backend, embedding mode/model, and whether incremental updates or a full rebuild are intended. Check storage, memory, native dependencies, and data sensitivity. 4. **Get approval before effects.** Ask before installing packages or downloading models; ingesting private, regulated, or third-party source material; calling paid or remote embedding APIs; starting a service or binding beyond loopback; creating/updating/rebuilding/deleting an index; or enabling integrations that read account/workspace data. Do not put keys in command history. A full rebuild (`--force`) is distinct from the default incremental build. 5. **Use the pinned CLI and verify the result.** After approval, check the checkout's own `leann --help` and `leann <command> --help`; command options can change. Run a small representative index/search first, then verify expected source coverage and retrieval. Do not claim runtime readiness from preflight alone. ## Examples ```bash # Inspection only; use an absolute, non-symlink upstream checkout. python3 .agent-skills/leann/scripts/preflight.py --repo /work/LEANN --json # Only after approval, in the inspected LEANN environment: uv venv source .venv/bin/activate uv pip install leann leann build handbook --docs ./docs leann search handbook "how does the sync path work?" --top-k 5 ``` ## Best practices - Treat indexing as data processing, not a harmless lookup. Review destination and any embedding endpoint before build. - Prefer the default incremental path for a verified existing index; reserve `--force` for an approved rebuild with a recovery plan. - Recheck backend/platform prerequisites against the pinned notes. LEANN's optional backends have different native/GPU requirements; do not infer support from the general Python package. - Benchmark claims are workload-specific. Do not repeat upstream storage or retrieval percentages as guarantees for a user's corpus. - Describe failures as offline-check failures, source-pin mismatches, dependency/setup failures, or runtime/retrieval failures; these are different states. ## References - [Pinned upstream behavior, commands, limits, and source map](references/upstream.md) - [Pin and source file hashes](references/source.json) - [Authored routing and behavior scenarios](evals/evals.json) - Helper contract: `python3 .agent-skills/leann/scripts/preflight.py --help`; helper supports Python 3.10+ on POSIX Linux/macOS/WSL2 and fails closed when secure directory traversal is unavailable, including unsupported native Windows.
Files in this package (5)
- SKILL.md 4 KB
- evals/evals.json 2 KB
- references/source.json 2 KB
- references/upstream.md 4 KB
- scripts/preflight.py 10 KB
Versions
The database has no other skills named leann.
Database snapshot: 13.11.2026 · package version d4d57f6a4b1b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 95pixelrag
Operate StarTrail-org/PixelRAG for screenshot-based visual retrieval: render pages or documents into image tiles, chunk/embed them, build a FAISS index, configure local search, or inspect its search API. Use when the task names PixelRAG, pixelshot, or multimodal visual RAG. It… - 100zvec-grep
Drive zvec-grep (`zg`), zvec-ai's local-first workspace search CLI and MCP server, to index code and documents, run hybrid, vector, BM25, or exhaustive managed ripgrep searches, configure agent integrations, and diagnose index or server freshness. Use when a task needs local… - 100mcp-local-rag
Searches, saves, and maintains a local document index through a local RAG MCP server. Use when user says "search my docs", "save this page", "read around that chunk", "sync my index", or invokes `npx mcp-local-rag`. - 100retrieval-augmented-generation-rag-pipeline
Use this skill when constructing end-to-end RAG architectures combining embeddings, vector indexing, retrieval, and contextual generation. - 100rag-architect
Designs and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, applying reranking, and evaluating retrieval quality. Use when building RAG systems, vector databases, or… - 98vector-search-patterns
Implement vector similarity search with embedding generation, index selection, and hybrid retrieval strategies. Covers ChromaDB, pgvector, FAISS, and RAG pipeline design. Triggers on vector search, embeddings, semantic search, or RAG architecture requests.