AgentSkillsCN

memory

通过记忆存储、记忆调用与生命周期管理,帮助用户在不同会话间保持上下文的连贯性。 当用户提出“记住这件事”、“保存某个决策”、“回忆我们曾经做过什么”、“找回过去的对话场景”、“为日后留存”、“我们学到了什么?”、“我们做出了怎样的决定?”时,或提及知识、决策与经验的持久化时,可优先使用此技能。 适用场景如下: - “下次再记得这件事” - “保存这个决策” - “我们之前都做了些什么?” - “回忆过去的对话场景” - “把这段模式存起来”

SKILL.md
--- frontmatter
name: memory
description: |
  Memory storage, recall, and lifecycle management for maintaining context across sessions.

  This skill should be used when the user asks to "remember this", "store a decision",
  "recall what we did", "find past context", "save for later", "what did we learn",
  "what did we decide", or mentions persisting knowledge, decisions, or learnings.

  Use when:
  - "remember this for next time"
  - "store this decision"
  - "what did we do before"
  - "recall past context"
  - "save this pattern"

Memory Management Skill

This skill provides guidance on effectively using Claude's memory system to persist knowledge, decisions, and learnings across sessions.

When to Use This Skill

  • After completing significant work that yielded learnings
  • When making architectural or design decisions
  • When encountering and solving bugs that might recur
  • When establishing patterns or preferences
  • When needing to recall past context

Core Concepts

Memory Types - Choose the right type for durability:

  • episodic: What happened (90-day TTL)
  • procedural: How to do things (permanent)
  • decision: Choices and rationale (permanent)
  • preference: User/project preferences (permanent)

Scope - Where memories live:

  • core: Global, cross-project
  • project: Specific to current project

Importance - Affects decay rate:

  • high: 2x TTL multiplier
  • medium: Standard TTL
  • low: 0.5x TTL multiplier

Quick Reference

TaskCommand
Store a decision/wicked-mem:store "..." --type decision
Find past context/wicked-mem:recall "query"
Check memory health/wicked-mem:stats
Archive old memory/wicked-mem:forget mem_id

On-Demand Recall

Memories are pulled on-demand, not preloaded. When context is needed:

  1. Auto-triggered: Prompts like "why did we decide..." auto-search memories
  2. Manual fallback: If no context is injected and you need history, use:
    code
    /wicked-mem:recall "query terms"
    

When to proactively recall:

  • User asks about past decisions but no memory was injected
  • Task relates to previous work in the project
  • Making decisions that should reference past rationale
  • Debugging an issue that might have been solved before

Workflow Guides

TaskGuide
What to store and how to structure itStoring Decisions
Effective search and filteringEffective Recall
Managing memory lifecycleMemory Lifecycle