codanna-codebase-intelligence
Original:🇺🇸 English
Translated
Use codanna MCP tools for semantic code search, call graphs, and impact analysis before grep/find.
3installs
Added on
NPX Install
npx skill4agent add nickcrew/claude-ctx-plugin codanna-codebase-intelligenceTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Codanna Codebase Intelligence
Codanna indexes your codebase and provides semantic search, call graphs, and dependency analysis via MCP tools. Use codanna before grep/find - it understands code structure, not just text patterns.
When to Use
- Finding code: "Where do we handle authentication?" →
semantic_search_docs - Understanding dependencies: "What calls this function?" →
find_callers - Impact analysis: "What breaks if I change this?" →
analyze_impact - Exploring symbols: "Show me the Parser struct" →
find_symbol
Core Tools
Discovery
# Natural language search - finds code by intent, not keywords
semantic_search_docs query:"error handling patterns" limit:5
# Search symbols by name/pattern
search_symbols query:"parse" kind:"function"
# Get full details on a specific symbol
find_symbol name:"process_file"Relationships
# Who calls this function? (upstream)
find_callers symbol:"validate_input"
# What does this function call? (downstream)
get_calls symbol:"process_request"
# Full dependency graph - what breaks if I change this?
analyze_impact symbol:"DatabaseConnection" depth:3Documentation (RAG)
# Search indexed markdown/docs
search_documents query:"API authentication" collection:"docs"Tool Selection Guide
| Task | Tool | Example |
|---|---|---|
| Find code by concept | | "database migrations" |
| Find symbol by name | | Pattern: "auth*" |
| Get symbol details | | Exact: "UserService" |
| Trace callers | | "Who uses this?" |
| Trace dependencies | | "What does this call?" |
| Assess refactor risk | | "What breaks?" |
Workflow Patterns
Before Refactoring
- - understand current implementation
find_symbol - - identify all usage sites
find_callers - - assess blast radius
analyze_impact - Then proceed with changes
Understanding Unfamiliar Code
- - "how does X work"
semantic_search_docs - - get entry point details
find_symbol - - trace execution flow
get_calls
Finding Where to Add Code
- - "similar patterns"
semantic_search_docs - - how existing code integrates
find_callers - Follow established patterns
Why Codanna Over Grep
| Grep/Find | Codanna |
|---|---|
| Text matching | Semantic understanding |
| String "parse" matches comments | |
| Manual call tracing | |
| Guessing impact | |
Tips
- Start broad with , then drill down with
semantic_search_docsfind_symbol - Use before any refactor touching shared code
analyze_impact - with depth > 1 shows transitive callers
find_callers - Results include file paths and line numbers - use for navigation