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
累計下載
2720
星標
1
全站排名
#3,933
全站前 78% · 「知識管理」前 77%
平台累計安裝累計下載星標評論
ClawHub ↗7925661-
SkillHub ↗13527201—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該SQLite資料庫按專案隔離文件,支援全文搜尋、交叉引用、非同步提取、備份和恢復。網頁研究需手動新增,不會自動抓取。不可信URL可能訪問危險網路位置,匯出也可能包含敏感資訊;分享前應檢查來源和檔案。

資料釋出於 2026-10-29

可以用來做什麼

  • 按專案整理硬體資料並進行搜尋

什麼時候用

  • 需要本地管理並檢索專案文件、圖片或CAD資料時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

規劃隔離的本地專案資料庫,並列出匯入URL及分享匯出前的檢查項

月度資料趨勢

累計下載2720
1271204928272026-03 · 累計下載 13782026-05 · 累計下載 19302026-06 · 累計下載 20812026-07 · 累計下載 23232026-08 · 累計下載 24522026-09 · 累計下載 272026-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092720—1
2026-082452+5.6%1
2026-072323+11.6%1
2026-062081+7.8%1
2026-051930—1
2026-031378—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),按月更新。口徑說明見資料方法。