Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-memory

БесплатноБез исполняемых скриптовНе проверен

Retain and recall work context across sessions. Use when user asks to remember something, recall previous work, or reference past discussions. Triggered by…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Agent Memory Skill

Enable context retention across Claude Code sessions by saving and recalling work memories.

Purpose

This skill allows Claude to:

  • Remember important context, decisions, and work items
  • Recall previous discussions and findings
  • Maintain continuity across multiple sessions
  • Reduce repetition by referencing past work

When to Use

Automatically triggered by phrases like:

  • "Remember this for later"
  • "Save this information"
  • "Recall what we discussed about X"
  • "What was our approach for Y?"
  • "Retrieve memory about Z"

Memory Operations

1. Saving Memories

When the user asks to remember something, create a new memory file:

Process:

  1. Identify the topic/context to remember
  2. Generate a descriptive memory ID (e.g., issue-123, feature-auth, bug-database)
  3. Create markdown file in memories/ directory
  4. Include YAML frontmatter with metadata
  5. Write detailed context in markdown body

File Format:

---
summary: "Brief one-line description"
topic: "Main topic or feature"
created: "2026-01-14"
tags: ["tag1", "tag2"]
related: ["other-memory-id"]
---

# Detailed Context

## Background
[What led to this discussion]

## Key Points
- Important point 1
- Important point 2
- Decision made

## Next Steps
- [ ] Action item 1
- [ ] Action item 2

## References
- File: `src/module.js:42`
- PR: #123
- Issue: #456

Example Memory Creation:

# Create memory file
cat > .claude/skills/agent-memory/memories/database-migration.md << 'EOF'
---
summary: "Database migration strategy for user profiles"
topic: "database"
created: "2026-01-14"
tags: ["database", "migration", "users"]
---

# Database Migration Strategy

## Context
We need to add a `preferences` column to the users table to support
dark mode and notification settings.

## Decisions Made
- Use Alembic for migrations
- Add JSONB column for flexibility
- Default value: `{}`
- Backfill existing users in separate migration

## Code Location
- Migration script: `migrations/versions/add_user_preferences.py`
- Model: `src/models/user.py:15`

## Next Steps
- [ ] Create migration script
- [ ] Test on staging database
- [ ] Deploy during maintenance window
EOF

2. Recalling Memories

When asked to recall information:

Progressive Disclosure Search:

  1. Quick scan - Search summaries first:

    # Search memory summaries
    grep -r "^summary:" .claude/skills/agent-memory/memories/ | \
      grep -i "search_term"
    
  2. Detailed search - If needed, search full content:

    # Full-text search across memories
    grep -r "search_term" .claude/skills/agent-memory/memories/ \
      --include="*.md"
    
  3. Read relevant memories - Load matching files:

    # Read specific memory
    cat .claude/skills/agent-memory/memories/topic-name.md
    

Search Strategy:

  • First, scan summaries to identify relevant memories
  • Then, read only the most relevant files in detail
  • Report findings in a structured format

3. Listing Memories

Show available memories:

# List all memories
find .claude/skills/agent-memory/memories/ -name "*.md" -type f

# Show summaries
for file in .claude/skills/agent-memory/memories/*.md; do
  echo "Memory: $(basename $file .md)"
  grep "^summary:" "$file" || echo "  (no summary)"
done

4. Updating Memories

When new information relates to existing memory:

# Append to existing memory
cat >> .claude/skills/agent-memory/memories/topic.md << 'EOF'

## Update: $(date +%Y-%m-%d)

New information or progress update:
- Updated point
EOF

5. Organizing Memories

Optionally organize into subdirectories:

memories/
├── features/
│   ├── auth-system.md
│   └── payment-flow.md
├── bugs/
│   ├── issue-123.md
│   └── memory-leak.md
├── decisions/
│   └── architecture-choice.md
└── investigations/
    └── performance-analysis.md

Memory Content Guidelines

What to Remember

✅ Do Save:

  • Design decisions and rationale
  • Investigation findings
  • Approaches tried (what worked/didn't work)
  • Key conversation insights
  • Important file locations
  • Configuration details
  • Action items and next steps
  • Links to related issues/PRs

❌ Don't Save:

  • Entire code files (reference them instead)
  • Trivial information
  • Easily searchable facts
  • Sensitive credentials (never!)
  • Temporary debugging notes

Writing Good Memories

Be Specific:

# Good
summary: "JWT token expiration issue - increased from 1h to 24h based on user feedback"

# Too Vague
summary: "Changed some settings"

Include Context:

# Good
## Background
Users complained about frequent re-logins. Analytics showed
average session length is 6 hours. Increased token TTL to 24h
with sliding window refresh.

# Incomplete
## Background
Increased token expiration.

Reference Code Locations:

# Good
- Implementation: `src/auth/jwt.js:45-67`
- Config: `config/auth.json`
- Tests
Полный SKILL.md на GitHub

Установить agent-memory в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

read
write
grep
glob
bash

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-memory?

Retain and recall work context across sessions. Use when user asks to remember something, recall previous work, or reference past discussions. Triggered by phrases like 'remember this', 'save for later', 'recall', 'what did we discuss about'.

Как установить скилл agent-memory?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-memory запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-memory с