turborepo

Configure Turborepo task pipelines for parallel execution and caching.

182|8|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/compozy/agh --skill turborepo-compozy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/compozy/agh/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/compozy/agh --skill turborepo-compozy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Turborepo skill guidance helps you correctly configure task orchestration in JavaScript/TypeScript monorepos so builds run in parallel, cache reliably, and only rebuild what changed.

Core Features & Use Cases

  • Monorepo task orchestration: Learn how to structure turbo.json tasks with correct dependsOn semantics and package-first patterns.
  • Reliable caching: Configure outputs, inputs, and env so Turborepo caches the right artifacts and invalidates when inputs truly change.
  • Scope optimization: Use --affected and --filter patterns to run tasks only for changed packages (and optionally their dependents/dependencies).
  • CI correctness & performance: Apply best practices for GitHub Actions and remote caching (including common gotchas).
  • Environment variable hashing: Ensure .env usage is tracked via inputs and variables are declared in env so cache keys stay accurate.

Quick Start

Load the turborepo skill to generate a correct turbo.json/package.json strategy for your monorepo task pipelines, including caching and affected-package optimization.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure monorepo build caching for parallel task execution?

Monorepo build caching requires configuring turbo.json task pipelines with correct dependsOn semantics and package-first patterns to enable parallel execution and reliable artifact caching across packages.

Why are my turborepo cached builds invalidating when nothing changed?

Cached builds invalidate incorrectly when environment variables are undeclared in turbo.json. Add variables to the env array and include .env files in inputs to maintain accurate cache keys.

What is the best way to run builds only for changed packages in a monorepo?

Running builds for changed packages requires using --affected and --filter syntax in turbo run commands to scope task execution to modified packages and their respective dependencies or dependents.

How do I optimize CI pipelines for monorepo task orchestration?

CI pipeline optimization involves applying remote caching and affected builds filtering to GitHub Actions workflows, ensuring turbo run commands only execute necessary tasks for changed packages.

Does turborepo work with JavaScript and TypeScript monorepos?

Turborepo works with JavaScript and TypeScript monorepos to orchestrate task pipelines, applying package-first task placement and dependency graph analysis for correct parallel build execution.