Skip to content
Back to skills

Memory Vacuum

ASecurity

轻量化记忆管理。每日自动分片归档,语义压缩,只保留必要信息。0内存占用,重启不丢。用于用户提到内存、清理、整理记忆、减轻负担等场景。

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
tools

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill memory-vacuum --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Vacuum?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Vacuum
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-memory-vacuum/badge)](https://www.skillsdirectory.com/skills/lord1egypt-memory-vacuum)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: memory-vacuum
description: 轻量化记忆管理。每日自动分片归档,语义压缩,只保留必要信息。0内存占用,重启不丢。用于用户提到内存、清理、整理记忆、减轻负担等场景。
---

# 记忆轻量化系统

让记忆系统保持轻量:按天分片、自动压缩、只保留必要信息,不让记忆文件无限膨胀。

## 核心原则

**记忆要精,不要多。宁精一条,不要滥十条。**

## 工作方式

### 每日分片

所有记忆按 `memory/YYYY-MM-DD.md` 日期归档,**不写入同一个大文件**。

```
memory/
├── 2026-05-01.md   ← 5月1日所有对话
├── 2026-05-02.md   ← 5月2日所有对话
├── 2026-05-03.md   ← 5月3日所有对话
└── MEMORY.md        ← 提炼后的精华(体积小,定时精简)
```

### 自动压缩(每次会话前)

新会话开始前,检查 `MEMORY.md`:
- 单条记忆超过 5 行 → 压缩成要点
- 有重复信息 → 合并
- 有过时信息 → 标记但不删除(永远不删除)
- 超过 200 行 → 压缩最旧的一半

### 零内存占用原理

- **不存对话历史**(太初靠上下文)
- **不预加载任何东西**(按需读取)
- **MEMORY.md 永远小于 50KB**(动态压缩保证)
- 真正需要的信息 → MEMORY.md(<50KB)
- 原始对话 → 当日日记(按日期分流,不影响加载速度)

## 内存管理规则

| 操作 | 触发条件 | 动作 |
|------|---------|------|
| 写入日记 | 每条消息 | 追加到 `memory/YYYY-MM-DD.md` |
| 写入精华 | 重要信息 | 写入 MEMORY.md(精炼后) |
| 压缩 | MEMORY.md > 50KB | 自动压缩最旧记忆 |
| 分流 | 单日日记 > 100KB | 拆分月份子文件 |

## 安装

本技能无需额外配置,直接启用即可。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.