serena-workflow
Workflow repo ops bằng Serena MCP (tìm file, đọc symbol, chỉnh sửa có kiểm soát) để giảm đọc thừa.
When & Why to Use This Skill
The Serena MCP Workflow skill optimizes repository operations by enabling precise code exploration and controlled editing. It minimizes redundant data processing by prioritizing symbol-based navigation and pattern searching, allowing developers to interact with large codebases more efficiently while significantly reducing token consumption and context clutter.
Use Cases
- Rapid Repository Exploration: Quickly understand the structure of a new codebase by retrieving symbol overviews and locating specific functions or classes without the need to read through every file.
- Precise Code Refactoring: Safely update APIs or internal dependencies by identifying all referencing symbols across the repository to ensure comprehensive and consistent changes.
- Targeted Debugging and Editing: Use pattern searching to pinpoint specific logic errors and perform controlled modifications, ensuring that only the necessary code context is loaded and edited.
| name | serena-workflow |
|---|---|
| description | Workflow repo ops bằng Serena MCP (tìm file, đọc symbol, chỉnh sửa có kiểm soát) để giảm đọc thừa. |
Serena MCP Workflow
Khi nào dùng skill này
- Bất cứ khi nào cần khám phá repo, tìm code, hoặc chỉnh sửa code.
Quy tắc
- Ưu tiên
get_symbols_overview/find_symbolthay vì đọc cả file. - Dùng
search_for_patternđể định vị nhanh trước khi đọc. - Khi đổi API: dùng
find_referencing_symbolsđể cập nhật mọi nơi sử dụng.
Thực hành tốt
- Chỉ đọc phần đủ để làm task.
- Sau khi thu thập thông tin đủ: dừng và xác nhận hướng sửa.