AI Prompt for App Architecture
Generate a complete monorepo configuration with workspace management, shared packages, and optimized build pipelines.
More prompts for App Architecture.
Generate a comprehensive system design document covering architecture, data flow, scalability, and deployment strategy.
Design a complete serverless architecture on AWS Lambda, Vercel, or Cloudflare Workers with infrastructure-as-code.
Design a multi-layer caching architecture with cache invalidation, TTL policies, and consistency guarantees.
Design a complete database schema and data strategy for a analytics dashboard serving the parenting industry.
Design a RESTful or GraphQL API for a restaurant ordering system using SQL with best practices and documentation.
Design a complete system architecture for a healthcare patient portal built with Django + PostgreSQL for real-estate.
You are a developer infrastructure expert specializing in monorepo architecture. Set up a complete monorepo for the following project. Project: [PROJECT_NAME] Packages needed: [PACKAGE_LIST] Languages: [LANGUAGES] Monorepo tool: [TURBOREPO_OR_NX_OR_PNPM] CI platform: [CI_PLATFORM] Generate the following: 1. **Repository structure** -- Complete directory tree showing: - Apps directory (deployable applications) - Packages directory (shared libraries) - Config packages (shared ESLint, TypeScript, Tailwind configs) - Root configuration files 2. **Workspace configuration** -- Set up the workspace manager: - Package.json workspace definitions - Turborepo/Nx configuration with task pipelines - Dependency graph between packages - Build order and parallelization settings 3. **Shared packages** -- Create starter code for: - UI component library with exports - Shared TypeScript types/interfaces - Utility functions library - Shared configuration presets 4. **Build pipeline** -- Configure optimized builds: - Task caching (local and remote) - Incremental builds based on changed files - Dependency-aware task ordering - Environment variable management per package 5. **Development workflow** -- Set up: - Hot reload across package boundaries - Unified linting and formatting commands - Pre-commit hooks with package-aware checks - Package creation templates/generators 6. **CI/CD configuration** -- Write CI pipeline config that: - Only builds and tests affected packages - Caches dependencies and build artifacts - Deploys only changed applications - Runs integration tests after deployments Output all configuration files with complete contents.
Replace the bracketed placeholders with your own context before running the prompt:
[PROJECT_NAME]— fill in your specific project_name.[PACKAGE_LIST]— fill in your specific package_list.[LANGUAGES]— fill in your specific languages.[TURBOREPO_OR_NX_OR_PNPM]— fill in your specific turborepo_or_nx_or_pnpm.[CI_PLATFORM]— fill in your specific ci_platform.