turborepo

Configure Turborepo task pipelines and caching in turbo.json.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/salafidurus/salafi-audios --skill turborepo-salafidurus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/salafidurus/salafi-audios/tree/main/.opencode/skills/turborepo
Command: npx skills add https://github.com/salafidurus/salafi-audios --skill turborepo-salafidurus

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Task Orchestration: Define and manage build, test, and lint tasks across multiple packages.
  • Caching Optimization: Leverage Turborepo's caching to avoid redundant work and speed up builds.
  • Dependency Management: Understand how to structure dependencies and enforce package boundaries.
  • Use Case: A developer is setting up a new monorepo and needs to configure turbo.json to efficiently build their frontend and backend applications, ensuring that only changed packages are rebuilt.

Quick Start

Use the turborepo skill to help configure tasks 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 task pipelines in turbo.json for a monorepo build system?

To configure monorepo build system task pipelines, define task dependencies and outputs in `turbo.json` to orchestrate build, test, and lint scripts across packages. You map inputs to cache outputs, ensuring tasks execute in the correct sequence based on your package dependencies.

Why are my Turborepo cache hits missing in CI for specific package builds?

Turborepo cache misses in CI typically occur when environment variables or file inputs are untracked in `turbo.json`. You must explicitly declare environment variables and dependencies in the task configuration to ensure consistent cache keys and avoid redundant rebuilds.

What is the best way to enforce architectural boundaries and manage dependencies in a monorepo?

To enforce architectural boundaries in a monorepo, structure dependencies by defining explicit package relationships and utilizing package filtering. This confines internal package imports, preventing unauthorized cross-dependencies and maintaining a clean structural hierarchy.

Can I run tasks only on changed packages using Turborepo filtering?

Yes, you can execute tasks exclusively on changed packages using package filtering syntax. By filtering dependencies and dependents, the build system skips unaffected packages, leveraging caching to optimize CI speed and avoid redundant computations.

Does Turborepo require specific package.json scripts for task orchestration?

Turborepo relies on existing `package.json` scripts to execute task orchestration. You define the pipeline relationships in `turbo.json`, but the actual task commands must exist in each workspace package's `package.json` to run successfully.

How do I handle environment variables in Turborepo for consistent caching?

To handle environment variables in Turborepo and maintain consistent caching, declare them explicitly in the `env` field of `turbo.json`. This ensures the build system tracks variable changes, correctly invalidating caches when specific environment configurations are updated.