This prompt is designed for GPT-5, Claude Opus 4.1, Cursor, Claude Code, and cursor-agent to perform a deep, structured analysis of any codebase without pasting the entire repo into chat.
It guides the LLM to:
- Browse and discover the codebase using built-in repo tools
- Read only the necessary files in intelligent order
- Analyze the system at high, mid, and low levels
- Identify features, their business purposes, how they work, and how they interact
- Output a complete master knowledge document inside
codebase-analysis-docs/