Configure pipelines, set up local/remote caching, and run scoped tasks in a Turborepo monorepo. Use when you say: 'enable remote caching', 'optimize pipeline inputs/outputs', or 'filter builds to affected packages'.
100
100%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
turbo run build # Build all packages
turbo run test # Test all packages
turbo run lint # Lint all packages
turbo run build --filter=web # Build specific package
turbo run build --filter=./apps/* # Build all apps
turbo run build --filter=...[HEAD~1] # Only affected since last committurbo run build test lint # Run multiple tasks
turbo run build --dry-run # Preview what would run
turbo run build --graph # Visualize task graph
turbo run build --force # Ignore cache, rebuild all
turbo run build --concurrency=4 # Limit parallelism# NEVER use these directly — always go through turbo:
npm run build # Skips caching and parallelism
cd apps/web && npm test # Skips dependency resolution{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"test": {
"dependsOn": ["build"],
"inputs": ["src/**", "test/**"]
},
"lint": {
"dependsOn": ["^build"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}^build — run build in dependencies first (topological)dependsOn — declare task dependenciesoutputs — files to cache (miss = rebuild)inputs — files to hash for cache key (default: all tracked files)cache: false — never cache (use for dev, start)persistent: true — long-running tasks (dev servers)Turborepo caches task outputs automatically in node_modules/.cache/turbo. Cache keys are computed from:
turbo.json configurationturbo login # Authenticate
turbo link # Link project to remote cache
turbo run build --remote-only # Force remote cache usageTURBO_TOKEN and TURBO_TEAM in CI environmentTURBO_TOKEN and TURBO_TEAM to your CI secrets.turbo login and turbo link to verify the project is linked.turbo run build --remote to the CI pipeline and watch for cache hit/miss logs.inputs/outputs in turbo.json, stable env vars, then re-run.Validation (recommended): run turbo run build --dry-run locally or in CI to preview the task graph and catch misconfigured inputs/outputs before executing.
See REFERENCE.md for CI snippets and advanced cache tuning.
monorepo/
├── turbo.json
├── package.json # Root workspace config
├── apps/
│ ├── web/ # Next.js app
│ └── docs/ # Documentation site
├── packages/
│ ├── ui/ # Shared UI components
│ ├── config/ # Shared config (ESLint, TS)
│ └── utils/ # Shared utilitiesturbo run instead of directly invoking package scriptsoutputs for every cacheable task — missing outputs mean missing cache--filter to scope commands to affected packagesinputs to narrow cache keys and avoid unnecessary rebuilds--dry-run to debug pipeline configurationTURBO_TOKEN and TURBO_TEAM to CI for remote caching.turbo/ or node_modules/.cache/turboFurther reading: see REFERENCE.md in this directory for CI snippets and advanced cache tuning.
f5c8508
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.