Skip to content
Back to skills

Memory Pro

ASecurity

A highly efficient semantic search engine for your OpenClaw

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
ai-agentspythonbashfastapiapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill memory-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Pro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-memory-pro/badge)](https://www.skillsdirectory.com/skills/modbender-memory-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Memory Pro Skill
description: A highly efficient semantic search engine for your OpenClaw
  workspace memory, powered by FAISS and Sentence-Transformers.
---

# Memory Pro Skill

A highly efficient semantic search engine for your OpenClaw workspace memory, powered by FAISS and Sentence-Transformers.

This skill indexes Markdown files and key agent files (e.g. `MEMORY.md`, `SOUL.md`) to provide meaning-based context retrieval instead of exact keyword matching.

## 🚀 Installation

This skill can be installed on any OpenClaw host.

```bash
# Clone or copy the folder
cd memory-pro-export
chmod +x install.sh
./install.sh
```

The installation script will:
1. Copy the skill to `~/.openclaw/skills/memory-pro`
2. Set up a Python virtual environment using `uv`
3. Configure and start a `systemd` user service (`memory-pro.service`)

## ⚙️ Architecture

- **Engine**: FAISS + `sentence-transformers` (`all-MiniLM-L6-v2`)
- **API**: FastAPI running on port 8001
- **Data Source**: Configurable via environment variables (Defaults to `~/.openclaw/workspace/memory/` and `MEMORY.md`, `SOUL.md`, etc.)
- **Service**: Runs safely in the background, rebuilding the index on startup to ensure consistency.

## 💻 Usage (For Agents)

Use the client script to query the running service.

### 1. Semantic Search (Recommended)
```bash
# Basic search
python ~/.openclaw/skills/memory-pro/scripts/search.py "What did I do yesterday?"

# JSON output (for better tool parsing)
python ~/.openclaw/skills/memory-pro/scripts/search.py "project updates" --json
```

### 2. Manual Index Rebuild
The index is automatically rebuilt when the background service restarts. If you need to force an immediate update:

```bash
systemctl --user restart memory-pro.service
```
*(Note: Service restart takes ~15-20 seconds to rebuild index and load models. The client script has auto-retry logic.)*

## 🔧 Environment Configuration

The service behavior can be customized by editing `~/.config/systemd/user/memory-pro.service`:

- `MEMORY_PRO_WORKSPACE_DIR`: The root of your workspace (e.g., `~/.openclaw/workspace/`)
- `MEMORY_PRO_DATA_DIR`: Directory containing `.md` files to index.
- `MEMORY_PRO_CORE_FILES`: Comma-separated list of core files to always index.
- `MEMORY_PRO_PORT`: The port for the API (default `8001`).

## 🩺 Troubleshooting

### "Connection failed"
- The service might be stopped or restarting.
- Check status: `systemctl --user status memory-pro.service`
- If restarting, wait 15 seconds. The client script retries automatically for up to 20s.

### "Address already in use"
- Port 8001 is taken by a zombie process.
- **Fix**: `kill $(lsof -t -i:8001)` then restart service.

Files in this skill

  • .gitignore426 B
  • README.md3.3 KB
  • SECURITY.md754 B
  • SKILL.md2.7 KB
  • engine/build_index.py1.2 KB
  • engine/main.py3.9 KB
  • engine/preprocess.py1.9 KB
  • engine/requirements.txt78 B
  • engine/requirements_backup.txt2.7 KB
  • engine/start.sh1.1 KB
  • install.sh2.3 KB
  • scripts/search.py3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.