turborepo

Configure Turborepo task pipelines, caching, and filtering for monorepos.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo monorepo build system guidance. Triggers on turbo.json, task pipelines, dependsOn, caching, remote cache, the turbo CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user configures tasks/workflows/pipelines, creates packages, sets up a monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

Core Features & Use Cases

  • Provides guidance for configuring per-package tasks, root vs package configurations, and per-package turbo.json overrides.
  • Covers caching strategies, remote caching, environment variable handling, and filtering for CI and local development.
  • Includes decision trees, references, and best-practice patterns to structure monorepos and enforce boundaries.

Quick Start

Set up a minimal per-package task and run turbo run build to verify caching across packages.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure Turborepo task pipelines for a monorepo?

Configure Turborepo task pipelines by defining task dependencies and outputs in turbo.json. This orchestrates monorepo builds across packages, enabling parallelized execution and correct cache invalidation for scalable workflows.

What is the best way to run only affected packages in a monorepo CI pipeline?

Run affected packages in CI using the --filter and --affected flags with the turbo CLI. This targets specific packages based on changes, optimizing build times and caching strategies during local development and pipeline execution.

How does Turborepo caching work with environment variables?

Turborepo caching relies on environment variables to determine cache invalidation. Properly handling environment variables in turbo.json ensures correct cache hits and misses across different environments and package configurations.

Can I use per-package turbo.json overrides for monorepo task definitions?

Yes, per-package turbo.json overrides allow customized task definitions within a monorepo. This lets you enforce best-practice package configurations and boundaries while maintaining root-level task orchestration.

Why is my Turborepo remote cache not invalidating correctly?

Remote cache invalidation fails when environment variables or task dependencies are misconfigured. Review your turbo.json caching strategies and environment variable handling to ensure correct cache keys and parallelized build consistency.

How do I structure a monorepo to share code between apps and enforce boundaries?

Structure monorepos using apps and packages directories to share code between apps. Turborepo enforces boundaries and internal packages through best-practice configurations, ensuring scalable and maintainable task orchestration.