xiaohongshu
xiaohongshu
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'.
Full skill instructions
Enable context retention across Claude Code sessions by saving and recalling work memories.
This skill allows Claude to:
Automatically triggered by phrases like:
When the user asks to remember something, create a new memory file:
Process:
issue-123, feature-auth, bug-database)memories/ directoryFile 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
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:
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
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
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
✅ Do Save:
❌ Don't Save:
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: `tests/auth.test.js:120`
# Less Useful
- Changed auth code
User: "Remember our findings about the performance issue"
Claude Response:
I'll save our investigation findings about the performance issue.
[Creates memory file: performance-investigation.md]
Saved memory: "Performance bottleneck in database queries - added indexes"
Location: .claude/skills/agent-memory/memories/performance-investigation.md
Key points saved:
- Identified N+1 query problem in user dashboard
- Added composite index on (user_id, created_at)
- Reduced query time from 2.5s to 80ms
- Next: Monitor production metrics
User: "What did we decide about the authentication approach?"
Claude Response:
Let me search our memories about authentication...
[Searches summaries, finds auth-strategy.md]
Found memory from 2026-01-10:
Summary: "OAuth 2.0 with PKCE for authentication"
Key decisions:
- Use OAuth 2.0 with PKCE flow (more secure than implicit)
- Support Google and GitHub providers initially
- Store tokens in httpOnly cookies
- Session duration: 7 days with refresh
Implementation status:
- ✅ OAuth integration complete
- ✅ Google provider working
- 🔄 GitHub provider in progress
- ⏳ Token refresh mechanism pending
Would you like me to continue work on the GitHub provider?
User: "Save our plan for the notification system"
Claude Response:
I'll create a memory for the notification system plan.
[Creates: notification-system.md]
Memory created: "notification-system"
Saved details:
- Architecture: Event-driven with message queue
- Tech stack: Redis pub/sub + WebSockets
- Notification types: Email, push, in-app
- Priority levels: urgent, normal, low
- User preferences: per-channel opt-in/out
Next steps saved:
- [ ] Set up Redis pub/sub
- [ ] Implement WebSocket server
- [ ] Create notification preferences UI
- [ ] Email template system
- [ ] Push notification service (FCM)
This memory is available for future sessions.
Suggest cleanup when memories accumulate:
# List old memories (>90 days)
find .claude/skills/agent-memory/memories/ -name "*.md" -mtime +90
# Archive completed work
mkdir -p .claude/skills/agent-memory/archive/
mv memories/completed-*.md archive/
auth-oauth-impl, not temp-123).gitignore excludes memories/ (private workspace)Works with other skills:
Remember: This skill helps maintain continuity and reduces context-switching overhead. Use it liberally to preserve valuable discussions and decisions.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience