AgentSkillsCN

serena

借助Serena MCP进行结构化的问题解决

SKILL.md
--- frontmatter
name: serena
allowed-tools: Read, Glob, Grep, Edit, MultiEdit, Write, Bash, TodoWrite, mcp__serena__*, mcp__context7__*
description: Structured problem-solving with Serena MCP

/serena — Problem-solving with Serena MCP

Use Serena MCP for structured app development and debugging.

Usage

bash
/serena <problem> [options]
/serena debug "memory leak"     # 5-8 thoughts
/serena design "auth system"    # 8-12 thoughts
/serena implement "add feature" # 6-10 thoughts
/serena review "optimize code"  # 4-7 thoughts

Options

FlagModeUse Case
-qQuick (3-5 thoughts)Simple bugs
-dDeep (10-15 thoughts)Complex systems
-cCode-focusedRefactoring
-sStep-by-stepFull features
-vVerboseShow process
-rResearchTech decisions
-tTodosCreate task list

Problem Detection

KeywordsPatternThoughts
error, bug, brokenDebug5-8
architecture, systemDesign8-12
build, create, addImplement6-10
performance, slowOptimize4-7
analyze, checkReview4-7

Workflow

  1. Auto-detect problem type
  2. Use Serena MCP tools for code analysis
  3. Research with Context7 if needed
  4. Provide actionable solution
  5. Create todos if -s flag used

Guidelines

  • Use -q for simple problems (saves tokens)
  • Use --focus=AREA for domain-specific analysis
  • Combine related problems in single session