Agent skill
serena
Semantic code search, analysis, and editing. Use for understanding code structure, finding classes/functions, refactoring, and impact analysis. Triggers on "where is this function", "show references", "analyze impact" queries
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/serena
SKILL.md
Serena Tool Guide
Semantic code analysis. Searches and edits at symbol level without reading entire files.
Core Tools
find_symbol
Locate class, function, or variable definitions.
Examples:
- "Where is the UserService class defined?"
- "Find the authenticate function definition"
search_for_pattern
Search for code patterns or strings.
Examples:
- "Find all TODO comments"
- "Locate all API endpoint usages"
edit_symbol
Edit at symbol level without loading entire files.
find_referencing_symbols
Track symbol references and dependencies.
Examples:
- "Show all callers of this function"
- "Find dependency chain"
When to Use
- Large codebases (100+ files)
- Semantic search (understanding code meaning)
- Refactoring (precise edits required)
- Dependency tracking
- Code structure analysis
Common Workflows
Code understanding:
find_symbolto locate main classes/functionsfind_referencing_symbolsto trace callers- Build overall understanding
Refactoring:
find_symbolto identify targetedit_symbolto modifyfind_referencing_symbolsto verify impact
Bug fixing:
search_for_patternto find error-related codefind_symbolto examine detailsedit_symbolto fix
Examples
User: Find authentication code
Agent: Uses Serena to search for authentication-related code and explains
User: What calls UserService?
Agent: Shows all references
User: Refactor this code
Agent: Analyzes impact and proposes changes
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?