khli01

MemoryLayer

AI 智慧體v1.0.0
作者:khli01更新於 2026-05-11memorylayer@clawhub_khli01/memorylayer
記憶增強

據 AlphaMoat 統計,截至 2026-09,MemoryLayer 累計下載 3,562 次、獲 7 個星標,在全部 5,078 個 AI 技能中排名第 3,072 位,在「AI 智慧體」分類(969 個)中排名第 622 位。

累計安裝
450
累計下載
3562
星標
7
全站排名
#3,072
全站前 61% · 「AI 智慧體」前 65%
平台累計安裝累計下載星標評論
ClawHub ↗8626687-
SkillHub ↗45035627—

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

這個技能是做什麼的

文件展示記憶儲存、按語義搜尋、提示詞上下文提取、型別和後設資料標註及用量統計。訪問使用賬號或 API 金鑰,並給出 SDK 風格示例。這些示例描述整合流程,服務可用性與所列 SDK 介面仍需驗證。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢索相關已存上下文,代替載入整個記憶檔案

什麼時候用

  • 需要評估智慧體上下文的語義儲存與檢索方式時

示例提示詞

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

整理文件中的記憶存取流程、認證要求,以及接入前須驗證的介面。

月度資料趨勢

累計下載3562
2257295836592026-03 · 累計下載 23542026-05 · 累計下載 28112026-06 · 累計下載 29252026-07 · 累計下載 30862026-08 · 累計下載 31582026-09 · 累計下載 356226-0326-09
星標7
6782026-03 · 星標 72026-05 · 星標 72026-06 · 星標 72026-07 · 星標 72026-08 · 星標 72026-09 · 星標 726-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093562—7
2026-083158+2.3%7
2026-073086+5.5%7
2026-062925+4.1%7
2026-052811—7
2026-032354—7

SKILL.md 原文

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

4.7 KB · ClawHub v1.0.0
---
slug: memorylayer
name: MemoryLayer
description: Semantic memory for AI agents. 95% token savings with vector search.
homepage: https://memorylayer.clawbot.hk
metadata:
  clawdbot:
    emoji: "🧠"
---
展開全部(共 217 行)
# MemoryLayer

Semantic memory infrastructure for AI agents that actually scales.

## Features

- **95% Token Savings** - Retrieve only relevant memories
- **Semantic Search** - Find memories by meaning, not keywords
- **Sub-200ms** - Lightning-fast memory retrieval
- **Multi-tenant** - Isolated memory per agent instance

## Setup

### 1. Sign up for FREE account

Visit https://memorylayer.clawbot.hk and sign up with Google. You'll get:
- 10,000 operations/month
- 1GB storage
- Community support

### 2. Configure credentials

```bash
# Option 1: Email/Password
export [email protected]
export MEMORYLAYER_PASSWORD=your_password

# Option 2: API Key (recommended for production)
export MEMORYLAYER_API_KEY=ml_your_api_key_here
```

### 3. Install Python SDK (if not using skill wrapper)

```bash
pip install memorylayer
```

## Usage

### Basic Example

```javascript
// In your Clawdbot agent
const memory = require('memorylayer');

// Store a memory
await memory.remember(
  'User prefers dark mode UI',
  { type: 'semantic', importance: 0.8 }
);

// Search memories
const results = await memory.search('UI preferences');
console.log(results[0].content); // "User prefers dark mode UI"
```

### Python Example

```python
from plugins.memorylayer import memory

# Store
memory.remember(
    "Boss prefers direct reporting with zero bullshit",
    memory_type="semantic",
    importance=0.9
)

# Search
results = memory.recall("What are Boss's preferences?")
for r in results:
    print(f"{r.relevance_score:.2f}: {r.memory.content}")
```

### Token Savings

**Before MemoryLayer:**
```python
# Inject entire memory files
context = open('MEMORY.md').read()  # 10,500 tokens
prompt = f"{context}\n\nUser: What are my preferences?"
```

**After MemoryLayer:**
```python
# Inject only relevant memories
context = memory.get_context("user preferences", limit=5)  # ~500 tokens
prompt = f"{context}\n\nUser: What are my preferences?"
```

**Result:** 95% token reduction, $900/month savings at scale

## API Reference

### `memory.remember(content, options)`

Store a new memory.

**Parameters:**
- `content` (string): Memory content
- `options.type` (string): 'episodic' | 'semantic' | 'procedural'
- `options.importance` (number): 0.0 to 1.0
- `options.metadata` (object): Additional tags/data

**Returns:** Memory object with `id`

### `memory.search(query, limit)`

Search memories semantically.

**Parameters:**
- `query` (string): Search query (natural language)
- `limit` (number): Max results (default: 10)

**Returns:** Array of SearchResult objects

### `memory.get_context(query, limit)`

Get formatted context for prompt injection.

**Parameters:**
- `query` (string): What context do you need?
- `limit` (number): Max memories (default: 5)

**Returns:** Formatted string ready for prompt

### `memory.stats()`

Get usage statistics.

**Returns:** Object with `total_memories`, `memory_types`, `operations_this_month`

## Advanced

### Memory Types

**Episodic** - Events and experiences
```javascript
memory.remember('Deployed MemoryLayer on 2026-02-03', { type: 'episodic' });
```

**Semantic** - Facts and knowledge
```javascript
memory.remember('Boss prefers concise reports', { type: 'semantic' });
```

**Procedural** - How-to and processes
```javascript
memory.remember('To restart server: ssh root@... && systemctl restart...', { type: 'procedural' });
```

### Metadata Tagging

```javascript
memory.remember('User likes blue', {
  type: 'semantic',
  metadata: {
    category: 'preferences',
    subcategory: 'colors',
    source: 'user_profile'
  }
});
```

### Usage Tracking

```javascript
const stats = await memory.stats();
console.log(`Total memories: ${stats.total_memories}`);
console.log(`Operations this month: ${stats.operations_this_month}`);
console.log(`Plan: ${stats.plan} (${stats.operations_limit}/month)`);
```

## Pricing

**FREE Plan** (Current)
- 10,000 operations/month
- 1GB storage
- Community support

**Pro Plan** ($99/mo)
- 1M operations/month
- 10GB storage
- Email support
- 99.9% SLA

**Enterprise** (Custom)
- Unlimited operations
- Unlimited storage
- Dedicated support
- Self-hosted option
- Custom SLA

## Support

- **Documentation:** https://memorylayer.clawbot.hk/docs
- **API Reference:** https://memorylayer.clawbot.hk/api
- **Community:** Discord (link in docs)
- **Issues:** GitHub (link in docs)

## Links

- **Homepage:** https://memorylayer.clawbot.hk
- **Dashboard:** https://dashboard.memorylayer.clawbot.hk
- **API Docs:** https://memorylayer.clawbot.hk/docs
- **Python SDK:** https://pypi.org/project/memorylayer (when published)

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

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