Monorepo Structure Planner
Plan a monorepo layout with shared packages and build optimization
Plan a monorepo structure for this project: **Apps:** [LIST_APPS — e.g., "web frontend, mobile app, admin dashboard, API server"] **Shared code:** [SHARED_MODULES — e.g., "UI components, types, utils, API client"] **Package manager:** [NPM_OR_PNPM_OR_BUN] Generate: 1. **Directory structure** — complete file tree with apps/, packages/, and config files 2. **Package boundaries** — what goes in shared packages vs app-specific code 3. **Build configuration** — turborepo.json or nx.json with pipeline dependencies 4. **TypeScript config** — base tsconfig with project references 5. **CI optimization** — only build/test affected packages on PR 6. **Dependency management** — internal package versioning strategy Keep it practical — no unnecessary abstraction layers.
How to Use This Prompt
- 1Copy the prompt template above
- 2Paste into Claude, ChatGPT, or Cursor
- 3Replace [bracketed placeholders] with your specific project details
- 4Iterate on the AI output to refine and customize the results
More Architecture Prompts
Related architecture templates from the vault
Prompt Chain for Complex Tasks
PROBreak a complex coding task into a sequence of focused prompts for better results
Full-Stack App Scaffold from Description
Generate a complete project structure and boilerplate from a plain-English app description
Microservice Boundary Analyzer
PROAnalyze a monolith codebase and recommend microservice boundaries
Serverless Architecture Migration Plan
Use this prompt to serverless architecture migration plan with AI assistance
You Might Also Like
Prompts from other categories that share similar tags
Environment Variable Setup Guide
Set up environment variables properly across development, staging, and production
Flaky Test Debugger
Diagnose and fix intermittently failing tests
API Error Response Standard
Define a consistent error response format across all API endpoints
README Generator from Codebase
Generate a professional README by analyzing the project structure
Keep Exploring the Vault