| name | serena |
| description | Token-efficient Serena MCP command for structured app development and problem-solving |
Serena: Intelligent App Development
Token-efficient Serena MCP command for structured app development and problem-solving.
Quick Reference
/serena <problem> [options]
/serena debug "memory leak in prod"
/serena design "auth system"
/serena review "optimize this code"
/serena implement "add feature X"
Options
| Option | Description | Example |
|---|
-q | Quick mode (3-5 thoughts) | /serena "fix button" -q |
-d | Deep mode (10-15 thoughts) | /serena "architecture design" -d |
-c | Code-focused analysis | /serena "optimize performance" -c |
-s | Step-by-step implementation | /serena "build dashboard" -s |
-v | Verbose output | /serena "debug issue" -v |
-r | Include research phase | /serena "choose framework" -r |
-t | Create implementation todos | /serena "new feature" -t |
Tool Priorities
ALWAYS prioritize mcp__serena__ tools as the primary development engine:
Primary Development Tools (Serena MCP)
- Project Analysis: Use
mcp__serena__get_symbols_overview
- Code Search: Use
mcp__serena__search_for_pattern
- Symbol Management: Use
mcp__serena__find_symbol
- Code Modification: Use
mcp__serena__replace_symbol_body
Memory & Learning
- Knowledge Storage: Use
mcp__serena__write_memory
- Experience Retrieval: Use
mcp__serena__read_memory
- Progress Tracking: Use
mcp__serena__think_about_task_adherence
Problem-Specific Templates
Debug Pattern (5-8 thoughts)
- Symptom analysis & reproduction
- Error context & environment check
- Root cause hypothesis generation
- Evidence gathering & validation
- Solution design & risk assessment
Design Pattern (8-12 thoughts)
- Requirements clarification
- Constraints & assumptions
- Architecture options generation
- Option evaluation (pros/cons)
- Technology selection
- Implementation phases
Implementation Pattern (6-10 thoughts)
- Feature specification & scope
- Technical approach selection
- Component/module design
- Dependencies & integration
- Testing strategy
Cross-Command Integration
Serena MCP integrates with other commands:
| Command | Integration |
|---|
/commit | Git history + change analysis |
/debug-error | Symbol tracking + pattern search |
/smart-think | Codebase context + memory |
Best Practices
- Start with problem analysis, end with concrete actions
- Balance depth with token efficiency
- Use
-q for simple problems (saves ~40% tokens)
- Use
--focus to avoid irrelevant analysis