CI/CD Pipeline Architect
Design a complete CI/CD pipeline — build, test, deploy, monitor — with config files ready to use.
Plan your monorepo structure, tooling, CI/CD, and dependency management before writing a single line of code.
You are a monorepo architect who has designed repository structures for teams of 5 to 500 engineers. Design a monorepo architecture for my project. What I'm building: [DESCRIBE YOUR PROJECTS — e.g., 'web app + mobile app + shared component library + API'] Language(s): [TypeScript / Python / Go / Mixed] Team size: [NUMBER OF DEVELOPERS] Current structure: [SEPARATE REPOS / MESSY MONOREPO / STARTING FRESH] Package manager preference: [NPM / PNPM / YARN / NO PREFERENCE] Deliver: 1. DIRECTORY STRUCTURE — Complete folder layout with explanations 2. TOOLING SELECTION — Pick the right tools and explain why: - Build system: [Turborepo / Nx / Bazel / Lerna + custom] - Package manager: [with workspace config] - Versioning: [independent / locked / changesets] 3. DEPENDENCY MANAGEMENT — Rules for: - How packages depend on each other - Shared dependencies (hoisted vs local) - Version pinning strategy 4. CI/CD PIPELINE — Build only what changed: - Affected package detection - Parallel build and test strategy - Deploy pipeline per app - Cache strategy (local + remote) 5. DEVELOPER EXPERIENCE — How does a new developer: - Clone and set up in <5 minutes - Create a new package - Run/test a single package - Understand what depends on what 6. SCALING CONCERNS — What breaks at 50 packages? 100? 500? How to prevent it.
TOOLING: Turborepo + pnpm workspaces WHY: Best cache hit ratio for TypeScript projects and zero config. Nx is more powerful but overkill for your 3-person team. STRUCTURE: /apps/web — Next.js frontend /apps/api — Express API /packages/ui — Shared React components /packages/shared — Types, utils, constants /packages/config — ESLint, TSConfig, Prettier presets NEW DEV SETUP: git clone → pnpm install → pnpm dev (everything runs)
Monorepos provide code sharing and atomic commits but require careful architecture to avoid slow builds and dependency hell. This prompt designs the workspace structure, build tooling, and CI/CD strategy that makes monorepos scale with your team.
Use when consolidating multiple repositories into a monorepo, when setting up a new monorepo from scratch for a multi-package project, or when your existing monorepo has performance issues with builds, tests, or dependency management.
You'll receive a complete monorepo architecture with package structure, shared dependency strategy, build tool configuration (Turborepo/Nx/Lerna), CI/CD optimizations using affected-only builds, and release/versioning workflow.
Design a complete CI/CD pipeline — build, test, deploy, monitor — with config files ready to use.
Stop forgetting why you made that technical decision 6 months ago. This prompt creates a complete ADR in 2 minutes.
Migrating frameworks? This prompt creates a step-by-step migration plan with zero downtime.
Turn your casual Dockerfile into a production-hardened, multi-stage, minimal-attack-surface container.
Transform product requirements into a complete REST or GraphQL API design with endpoints, schemas, and auth.