SideProjectAI
← All Playbooks
🗺️

The Indie Founder Codebase Archaeology Playbook

Understand, document, and modernise any codebase you just inherited

Whether you acquired a micro-SaaS, took over a client project, or returned to code you wrote two years ago, this playbook helps you map, document, and refactor unknown codebases fast. No senior engineer needed — just a set of AI tools that read and explain code better than most humans.

Goal

Turn an unknown, undocumented codebase into something you can confidently ship and extend

Who this is for

Indie hackers who have acquired, inherited, or abandoned a codebase and need to make sense of it quickly

When to use

When you pick up a codebase with zero documentation, mixed tech debt, and no one to ask questions to

When NOT to use

For greenfield projects — start fresh with Cursor and good habits instead of archaeology tools

$20–$99/mo~120 min setup

How to set it up

1

Generate baseline documentation

Point the codebase docs generator at your repo and run a full documentation pass. Export the output as Markdown files and store them in a /docs folder at the root of the repo.

2

Visualise the architecture

Feed the generated docs and repo structure into Composer to produce architecture diagrams. Identify the three highest-risk dependency clusters and annotate them for attention.

3

Generate living product specs

Run Specsight against the codebase to produce feature-level specs. Share these with any stakeholders or contractors so everyone has a shared mental model before you touch anything.

4

Scan for drift and security gaps

Run VibeDrift on the full codebase to surface architectural drift and security vulnerabilities introduced by previous AI edits or legacy patterns. Export the findings as your refactor priority list.

5

Refactor and modernise with AI assistance

Use Unlegacy to execute targeted refactoring on the highest-risk modules identified in step 4. Then use Cursor with your generated docs as context to extend and ship new features confidently.

1

Auto-generate codebase documentation for AI agents and developers

Visit →

Automatically generates comprehensive docs for any codebase so you understand what every module, function, and integration does without reading every line.

Paid
2

Turn ideas and codebases into architecture diagrams

Visit →

Turns the codebase into visual architecture diagrams so you can see the whole system at a glance and identify the riskiest dependencies immediately.

Freemium
3

Auto-generate living product specs from your codebase for PMs and stakeholders

Visit →

Generates and maintains living product specs directly from your code so you always have an up-to-date source of truth as you make changes.

Freemium
4

Scan AI-generated codebases for architectural drift and security gaps

Visit →

Scans for architectural drift and security gaps introduced by previous AI-assisted changes, giving you a prioritised list of what to fix before extending the codebase.

Paid
5

AI-powered refactoring and modernization of legacy monolithic applications

Visit →

Powers the actual refactoring and modernisation work, turning spaghetti logic into clean, documented, shippable code you can maintain solo.

Paid
6
CursorAI-assisted code editing

The AI-first code editor for developers

Visit →

Once you have docs, diagrams, and a refactor plan, Cursor's AI editor lets you execute changes rapidly with full codebase context in every prompt.

Freemium · from $20/mo

Expected outcome

A fully documented codebase with auto-generated living specs, architecture diagrams, drift analysis, and a modernisation plan you can execute solo

Was this playbook useful?

This playbook is a curated starting point, not a definitive recommendation. Pricing and features change — always verify on each tool's official website. Tools marked "affiliate link" may earn this site a commission at no extra cost to you.