home/lifestyle/codebase-analysis

Codebase Analysis

GPTClaudeGemini··591 copies·updated 2026-07-14
codebase-analysis.prompt
# Prompt: Codebase Analysis & Architecture Review

**Purpose:** Perform an exhaustive codebase analysis covering architecture quality, code health, technical debt, security posture, and scalability assessment — producing an actionable improvement roadmap.

**Best For:** Architecture reviews, M&A technical due diligence, onboarding to new codebases, tech debt assessment

**Model Recommendation:** Gemini 1.5 Pro (1M context window), Antigravity, Claude Opus 4

**Usage Instructions:**
1. Use Gemini 1.5 Pro for large codebases (supports up to 1M tokens ≈ ~750,000 lines of code).
2. Upload your repo as a zip or paste the output of `git ls-files | xargs cat` with file separators.
3. Alternatively, use Antigravity's code-review-graph MCP tool for large repos.

---

## THE PROMPT

when to use it

Community prompt sourced from the open-source GitHub repo m0shaban/enterprise-ai-prompts (MIT). A "Codebase Analysis" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

lifestylecommunitygeneral

source

m0shaban/enterprise-ai-prompts · MIT