Skip to content
Back to skills

Serena Memory

ASecurity

This skill should be used when the user asks to "save project context", "load memories", "persist knowledge", "remember this for next session", "update architecture notes", or mentions Serena's write_memory, read_memory, list_memories, edit_memory tools.

  • 6 stars
  • 0 votes
  • 0 copies
  • 17 views
  • Added February 7, 2026
developmentgosqlfastapitestingdebuggingrefactoringapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add anilcancakir/claude-code-plugins --skill serena-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Serena Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Serena Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anilcancakir-serena-memory/badge)](https://www.skillsdirectory.com/skills/anilcancakir-serena-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: serena-memory
description: |
  This skill should be used when the user asks to "save project context",
  "load memories", "persist knowledge", "remember this for next session",
  "update architecture notes", or mentions Serena's write_memory, read_memory,
  list_memories, edit_memory tools.
---

# Serena Memory Management

## Memory Operations

| Operation | Tool |
|-----------|------|
| Save knowledge | `write_memory(key, content)` |
| Update existing | `edit_memory(key, content)` |
| Load knowledge | `read_memory(key)` |
| List all | `list_memories()` |
| Remove | `delete_memory(key)` |

## Recommended Memory Keys

| Key | Purpose |
|-----|---------|
| `architecture_overview` | System architecture |
| `code_conventions` | Coding standards |
| `recent_changes` | Latest commits |
| `known_issues` | Bugs and workarounds |
| `test_patterns` | Testing conventions |
| `session_context` | Current task (preserved during compaction) |

## When to Update Memories

1. **After exploration**: Save architectural insights
2. **After debugging**: Document root causes and fixes
3. **After refactoring**: Record successful patterns
4. **Before compaction**: Preserve current task context
5. **After commits**: Summarize significant changes

## Example: Architecture Memory

```
write_memory(
  key="architecture_overview",
  content="""
# Project Architecture

## Layers
- API: FastAPI routes in src/api/
- Services: Business logic in src/services/
- Models: SQLAlchemy models in src/models/

## Key Patterns
- Dependency injection via FastAPI Depends
- Repository pattern for data access

## Entry Points
- Main app: src/main.py
- CLI: src/cli.py
"""
)
```

## Example: Code Conventions Memory

```
write_memory(
  key="code_conventions",
  content="""
# Code Conventions

- snake_case for functions/variables
- PascalCase for classes
- Type hints required for public functions
- Docstrings in Google style
- Tests in tests/ mirror src/ structure
"""
)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.