Xpersona
C

Claude Memory Pro

CLAWHUB · Unverified

进化版统一记忆系统,融合Claude Code的5层记忆架构+Token预算管理+智能成本追踪。当用户要求记忆跨会话信息、智能管理Token预算、优化AI调用成本、构建个人知识库、跨项目学习进化时使用。 Skill: Claude Memory Pro Owner: e2e5g Summary: 进化版统一记忆系统,融合Claude Code的5层记忆架构+Token预算管理+智能成本追踪。当用户要求记忆跨会话信息、智能管理Token预算、优化AI调用成本、构建个人知识库、跨项目学习进化时使用。 Tags: budget:1.0.0, cost:1.0.0, latest:1.0.0, memory:1.0.0, token:1.0.0 Version history: v1.0.0 | 2026-04-02T16:51:08.980Z | auto Claude Memory Pro 1.0.0 introduces a unified, advanced memory system with multi-layer architecture and smart resource management: - Implement

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177nbcv26z7ksbd8gps9thykh83hgt3:claude-memory-pro
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-e2e5g-claude-memory-pro/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,192 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: claude-memory-pro
description: 进化版统一记忆系统,融合Claude Code的5层记忆架构+Token预算管理+智能成本追踪。当用户要求记忆跨会话信息、智能管理Token预算、优化AI调用成本、构建个人知识库、跨项目学习进化时使用。
---

# Claude Memory Pro

> 进化版统一记忆系统 - Claude Code核心技能提炼与升级

## 核心能力

1. **5层记忆架构** - 热记忆 → 会话记忆 → 长期记忆 → 实体银行 → 反思层
2. **Token预算管理** - 智能追踪、边际收益检测、自动决策
3. **成本追踪优化** - 多维度统计、实时显示、优化建议
4. **跨会话学习** - 从历史交互中持续进化

## 记忆类型(4类)

| 类型 | 用途 | 示例 |
|-----|------|------|
| user | 用户偏好、背景 | 语言习惯、工作风格 |
| feedback | 工作指导、纠正 | 代码规范、回复偏好 |
| project | 项目上下文、决策 | 技术选型、截止日期 |
| reference | 外部系统指针 | API文档、数据库地址 |

## 5层记忆架构

```
memory/
├── hot/                     # Layer 1: 热记忆(当前对话)
│   └── current_turn.md
├── session/                 # Layer 2: 会话记忆
│   └── session_YYYY-MM-DD.md
├── typed/                   # Layer 3: 长期记忆
│   ├── user/
│   ├── feedback/
│   ├── project/
│   └── reference/
├── bank/                    # Layer 4: 实体银行
│   ├── entities/
│   └── procedures/
└── reflections/             # Layer 5: 反思层
```

## Token预算管理

### 预算阈值配置

```typescript
const BUDGET_CONFIG = {
  completionThreshold: 0.9,    // 90% 触发完成检查
  diminishingThreshold: 500,   // 边际收益递减阈值
  maxContinuations: 10,        // 最大继续次数
  warningThreshold: 0.75       // 75% 警告阈值
}
```

### 决策流程

```
Token使用检查
      ↓
< 75% → 正常继续
      ↓
< 90% → 继续 + nudge
      ↓
边际递减? → 停止(边际收益递减)
      ↓
之前有继续? → 停止(正常完成)
```

### 边际收益检测

```typescript
function isDiminishing(tracker): boolean {
  return tracker.continuationCount >= 3 &&
         delta < 500 &&
         lastDelta < 500
}
```

## 成本追踪

### 成本指标

| 类型 | 说明 | 优化价值 |
|-----|------|---------|
| input_tokens | 输入tokens | 高 |
| output_tokens | 输出tokens | 中 |
| cache_read | 缓存命中 | 低成本 |
| cache_creation | 缓存创建 | 一次性成本 |
| web_search | 搜索请求 | 按需优化 |

### 优化策略

1. **复用缓存** - 相同上下文用cache_read
2. **压缩上下文** - 减少input_tokens
3. **精简输出** - 减少output_tokens
4. **批量操作** - 减少API调用

## 记忆保存流程

### 对话前
1. 读取MEMORY.md获取索引
2. 按需加载typed/相关记忆

### 对话中
- 热记忆写入hot/current_turn.md
- 实时成本监控

### 对话后
1. 评估值得保留的信息
2. 选择正确的记忆层
3. 更新MEMORY.md索引

## 决策树

```
用户给反馈/纠正
├─ 关于用户本身 → typed/user/
├─ 关于工作方式 → typed/feedback/
├─ 关于项目 → typed/project/
└─ 关于外部系统 → typed/reference/

了解用户背景 → typed/user/
项目决策/变化 → typed/project/
外部系统位置 → typed/reference/
复杂档案 → bank/entities/
可复用流程 → bank/procedures/
自我反思 → reflections/
```

## 不保存内容

- 代码模式(可从代码推导)
- Git历史(git log权威)
- 临时任务状态(用tasks)
- 已文档化的内容(CLAUDE.md)
- 未经证实的推断
- 整段对话记录
- 大段代码

## 快速开始

### 初始化
```bash
mkdir -p memory/{hot,session,typed/{user,feedback,project,reference},bank/{entities,procedures},reflections}
```

### 创建记忆
```markdown
---
name: 用户回复偏好
type: feedback
created: 2026-04-02
---

用户不希望在每次回复末尾总结。

**Why:** 用户说"我能直接读懂diff"
**How to apply:** 保持简洁,不添加总结性语句
```

## 维护检查

- [ ] 每月检查typed/过时记忆
- [ ] 每季度清理reflections/
- [ ] 验证实体银行信息准确性
- [ ] 检查Token预算使用效率
- [ ] 评估成本优化效果

## 与其他技能对比

| 特性 | 基础版 | Pro版 |
|-----|-------|-------|
| 记忆层数 | 3层 | 5层 |
| Token管理 | 无 | 智能预算 |
| 成本追踪 | 无 | 多维度统计 |
| 跨会话学习 | 基础 | 反思进化 |
| 优化建议 | 无 | 自动生成 |

_meta.json

{
  "ownerId": "kn79s6s4n5qvd0qjwrn3bt0pts81y47b",
  "slug": "claude-memory-pro",
  "version": "1.0.0",
  "publishedAt": 1775148668980
}

skill-card.md

## Description:

Claude Memory Pro guides an agent in maintaining a five-layer local memory system with token budget management, cost tracking, and cross-session learning workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[e2e5g](https://clawhub.ai/user/e2e5g)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to organize persistent local memory, categorize retained user and project context, manage token budgets, and track cost-sensitive interaction patterns across sessions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill is designed to create and retain local cross-session memory, which can preserve information longer than intended.

Mitigation: Install only when local memory retention is desired, review the memory directory periodically, and delete stale entries.

Risk: Sensitive information could be stored in local memory if users or agents save it intentionally or by mistake.

Mitigation: Do not store secrets, credentials, private personal details, or sensitive project material unless retention on disk is intentional and approved.

## Reference(s):


## Skill Output:

**Output Type(s):** [Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with example shell commands, directory layouts, decision trees, and configuration snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces local memory-management guidance; does not require API keys or external tool integrations according to discovery.]

## Skill Version(s):

1.0.0 (source: server release evidence and artifact metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Claude Memory Pro and adjacent AI workflows.