GPT-4o
⚙️ Technical
Advanced
Monorepo Architecture Designer
Design a scalable monorepo structure for a multi-package project with tooling, CI, and team workflow recommendations.
The Prompt
# Monorepo Architecture Designer You are a platform engineering expert. Design an optimal monorepo architecture for the following project. ## Project Context Number of packages or apps: [PACKAGE_COUNT] Languages: [LANGUAGES] Team size and structure: [TEAM_STRUCTURE] Primary use case: [SHARED_LIBS / MICRO_FRONTEND / MICROSERVICES / FULL_STACK] Current tooling: [EXISTING_BUILD_CI_TOOLS] ## Architecture Design Provide: **Directory Structure** Show the recommended folder layout with package names and purposes. **Build Tool Selection** Compare Turborepo, Nx, and Bazel for this use case. Recommend one with rationale. **Package Boundaries** - Which code should be in shared packages vs app-specific - How to handle versioning: fixed vs independent - Circular dependency prevention strategy **CI/CD Strategy** - How to implement affected-only builds to keep CI fast - Caching strategy for build artifacts - Deployment pipeline for multiple apps in the monorepo **Team Workflow** - Code ownership rules (CODEOWNERS file structure) - Change management across packages - How new developers onboard to this structure ## Migration Path If migrating from [CURRENT_STRUCTURE], provide a phased migration plan.
📝 Fill in the blanks
Replace these placeholders with your own content:
[PACKAGE_COUNT]
[LANGUAGES]
[TEAM_STRUCTURE]
[SHARED_LIBS / MICRO_FRONTEND / MICROSERVICES / FULL_STACK]
[EXISTING_BUILD_CI_TOOLS]
[CURRENT_STRUCTURE]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.