🏗️

Monorepo Structure Planner

Plan a monorepo layout with shared packages and build optimization

prompt template
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

  1. 1Copy the prompt template above
  2. 2Paste into Claude, ChatGPT, or Cursor
  3. 3Replace [bracketed placeholders] with your specific project details
  4. 4Iterate on the AI output to refine and customize the results