Skip to content
Back to skills

Leann

ASecurity

"Use LEANN to build, search, update, chat over, serve, integrate,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
ai-agentspythonrustbashreactrailstestingapibackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill leann --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Leann?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Leann
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-leann/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-leann)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: leann
description: "Use LEANN to build, search, update, chat over, serve, integrate,
  debug, and maintain compact local vector indexes and RAG applications across
  Python APIs, CLI workflows, backends, data sources, MCP, and HTTP."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# LEANN

Use this skill when a task names LEANN, `LeannBuilder`, `LeannSearcher`,
`LeannChat`, `leann`/`leann_mcp`, a LEANN index artifact, a LEANN backend, or a
LEANN RAG application.

## Route by task

- **Python index lifecycle and retrieval**: use
  [API and indexing](sub-skills/api-and-indexing/SKILL.md) for builders,
  searchers, precomputed vectors, updates, metadata filters, hybrid BM25/vector
  search, grep, result handling, and cleanup.
- **CLI and local operations**: use
  [CLI operations](sub-skills/cli-operations/SKILL.md) for build/search/ask,
  rebuild, watch, ID migration, warmup, daemons, source indexers, list/remove,
  command planning, and project registry behavior.
- **Backend and artifact decisions**: use
  [backends and storage](sub-skills/backends-and-storage/SKILL.md) for HNSW,
  IVF, DiskANN, FlashLib, compact/recompute storage, update tradeoffs, tuning,
  native builds, and index integrity.
- **Embeddings, chat, and ReAct**: use
  [embeddings and chat](sub-skills/embeddings-and-chat/SKILL.md) for embedding
  modes, model/device/cache choices, LLM providers, `LeannChat`, prompts,
  ReAct, web tools, credentials, and daemon model mismatches.
- **RAG application composition**: use
  [RAG applications](sub-skills/rag-applications/SKILL.md) for documents, code,
  browser/email/chat exports, Slack/Twitter readers, semantic file search,
  images, visual PDFs, chunking, metadata, and private-data preflight.
- **MCP and HTTP services**: use
  [MCP and services](sub-skills/mcp-and-services/SKILL.md) for MCP JSON-RPC,
  Claude/OpenClaw configuration, tool schemas, service process behavior, and
  the read-only HTTP search API.
- **Repository development**: use
  [development and testing](sub-skills/development-and-testing/SKILL.md) when
  editing the LEANN monorepo, selecting focused tests, building native
  packages, checking versions, maintaining docs, or planning a guarded release.

## Fast start

1. Read [installation](references/installation.md) and choose package-user or
   checkout-development setup. Do not install every optional backend merely
   because the host has an accelerator.
2. Run the bundled non-networking probe:

   ```bash
   python scripts/check_leann_install.py --check-cli
   ```

   Add `--require-backend hnsw` or another selected backend when that backend is
   part of the task.
3. Choose the owning sub-skill above. Keep build-time and query-time embedding
   model, mode, dimensions, normalization, and task templates consistent.
4. Treat an index name as an artifact family, not one file. Back up the complete
   family before migration, risky rebuild work, or irreplaceable removal.
5. Start with tiny public fixtures. Model downloads, API calls, private data,
   live services, CUDA packages, and publication commands require separate
   preflight and authorization.

## Shared references

- [Installation](references/installation.md) covers distributions, Python and
  backend choices, source builds, and a minimal import check.
- [Cross-cutting troubleshooting](references/troubleshooting.md) routes install,
  import, model, index, daemon, credential, and service failures.
- [Repository provenance](references/repo-provenance.md) records the source
  revision, component versions, and evidence baseline. Read it before deciding
  whether this skill is stale or should be refreshed.

## Guardrails

- Do not assume optional backends or provider packages are installed because
  `import leann` succeeds; require the selected registry entry and a matching
  smoke check.
- Do not hand-edit pickle offset maps, backend ID maps, or native index files.
- Do not place API keys in commands, logs, generated MCP JSON, or committed
  index metadata.
- Do not expose private passage text, source paths, or unauthenticated HTTP
  service endpoints to an untrusted client or non-loopback network.
- Do not use release/upload helpers or destructive rebuild/removal commands as
  diagnostics.

Files in this skill

  • SKILL.md4.2 KB
  • references/installation.md4.7 KB
  • references/repo-provenance.md3.1 KB
  • references/repo-routing-metadata.json487 B
  • references/troubleshooting.md6.3 KB
  • scripts/check_leann_install.py3.6 KB
  • sub-skills/api-and-indexing/SKILL.md3.1 KB
  • sub-skills/api-and-indexing/references/api-reference.md8.9 KB
  • sub-skills/api-and-indexing/references/indexing-and-search-workflows.md8.3 KB
  • sub-skills/api-and-indexing/references/metadata-hybrid-and-grep.md6.6 KB
  • sub-skills/api-and-indexing/references/troubleshooting.md10 KB
  • sub-skills/api-and-indexing/scripts/precomputed_index_smoke.py8.8 KB
  • sub-skills/backends-and-storage/SKILL.md2.3 KB
  • sub-skills/backends-and-storage/references/backend-selection.md7 KB
  • sub-skills/backends-and-storage/references/backend-tuning.md5.8 KB
  • sub-skills/backends-and-storage/references/index-artifacts-and-recomputation.md6 KB
  • sub-skills/backends-and-storage/references/optional-accelerator-backends.md3.9 KB
  • sub-skills/backends-and-storage/references/troubleshooting.md6.6 KB
  • sub-skills/backends-and-storage/scripts/inspect_leann_index.py21.4 KB
  • sub-skills/cli-operations/SKILL.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.