turborepo

Configure Turborepo build tasks and caching in turbo.json.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and command (resource) and scripts (resource) components.

What problem does it solve?

This Skill helps users configure, optimize, and debug their Turborepo monorepo build system, ensuring efficient task execution, caching, and dependency management.

Core Features & Use Cases

  • Task Configuration: Define build, test, lint, and dev tasks with turbo.json.
  • Caching Optimization: Implement effective local and remote caching strategies.
  • Dependency Management: Understand and enforce package boundaries and dependencies.
  • CI/CD Integration: Set up efficient CI pipelines using --affected and remote caching.
  • Use Case: A developer is struggling with slow CI builds and wants to leverage Turborepo's caching and affected commands to only build changed packages.

Quick Start

Use the turborepo skill to help configure a new build task in turbo.json.

Frequently Asked Questions about turborepo

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

FAQPage Schema
How do I configure build tasks in a Turborepo monorepo?

To configure Turborepo monorepo build tasks, you define your build, test, and lint scripts in package.json and declare their dependencies and outputs in the turbo.json file. This orchestrates task execution across packages efficiently.

Why are my Turborepo cached builds not updating in CI?

Turborepo cached builds may not update due to misconfigured cache outputs in turbo.json or missing environment variables. Debugging cache issues involves verifying your environment variable management and ensuring CI pipelines correctly restore remote cache hits.

What is the best way to optimize slow CI pipelines in a monorepo?

The best way to optimize slow monorepo CI pipelines is implementing Turborepo caching and using the --affected flag. This ensures the build system only processes changed packages, drastically reducing build times via remote caching.

Can I use Turborepo to enforce package boundaries and dependencies?

Yes, you can use Turborepo to enforce package boundaries and dependencies within a monorepo. Proper task orchestration in turbo.json ensures that workspace packages respect defined dependency graphs during build and test workflows.

Does Turborepo task orchestration support filtering by specific package changes?

Turborepo task orchestration supports filtering by specific package changes using the --affected command. This allows developers to target only the workspaces impacted by recent commits, skipping unaffected build and test tasks entirely.