en un clic
nmem-maintenance
周期性巡检 Nowledge Mem 知识库,分类处理后台积累的待办事件。
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
周期性巡检 Nowledge Mem 知识库,分类处理后台积累的待办事件。
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
将所有机器上的 Pi 和 OMP 会话整理成主题聚合的结构化日报,可选写入 Obsidian 工作日志。
往 pi 的 models.json 新增/适配 provider 模型,含取参、思考三层合成、capture.ts 实测验证与固定。
按需求从 npm pi-package 生态检索符合的 Pi Agent 扩展/技能/主题/prompt 包,采集 npm 元数据与 GitHub 信号,质量评估后整理成表格。与 pi-trending 互补(后者做热度发现)。
Free up disk space on Arch Linux WSL through layered cleanup: cache purge, orphan removal, package audit, and large file scanning. Use whenever the user mentions disk space, cleanup, storage, package review, or wants to shrink their WSL footprint — even if they just say "空间不够", "磁盘满了", "WSL 太大了", or "clean up my system". Prefer this skill over ad-hoc cleanup commands on Arch WSL.
Search and rewrite code by AST structure across 25 languages with ast-grep (sg). Use when the task is structural - find function calls shaped like X, rewrite console.log to logger.info, find all `as any`, migrate require() to import, find empty catch blocks, missing await, codemod a class hierarchy, scan project against YAML rules. Preferred over grep when the user mentions code SHAPE or needs deterministic refactoring across many files. Triggers: 'ast-grep', 'sg', 'ast grep', 'astgrep', 'find all functions that', 'find every call to', 'codemod', 'structural search', 'pattern match code', 'replace pattern across files', 'rename function everywhere', 'find usages of pattern', 'apply this transformation to all', 'migrate X to Y'.
Audit installed Hermes Agent skills for usage frequency and generates an interactive XLSX with Chinese descriptions, dropdown decision columns, and color-coded recommendations. Supports apply mode: reads decisions from XLSX and executes cleanup (delete/disable/enable) after user confirmation, with automatic backup. Smart filtering: already-disabled skills are not re-suggested for cleanup. Uses hermes internal API for authoritative skill classification (builtin/hub/local/external). Use when the user asks about Hermes skill usage statistics, wants to clean up unused Hermes skills, needs to disable low-usage skills, or mentions "技能审计", "清理技能", "不用的技能", "哪些技能可以删", "技能热度", "技能使用频率", "audit hermes skills". This skill is specific to Hermes Agent — do not use for other agents. Make sure to load this skill whenever Hermes skill management, cleanup, or usage analysis is mentioned.
| name | nmem-maintenance |
| description | 周期性巡检 Nowledge Mem 知识库,分类处理后台积累的待办事件。 |
| disable-model-invocation | true |
周期性巡检 nmem 知识库,处理后台积累的待办事件。核心是先分类再处理,关键裁定交给用户。
nmem CLI 可用且已登录确认 nmem 服务在线,记录版本和模式:
nmem --json status
健康响应:status: ok,有 server_version,database: true。
完成标记:服务在线,或已报告故障。
nmem feed --days 7 -j
筛选出 severity: action_required 且 resolved: false 的事件。
⚠️ feed 事件的
resolved字段是只读标记--即使底层记忆已修复,该字段也不会自动变为 true。后续核查必须直接用nmem memories show验证记忆状态,不能依赖事件状态。
完成标记:列出所有待处理事件及其 ID。若无待处理事件,结束巡检。
将每个 action_required 事件归入以下三类之一:
| 事件类型 | 分类 | 特征 |
|---|---|---|
flag_stale | 陈旧结晶 | 结晶有新源记忆,建议补充更新 |
flag_merge_candidate | 重复记忆 | 多条记忆标题/内容高度重复 |
flag_contradiction | 矛盾裁定 | 两条记忆给出相反指引,需用户裁定 |
insight_generated | info | 后台自动洞察,无需处理 |
crystal_created | info | 新结晶生成,无需处理 |
pattern_detected | info | 模式发现,非紧急,可后续讨论 |
注意:事件类型和分类并不总是 1:1。info 级别的 insight_generated 可能包含需要关注的建议,但不需要立即处理。按 action_required 筛选是安全的起点。
完成标记:全部待处理事件已打上分类标签。
nmem memories show <crystal_id> -jnmem memories show <new_memory_id> -jnmem memories update <crystal_id> -c '<new_content>'
deprecate:nmem memories deprecate <crystal_id> --supersede <new_memory_id>完成标记:每个陈旧结晶已处理--要么更新,要么标记废弃,要么向用户报告"无需处理"。
读取全部候选记忆的完整内容,不得只看标题就做决定:
nmem memories show <id1> -j
nmem memories show <id2> -j
比较内容完整度(长度、覆盖的细节数量、是否包含验证方法等独有信息)
保留最完整的一条
删除其余:
nmem memories delete <id_to_delete1> <id_to_delete2>
安全规则:先读全文再删。标题相同的记忆可能内容略有差异,合并时取内容最完整的。
完成标记:每组重复记忆已处理--合并重复项保留最完整的一条,或读全文后确认无需合并并在报告中标注。
注意:知识库记忆可能出现关于 _BIN 路径原则的矛盾--裁定前先确认矛盾双方讨论的是同一类工具(调度器 vs 数据处理工具)。
完成标记:每组矛盾已获用户裁定并按裁定执行--更新被推翻方、删除/废弃、或保留双方(裁定同成立)。
输出结构化摘要:
## nmem 巡检报告
**服务状态**: ✅ xxx
### ✅ 已处理
- 陈旧结晶 × N - 已更新/已废弃
- 重复记忆 × N - 已合并
- 矛盾裁定 × N - 已裁定+更新
### ⏸️ 仍需用户裁定
- ...
### ℹ️ info 仅参考
- ...