Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Turborepo Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-turborepo-knowledge-patch)
---
name: turborepo-knowledge-patch
description: Turborepo
version: "2.11.13"
license: MIT
metadata:
author: Nevaberry
---
# Turborepo knowledge patch
Load this skill when migrating Turborepo configuration, selecting or hashing tasks,
working with native toolchains, provisioning repository tools, pruning workspaces,
or inspecting caches, graphs, and logs.
Use the topic references for complete conditions, examples, and version-specific behavior.
## Reference index
| Reference | Topics |
| --- | --- |
| [Migration and configuration](references/migration-and-configuration.md) | Deprecations, schemas, inheritance, task tags, experimental setup, managed tools, CLI installation |
| [Task execution and inputs](references/task-execution-and-inputs.md) | Sidecars, shutdown, input hashing, Watch Mode, native Cargo, Python/uv, and experimental Go tasks |
| [Caching, environment, and package managers](references/caching-environment-and-package-managers.md) | Cache controls, credentials, environment variables, Bun, pnpm, Yarn, nub, and aube |
| [Repository analysis and structure](references/repository-analysis-and-structure.md) | Queries, boundaries, affected detection, filters, discovery, pruning, and microfrontends |
| [Developer tools and observability](references/developer-tools-and-observability.md) | Terminal UI, logs, metrics, profiles, traces, linting, generators, documentation, and agent guidance |
## Breaking changes and deprecations
`turbo run` and `turbo watch` run without the daemon. Remove the deprecated
`--daemon`, `--no-daemon`, `TURBO_DAEMON`, and `daemon` configuration key.
| Deprecated usage | Supported migration |
| --- | --- |
| `--parallel` | `persistent` tasks and `with` dependencies |
| `--no-cache` | `--cache=local:r,remote:r` |
| `--remote-only` or `TURBO_REMOTE_ONLY` | `--cache=remote:rw` |
| `--remote-cache-read-only` or `TURBO_REMOTE_CACHE_READ_ONLY` | `--cache=local:rw,remote:r` |
| `turbo prune --scope=web` | `turbo prune web` |
| `turbo-ignore` | `turbo query affected` |
Graph exports `.png`, `.jpg`, `.pdf`, and `.json` are deprecated. Use `.svg`,
`.html`, `.mermaid`, or `.dot`, or use `turbo query` for structured graph data.
`turbo scan` emits a deprecation warning.
Turborepo no longer uses incremental task caching. Turborepo 2.11.3 removes the
experimental embedded `sccache` integration that used Remote Cache for Cargo compilation.
`peerDependencies` do not create package graph edges; a peer declaration alone
does not provide an edge for `^` task dependencies.
Setup-specific lifecycle controls were removed in 2.11.9; use native package-manager
configuration for lifecycle scripts. Turborepo 2.11.11 removes setup's `verify-system`
policy and the requirement to Git-ignore `.turbo/` before setup.
Unix shell-hook installation is opt-in starting in 2.11.9.
## Configuration and inheritance
Point the root configuration's `$schema` at the installed package for matching
validation and completion. Resolve schema paths relative to the configuration file.
```json
{
"$schema": "./node_modules/turbo/schema.json"
}
```
A package's `extends` array can name another workspace package to inherit its tasks.
Start an array with `$TURBO_EXTENDS$` to retain inherited entries and append local ones;
the associated future flag is `turboExtendsKeyword`.
```json
{
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["$TURBO_EXTENDS$", ".next/**"]
}
}
}
```
Enable `futureFlags.globalConfiguration` to move repository-wide settings under `global`.
Future flags can be enabled individually and affect the global hash.
Task tags participate in inheritance, CLI selection, and query filtering of tasks and packages.
Task `description` is informational and does not change execution.
## Sidecars and task shutdown
Use `with` to launch a long-running task alongside another task. Set `tasks.dev`
in `apps/web/turbo.json` to this value to start `api#start` when `web` runs `dev`:
```json
{
"with": ["api#start"],
"persistent": true,
"cache": false
}
```
Starting in 2.11.3, sidecars started through `with` stop when their parent exits.
Turborepo forwards `SIGINT` and `SIGTERM` and waits for task cleanup;
press Ctrl+C again to force exit.
## Generated files and dependency outputs
Prefix an input glob with `$TURBO_ROOT$/` to resolve it from the workspace root.
Use `"mode": "jit"` to hash generated files after upstream tasks finish.
Exclude the same paths from startup inputs if `$TURBO_DEFAULT$` would include them.
```json
{
"tasks": {
"codegen": { "cache": false },
"build": {
"dependsOn": ["codegen"],
"inputs": [
"$TURBO_DEFAULT$",
"!src/generated/**",
{ "mode": "jit", "globs": ["src/generated/**"] }
]
}
}
}
```
Use `"mode": "dependencyOutputs"`, `from`, and `globs` to choose upstream task outputs
that contribute to a downstream hash. Unchanged emitted declarations can preserve a
downstream cache hit. Bare output directories also work with matching downstream globs.
Symlink input hashing follows targets only within the repository and includes their contents.
Git-tracked outputs are eligible for input hashing; from 2.11.12 this step is skipped
when Git is unusable. Executable-permission hashing is opt-in through a future flag.
## Affected selection, filters, and Watch Mode
Set the corresponding future flag to `true` to enable these behaviors:
| Future flag | Behavior |
| --- | --- |
| `futureFlags.affectedUsingTaskInputs` | `--affected` uses task `inputs`; root `package.json` changes stop being an automatic repository-wide trigger |
| `futureFlags.watchUsingTaskInputs` | Rerun only tasks whose inputs match changed files, including `$TURBO_ROOT$/` globs |
| `futureFlags.filterUsingTasks` | Resolve filters at task level; Git ranges use inputs, `...` traverses the task graph, and explicit `package#task` includes its package |
| `futureFlags.pruneIncludesGlobalFiles` | Copy `globalDependencies` matches into pruned workspaces |
`--affected` and `--filter` select their intersection for runs and package queries:
```bash
turbo run build --affected --filter=web
turbo query ls --affected --filter=web
```
`turbo query affected` emits JSON and defaults to affected tasks. Use `--tasks`
to select task names or `--packages` to return affected packages.
Affected detection includes both paths of a rename and works across toolchain boundaries.
In 2.11.12, global input matches take precedence over package and lockfile mapping;
root `.gitattributes` changes select all tasks. In 2.11.13, root JavaScript
dependencies are scoped to JavaScript tasks and root tasks.
`turbo watch` requires a task name. Experimental `--experimental-write-cache`
allows Watch Mode cache writes. Watch Mode supports single-package repositories,
scopes interruptible restarts to affected tasks, and discovers new workspace packages.
From 2.11.12, a watcher rescan alone no longer reruns every watched task.
## Experimental setup and native toolchains
`turbo setup` is experimental and was introduced behind a future flag.
Setup policy belongs in root `turbo.json` and accepts CLI overrides.
Setup resolves native version declarations for Node.js, JavaScript package managers,
Go, Rust, uv, and Python. Bun-only repositories can omit a Node.js declaration.
`turbo setup` can create or reconcile `turbo.lock`, refresh selections, and reinstall
locked tools. Frozen setup in CI uses locked selections. `turbo setup --no-lock`
provisions clone-local selections that plain `turbo run` can use and hash.
`turbo setup --check` verifies readiness without changing the installation.
Plain setup provisions tools and reports skipped dependency installs; when dependency
setup is requested, it can install locked JavaScript dependencies, sync from `uv.lock`,
and prefetch Cargo dependencies or Go modules. In 2.11.12, enabled dependency installs
run in parallel and `turbo setup --verbose` provides more output.
`turbo run` and `turbo watch` activate provisioned tools; `turbo exec` runs a standalone
command in the managed environment. From 2.11.12, managed runs resolve the package manager
separately for each task. From 2.11.11, plain setup repairs managed installations
with a missing executable.
Native Cargo `run` tasks are uncached. Cacheable native Cargo tasks require a current
`Cargo.lock` and have host-platform-scoped cache entries. Native uv tool tasks can be cached.
Python quality tasks derive from declared tooling dependencies. Native Go workspace
support is experimental. A per-toolchain task `command` override retains task metadata
but bypasses the toolchain's inferred cache inputs and outputs.
## Caches, environments, and pruning
Turborepo automatically shares the local task cache across Git worktrees of one repository.
Tasks can reuse entries when task hashes match.
Opt into local eviction with `cacheMaxAge`, `cacheMaxSize`, or both in root `turbo.json`;
eviction starts in the background on `turbo run`. `--force` overrides cache settings.
Set `futureFlags.longerSignatureKey` to `true` to require at least 32 bytes in
`TURBO_REMOTE_CACHE_SIGNATURE_KEY`.
Remote Cache reads remain available with forbidden uploads or read-only tokens from 2.11.11.
Task `passThroughEnv` supports `!` exclusions of built-in or globally inherited variables.
An explicitly declared task environment variable still contributes to its cache hash
when a `globalEnv` exclusion removes the inferred variable.
Use `turbo prune web --production` to omit development dependencies, including Bun
workspace development dependencies declared with `workspace:*`.
`turbo prune web --use-gitignore` respects `.gitignore` while copying.
Pruning Bun workspaces requires Bun 1.2 or later and its text-based lockfile.
## Queries and observability
Run `turbo query` to open GraphiQL, `turbo query --schema` to print its schema,
or `turbo query --file=my-query.gql` to run a saved query.
`turbo devtools` opens live package and task dependency graphs in a browser.
Experimental structured logging uses `--json` for newline-delimited JSON and
`--log-file` for a file while retaining normal terminal output; the flags can be combined.
Experimental metrics use `futureFlags.experimentalObservability` and
`experimentalObservability.otel`; `runAttributes` controls metric cardinality.
Experimental `turbo trace` has its graph directory subject to `cacheMaxAge` and
`cacheMaxSize` starting in 2.11.13.