skills/abilityai/abilities/update-memory

update-memory

SKILL.md

Update Memory

Update the memory system after a session with new information.

Step 1: Update Action Log

Prepend new actions to memory/action_log.txt:

# Get current timestamp
timestamp=$(date '+%Y-%m-%d %H:%M:%S')

# Prepend new entry (newest at top)
echo "$timestamp - [Action description]" | cat - memory/action_log.txt > tmp.txt && mv tmp.txt memory/action_log.txt

Format each action as:

  • YYYY-MM-DD HH:MM:SS - Brief description of what was done

Step 2: Update Context

Update current work state:

jq '.context.recent_work = ["task1", "task2"] | .context.active_topics = ["topic1"]' memory/memory_index.json > tmp.json && mv tmp.json memory/memory_index.json

Step 3: Add Key Facts (if learned)

If new important facts were learned:

jq '.memory.key_facts += ["New important fact"]' memory/memory_index.json > tmp.json && mv tmp.json memory/memory_index.json

Step 4: Update Entities (if new)

If new people/projects/orgs were encountered:

jq '.entities += [{"type": "person", "name": "Name", "relationship": "role", "added": "YYYY-MM-DD"}]' memory/memory_index.json > tmp.json && mv tmp.json memory/memory_index.json

Step 5: Record Decisions (if made)

If significant decisions were made:

jq '.memory.decisions += [{"date": "YYYY-MM-DD", "decision": "What was decided", "rationale": "Why"}]' memory/memory_index.json > tmp.json && mv tmp.json memory/memory_index.json

Step 6: Update Metadata

Always update timestamps and counters:

jq '.metadata.last_updated = now | todate | .metadata.total_interactions += 1' memory/memory_index.json > tmp.json && mv tmp.json memory/memory_index.json

Step 7: Report

Summarize what was updated:

  • X actions logged
  • X new facts added
  • X entities updated
  • Metadata timestamp refreshed
Weekly Installs
1
First Seen
11 days ago
Installed on
mcpjam1
claude-code1
junie1
windsurf1
zencoder1
crush1