# Send Research Library to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "research-library",
    "name": "Research Library",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Jonbuckles/research-library",
    "canonicalUrl": "https://clawhub.ai/Jonbuckles/research-library",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/research-library",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=research-library",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "BUILD_LOG.md",
      "PHASE1-FINAL-METRICS.md",
      "RESEARCH-LIBRARY-SKILL.md",
      "SKILL.md",
      "TECHNICAL-NOTES.md",
      "_meta.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "research-library",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-08T05:00:10.878Z",
      "expiresAt": "2026-05-15T05:00:10.878Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=research-library",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=research-library",
        "contentDisposition": "attachment; filename=\"research-library-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "research-library"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/research-library"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/research-library",
    "downloadUrl": "https://openagent3.xyz/downloads/research-library",
    "agentUrl": "https://openagent3.xyz/skills/research-library/agent",
    "manifestUrl": "https://openagent3.xyz/skills/research-library/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/research-library/agent.md"
  }
}
```
## Documentation

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

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

### Quick Start

# 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

### 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:

{
  "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:

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:

OperationTargetActualPDF extraction<100ms20.6msSearch (50 docs)<100ms0.33msWorker throughput>6/sec414.69/sec

### Testing

# 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

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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Jonbuckles
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-08T05:00:10.878Z
- Expires at: 2026-05-15T05:00:10.878Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/research-library)
- [Send to Agent page](https://openagent3.xyz/skills/research-library/agent)
- [JSON manifest](https://openagent3.xyz/skills/research-library/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/research-library/agent.md)
- [Download page](https://openagent3.xyz/downloads/research-library)