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★ 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:
- Identify the topic/context to remember
- Generate a descriptive memory ID (e.g.,
issue-123,feature-auth,bug-database) - Create markdown file in
memories/directory - Include YAML frontmatter with metadata
- 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:
Quick scan - Search summaries first:
# Search memory summaries grep -r "^summary:" .claude/skills/agent-memory/memories/ | \ grep -i "search_term"Detailed search - If needed, search full content:
# Full-text search across memories grep -r "search_term" .claude/skills/agent-memory/memories/ \ --include="*.md"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
Установить agent-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readwritegrepglobbashВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic