AgentSkillsCN

Memory

掌握内存管理技能,用于持久化知识存储、语义化搜索,以及实体图的维护。

SKILL.md
--- frontmatter
domain: memory
description: "Memory management skills for persistent knowledge storage, semantic search, and entity graph maintenance."

Memory Domain

Skills for managing the assistant's long-term memory system. Includes semantic search over memory entries, saving new memories, extracting and maintaining an entity-relation knowledge graph with temporal validity, and compacting conversation history into structured memory.

Skill Inventory

SkillTypePurpose
memory.search_memoriesReadSemantic search across stored memory entries
memory.save_memoryWritePersist a new memory entry with topics
memory.extract_entitiesWriteExtract entities and relations from text
memory.close_relationWriteClose a relation and optionally open a replacement
memory.query_entity_graphReadFetch active relations for an entity
memory.compact_conversationWriteSummarize message range into memory entries

Search-First Rule

Write skills (save_memory, extract_entities, close_relation, compact_conversation) require a preceding read skill call (search_memories or query_entity_graph) in the same turn. This prevents duplicate entries and conflicting knowledge.