skills/codanna-codebase-intelligence/SKILL.md
Use codanna MCP tools for semantic code search, call graphs, and impact analysis before grep/find.
npx skillsauth add nickcrew/claude-cortex codanna-codebase-intelligenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
semantic_search_docsfind_callersanalyze_impactfind_symbol# 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"
# 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:3
# Search indexed markdown/docs
search_documents query:"API authentication" collection:"docs"
| Task | Tool | Example |
|------|------|---------|
| Find code by concept | semantic_search_docs | "database migrations" |
| Find symbol by name | search_symbols | Pattern: "auth*" |
| Get symbol details | find_symbol | Exact: "UserService" |
| Trace callers | find_callers | "Who uses this?" |
| Trace dependencies | get_calls | "What does this call?" |
| Assess refactor risk | analyze_impact | "What breaks?" |
find_symbol - understand current implementationfind_callers - identify all usage sitesanalyze_impact - assess blast radiussemantic_search_docs - "how does X work"find_symbol - get entry point detailsget_calls - trace execution flowsemantic_search_docs - "similar patterns"find_callers - how existing code integrates| Grep/Find | Codanna |
|-----------|---------|
| Text matching | Semantic understanding |
| String "parse" matches comments | find_symbol finds the actual function |
| Manual call tracing | find_callers shows full graph |
| Guessing impact | analyze_impact shows dependencies |
Codanna complements the agent-loops review workflow by providing structural code intelligence that diff-based review alone cannot offer.
Before invoking specialist-review.sh, run codanna to understand the blast radius
of your changes. This feeds grounded structural data into the review, helping
reviewers focus on real downstream effects rather than guessing from the diff.
# Gather impact data for changed symbols
codanna mcp find_callers process_request --watch
codanna mcp analyze_impact DatabaseConnection --watch --json
In the multi-specialist review architecture (see docs/development/plans/multi-specialist-review.md),
specialists can use codanna tools alongside Read/Grep/Glob for grounded analysis.
Impact data can also inform specialist triage — determining which review perspectives
to activate based on which parts of the codebase are structurally affected.
The --watch flag on CLI commands checks for file changes and re-indexes before
running, so impact data stays current throughout a review session without manual
reindexing. The MCP server equivalent (codanna serve --watch) provides the same
freshness guarantee for interactive sessions.
semantic_search_docs, then drill down with find_symbolanalyze_impact before any refactor touching shared codefind_callers with depth > 1 shows transitive callersdevelopment
Product vision, roadmap development, and go-to-market execution with structured prioritization frameworks. Use when evaluating features, planning product direction, or assessing market fit.
development
Complete operational workflow for implementer agents (Codex, Gemini, etc.) making code changes and writing tests. Drives all work through atomic commits — each loop operates on the smallest complete, reviewable change. Defines the Code Change Loop, Test Writing Loop, Lint Gate, and Issue Filing process with circuit breakers, severity levels, and escalation rules. Requires `cortex git commit` for all commits. Includes bundled provider-aware review scripts that keep same-model shell-outs as the last resort, plus a fresh-context Codex fallback for code review and test audit. Use this skill when starting any implementation task.
development
Use this skill when writing product requirements documents, prioritizing features, creating user stories, defining acceptance criteria, or setting product metrics. Trigger phrases: 'write a PRD for', 'prioritize this feature backlog', 'write user stories for', 'help me define acceptance criteria', 'what metrics should we track for'. Not for writing code, designing UI mockups, or conducting user research interviews.
tools
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.