Diary Search

v1.1.1

检索日记与会话内容,支持中文分词、BM25搜索、时间衰减排序。用于搜索日记、查找历史对话、导出会话记录的场景。

1· 380·2 current·2 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description (searching diaries and sessions with Chinese tokenization/BM25/time decay) match the instructions: installing a plugin, registering its path in OpenClaw config, and using search/export tools against recorded diaries/sessions. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md confines runtime actions to installing the npm package, updating ~/.openclaw/openclaw.json to add the plugin path, restarting the gateway, and providing search/export commands for diary and session data. The instructions do not direct the agent to read unrelated system paths or environment variables. Access to user diaries and session records is expected for this functionality.
Install Mechanism
Installation relies on a third‑party npm package (diary-search) installed globally. npm packages can run arbitrary scripts (postinstall, etc.), so this is a moderate risk: the install source is the public npm registry and a GitHub repo is referenced, but no code is included in the skill bundle for local review.
Credentials
The skill requests no environment variables, credentials, or unrelated config paths. The only config change it instructs is adding the plugin's install path to the OpenClaw plugin load list, which is proportional to the stated purpose.
Persistence & Privilege
The skill is not marked always:true and uses normal, user-initiated installation. It instructs modifying the agent's plugin load paths (editing ~/.openclaw/openclaw.json) which is expected for a plugin but does change agent configuration—this is normal for plugins but worth noting.
Assessment
This skill appears to do what it says: search and export diary/session records. However, it installs a third-party npm package globally and asks you to add that installation path to your OpenClaw config. Before installing: (1) review the referenced GitHub repository and the npm package contents (especially package.json and any postinstall scripts); (2) consider installing locally or inspect the package in a sandbox rather than -g if you prefer; (3) back up ~/.openclaw/openclaw.json before editing; (4) confirm the package publisher and recent activity on npm/GitHub to reduce supply‑chain risk. Because the skill bundle contains no source code here, we cannot verify the package behavior—exercise usual caution when installing unreviewed npm packages.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📔 Clawdis

Install

Install via npmnpm i -g diary-search
latestvk97bxmf6k9x52cps61yvcdz9a98285qf
380downloads
1stars
3versions
Updated 2d ago
v1.1.1
MIT-0

Diary Search

日记与会话检索插件,让你可以搜索 OpenClaw 记录的日记内容和历史对话。

源代码: GitHub | npm: diary-search

安装步骤

第一步:安装插件

npm install -g diary-search

第二步:更新配置

~/.openclaw/openclaw.jsonplugins.load.paths 中添加:

"~/.npm-global/lib/node_modules/diary-search"

完整示例:

{
  "plugins": {
    "enabled": true,
    "load": {
      "paths": [
        "~/.npm-global/lib/node_modules/diary-search"
      ]
    }
  }
}

第三步:重启 Gateway

openclaw gateway restart

使用方法

安装完成后,直接对我说:

日记搜索

搜索我上周关于"项目架构"的日记
搜索 2026-02 月关于"数据库优化"的讨论
查找昨天提到的"bug"
查看我的日记统计

会话检索

列出昨天的会话
列出 2026-03-03 的会话
搜索我之前说的"webchat"
导出会话 77762d1f 的对话内容

工具说明

日记工具

diary_search

搜索日记内容。

参数类型必填说明
querystring搜索关键词
limitnumber返回条数,默认 5
time_filterstring时间过滤器

time_filter 可选值:

  • today / yesterday / last_week / last_month / this_month
  • YYYY-MM(如 2026-02)
  • YYYY-MM-DD(如 2026-02-28)

diary_stats

获取日记统计信息。

会话工具

session_list_by_date

按日期列出会话文件。

参数类型必填说明
datestring日期(today/yesterday/YYYY-MM-DD/YYYY-MM)
agentstringAgent 名称,默认 xiaobu

session_search

搜索会话消息内容。

参数类型必填说明
querystring搜索关键词
datestring日期过滤
limitnumber返回条数,默认 5
agentstringAgent 名称,默认 xiaobu

session_export

导出会话的纯对话文本。

参数类型必填说明
session_idstring会话ID(可以是前缀)
agentstringAgent 名称,默认 xiaobu
include_thinkingboolean是否包含 AI 思考过程,默认 false

日记格式

支持 .md.txt.markdown 文件,文件名建议使用 YYYY-MM-DD.md 格式。

Comments

Loading comments...