turborepo

Configure turbo.json and per-package tasks for Turborepo monorepo builds.

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

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 monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

Core Features & Use Cases

  • Provides a comprehensive reference for turbo.json configuration and package configurations
  • Guides on caching, filtering, environment handling, and CI integration
  • Includes best practices for monorepo structure and per-package configurations

Quick Start

Use Turborepo to scaffold and configure per-package tasks and turbo.json rules for monorepo builds.

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?

Task pipelines in turbo.json are configured by defining per-package task definitions and using dependsOn relationships to orchestrate monorepo builds. This standardizes execution order and enables caching across multiple apps and packages.

What is the best way to run only affected packages after a change?

Running affected packages is handled using the --filter and --affected CLI flags with the turbo CLI. This workflow filters tasks to execute only changed packages, optimizing CI pipelines and reducing build times.

How do I debug caching issues in a Turborepo monorepo?

Debugging caching issues involves validating your turbo.json inputs, outputs, and environment variable configurations. Properly defining these ensures cache hits are predictable and task execution is correctly skipped or resumed.

Can I use Turborepo to share code between apps in a monorepo?

Yes, you can share code between apps by structuring your monorepo with apps and packages directories. Turborepo standardizes internal package configurations and boundaries to manage dependencies and workflow execution across them.

When should I configure environment variables in turbo.json?

Environment variables in turbo.json should be configured when tasks rely on specific runtime configurations. Validating and defining env variables ensures proper cache isolation and prevents unpredictable build outputs across different CI environments.