src/orchestrator/plugins/turborepo/SKILL.md
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'.
npx skillsauth add monkilabs/opencastle turborepo-monorepoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 commit
turbo 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 usage
TURBO_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 utilities
turbo 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.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting delegation session, running multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves, restores session state including task progress, file changes, delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.