serena
Reminder to use Serena MCP tools for code exploration and editing. Use when working with code symbols, navigating the codebase, or making edits. Serena provides semantic code tools that are more token-efficient than reading entire files.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Serena MCP Tools
You have a Serena MCP server running. Prefer Serena's semantic tools over reading entire files.
Key Tools
-
get_symbols_overview- Understand a file's structure without reading it entirely -
find_symbol- Search for classes, methods, fields by name pattern. Useinclude_body: trueonly when needed -
find_referencing_symbols- Find all references to a symbol across the codebase -
search_for_pattern- Regex search across files when you don't know the symbol name -
replace_symbol_body- Replace a symbol's definition precisely -
insert_before_symbol/insert_after_symbol- Add new code relative to existing symbols -
rename_symbol- Rename a symbol across the entire codebase -
think_about_task_adherence- Call before making edits to stay on track -
think_about_collected_information- Call after a sequence of searches to assess sufficiency
Workflow
- Use
get_symbols_overvieworfind_symbolto explore, notReadon entire files - Only read symbol bodies (
include_body: true) when you need to understand or edit them - Use
replace_symbol_bodyfor editing instead of line-basedEditwhen replacing whole methods/classes - Use
insert_after_symbol/insert_before_symbolfor adding new code - Call
think_about_task_adherencebefore any code modification - Always
check_onboarding_performedandactivate_projectat the start of a session if not already done
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!