微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Claw SQLite Knowledge

Claw SQLite Knowledge · v1.0.5
安全 unknown 级 作者 ernestyu 公开目录收录
1k 下载 0 安装 3.3k 收藏 1 浏览

简介

Claw SQLite Knowledge

原始描述

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

通过你的 Agent 添加

安装目录:clawsqlite-knowledge/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/claw-sqlite-knowledge/
Codex CLI~/.codex/skills/claw-sqlite-knowledge/
DeepSeek Harness~/.agents/skills/claw-sqlite-knowledge/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: clawsqlite-knowledge description: Knowledge base skill that uses the published clawsqlite CLI for ingest, search, show, and maintenance workflows. version: 1.0.5 metadata: {"openclaw":{"homepage":"https://github.com/ernestyu/clawsqlite","tags":["knowledge","sqlite","search","cli"],"requires":{"bins":["python"],"env":[]},"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:

<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 clawsqlite from PyPI 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, for example:

mkdir -p ~/.local/share/clawsqlite-knowledge/default
cd ~/.local/share/clawsqlite-knowledge/default

The local private config must be:

./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

Install or upgrade the published package:

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:

bin/clawsqlite knowledge maintenance init-config --instance default
cd ~/.local/share/clawsqlite-knowledge/default

Validate

After installation and config editing, validate with:

<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 Rules

  • Use only the official clawsqlite CLI.
  • Stay in the knowledge instance home when running clawsqlite knowledge ....
  • Use the three-level command tree: record, maintenance, analysis.
  • Do not call removed flat commands such as clawsqlite knowledge ingest.
  • Do not vendor, clone, or patch clawsqlite inside this skill directory.
  • Do not use degraded ingest unless the user explicitly asks for it.
  • Report ERROR, ERROR_KIND, and NEXT lines from the CLI directly.

Common Commands

Strict URL ingest:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest \
  --url "https://example.com/article" \
  --category web_article \
  --json

Strict text ingest:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest \
  --text "A thought worth saving." \
  --title "A saved thought" \
  --category thought \
  --json

Search:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record search "vector database design" --mode hybrid --topk 5 --json

Show one record:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record show --id 123 --full --json

Maintenance:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge maintenance reindex --check --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

Analysis:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge analysis build-interest-clusters --json
<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge analysis report-interest --days 7 --no-pdf

Explicit degraded ingest, only when the user requested it:

<workspace>/skills/clawsqlite-knowledge/bin/clawsqlite knowledge record ingest \
  --text "Local no-network test." \
  --title "Test" \
  --gen-provider off \
  --allow-heuristic \
  --allow-missing-embedding \
  --json

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill