turborepo
Monorepo build system with intelligent task caching, parallel execution, and dependency graph orchestration.
- Caches task outputs and runs tasks in parallel based on declared dependencies; supports remote caching for CI/CD workflows
- Filters and runs only changed packages with
--affected, or use--filterfor custom package selection - Configures tasks in
turbo.jsonwithdependsOn,outputs,inputs, andenvkeys; supports package-specific overrides via Package Configurations - Enforces monorepo structure best practices: scripts in each package's
package.json, rootpackage.jsondelegates viaturbo run, and internal packages for shared code - Includes watch mode (
turbo watch) for development, environment variable hashing, and boundary enforcement to prevent unwanted cross-package imports
Turborepo Skill
Build system for JavaScript/TypeScript monorepos. Turborepo caches task outputs and runs tasks in parallel based on dependency graph.
IMPORTANT: Package Tasks, Not Root Tasks
Prefer package tasks over Root Tasks.
When creating tasks/scripts/pipelines, you MUST default to package tasks:
- Add the script to each relevant package's
package.json - Register the task in root
turbo.json - Root
package.jsononly delegates viaturbo run <task>
DO NOT put task logic in root package.json when it can live in packages. This defeats Turborepo's parallelization.
More in Next.js
vercel-react-best-practices
69 prioritized React and Next.js performance rules across 8 categories
vercel-labs/agent-skillsvercel-composition-patterns
Composable component architecture patterns for scalable Next.js apps
vercel-labs/agent-skillsnext-best-practices
File conventions, RSC boundaries, data patterns, async APIs, and metadata
vercel-labs/next-skillsdeploy-to-vercel
Deploy Next.js apps to Vercel with correct config and environment setup
vercel-labs/agent-skillsnext-cache-components
PPR, use cache directive, cacheLife, cacheTag, and revalidateTag
vercel-labs/next-skills