360 Secure SkillHub
360 安全技能中心

search-memory

为 Openclaw 提供本地优先的记忆检索:对 MEMORY.md 与 memory/**/*.md 建立增量索引(缓存位于 memory/cache/),并通过 CLI 脚本执行关键词打分加近 30/90 天近期加权的搜索,可接入斜杠命令。

trumppo
trumppo
热度 67.23
最近更新 2026-05-11 15:54:46
分类:知识依赖:代码执行 / 读写文件应用场景:笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add search-memory
Metadata
name
search-memory
description
Local-first memory search and indexing for Openclaw. Use when you need to (1) index memory files, (2) search memory from the CLI, or (3) wire a slash command for memory lookup.

Search Memory

Overview

Index local memory files and run fast keyword search with recency boost.

Quick Start

  1. Build/update index (incremental cache):
scripts/index-memory.py
  1. Search the index:
scripts/search-memory.py "your query" --top 5

Notes

  • Index includes MEMORY.md plus memory/**/*.md.
  • Cache lives under memory/cache/.
  • Search uses keyword scoring + recency boost (last 30/90 days).