turborepo

Coordinate Turborepo monorepo workflows for multi-package builds and caching.

490|23|Updated Sep 25, 2023
One-click install
npx skills add https://github.com/victorgarciaesgi/regle --skill turborepo-victorgarciaesgi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/victorgarciaesgi/regle/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/victorgarciaesgi/regle --skill turborepo-victorgarciaesgi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo-based monorepo orchestration can be complex; this Skill clarifies how to configure per-package tasks, caching, and filtering to optimize builds across apps and packages.

Core Features & Use Cases

  • Guidance for creating per-package Turborepo tasks (web#build, etc.)
  • Best practices for root vs package configurations, caching, and remote cache
  • CI optimization and filtering patterns for changed packages

Quick Start

Install and configure Turborepo based on this Skill's guidance; then define a couple of per-package tasks and run turbo run build --affected, turbo run lint --affected, or turbo workflow commands to see caching and parallelization in action.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure per-package tasks in a Turborepo monorepo?

To configure per-package tasks in a Turborepo monorepo, define specific scripts like web#build within your package configurations. This approach enables targeted task execution and simplified orchestration across complex package interdependencies.

What is the best way to optimize CI pipelines for a large monorepo?

The best way to optimize CI pipelines for a large monorepo is to apply build caching and task filtering patterns. Running commands like turbo run build --affected processes only changed packages, maximizing parallel execution and reducing redundant build times.

How does build caching work for monorepo task orchestration?

Build caching works for monorepo task orchestration by storing the output of executed tasks like lint or build. When you rerun a command, the orchestrator checks cache rules and instantly restores the output if the package inputs and environment remain unchanged.

Can I use remote caching to speed up monorepo builds across different machines?

Yes, you can use remote caching to speed up monorepo builds across different machines. Remote caching shares build outputs across your team and CI environments, avoiding redundant package work and ensuring consistent environment management for all contributors.

How do I filter changed packages in a monorepo workflow?

You filter changed packages in a monorepo workflow by using specific filtering patterns during task execution. Commands such as turbo run lint --affected allow you to target only the packages that have been modified, skipping unaffected code during local and CI runs.

When should I use root versus package configuration in a Turborepo monorepo?

Use root configuration for global settings and shared caching rules, while package configuration handles individual per-package task definitions. Separating these configurations ensures proper task orchestration and prevents overlapping build logic across your monorepo.