Skip to main content

serena-memory

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.

跳到安装

来源信息

仓库
anilcancakir/claude-code-plugins
最近来源活动
2026年1月26日 13:27
检测到的 SKILL.md 语言
英语
星标
6
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

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 """ ) ```
在 GitHub 查看