AgentSkillsCN

memory-save

将重要信息保存至持久化记忆中,以便在未来的对话中随时调用。 记忆采用追加写入模式,不可删除,仅能被禁用。

SKILL.md
--- frontmatter
name: memory-save
type: shell
description: |
  Save important information to persistent memory for future conversations.
  Memory is append-only and cannot be deleted, only disabled.
command: deno run --allow-net skills/memory-save/skill.ts
parameters:
  - name: session-id
    type: string
    required: true
    flag: --session-id
  - name: content
    type: string
    required: true
    flag: --content
    description: The memory content to save (plain text)
  - name: visibility
    type: string
    flag: --visibility
    default: public
    enum: [public, private]
  - name: importance
    type: string
    flag: --importance
    default: normal
    enum: [high, normal]
output:
  format: json

Memory Save Skill

Save important information that should persist across conversations.

Usage

bash
deno run --allow-net skills/memory-save/skill.ts \
  --session-id "$SESSION_ID" \
  --content "User prefers formal communication" \
  --importance high

Parameters

  • --content: (Required) The memory content to save
  • --visibility: public (default) or private
  • --importance: normal (default) or high

Output

json
{
  "success": true,
  "data": { "id": "mem_xxx", "content": "...", "visibility": "public", "importance": "normal" }
}