AgentSkillsCN

nowledge-mem

个人知识库的统一 CLI。当用户希望保存记忆、搜索过往对话、持久化当前会话,或管理已存储的信息时,应使用此技能。触发条件:记忆、知识库、保存会话、搜索记忆、召回、记住、保存记忆、搜索知识、持久化会话、nm 命令。

SKILL.md
--- frontmatter
name: nowledge-mem
description: |
  Unified CLI for personal knowledge base. This skill should be used when users want to save memories, search past conversations, persist current sessions, or manage stored information. Triggers: 记忆, 知识库, 保存会话, 搜索记忆, recall, remember, save memory, search knowledge, persist session, nm命令.

Nowledge Mem

Unified CLI for Nowledge Mem knowledge base management.

Quick Reference

CommandDescription
nm search "..."Search memories
nm add "..."Add a new memory
nm persistSave current session
nm expand <id>View full thread
nm update <id>Update memory
nm delete <id>Delete memory
nm labelsList all labels
nm diagnoseCheck connectivity

Execution

Run all commands via uv run nm from the skill directory.

bash
cd <skill-directory>
uv run nm <command> [options]

Core Workflows

Search Knowledge Base

bash
# Basic search
uv run nm search "Python async patterns"

# Verbose with JSON output
uv run nm search "API design" --verbose --json

Add Memory

bash
# Simple add
uv run nm add "Content to remember"

# With metadata
uv run nm add "Important config" --title "DB Config" --importance 0.8 --labels "config,db"

Persist Current Session

Set PROJECT_PATH to the actual project directory before running.

bash
PROJECT_PATH=/path/to/project uv run nm persist
PROJECT_PATH=/path/to/project uv run nm persist --title "Feature implementation"

Expand Thread

bash
uv run nm expand <thread_id>

Reference Documentation

For detailed parameters and options:

  • Command parameters: references/command_reference.md
  • Configuration: references/configuration.md
  • Usage patterns: references/usage_patterns.md
  • Troubleshooting: references/troubleshooting.md

Trigger Keywords

LanguageKeywords
中文记忆, 知识库, 保存, 搜索, 记录, 存储, 会话, 持久化
Englishmemory, knowledge, save, search, persist, recall, remember, session