# Turborepo — card for AI agents

High-performance build system for monorepos with task parallelization.

Category: Build tools and bundlers · npm package `turbo` · latest version 2.11.10 (checked 2026-11-01)
Install: `npm install turbo`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## Turborepo
- Declare tasks in the root `turbo.json`. Use `"dependsOn": ["^build"]` so a package's build runs after the builds of its dependencies.
- Add each Compiled Package's build directory (`dist`, `build`) to the `outputs` key of its task so Turborepo caches those build outputs.
- To check your own changes, run `turbo run build --affected` instead of the whole repository.
- Before guessing at config, search the docs with `turbo docs ""`. Use `turbo ls` or `turbo query --schema` to learn the repository structure.
- Reference internal packages with the package manager's workspace syntax, for example `"@repo/ui": "workspace:*"` for pnpm.
- In Just-in-Time packages, do not use `compilerOptions.paths`. On TypeScript 5.4 or later, use Node.js subpath imports.
- Build Compiled Packages with `tsc` unless a specific use case requires a bundler. For publishing to npm, the docs recommend changesets.

## Agent Skills for it
- Official: vercel/next.js (30 skills): `npx skills add vercel/next.js`
- Official: vercel/turborepo (2 skills): `npx skills add vercel/turborepo`
- turborepo-caching from wshobson/agents: `npx skills add wshobson/agents --skill turborepo-caching`
- turborepo from midudev/autoskills: `npx skills add midudev/autoskills --skill turborepo`

## Docs written for agents
- [llms.txt (index of the docs)](https://turborepo.dev/llms.txt)

## What it is
- Turborepo is a build system and task runner for JavaScript and TypeScript repositories. The GitHub repository describes it as "optimized for JavaScript and TypeScript, written in Rust". The docs say it is designed for scaling monorepos and also makes single-package workspaces faster.
- It does not replace your scripts. It reads the `package.json` scripts and dependencies already in the repo, plus one `turbo.json` file where you declare tasks such as `build` and what they depend on. The docs index for language models says it provides incremental task running, local and remote caching, and parallel execution. It names its audience as JavaScript and TypeScript developers, monorepo maintainers, and platform teams.
- The maintainers now pitch it to agents as well as people. The website promises that "developers, CI, and agents never do the same work twice". It lists agent-facing features: `turbo docs` to search the documentation from the terminal, `turbo query` for repository context, `--affected` runs, and Agent Skills.

## Caveats
- Just-in-Time packages get no build cache: A Just-in-Time package exports TypeScript directly and has no build step of its own. The docs say Turborepo therefore cannot cache a build for it.
- No `compilerOptions.paths` in Just-in-Time packages: Packages transpiled by their consumer cannot use TypeScript path aliases. For TypeScript 5.4 or later, the docs recommend Node.js subpath imports instead.
- Type errors cross package lines: When an internal package exports raw TypeScript, a type error inside it makes type-checking fail in a dependent package. The docs note this can be confusing or problematic.
- Cacheable packages cost configuration: To get a cached build, each package compiles its own output. The docs warn that Compiled Packages need deeper TypeScript and bundler configuration.

## Numbers (AgentGid data)
- Gid Score: 82.9 (#56 of all tools, 5 of 185 in its category)
- Used in 363 public projects set up for AI coding agents (5.8%)
- Downloads last week: 48,341,240 (as of 2026-11-24), +55.1% over 4 weeks
- GitHub stars: 31,380 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Biome 28.1%, TypeScript 77.7%, Husky 29.8%, Prettier 42.7%, lint-staged 24.2%, Changesets 14.6%

## Checked alternatives (same job)
- Nx: https://agentgid.com/tools/nx/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/turbo/
- Homepage: https://turborepo.dev
- Repository: https://github.com/vercel/turborepo
- Source: https://github.com/vercel/turborepo#readme
- Source: https://github.com/vercel/turborepo
- Source: https://github.com/vercel/turborepo/releases
- Source: https://turborepo.dev
- Source: https://turborepo.dev/llms.txt
- Source: https://turborepo.dev/docs/index.md
- Source: https://turborepo.dev/docs/core-concepts/internal-packages.md

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
