cairn is a local-first hybrid indexing tool that combines full-text search, vector embeddings, and AST-based knowledge graphs into a single SQLite file for AI agent grounding.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install cairn
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install cairn using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
cairn is a sophisticated local hybrid index designed for developers who need to provide AI agents with high-fidelity, private grounding data. Unlike broad crawlers, it focuses on intentional collection—allowing you to curate and ingest codebases, design docs, PDFs, and web pages into a unified SQLite-backed store. By integrating FTS5, vector search, and an AST-driven knowledge graph, it provides five distinct query surfaces for complex retrieval tasks.
As a standout among Openclaw Skills, cairn prioritizes privacy and performance. It operates with zero network egress (except for explicit URL additions) and offers an embedded runtime that requires no external daemons. This makes it an ideal choice for secure local development environments where models need to navigate deep technical relationships like code dependencies or architectural mitigations without relying on third-party cloud indexes.
You can quickly add this to your project using the following steps. Ensure you have Node.js 20 or higher installed.
# Install the package
npm install cairn-index@^1.1.0
# Standard setup (requires Ollama for embeddings)
cairn add ./src --label my-project
# Optional: Run in embedded mode (no daemon required)
export CAIRN_RUNTIME=embedded
cairn add ./docs --label docs
# Start the MCP server for AI agent integration
cairn-mcp
cairn organizes data into a relational structure within SQLite, ensuring high-speed retrieval and integrity. The following table describes the primary components of the schema:
| Table | Description |
|---|---|
| sources | Tracks the root ingestion points and their metadata. |
| files | Individual files associated with an indexed source. |
| chunks | Text segments indexed with FTS5 and vector embeddings. |
| entities | Logical units like functions, structs, or concepts with vector support. |
| edges | Relationships between entities (e.g., calls, depends_on, mitigates). |
| tags | Free-form LLM-emitted labels for granular filtering. |
FK cascades and triggers are utilized to keep vector indexes in sync during refreshes.
ask, path, and graph operations autonomously.Loading
A cloud-powered AI video editing skill for trimming, enhancing, and exporting high-quality MP4 files without local processing.

A professional-grade code analysis skill that automates pull request reviews, security audits, and performance optimization checks within your development workflow.

A systematic AI agent skill designed to automate code quality checks, security audits, and CI/CD integration for professional development workflows.

A professional-grade AI skill designed to perform systematic code reviews, verify CI/CD status, and identify security or performance bottlenecks.

A smart morning automation that synchronizes your Sonos music presets with real-time local weather conditions.

A comprehensive automated code review agent that analyzes pull requests for quality, security, and performance using standardized guidelines.








































