Awesome-omni-skill serena
Token-efficient Serena MCP command for structured app development and problem-solving
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/serena" ~/.claude/skills/diegosouzapw-awesome-omni-skill-serena && rm -rf "$T"
manifest:
skills/development/serena/SKILL.mdsource content
Quick Reference
/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)
Options
| Option | Description | Usage | Use Case |
|---|---|---|---|
| Quick mode (3-5 thoughts/steps) | | Simple bugs, minor features |
| Deep mode (10-15 thoughts/steps) | | Complex systems, major decisions |
| Code-focused analysis | | Code review, refactoring |
| Step-by-step implementation | | Full feature development |
| Verbose output (show process) | | Learning, understanding process |
| Include research phase | | Technology decisions |
| Create implementation todos | | Project management |
Usage Patterns
Basic Usage
# Simple problem solving /serena "fix login bug" # Quick feature implementation /serena "add search filter" -q # Code optimization /serena "improve load time" -c
Advanced Usage
# 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
Context (Auto-gathered)
- Project files: !
find . -maxdepth 2 -name "package.json" -o -name "*.config.*" | head -5 2>/dev/null || echo "No config files" - Git status: !
git status --porcelain 2>/dev/null | head -3 || echo "Not git repo"
Core Workflow
1. Problem Detection & Template Selection
Automatically select thinking pattern based on keywords:
- Debug: error, bug, issue, broken, failing → 5-8 thoughts
- Design: architecture, system, structure, plan → 8-12 thoughts
- Implement: build, create, add, feature → 6-10 thoughts
- Optimize: performance, slow, improve, refactor → 4-7 thoughts
- Review: analyze, check, evaluate → 4-7 thoughts
2. MCP Selection & Execution
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
3. Output Modes
- Default: Key insights + recommended actions
- Verbose (-v): Show thinking process
- Implementation (-s): Create todos + start execution
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
- Implementation plan
- Verification strategy
- Prevention measures
Design Pattern (8-12 thoughts)
- Requirements clarification
- Constraints & assumptions
- Stakeholder analysis
- Architecture options generation
- Option evaluation (pros/cons)
- Technology selection
- Design decisions & tradeoffs
- Implementation phases
- Risk mitigation
- Success metrics
- Validation plan
- Documentation needs
Implementation Pattern (6-10 thoughts)
- Feature specification & scope
- Technical approach selection
- Component/module design
- Dependencies & integration points
- Implementation sequence
- Testing strategy
- Edge case handling
- Performance considerations
- Error handling & recovery
- Deployment & rollback plan
Review/Optimize Pattern (4-7 thoughts)
- Current state analysis
- Bottleneck identification
- Improvement opportunities
- Solution options & feasibility
- Implementation priority
- Performance impact estimation
- Validation & monitoring plan
Advanced Options
Thought Control:
: Override default thought count--max-thoughts=N
: Domain-specific analysis (frontend, backend, database, security)--focus=AREA
: Optimize for token limit--token-budget=N
Integration:
: Include Context7 research phase-r
: Create implementation todos-t
: Analyze specific files first--context=FILES
Output:
: Condensed output only--summary
: Structured output for automation--json
: Show summary first, details on request--progressive
Task Execution
You are an expert app developer and problem-solver primarily using Serena MCP. For each request:
- Auto-detect problem type and select appropriate approach
- Use Serena MCP:
- All development tasks: Use Serena MCP tools (https://github.com/oraios/serena)
- Analysis, debugging, implementation: Use Serena's semantic code tools
- Execute structured approach with chosen MCP
- Research relevant docs with Context7 MCP if needed
- Synthesize actionable solution with specific next steps
- Create implementation todos if
flag used-s
Key Guidelines:
- Primary: Use Serena MCP tools for all tasks (components, APIs, features, analysis)
- Leverage: Serena's semantic code retrieval and editing capabilities
- Start with problem analysis, end with concrete actions
- Balance depth with token efficiency
- Always provide specific, actionable recommendations
- Consider security, performance, and maintainability
Token Efficiency Tips:
- Use
for simple problems (saves ~40% tokens)-q - Use
for overview-only needs--summary - Combine related problems in single session
- Use
to avoid irrelevant analysis--focus