turborepo-caching

Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing distributed caching.

By wshobson · 9,433 installs

npx skills add wshobson/agents --skill turborepo-caching

Source repository · Upstream listing

Turborepo Caching Production patterns for Turborepo build optimization. When to Use This Skill Setting up new Turborepo projects Configuring build pipelines Implementing remote caching Optimizing CI/CD performance Migrating from other monorepo tools Debugging cache misses Core Concepts 1. Turborepo Architecture 2. Pipeline Concepts Concept Description dependsOn Tasks that must complete first cache Whether to cache outputs outputs Files to cache inputs Files that affect cache key persistent Long running tasks (dev servers) Templates Template 1: turbo.json Configuration Template 2: Package Specific Pipeline Template 3: Remote Caching with Vercel Template 4: Self Hosted Remote Cache Template 5: Filtering and Scoping Template 6: Advanced Pipeline Configuration Template 7: Root package.json Setup Debugging Cache Best Practices Do's Define explicit inputs Avoid cache invalidation Use workspace protocol "@myorg/ui": "workspace: " Enable remote caching Share across CI and local Filter in CI Build only affected packages Cache build outputs Not source files Don'ts Don't cache dev servers Use persistent: true Don't include secrets in env Use runtime env vars Don't ignore dependsOn Causes race conditions Don't over filter May miss dependencies