jrbobbyhansen-pixel

Memory Setup

AI 智慧體v1.0.0
作者:jrbobbyhansen-pixel更新於 2026-05-11memory-setup@clawhub_jrbobbyhansen-pixel/memory-setup
上下文管理記憶增強工具呼叫

據 AlphaMoat 統計,截至 2026-10,Memory Setup 累計下載 409,924 次、獲 135 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 59 位,在「AI 智慧體」分類(1,632 個)中排名第 11 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
41萬
星標
135
全站下載量排名
#59
全站前 1% · 「AI 智慧體」前 1%
平台累計下載星標評論
ClawHub ↗4.7萬1295
SkillHub ↗41萬135—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

在 ~/.clawdbot/clawdbot.json(或 moltbot.json)加入並啟用 memorySearch,將記憶檔案與過往工作階段納入索引。接著建立 MEMORY.md,以及存放每日紀錄、專案、群組聊天和系統筆記的 memory 子目錄。嵌入模型提供者可選 voyage、openai 或 local;voyage 和 openai 分別需要 VOYAGE_API_KEY 和 OPENAI_API_KEY,local 則不需要。修改設定後重新啟動閘道器,再用過往內容確認搜尋是否正常。

資料釋出於 2026-10-27

可以用來做什麼

  • 讓代理在新工作階段找回舊專案和偏好
  • 建立可搜尋的長期記憶資料夾與紀錄格式

什麼時候用

  • 代理每次開始工作階段都像沒有先前脈絡時
  • 需要將過往對話紀錄納入語義搜尋時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

依照這份範例設定記憶搜尋。
記憶搜尋沒有結果,請幫我檢查設定。

月度資料趨勢

累計下載41萬
11萬27.1萬43.2萬2026-09 · 累計下載 13.3萬2026-10 · 累計下載 41萬26-0926-10
星標135
1331341352026-09 · 星標 1332026-10 · 星標 13526-0926-10
月份累計下載環比星標
2026-1041萬—135
2026-0913.3萬—133

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.0 KB · ClawHub v1.0.0
---
name: memory-setup
description: Enable and configure Moltbot/Clawdbot memory search for persistent context. Use when setting up memory, fixing "goldfish brain," or helping users configure memorySearch in their config. Covers MEMORY.md, daily logs, and vector search setup.
---

# Memory Setup Skill

Transform your agent from goldfish to elephant. This skill helps configure persistent memory for Moltbot/Clawdbot.

## Quick Setup
展開全部(共 172 行)

### 1. Enable Memory Search in Config

Add to `~/.clawdbot/clawdbot.json` (or `moltbot.json`):

```json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  }
}
```

### 2. Create Memory Structure

In your workspace, create:

```
workspace/
├── MEMORY.md              # Long-term curated memory
└── memory/
    ├── logs/              # Daily logs (YYYY-MM-DD.md)
    ├── projects/          # Project-specific context
    ├── groups/            # Group chat context
    └── system/            # Preferences, setup notes
```

### 3. Initialize MEMORY.md

Create `MEMORY.md` in workspace root:

```markdown
# MEMORY.md — Long-Term Memory

## About [User Name]
- Key facts, preferences, context

## Active Projects
- Project summaries and status

## Decisions & Lessons
- Important choices made
- Lessons learned

## Preferences
- Communication style
- Tools and workflows
```

## Config Options Explained

| Setting | Purpose | Recommended |
|---------|---------|-------------|
| `enabled` | Turn on memory search | `true` |
| `provider` | Embedding provider | `"voyage"` |
| `sources` | What to index | `["memory", "sessions"]` |
| `indexMode` | When to index | `"hot"` (real-time) |
| `minScore` | Relevance threshold | `0.3` (lower = more results) |
| `maxResults` | Max snippets returned | `20` |

### Provider Options
- `voyage` — Voyage AI embeddings (recommended)
- `openai` — OpenAI embeddings
- `local` — Local embeddings (no API needed)

### Source Options
- `memory` — MEMORY.md + memory/*.md files
- `sessions` — Past conversation transcripts
- `both` — Full context (recommended)

## Daily Log Format

Create `memory/logs/YYYY-MM-DD.md` daily:

```markdown
# YYYY-MM-DD — Daily Log

## [Time] — [Event/Task]
- What happened
- Decisions made
- Follow-ups needed

## [Time] — [Another Event]
- Details
```

## Agent Instructions (AGENTS.md)

Add to your AGENTS.md for agent behavior:

```markdown
## Memory Recall
Before answering questions about prior work, decisions, dates, people, preferences, or todos:
1. Run memory_search with relevant query
2. Use memory_get to pull specific lines if needed
3. If low confidence after search, say you checked
```

## Troubleshooting

### Memory search not working?
1. Check `memorySearch.enabled: true` in config
2. Verify MEMORY.md exists in workspace root
3. Restart gateway: `clawdbot gateway restart`

### Results not relevant?
- Lower `minScore` to `0.2` for more results
- Increase `maxResults` to `30`
- Check that memory files have meaningful content

### Provider errors?
- Voyage: Set `VOYAGE_API_KEY` in environment
- OpenAI: Set `OPENAI_API_KEY` in environment
- Use `local` provider if no API keys available

## Verification

Test memory is working:

```
User: "What do you remember about [past topic]?"
Agent: [Should search memory and return relevant context]
```

If agent has no memory, config isn't applied. Restart gateway.

## Full Config Example

```json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  },
  "workspace": "/path/to/your/workspace"
}
```

## Why This Matters

Without memory:
- Agent forgets everything between sessions
- Repeats questions, loses context
- No continuity on projects

With memory:
- Recalls past conversations
- Knows your preferences
- Tracks project history
- Builds relationship over time

Goldfish → Elephant. 🐘

「AI 智慧體」分類下的熱門技能

jrbobbyhansen-pixel 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。