Skip to main content

memory-patch

Modify memory metadata (visibility, importance) or disable memories. Use when you need to update the status of existing memories. You MUST use this skill to modify memory metadata, you MUST NOT manually modify the memory files.

跳到安装

来源信息

仓库
jim60105/AIr-Friends
最近来源活动
2026年8月28日 23:09
检测到的 SKILL.md 语言
英语
星标
6
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
memory-patch
description
Modify memory metadata (visibility, importance) or disable memories. Use when you need to update the status of existing memories. You MUST use this skill to modify memory metadata, you MUST NOT manually modify the memory files.
allowed-tools
Bash
# Memory Patch Skill Modify metadata of existing memories without changing content. ## Usage ```bash # Disable a memory ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_abc123" \ --disabled # Change importance ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_abc123" \ --importance high # Mark a memory as superseding others (maintenance lineage) ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_new_summary" \ --supersedes "mem_old1,mem_old2,mem_old3" # Add related memory links ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_abc123" \ --related-to "mem_def456,mem_ghi789" # Change tier and category ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_abc123" \ --tier core \ --category preference # Adjust decay value ${HOME}/.agents/skills/memory-patch/scripts/memory-patch.ts \ --session-id "$SESSION_ID" \ --memory-id "mem_abc123" \ --decay 0.9 ``` **`--session-id`**: Use the session id rendered in your system prompt. `$SESSION_ID` works only in per-spawn deployments; in shared-process mode it is not set and the skill library resolves the owning session automatically — a mismatched value is never honored. ## Capabilities - Enable/disable memories (use --enabled or --disabled flag) - Change visibility level - Adjust importance level - Change memory tier (--tier: `core`, `working`, or `archive`) - Change memory category (--category: `fact`, `preference`, `episode`, `summary`, or `relationship`) - Adjust decay value (--decay: 0.0–1.0; ignored for core tier which always has decay=1.0) - Link related memories (--related-to, comma-separated IDs) - Mark supersession lineage (--supersedes, comma-separated IDs) ## Limitations - **Cannot modify content** - content is immutable - **Cannot delete** - can only disable ## Critical Rules 1. **Timeout**: The script won't run for more than 30 seconds. If it hangs, do stop_bash and do not retry, return an error message in JSON format.
在 GitHub 查看