Xpersona
C

Claw SQLite Knowledge

CLAWHUB · Unverified

Knowledge base skill that uses the published clawsqlite CLI for ingest, search, show, and maintenance workflows.

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17c28xz5g5xyfsd33j7eap9ts83fzj2:clawsqlite-knowledge
  1. Install using `clawhub skill install s17c28xz5g5xyfsd33j7eap9ts83fzj2:clawsqlite-knowledge` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ernestyu/clawsqlite-knowledge before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ernestyu-clawsqlite-knowledge/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,272 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: clawsqlite-knowledge
description: Knowledge base skill that uses the published clawsqlite CLI for ingest, search, show, and maintenance workflows.
version: 1.0.12
metadata: {"openclaw":{"homepage":"https://github.com/ernestyu/clawsqlite","tags":["knowledge","sqlite","search","cli"],"requires":{"bins":["python"],"env":[]},"dependencies":{"python":["clawsqlite==1.0.12"]},"install":[{"id":"clawsqlite_knowledge_bootstrap","kind":"bash","label":"Install clawsqlite Python package from PyPI","script":"set -e && cd {baseDir} && bash bootstrap_deps.sh"}]}}
---

# ClawSQLite Knowledge Skill

This skill is a thin wrapper around the published `clawsqlite` PyPI package.

Important: installing this skill from ClawHub installs only the wrapper files.
The `clawsqlite` CLI is not usable until `bootstrap_deps.sh` has been run.
After bootstrap, prefer the stable skill-local entry:

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite
```

It does not:

- vendor the `clawsqlite` source tree
- clone any Git repository
- define a second runtime layer on top of the official CLI
- redefine a parallel JSON API

It does:

- install the pinned `clawsqlite==1.0.12` PyPI package through `bootstrap_deps.sh`
- guide agents to use the official `clawsqlite knowledge ...` CLI
- document common workflows for knowledge-base operations

## Knowledge Instance Home

This skill directory is only the instruction shell. Do not store the user's
knowledge DB or private config here. Run `clawsqlite knowledge ...` from a
knowledge instance home instead. In OpenClaw, use the persistent workspace data
directory:

```bash
mkdir -p ~/.openclaw/workspace/data/clawsqlite-knowledge/default
cd ~/.openclaw/workspace/data/clawsqlite-knowledge/default
```

On a normal non-OpenClaw Linux install, the default falls back to
`${XDG_DATA_HOME:-~/.local/share}/clawsqlite-knowledge/default`.

The local private config must be:

```text
./clawsqlite.toml
```

`clawsqlite.toml` is the single runtime configuration source. Do not create a
second config file, do not rely on shell environment variables for normal
configuration, and do not guess DB paths.

## Bootstrap

Check or install the required published package:

```bash
sh bootstrap_deps.sh
```

Managed Python environments may not expose a global `clawsqlite` command on
`PATH`. Use `bin/clawsqlite` from this skill directory; it wraps the installed
PyPI package and local fallback target.

Then create or edit `./clawsqlite.toml` inside the knowledge instance home. If
no config exists yet:

```bash
bin/clawsqlite knowledge maintenance init-config --instance default
cd ~/.openclaw/workspace/data/clawsqlite-knowledge/default
```

## Validate

After installation and config editing, validate with:

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance doctor --json
```

Doctor is lightweight by default. Only pass `--check-llm` or
`--check-embedding` when the user explicitly wants provider roundtrip checks.

## Agent 

README.md

# clawsqlite-knowledge Skill

## What This Skill Is

`clawsqlite-knowledge` is a thin OpenClaw/ClawHub skill wrapper around the
published `clawsqlite` PyPI package.

Installing this skill from ClawHub installs only the wrapper. Run
`bootstrap_deps.sh` before using the CLI. In managed Python environments the
global `clawsqlite` command may not appear on `PATH`; use the stable local
entry `bin/clawsqlite`.

It exists to help agents call the official `clawsqlite knowledge ...` CLI
consistently from a fixed knowledge instance home.

## Relationship To clawsqlite

This skill does not implement knowledge-base logic. The implementation lives in
the upstream `clawsqlite` package and its official CLI.

This skill intentionally does not:

- vendor the `clawsqlite` source tree
- clone the GitHub repository
- add a `run_clawknowledge.py` runtime wrapper
- define a second JSON API
- maintain a second configuration system

## Installation

Install the skill shell into the workspace, then run:

```bash
sh bootstrap_deps.sh
```

The bootstrap script first checks Python 3.10+, importability, and the pinned
`clawsqlite==1.0.12` package contract. It installs only when that contract is not
already satisfied, then validates the stable local entry:

```bash
./bin/clawsqlite
```

## Configuration

Create or edit the local private config in a knowledge instance home, not in
the skill directory:

```bash
./bin/clawsqlite knowledge maintenance init-config --instance default
cd ~/.openclaw/workspace/data/clawsqlite-knowledge/default
```

In OpenClaw, the default instance home is under the persistent workspace data
directory. On ordinary non-OpenClaw Linux installs it falls back to
`${XDG_DATA_HOME:-~/.local/share}/clawsqlite-knowledge/default`.

`clawsqlite.toml` is the single runtime configuration source. This skill does
not include an env example because normal operation should not use environment
variables as a second config layer.

## Validate With Doctor

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance doctor --json
```

## Common Commands

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest --url "https://example.com/post" --category web_article --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest --text "some note" --title "Saved note" --category note --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record search "vector database design" --mode hybrid --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record show --id 123 --full --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance cleanup --days 3 --dry-run --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance backup --dry-run --json
```

For text ingest, `--title` is a `source_title` hint for archive filenames and
metadata. Strict ingest stores the LLM-produced knowledge title in
`generated_title`.

## When T

_meta.json

{
  "ownerId": "kn7f439esjxya9bqqh2ywkgk8h832dfx",
  "slug": "clawsqlite-knowledge",
  "version": "1.0.12",
  "publishedAt": 1783238268655
}

README_zh.md

# clawsqlite-knowledge Skill

## 这个 Skill 是什么

`clawsqlite-knowledge` 是一个很薄的 OpenClaw/ClawHub skill wrapper。
它围绕 PyPI 已发布的 `clawsqlite` 包工作,指导 Agent 稳定调用官方
`clawsqlite knowledge ...` CLI。

从 ClawHub 安装这个 skill 只会安装 wrapper 文件。必须先运行
`bootstrap_deps.sh`,CLI 才可用。在受管理的 Python 环境里,全局
`clawsqlite` 命令可能不会进入 `PATH`;请使用稳定的本地入口
`bin/clawsqlite`。

## 它和 clawsqlite 的关系

知识库核心逻辑属于上游 `clawsqlite` 包,不属于这个 skill 目录。

这个 skill 不做这些事:

- 不 vendor `clawsqlite` 源码
- 不从 GitHub clone 仓库
- 不增加 `run_clawknowledge.py` 运行时 wrapper
- 不定义第二套 JSON API
- 不维护第二套配置系统

它只做这些事:

- 通过 `bootstrap_deps.sh` 安装或升级 PyPI 包
- 提醒 Agent 使用官方 `clawsqlite knowledge ...` CLI
- 记录常用知识库操作流程

## 安装方式

安装 skill shell 后,在 skill 目录执行:

```bash
sh bootstrap_deps.sh
```

这个脚本只安装/升级 PyPI 包并做最小 CLI 校验,不处理业务逻辑。它也会
验证稳定本地入口:

```bash
./bin/clawsqlite
```

## 配置

在 knowledge instance home 中创建或编辑私有配置,不要放在 skill 目录里:

```bash
./bin/clawsqlite knowledge maintenance init-config --instance default
cd ~/.openclaw/workspace/data/clawsqlite-knowledge/default
```

在 OpenClaw 中,默认 instance home 位于可持久化的 workspace data 目录。
普通非 OpenClaw Linux 本机安装时,会回退到
`${XDG_DATA_HOME:-~/.local/share}/clawsqlite-knowledge/default`。

`clawsqlite.toml` 是唯一运行配置来源。这里没有提供 env 示例文件,
是为了避免让 Agent 误以为还存在第二套环境变量配置中心。

## doctor 自检

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance doctor --json
```

## 常见命令

```bash
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest --url "https://example.com/post" --category web_article --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest --text "some note" --title "Saved note" --category note --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record search "vector database design" --mode hybrid --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record show --id 123 --full --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance cleanup --days 3 --dry-run --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance backup --dry-run --json
```

文本入库里的 `--title` 是 `source_title` 提示,用于归档文件名和元数据。
strict 入库时,真正的知识库标题会由 LLM 写入 `generated_title`。

## 什么时候直接用 clawsqlite

如果你在开发、调试、修改上游包本身,应该直接使用 `clawsqlite` 项目。
如果 Agent 只是要操作一个已配置的知识库 instance,就使用这个 skill
提供的薄说明层。

skill-card.md

## Description:

Knowledge base skill that uses the published clawsqlite CLI for ingest, search, show, and maintenance workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ernestyu](https://clawhub.ai/user/ernestyu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to operate a configured local clawsqlite knowledge instance through the official CLI, including ingest, search, show, maintenance, and analysis workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill wraps a PyPI-backed CLI and bootstrap may install dependencies into the active Python environment before falling back to a skill-local target.

Mitigation: Run bootstrap in an isolated Python environment when assurance matters and review the clawsqlite package provenance separately.

Risk: The CLI creates and uses a persistent local knowledge store that may contain private records and configuration.

Mitigation: Keep the knowledge database and clawsqlite.toml in the configured instance home, avoid storing them in the skill directory, and validate the setup with doctor before use.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/ernestyu/skills/clawsqlite-knowledge)
- [clawsqlite homepage](https://github.com/ernestyu/clawsqlite)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with bash command examples and JSON-emitting CLI workflows]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Commands rely on a local clawsqlite.toml configuration and commonly use --json for machine-readable results.]

## Skill Version(s):

1.0.12 (source: frontmatter, manifest, release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Claw SQLite Knowledge and adjacent AI workflows.