WizardSage

Research Library

知识管理v0.1.0
作者:WizardSage更新于 2026-05-17research-library@clawhub_jonbuckles/research-library
资料整理信息检索知识归档#Library#Extraction#Hardware#Backup#Documentation

据 AlphaMoat 统计,截至 2026-09,Research Library 累计下载 2,720 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,933 位,在「知识管理」分类(442 个)中排名第 338 位。

累计安装
135
累计下载
2,720
星标
1
全站排名
#3,933
全站前 78% · 「知识管理」前 77%
平台累计安装累计下载星标评论
ClawHub ↗792,5661-
SkillHub ↗1352,7201—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该SQLite资料库按项目隔离文档,支持全文搜索、交叉引用、异步提取、备份和恢复。网页研究需手动添加,不会自动抓取。不可信URL可能访问危险网络位置,导出也可能包含敏感信息;分享前应检查来源和文件。

资料发布于 2026-10-29

可以用来做什么

  • 按项目整理硬件资料并进行搜索

什么时候用

  • 需要本地管理并检索项目文档、图片或CAD资料时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

规划隔离的本地项目资料库,并列出导入URL及分享导出前的检查项

月度数据趋势

累计下载2,720
1,2712,0492,8272026-03 · 累计下载 1,3782026-05 · 累计下载 1,9302026-06 · 累计下载 2,0812026-07 · 累计下载 2,3232026-08 · 累计下载 2,4522026-09 · 累计下载 2,72026-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,720—1
2026-082,452+5.6%1
2026-072,323+11.6%1
2026-062,081+7.8%1
2026-051,930—1
2026-031,378—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.7 KB · ClawHub v0.1.0
---
name: research-library
description: Local-first multimedia research library for hardware projects. Capture code, CAD, PDFs, images. Search with material-type weighting. Project isolation with cross-references. Async extraction. Backup + restore.
version: 0.1.0
author: Sage (for Jon Buckles)
license: MIT
tags:
  - knowledge-management
  - research
  - hardware
展开全部(共 187 行)
  - documentation
  - sqlite
  - fts5
repository: https://github.com/[user]/research-library
keywords:
  - library
  - search
  - extraction
  - project-management
  - knowledge-base
---

# Research Library Skill

A local-first multimedia research library for capturing, organizing, and searching hardware project knowledge.

## What It Does

- **Store documents** — Code, PDFs, CAD files, images, schematics
- **Extract automatically** — Text from PDFs, EXIF from images, functions from code
- **Search intelligently** — Full-text with material-type weighting (your work ranks higher than external research)
- **Project isolation** — Arduino separate from CNC; no contamination
- **Cross-reference** — Link knowledge: "this servo tuning applies to that project"
- **Async extraction** — Searches never block while OCR runs
- **Backup daily** — 30-day rolling snapshots

## Installation

```bash
clawhub install research-library
# OR
pip install /path/to/research-library
```

## Quick Start

```bash
# Initialize database
reslib status

# Add a project
reslib add ~/projects/arduino/servo.py --project arduino --material-type reference

# Search
reslib search "servo tuning"

# Link knowledge
reslib link 5 12 --type applies_to
```

## Features

### CLI Commands
- `reslib add` — Import documents (auto-detect + extract)
- `reslib search` — Full-text search with filters
- `reslib get` — View document details
- `reslib archive` / `reslib unarchive` — Manage documents
- `reslib export` — Export as JSON/Markdown
- `reslib link` — Create document relationships
- `reslib projects` — Manage projects
- `reslib tags` — Manage tags
- `reslib status` — System overview
- `reslib backup` / `reslib restore` — Snapshots
- `reslib smoke_test.sh` — Quick validation

### Technical
- **Storage:** SQLite 3.45+ with FTS5 virtual table
- **Extraction:** PDF (pdfplumber + OCR), images (EXIF + OCR), code (AST + regex)
- **Confidence Scoring:** 0.0-1.0 based on quality + source
- **Material Weighting:** Reference (1.0) vs Research (0.5)
- **Project Isolation:** Scoped searches, no contamination
- **Async Workers:** 2-4 configurable extraction workers
- **Catalog Separation:** real_world vs openclaw projects
- **Backup:** Daily snapshots, 30-day retention

## Configuration

Copy `reslib/config.json` and customize:

```json
{
  "db_path": "~/.openclaw/research/library.db",
  "num_workers": 2,
  "worker_timeout_sec": 300,
  "max_retries": 3,
  "backup_retention_days": 30,
  "backup_dir": "~/.openclaw/research/backups",
  "file_size_limit_mb": 200,
  "project_size_limit_gb": 2
}
```

## Integration with War Room

Use RL1 protocol in war room DNA:

```python
from reslib import ResearchDatabase, ResearchSearch

db = ResearchDatabase()
search = ResearchSearch(db)

# Before researching, check existing knowledge
prior = search.search("servo tuning", project="rc-quadcopter")
if prior:
    print(f"Found {len(prior)} prior items")
else:
    # New research needed...
    db.add_research(title="...", content="...", ...)
```

## Performance

All targets exceeded:

| Operation | Target | Actual |
|-----------|--------|--------|
| PDF extraction | <100ms | 20.6ms |
| Search (50 docs) | <100ms | 0.33ms |
| Worker throughput | >6/sec | 414.69/sec |

## Testing

```bash
# Run all tests
pytest tests/

# Quick smoke test
bash reslib/smoke_test.sh

# Performance tests
pytest tests/test_integration.py -v -k stress
```

## Known Limitations (Phase 2)

- OCR quality varies on hand-drawn sketches
- FTS5 designed for <10K documents (PostgreSQL path for scale)
- No automatic web research gathering (manual only)
- Vector embeddings ready but inactive
- CAD file parsing is metadata-only

## Documentation

See `/docs/`:
- `CLI-REFERENCE.md` — All commands + examples
- `EXTRACTION-GUIDE.md` — How extraction works
- `SEARCH-GUIDE.md` — Ranking + weighting
- `WORKER-GUIDE.md` — Async queue details
- `INTEGRATION.md` — War room RL1 protocol

## Phase 2 Roadmap

- Real-world PDF calibration
- FTS5 scaling tests (10K docs)
- Auto-detection (reference vs research)
- Web research enrichment
- Vector embeddings (semantic search)
- PostgreSQL upgrade path

## Building From Source

```bash
cd research-library
pip install -e .
pytest tests/
python -m reslib status
```

## Support

Issues? See TECHNICAL-NOTES.md for troubleshooting.

---

*Production-ready MVP. 214 tests passing. 15K lines. Ready to use.*

「知识管理」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。