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-nevaberry-plugins)
---
name: turborepo-knowledge-patch
description: Turborepo
version: "2.11.13"
license: MIT
metadata:
author: Nevaberry
---
# Turborepo compatibility guidance
Load this skill when configuring, upgrading, running, querying, or troubleshooting
Turborepo repositories. It covers configuration and inputs, execution and caching,
package boundaries, observability, package managers, native tasks, and setup.
Use the topic references for complete guidance, examples, and version attribution.
## Reference index
| Reference | Topics |
| --- | --- |
| [Package boundaries and environment linting](references/boundaries-and-linting.md) | Experimental import checks, graph cycles, peer dependencies, ESLint, Biome |
| [Configuration and task inputs](references/configuration-and-inputs.md) | Schemas, JSONC, inheritance, tags, JIT inputs, dependency outputs, file hashing, environment variables |
| [Execution and caching](references/execution-and-caching.md) | Deprecations, sidecars, shutdown, affected detection, filters, Watch Mode, local and Remote Cache |
| [Queries, observability, and terminal UI](references/queries-observability-and-ui.md) | Queries, graphs, metrics, structured logs, profiling, tracing, terminal controls |
| [Ecosystem, documentation, and migrations](references/ecosystem-and-migrations.md) | Installation, experimental setup, managed tools, native Cargo/uv/Go tasks, package managers, pruning, generators, documentation, microfrontends |
## 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.
Migrate `--parallel` workflows to `persistent` tasks and `with` dependencies.
| Deprecated option or workflow | Supported migration |
| --- | --- |
| `--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-ignore` | `turbo query affected`, which emits JSON for CI and defaults to affected tasks |
| `turbo prune --scope=web` | `turbo prune web` |
| `.png`, `.jpg`, `.pdf`, or `.json` graph exports | `.svg`, `.html`, `.mermaid`, or `.dot`; use `turbo query` for structured graph data |
`turbo scan` emits a deprecation warning. Incremental task caching was removed.
`peerDependencies` no longer provide package graph edges for `^` task dependencies.
A package dependency cycle is allowed when the resulting task graph is acyclic;
mutual `build` tasks with `"dependsOn": ["^build"]` still fail cycle validation.
Turborepo 2.11.3 removes the experimental embedded `sccache` integration that used
Remote Cache for Cargo compilation. Setup-specific lifecycle controls were removed
in 2.11.9; use native package-manager configuration for lifecycle scripts.
In 2.11.11, setup removes `verify-system` and the requirement to Git-ignore `.turbo/`.
## Configuration and generated inputs
Point `$schema` at the installed package, such as `./node_modules/turbo/schema.json`,
resolving the path from the configuration file. For a hosted schema, use the
release-specific documentation subdomain for the installed version.
`turbo.json` accepts trailing commas, and packages can use `turbo.jsonc`.
Package `extends` arrays can name other workspace packages: `"extends": ["//", "web"]`.
Start an array with `$TURBO_EXTENDS$` to retain inherited entries and append local
ones; its associated future flag is `turboExtendsKeyword`.
Task tags participate in inheritance, CLI selection, and query filtering.
Use `$TURBO_ROOT$/` for workspace-relative input globs. Use `"mode": "jit"` to hash
generated files after upstream tasks finish. Exclude the same paths from startup
inputs when `$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"` with `from` to select task dependencies and
`globs` to choose output files contributing to the downstream hash. An upstream
edit that leaves selected declarations unchanged can preserve a downstream hit.
Bare output directories such as `"outputs": ["dist"]` work with downstream globs
matching files in that directory.
Git-tracked outputs are eligible for input hashing; that step is skipped when Git
is unusable starting in 2.11.12. Symlink hashing follows targets only inside the
repository. Executable-permission hashing is opt-in through a future flag.
## Affected detection, filtering, and Watch Mode
`--affected` and `--filter` select their intersection for both `turbo run` and
`turbo query ls`. Git selectors accept two-dot ranges, as in
`turbo run build --filter='[main..HEAD]'`:
```bash
turbo run build --affected --filter=web
turbo query ls --affected --filter=web
```
| Future flag | Behavior when enabled |
| --- | --- |
| `affectedUsingTaskInputs` | `--affected` uses task `inputs`; root `package.json` changes stop being an automatic repository-wide trigger |
| `watchUsingTaskInputs` | Watch Mode reruns tasks whose inputs match changed files, including `$TURBO_ROOT$/` inputs |
| `filterUsingTasks` | Git-range filters use task inputs; `...` traverses the task graph; explicit `package#task` includes its package in scope |
| `pruneIncludesGlobalFiles` | Pruning copies files matching `globalDependencies` |
| `globalConfiguration` | Repository-wide settings move under top-level `global` |
Future flags can be enabled individually and affect the global hash.
Task-level affected detection also matches JIT inputs, package configuration files,
and directory inputs. In 2.11.12, global dependency 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.
Watch Mode supports single-package repositories and discovers new workspace packages
during a run. A watcher rescan alone no longer reruns every watched task starting
in 2.11.12. Pass `--experimental-write-cache` to let Watch Mode write task results
to the cache (experimental).
`turbo watch` requires a task name, as in `turbo watch dev --experimental-write-cache`.
## Task lifecycle and cache controls
Use `with` to start a long-running task alongside another task. Set `tasks.dev`
in `apps/web/turbo.json` to the following to start `api#start` with `web`'s `dev`:
```json
{
"with": ["api#start"],
"persistent": true,
"cache": false
}
```
Tasks launched with `with` stop when their parent exits starting in 2.11.3.
Turborepo forwards `SIGINT` and `SIGTERM` and waits for task cleanup;
press Ctrl+C again to force exit.
Git worktrees of the same repository automatically share the local task cache;
tasks can reuse entries when their task hashes match.
Opt into eviction with `cacheMaxAge` and/or `cacheMaxSize` in the root configuration.
Age removes old artifacts; size removes the oldest artifacts above the cap.
Eviction starts in the background on `turbo run`.
`--force` takes precedence over cache settings, including Remote Cache enablement.
Link Remote Cache with `turbo link --scope=my-team --yes`. The `longerSignatureKey`
future flag requires at least 32 bytes in `TURBO_REMOTE_CACHE_SIGNATURE_KEY`.
Hosted Remote Cache supports OIDC policies. Starting in 2.11.11, reads remain
available when an upload is forbidden or a token is read-only.
## Queries, diagnostics, and experimental observability
`turbo query` is stable: run it alone to open GraphiQL, use
`turbo query --file=my-query.gql` for a saved query, or print the schema with
`turbo query --schema`. `turbo query affected --tasks build` selects task names;
`turbo query affected --packages` returns packages. Affected results include virtual tasks.
`turbo query ls web` inspects dependencies and tasks; `--output=json` supports scripts.
Queries expose task plans, resolved `experimentalCI`, task hashes, and log files.
`turbo devtools` opens package and task graphs that reload as the repository changes.
SVG export renders directly; DOT export does not require Graphviz.
`--profile` and `--anon-profile` accept omitted filenames; `--profile` also writes
a Markdown summary alongside its trace.
Experimental metrics require `futureFlags.experimentalObservability` and root
`experimentalObservability.otel` configuration; `runAttributes` controls cardinality.
Experimental `--json` streams newline-delimited structured logs. `--log-file` keeps
normal terminal output and writes `.turbo/logs/<epoch-millis>.json` by default;
`--log-file=./build-log.json` selects a path, and both flags can be used together.
Experimental `turbo trace` has its graph directory subject to `cacheMaxAge` and
`cacheMaxSize` starting in 2.11.13.
In the terminal UI, `/` searches tasks, `h` toggles the task list, `j`/`k` select,
`p` pins, `u`/`d` scroll logs, `c` copies mouse-selected logs, and `m` shows shortcuts.
Mouse-wheel scrolling works in the task list. Task selection, list visibility,
and pinning persist across runs. `--no-color` and `NO_COLOR` strip task-output color
starting in 2.11.12.
## Experimental setup and native toolchains
`turbo setup` is experimental and behind a future flag. Setup policy belongs in
root `turbo.json` and accepts CLI overrides. Setup can create or reconcile
`turbo.lock`, refresh selections, or reinstall tools from the lock.
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` checks readiness without changing the installation.
Plain setup provisions tools and reports skipped dependency installs. Requested
dependency setup can install locked JavaScript dependencies, sync from `uv.lock`,
and prefetch Cargo dependencies or Go modules. Use `turbo setup --verbose` for
more output; enabled dependency installs run in parallel starting in 2.11.12.
Plain setup repairs managed installations with a missing executable in 2.11.11.
`turbo run` and `turbo watch` activate provisioned tools; `turbo exec` runs a
standalone command in that environment. Managed package-manager resolution is
per task starting in 2.11.12. Unix shell-hook installation is opt-in.
The shared store's automatic cleanup was removed before release. On macOS, managed
tools live under `~/.local/share`. Setup rejects Windows ARM64 even when the x64
CLI runs under emulation.
Native Cargo `run` tasks are uncached; cacheable Cargo tasks require a current
`Cargo.lock` and have host-platform-scoped cache entries. Native uv task hashing
uses the relevant dependency closure from the uv lockfile. Native Go workspace support is
experimental. A task's `command` override preserves metadata and bypasses the
toolchain's inferred cache inputs and outputs.
For installation, declaration formats, pruning, native-task diagnostics, Python
virtual environments, documentation access, and local microfrontend routing, load
the ecosystem reference linked above.