Analyze Codebase
Overview
Use the atomicviz MCP server to analyze a codebase for issues, dependency structure, and function-call flow. This skill focuses on concrete, tool-backed findings and visualizable graphs.
Example Prompts
- •What is not hooked up right in the codebase?
- •Is there placeholder code somewhere?
- •Analyze the codebase and map out function calls.
- •Trace the impact of changing
FooServiceinsrc/foo.ts. - •Map all database usage and find naming conflicts.
Quick Start
- •Ask for scope if unclear (repo root or specific folders/files).
- •Run issue detection and structure scans:
- •
detect_issueson the target path. - •
analyze_dependenciesorshow_architecturefor structure.
- •
- •For call flow:
- •
visualize_function_callsfor a file/function. - •
trace_impactfor change ripple.
- •
- •For deeper audits:
- •
comprehensive_file_map,find_naming_conflicts,map_database_usage.
- •
Tool Selection Guide
Issues / placeholders / dead code
- •Use
detect_issueswithissueTypes: ['unused','dead-code','complexity','coupling']. - •Follow with
comprehensive_file_mapwhen you need global context.
Function calls / control flow
- •Use
visualize_function_callsfor a file or function. - •Use
trace_impactto see all affected call sites.
Architecture / dependencies
- •Use
analyze_dependenciesfor module relationships. - •Use
show_architectureorsimplify_graphfor a high-level view.
Data + database usage
- •Use
map_database_usageto map table/column usage.
Naming + structure consistency
- •Use
find_naming_conflictsandcompare_structures(before/after).
Large repos
- •Use
analyze_large_projectto chunk analysis.
Output Expectations
- •Provide a short findings list with file paths and why they matter.
- •When graphs are produced, summarize the key nodes/edges and risk areas.
- •If you used multiple tools, explain how results corroborate each other.
Notes
- •Many tools require absolute paths; normalize inputs.
- •Keep scopes narrow for faster, clearer results.