General 3,266 installs

Turborepo Skill

by vercel/turborepo

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI…

Skill content

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 --filter for custom package selection

- Configures tasks in turbo.json with dependsOn, outputs, inputs, and env keys; supports package-specific overrides via Package Configurations

- Enforces monorepo structure best practices: scripts in each package's package.json, root package.json delegates via turbo 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.json only delegates via turbo run <task>

DO NOT put task logic in root package.json when it can live in packages. This defeats Turborepo's parallelization.