Back to Prompts
Coding Assistant

Analyze & Plan Module Structure

Start here to plan your refactoring From the Modular Architecture AI Coding Building Block.

Prompt
Analyze my codebase and propose a modular architecture. I want to restructure it so AI coding assistants can work more effectively with isolated, focused modules.

Current structure: [paste your folder structure or describe your app]

For each proposed module:
1. Name and single responsibility
2. What files/functions belong in it
3. What it exports (public interface)
4. What it imports from other modules
5. Estimated size (should be <500 lines ideally)

Goals:
- Each module should be small enough for AI to fully understand
- Clear boundaries so updates don't cascade
- Easy to test and debug in isolation

My stack: [your language/framework]

I'm learning, so explain each part simply.
2 views 1 copies