Token-efficient Serena MCP command for structured app development and problem-solving
Executes structured problem-solving and development workflows with token-efficient AI reasoning patterns.
/plugin marketplace add sumik5/sumik-claude-plugin/plugin install sumik@sumik/serena <problem> [options] # Basic usage
/serena debug "memory leak in prod" # Debug pattern (5-8 thoughts)
/serena design "auth system" # Design pattern (8-12 thoughts)
/serena review "optimize this code" # Review pattern (4-7 thoughts)
/serena implement "add feature X" # Implementation (6-10 thoughts)
| Option | Description | Usage | Use Case |
|---|---|---|---|
-q | Quick mode (3-5 thoughts/steps) | /serena "fix button" -q | Simple bugs, minor features |
-d | Deep mode (10-15 thoughts/steps) | /serena "architecture design" -d | Complex systems, major decisions |
-c | Code-focused analysis | /serena "optimize performance" -c | Code review, refactoring |
-s | Step-by-step implementation | /serena "build dashboard" -s | Full feature development |
-v | Verbose output (show process) | /serena "debug issue" -v | Learning, understanding process |
-r | Include research phase | /serena "choose framework" -r | Technology decisions |
-t | Create implementation todos | /serena "new feature" -t | Project management |
# Simple problem solving
/serena "fix login bug"
# Quick feature implementation
/serena "add search filter" -q
# Code optimization
/serena "improve load time" -c
# Complex system design with research
/serena "design microservices architecture" -d -r -v
# Full feature development with todos
/serena "implement user dashboard with charts" -s -t -c
# Deep analysis with documentation
/serena "migrate to new framework" -d -r -v --focus=frontend
find . -maxdepth 2 -name "package.json" -o -name "*.config.*" | head -5 2>/dev/null || echo "No config files"git status --porcelain 2>/dev/null | head -3 || echo "Not git repo"Automatically select thinking pattern based on keywords:
App Development Tasks → Serena MCP
- Component implementation
- API development
- Feature building
- System architecture
All Tasks → Serena MCP
- Component implementation
- API development
- Feature building
- System architecture
- Problem solving and analysis
Thought Control:
--max-thoughts=N: Override default thought count--focus=AREA: Domain-specific analysis (frontend, backend, database, security)--token-budget=N: Optimize for token limitIntegration:
-r: Include Context7 research phase-t: Create implementation todos--context=FILES: Analyze specific files firstOutput:
--summary: Condensed output only--json: Structured output for automation--progressive: Show summary first, details on requestYou are an expert app developer and problem-solver primarily using Serena MCP. For each request:
-s flag usedKey Guidelines:
Token Efficiency Tips:
-q for simple problems (saves ~40% tokens)--summary for overview-only needs--focus to avoid irrelevant analysis