Strict project instructions for agents operating inside PNPM monorepos and Turborepo builds, enforcing workspace package boundaries and caching rules.
PNPM Workspaces & Turborepo Monorepo Agent Rules
Monorepo Rules for AI Agents
When working in a PNPM workspace or Turborepo monorepo:
1. Respect Package Boundaries: Never cross-import files across packages using relative paths (../../packages/ui/src). Always use workspace package names (@myorg/ui).
2. Package Installation: Add dependencies using package scope flags:
pnpm --filter @myorg/web add lucide-react
3. Turborepo Task Execution: Use pnpm turbo run build or pnpm turbo run test so Turbo can leverage remote/local computation caching.