turborepo

Configure per-package tasks and pipelines in Turborepo monorepos.

2|Updated May 5, 2023
One-click install
npx skills add https://github.com/baicie/template-repo --skill turborepo-baicie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/baicie/template-repo/tree/main/monorepo/.agents/skills/turborepo
Command: npx skills add https://github.com/baicie/template-repo --skill turborepo-baicie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo streamlines monorepo task orchestration with intelligent caching and parallel execution, enabling consistent wiring across apps and packages.

Core Features & Use Cases

  • Per-package tasks in each package.json to enable fine-grained parallelization.
  • Root turbo.json as a base config with Package Configurations for framework-specific needs.
  • CI-friendly task execution with turbo run and filtering for affected builds.

Quick Start

Define per-package tasks in each package.json, register them in root turbo.json, and use turbo run to orchestrate the build.

Frequently Asked Questions about turborepo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate monorepo task orchestration and build caching?

Monorepo task orchestration is automated by defining per-package tasks in each package.json and registering them in the root turbo.json. You then execute turbo run to orchestrate builds, enabling intelligent caching and parallel execution across apps and libraries.

What is the best way to configure per-package tasks in a large monorepo?

Configuring per-package tasks requires defining specific scripts within each individual package.json. These tasks are then declared in the root turbo.json base configuration to enforce correct usage, enable fine-grained parallelization, and manage framework-specific needs across the monorepo.

How does turbo run work with CI pipelines for affected builds?

Turbo run executes CI-friendly tasks by using filtering to identify and build only affected packages. This task orchestration mechanism leverages intelligent caching to skip redundant work, ensuring consistent wiring and optimized execution across continuous integration workflows.

Can I use package configurations for framework-specific needs in Turborepo?

Yes, Turborepo supports package configurations to handle framework-specific needs. You establish a root turbo.json as the base config, then apply package configurations to enforce per-package task definitions and manage diverse framework requirements within the same monorepo.

Why do I need to define per-package tasks in each package.json for Turborepo?

Defining per-package tasks in each package.json is required to enable fine-grained parallelization and intelligent build caching. This root-to-package configuration flow ensures correct usage of turbo run, enforcing accurate task definitions for both local and CI workflows.