thelabvenice

MemData

AI 智能体v1.8.0
作者:thelabvenice更新于 2026-05-11memdata@clawhub_thelabvenice/memdata
上下文管理记忆增强#Wallet

据 AlphaMoat 统计,截至 2026-09,MemData 累计下载 2,475 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 4,121 位,在「AI 智能体」分类(969 个)中排名第 840 位。

累计安装
123
累计下载
2,475
星标
1
全站排名
#4,121
全站前 82% · 「AI 智能体」前 87%
平台累计安装累计下载星标评论
ClawHub ↗742,3201-
SkillHub ↗1232,4751—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文说明可写入内容、进行语义查询、查看存储项目和检查加密状态。写入前应确认适合远程保存的数据,并核实查询产生的费用。

资料发布于 2026-10-29

可以用来做什么

  • 为 Agent 跨会话保存和检索记忆

什么时候用

  • 需要持久化保存内容,或按语义搜索已有记忆时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

概述此记忆服务的身份、存储和查询方式,并指出使用前应确认的事项。

月度数据趋势

累计下载2,475
1,5022,0252,5472026-03 · 累计下载 1,5742026-05 · 累计下载 1,8882026-06 · 累计下载 1,9872026-07 · 累计下载 2,1672026-08 · 累计下载 2,2332026-09 · 累计下载 2,47526-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,475—1
2026-082,233+3.0%1
2026-072,167+9.1%1
2026-061,987+5.2%1
2026-051,888—1
2026-031,574—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.2 KB · ClawHub v1.8.0
---
name: memdata
version: 1.8.0
description: Persistent memory for autonomous agents. Wallet = identity. Pay per query. Optional encrypted storage.
author: The Lab Venice
homepage: https://memdata.ai
license: MIT
---

# MemData
展开全部(共 276 行)

Persistent memory for autonomous agents. Your wallet is your identity.

## Core Concept

Your wallet address IS your identity. First payment auto-creates your account. Same wallet = same memories across all sessions.

No registration. No API keys. Just pay and use.

## Session Flow

```
1. GET /identity          # Start session - get context from last session
2. POST /ingest           # Store new memories
3. POST /query            # Search your memories
4. POST /identity         # End session - save handoff for next time
```

## Authentication

x402 payment protocol. USDC on Base (eip155:8453).

Every endpoint (except /status):
1. Returns 402 with payment requirements
2. You sign payment with wallet
3. Retry with `x-payment` header
4. Request succeeds

## Pricing

| Endpoint | Cost |
|----------|------|
| /query | $0.001 |
| /ingest | $0.005 |
| /identity | $0.001 |
| /artifacts | $0.001 |
| /setup-encryption | $0.001 |
| /status | Free |

## Encrypted Storage (Optional)

If you need privacy (competitive data, sensitive memories):

| Mode | Setup | Storage | Can MemData Read? |
|------|-------|---------|-------------------|
| Standard | None | Postgres | Yes |
| Encrypted | One-time delegation | Storacha (IPFS) | No |

Enable encryption:
```
GET /setup-encryption     # Get serverDID
POST /setup-encryption    # Send signed UCAN delegation
# All future ingest/query now encrypted
```

Encrypted storage uses Lit Protocol (threshold cryptography) + Storacha (IPFS/Filecoin).

---

## Endpoints

Base: `https://memdata.ai/api/x402`

---

### GET /identity

**Call this at the start of every session.** Returns your identity, what you were working on, last session handoff, and memory stats.

**Response:**
```json
{
  "identity": {
    "agent_name": "Agent 0x1234...",
    "identity_summary": "I analyze DeFi protocols",
    "session_count": 12
  },
  "last_session": {
    "summary": "Analyzed 3 yield farms",
    "context": {"protocols_reviewed": ["Aave", "Compound", "Uniswap"]}
  },
  "working_on": "Compare APY across protocols",
  "memory_stats": {
    "total_memories": 150,
    "oldest_memory": "2026-01-15T...",
    "newest_memory": "2026-02-03T..."
  }
}
```

---

### POST /identity

Update your identity or save session handoff before ending.

**Update identity:**
```json
{
  "agent_name": "YieldBot",
  "identity_summary": "I analyze DeFi yield opportunities",
  "working_on": "monitoring Aave rates"
}
```

**Save session handoff (before ending):**
```json
{
  "session_handoff": {
    "summary": "Completed yield analysis for Q1",
    "context": {"best_yield": "Aave USDC 4.2%"}
  },
  "working_on": "start Q2 analysis next"
}
```

---

### POST /ingest

Store content in memory. Auto-chunks and embeds.

**Request:**
```json
{
  "content": "Aave USDC yield is 4.2% APY as of Feb 3. Compound is 3.8%.",
  "sourceName": "yield-analysis-2026-02-03",
  "type": "note"
}
```

**Response:**
```json
{
  "success": true,
  "artifact_id": "e8fc3e63-...",
  "chunks_created": 1,
  "encrypted": false
}
```

---

### POST /query

Semantic search across your memories.

**Request:**
```json
{
  "query": "what are the best DeFi yields?",
  "limit": 5,
  "threshold": 0.3
}
```

**Response:**
```json
{
  "success": true,
  "results": [
    {
      "chunk_id": "uuid",
      "chunk_text": "Aave USDC yield is 4.2% APY...",
      "source_name": "yield-analysis-2026-02-03",
      "similarity_score": 0.72,
      "created_at": "2026-02-03T..."
    }
  ],
  "encrypted": false,
  "memory": {
    "grounding": "historical_baseline",
    "depth_days": 19,
    "data_points": 150
  }
}
```

Optional filters: `since`, `until` (ISO dates)

---

### GET /setup-encryption

Check encryption status. Returns info needed to create UCAN delegation.

**Response:**
```json
{
  "encryption": {
    "enabled": false,
    "serverDID": "did:key:z6Mkr...",
    "spaceDID": "did:key:z6Mkt..."
  }
}
```

---

### POST /setup-encryption

Enable encrypted storage. One-time setup.

**Request:**
```json
{
  "delegationCar": "base64-encoded UCAN delegation"
}
```

After this, all /ingest encrypts via Lit Protocol and stores on Storacha. All /query decrypts before returning. Response `encrypted` field becomes `true`.

---

### GET /artifacts

List stored memories.

**Response:**
```json
{
  "artifacts": [
    {
      "id": "uuid",
      "source_name": "yield-analysis-2026-02-03",
      "chunk_count": 1,
      "created_at": "2026-02-03T..."
    }
  ],
  "total": 25
}
```

---

### DELETE /artifacts/:id

Delete a memory and all its chunks.

---

### GET /status

Health check and pricing. Free, no payment required.

---

## Memory Grounding

Query responses include `memory.grounding`:

| Value | Meaning |
|-------|---------|
| `historical_baseline` | 100+ data points, trends meaningful |
| `snapshot` | <100 data points, point-in-time only |
| `insufficient_data` | No memories found |

---

## Links

- Docs: https://memdata.ai/docs
- x402 Protocol: https://www.x402.org
- Lit Protocol: https://litprotocol.com
- Storacha: https://storacha.network

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。