turborepo

Configure turbo.json tasks, caching, and CI for Turborepo monorepos.

Updated Dec 23, 2021
One-click install
npx skills add https://github.com/dvakatsiienko/bytes --skill turborepo-dvakatsiienko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/dvakatsiienko/bytes/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/dvakatsiienko/bytes --skill turborepo-dvakatsiienko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Turborepo skill provides guided guidance for configuring Turborepo monorepos, including task orchestration, package configurations, caching, and CI optimization across large codebases.

Core Features & Use Cases

  • Covers per-package task configurations and package-level overrides to enable parallel builds and granular caching.
  • Documents how to structure turbo.json, define outputs/inputs, env vars, and global options for scalable monorepos, plus practical patterns for CI and remote caching.
  • Real-world scenarios include setting up apps and libraries, using package configurations, and optimizing affected builds across the workspace.

Quick Start

Load the Turborepo skill and begin by outlining a per-package task workflow for a monorepo.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure turbo.json for a monorepo with multiple apps and packages?

Configuring turbo.json for a monorepo involves defining per-package task configurations, inputs, outputs, and environment variables to enable parallel builds and granular caching across apps and packages.

What is the best way to set up remote caching for Turborepo in CI?

Remote caching in CI is set up by configuring global options and applying remote-cache patterns to share build artifacts across the workspace, optimizing affected builds and reducing pipeline execution time.

How do I define task inputs and outputs for granular caching in a monorepo?

Granular caching in a monorepo requires defining specific inputs and outputs rules within your package configurations and turbo.json so the task graph can track file changes and cache build results accurately.

Can I use package-level overrides for task configurations in a Turborepo workflow?

Yes, you can apply package-level overrides for task configurations to customize build scripts, manage environment variables, and address global options individually across different apps and libraries in your workspace.

Why is my Turborepo task graph not executing builds in parallel across the workspace?

Parallel execution issues in a Turborepo task graph often stem from missing per-package task definitions or incorrect dependency declarations in turbo.json, preventing proper orchestration and caching of affected builds.