memory-tidy

memory-tidy is a skill for Claude Code from w693847022/memory_service. It costs 18 tokens per session (2,435 once invoked), scanned A, original, MIT.

A workflow for organizing project memories stored in the memorymcp service, including feature records, bug-fix records, notes, and tags.

In plain words
What is it for?
Listing projects, reviewing their records, merging duplicate features or fixes, cleaning tags, checking links between features and fixes, and moving bug-fix records to the correct group.
Why use it?
It helps find duplicate or misplaced records and keeps related project information organized, while requiring confirmation before merging or deleting entries.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Listing projects, reviewing their records, merging duplicate features or fixes, cleaning tags, checking links between features and fixes, and moving bug-fix records to the correct group.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/w693847022/memory_service/memory-tidy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add w693847022/memory_service --skill memory-tidy
Clone the repo
git clone --depth 1 https://github.com/w693847022/memory_service

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-tidy

README.md
[![agentmods](https://agentmods.dev/badge/skills/w693847022/memory_service/memory-tidy.svg)](https://agentmods.dev/skills/w693847022/memory_service/memory-tidy)
Your own site
<a href="https://agentmods.dev/skills/w693847022/memory_service/memory-tidy"><img src="https://agentmods.dev/badge/skills/w693847022/memory_service/memory-tidy.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.02435
Opus 5 $0.00009 $0.01218
Sonnet 5 $0.00004 $0.00487
Haiku 4.5 $0.00002 $0.00244

Measured 7d ago against content hash 726f10e3d2c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

memory-tidy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/memory-tidy/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory 整理技能

整理 MCP [memory_mcp] 中的项目记忆数据,包括功能记录、修复记录、笔记和标签。

前置准备

  1. 获取项目列表: 使用 project_list 查看所有项目
  2. 选择目标项目: 让用户确认要整理的项目
  3. 获取项目详情: 使用 project_get 获取完整数据

整理流程

步骤 1: 整理 Feature 功能记录

  1. 识别重复功能: 查找描述相似或功能相同的记录
  2. 合并重复项:
    • 重要:只有状态一致的条目支持合并(pending 只能和 pending 合并,completed 只能和 completed 合并)
    • 选择保留的主要记录(通常是描述更完整或更新的)
    • 合并前必须向用户确认,说明合并原因
    • 将其他重复记录的标签合并到主记录
    • 如有关联笔记,选择保留最完整的
    • 删除被合并的重复记录
  3. 清理标签: 移除无意义或重复的标签

合并确认格式

即将合并以下功能记录:

保留: [ID] 描述内容...
删除: [ID] 描述内容...

合并原因: [说明为什么这两个记录重复/相似]

是否确认合并?(y/n)

操作示例:

# 1. 查看功能列表
project_get(project_id="xxx", group_name="features")

# 2. 合并标签到主记录
project_item_tag_manage(project_id="xxx", group_name="features", item_id="主记录ID", operation="add", tag="被合并记录的标签")

# 3. 删除重复记录
project_delete(project_id="xxx", group="features", item_id="重复记录ID")

步骤 2: 整理 Fix 修复记录

  1. 识别重复修复: 查找相同问题的多次记录
  2. 合并重复项:
    • 重要:只有状态一致的条目支持合并(pending 只能和 pending 合并,completed 只能和 completed 合并)
    • 合并前必须向用户确认,说明合并原因(同 Feature 格式)
    • 其余逻辑同 Feature 合并
  3. 检查关联: 确保修复记录正确关联到相关 Feature

步骤 3: Feature → Fix 迁移

有些 Feature 记录实际上描述的是 Bug 修复,需要迁移:

判断标准:

  • 描述中包含 "修复"、"fix"、"bug"、"问题" 等关键词
  • 内容主要是解决某个问题而非新增功能

迁移操作:

# 场景A: 全部内容都是修复
# 1. 在 fix 分组创建新记录
project_add(project_id="xxx", group="fixes", content="修复描述", severity="medium", tags="原标签")

# 2. 删除原 feature 记录
project_delete(project_id="xxx", group="features", item_id="原ID")

# 场景B: 部分是修复
# 1. 为修复部分创建 fix 记录
project_add(project_id="xxx", group="fixes", content="修复部分内容", related_feature="原featureID")

# 2. 更新原 feature,移除修复部分
project_update(project_id="xxx", group="features", item_id="原ID", content="仅保留功能部分")

步骤 4: 整理 Note 笔记

前置:理解 Note 关联的意义

Note 是 Feature 或 Fix 的细节补充,它们之间存在语义关联:

  • 关联了 feature 的 note → 是该功能的技术细节/实现说明
  • 关联了 fix 的 note → 是该修复的原因分析/解决方案细节
  • 无关联的 note → 独立的开发笔记/临时记录

4.1 删除 Note 的判断

核心原则:有关联的 note 是 feature/fix 的补充,不应轻易删除

删除前检查流程:
1. 查询 feature 和 fix 列表,检查 note_id 是否指向该 note
2. 如果有关联 → 保留该 note,它是补充说明
3. 如果无关联 → 可以删除(独立的临时笔记)

Read the full file on GitHub · 240 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 240 lines · 18 tokens per session scan A 726f10e3d2c2

Subscribe to this mod's changes

memory-tidy is a skill published in the GitHub repository w693847022/memory_service (1 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 2,435 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens