SarielWang93

Memory Tiering

AI 智能体v1.0.0
作者:SarielWang93更新于 2026-05-11memory-tiering@clawhub_sarielwang93/memory-tiering
上下文管理记忆增强

据 AlphaMoat 统计,截至 2026-10,Memory Tiering 累计下载 24,595 次、获 10 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 1,158 位,在「AI 智能体」分类(1,632 个)中排名第 172 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
2.5万
星标
10
全站下载量排名
#1,158
全站前 11% · 「AI 智能体」前 11%
平台累计下载星标评论
ClawHub ↗1.7万9-
SkillHub ↗2.5万10—

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

这个技能是做什么的

把会话上下文、稳定偏好与长期归档分到三个层级文件,在记忆整理或上下文压缩后重新分配、裁剪与摘要,并检查是否有信息在搬移中丢失。热层须保持足够小以便高效使用;凭据尽量只存指向源头文件的引用,不存明文。 重整持久记忆档案前,先检查目标档案并保留可还原副本。

资料发布于 2026-10-29

可以用来做什么

  • 上下文压缩后重排记忆文件
  • 把已完成任务的细节降级成摘要

什么时候用

  • 记忆文件越写越乱时
  • 会话压缩之后需要归档时

示例提示词

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

整理一下现在的记忆层级
把已完成的任务从热层移出去

月度数据趋势

累计下载2.5万
1.1万1.8万2.6万2026-03 · 累计下载 1.2万2026-05 · 累计下载 1.6万2026-06 · 累计下载 1.6万2026-07 · 累计下载 1.7万2026-08 · 累计下载 1.7万2026-09 · 累计下载 1.8万2026-10 · 累计下载 2.5万26-0326-0926-10
星标10
68102026-03 · 星标 62026-05 · 星标 92026-06 · 星标 102026-07 · 星标 102026-08 · 星标 102026-09 · 星标 102026-10 · 星标 1026-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-102.5万—10
2026-091.8万—10
2026-081.7万+1.3%10
2026-071.7万+3.3%10
2026-061.6万+1.9%10
2026-051.6万—9
2026-031.2万—6

SKILL.md 原文

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

2.0 KB · ClawHub v1.0.0
---
name: memory-tiering
description: Automated multi-tiered memory management (HOT, WARM, COLD). Use this skill to organize, prune, and archive context during memory operations or compactions.
---

# Memory Tiering Skill 🧠⚖️

This skill implements a dynamic, three-tiered memory architecture to optimize context usage and retrieval efficiency.

## The Three Tiers
展开全部(共 46 行)

1.  **🔥 HOT (memory/hot/HOT_MEMORY.md)**:
    *   **Focus**: Current session context, active tasks, temporary credentials, immediate goals.
    *   **Management**: Updated frequently. Pruned aggressively once tasks are completed.
2.  **🌡️ WARM (memory/warm/WARM_MEMORY.md)**:
    *   **Focus**: User preferences (Hui's style, timezone), core system inventory, stable configurations, recurring interests.
    *   **Management**: Updated when preferences change or new stable tools are added.
3.  **❄️ COLD (MEMORY.md)**:
    *   **Focus**: Long-term archive, historical decisions, project milestones, distilled lessons.
    *   **Management**: Updated during archival phases. Detail is replaced by summaries.

## Workflow: `Organize-Memory`

Whenever a memory reorganization is triggered (manual or post-compaction), follow these steps:

### Step 1: Ingest & Audit
- Read all three tiers and recent daily logs (`memory/YYYY-MM-DD.md`).
- Identify "Dead Context" (completed tasks, resolved bugs).

### Step 2: Tier Redistribution
- **Move to HOT**: Anything requiring immediate attention in the next 2-3 turns.
- **Move to WARM**: New facts about the user or system that are permanent.
- **Move to COLD**: Completed high-level project summaries.

### Step 3: Pruning & Summarization
- Remove granular details from COLD.
- Ensure credentials in HOT point to their root files rather than storing raw secrets (if possible).

### Step 4: Verification
- Ensure no critical information was lost during the move.
- Verify that `HOT` is now small enough for efficient context use.

## Usage Trigger
- Trigger manually with: "Run memory tiering" or "整理记忆层级".
- Trigger automatically after any `/compact` command.

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

SarielWang93 的其他技能

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