Xpersona
L

Local ContextBridge 中文

CLAWHUB · Unverified

使用语义关键词搜索本地个人和内部文档(Word/Excel/PDF/Markdown)。当用户询问本地文件、私人数据或内部知识时使用此工具。它会返回高度相关的文本片段和文件路径。注意:始终使用提取的核心实体作为关键词,而不是完整句子。 Skill: Local ContextBridge 中文 Owner: whyischen Summary: 使用语义关键词搜索本地个人和内部文档(Word/Excel/PDF/Markdown)。当用户询问本地文件、私人数据或内部知识时使用此工具。它会返回高度相关的文本片段和文件路径。注意:始终使用提取的核心实体作为关键词,而不是完整句子。 Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-24T01:36:00.152Z | user - 增加关于 cbridge-agent 完全开源和本地运行无数据泄露风险的说明 - 修正和补全 GitHub 链接为可点击格式 - 其他内容无变化,仅对部分描述排版与链接可读性进行优化 v1.0.1 | 2026-03-23T05:34:18.900Z | user - Updated description to clarify u

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/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 s174rqbye16fq8xdw8ntz8yd3983g4nh:local-context-bridge-cn
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-whyischen-local-context-bridge-cn/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

11,188 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: local-context-bridge
description: "使用语义关键词搜索本地个人和内部文档(Word/Excel/PDF/Markdown)。当用户询问本地文件、私人数据或内部知识时使用此工具。它会返回高度相关的文本片段和文件路径。注意:始终使用提取的核心实体作为关键词,而不是完整句子。"
metadata: { openclaw: { emoji: "🌉", requires: { bins: [pip] } } }
---
# ContextBridge 知识库

## 📚 工作原理

ContextBridge 为 OpenClaw 提供对你本地文档(Word、Excel、PDF、Markdown)的即时检索能力。

1. 本地索引:扫描文档并将文本切分为文本块。
2. 向量化:使用本地 AI 嵌入模型将文本转换为语义向量。
3. 语义搜索:从知识库中匹配最相关的文本块。

---

## 🚀 下载安装

cbridge 安装与初始化流程

```mermaid
flowchart TD
    A([开始]) --> B{已安装 cbridge?\ncbridge --version}

    B -- 是 --> C[检测更新\ncbridge update]
    C --> D{需要重新初始化?\n询问用户}
    D -- 是 --> E[重新初始化配置\ncbridge init]
    D -- 否 --> G
    E --> G

    B -- 否 --> F1[说明需安装 ContextBridge\n用于监控本地目录、向量化文件]
    F1 --> F2[说明工作目录\n创建 ~/.cbridge 保存工作文件]
    F2 --> F3[获取用户授权\n自动完成下载与初始化]
    F3 --> G

    G[配置完成\n通过 cbridge 与 ContextBridge 交互] --> H[运行内置 Demo\ncbridge search ContextBridge]
    H --> I([结束])
```

### 1. 下载

> 🔓 **开源可信**:`cbridge-agent` 完全开源,代码托管于 [GitHub](https://github.com/whyischen/context-bridge),可审计验证,本地运行无数据泄露风险。

```bash
pip install cbridge-agent
```

### 2. 初始化配置

```bash
cbridge init
```

因为软件主要为 AI 工具调用,推荐用户全部使用默认配置

### 3. 添加文档

```bash
cbridge watch add /path/to/your/documents
cbridge watch list    # 查看已监听文件夹
```

### 4. 运行测试 demo

```bash
cbridge search ContextBridge    # 搜索内置测试文档
```

---

## 💡 搜索最佳实践

1. 尽量做到无感使用,根据用户语义判断使用调用 `cbridge seatch` 检索本地内容
2. `cbridge seatch` 会返回与搜索相关的**文档片段**以及**文档路径**,根据文档片段**判断是否需要获取文档全部内容**。

### 什么时候使用 ContextBridge

1. 分析用户所提到的资料可能是内部资料时
2. 用户明确提出查看本地文档时

### 关键词提取

- 推荐:提取核心实体
  - `2024 marketing budget` ✅
- 不推荐:使用完整句子
  - `What was the budget for 2024 marketing` ❌

### 迭代搜索

1. 先用精准关键词
2. 若无结果,扩大查询范围
3. 尝试同义词或相关术语

---

## 📖 CLI 命令

```bash
# 初始化
cbridge init                 # 初始化工作区
cbridge lang en              # 切换语言

# 文档管理
cbridge watch add path     # 添加文件夹
cbridge watch remove path  # 移除文件夹
cbridge watch list           # 列出文件夹
cbridge index                # 手动重建索引

# 服务控制
cbridge start                # 启动服务
cbridge serve                # 仅启动 API
cbridge stop                 # 停止服务
cbridge status               # 查看状态
cbridge logs                 # 查看日志

# 搜索
cbridge search query       # 搜索文档
```

---

## 📚 资源链接

- GitHub:[whyischen/context-bridge](https://github.com/whyischen/context-bridge)
- 配置文件:`~.cbridgeconfig.yaml`
- 工作区:`~.cbridgeworkspace`

_meta.json

{
  "ownerId": "kn7924fm5y5sn5243q0qgqqqxd829dw6",
  "slug": "local-context-bridge-cn",
  "version": "1.0.2",
  "publishedAt": 1774316160152
}

skill-card.md

## Description:

使用语义关键词搜索本地个人和内部文档(Word/Excel/PDF/Markdown)。当用户询问本地文件、私人数据或内部知识时使用此工具。它会返回高度相关的文本片段和文件路径。注意:始终使用提取的核心实体作为关键词,而不是完整句子。

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to install and operate ContextBridge so an agent can search local Word, Excel, PDF, and Markdown documents by focused semantic keywords.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can give an agent persistent access to private or internal local documents, including returned snippets and file paths.

Mitigation: Add only narrow folders that are explicitly intended for agent search, and avoid home directories, shared drives, secrets, regulated data, customer data, legal, medical, or financial files.

Risk: The installed ContextBridge package and indexed document scope may be broader than intended.

Mitigation: Review before installing, use a dedicated virtual environment, and pin or verify the cbridge-agent version.

Risk: Users may not realize when the agent is searching local documents.

Mitigation: Require the agent to state when it searches local documents and summarize which scoped sources were queried.

## Reference(s):

- [ContextBridge GitHub repository](https://github.com/whyischen/context-bridge)
- [ClawHub skill page](https://clawhub.ai/whyischen/skills/local-context-bridge-cn)

## Skill Output:

**Output Type(s):** [Guidance, Shell commands, Configuration]

**Output Format:** [Markdown with inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include local document snippets and file paths returned by ContextBridge searches.]

## Skill Version(s):

1.0.2 (source: server-resolved release metadata)

## 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 Local ContextBridge 中文 and adjacent AI workflows.