wshobson avatar

Turborepo Caching

Comprehensive Turborepo setup that covers the full spectrum from basic turbo.json configuration to self-hosted remote caching servers. Includes production-ready pipeline configurations with proper dependency chains, filtering strategies for CI builds, and debugging workflows when cache hits mysteriously disappear. The templates handle real scenarios like Next.js builds, database generation tasks, and GitHub Actions integration with Vercel's remote cache. Covers the tricky bits like workspace filtering syntax and environment variable scoping that usually require multiple documentation deep-dives. Solid foundation for any serious monorepo migration or optimization effort.

skills.sh installs
11K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill turborepo-caching --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Workspace Root/
├── apps/
│   ├── web/
│   │   └── package.json
│   └── docs/
│       └── package.json
├── packages/
│   ├── ui/
│   │   └── package.json
│   └── config/
│       └── package.json
├── turbo.json
└── package.json

2. Pipeline Concepts

ConceptDescription
dependsOnTasks that must complete first
cacheWhether to cache outputs
outputsFiles to cache
inputsFiles that affect cache key
persistentLong-running tasks (dev servers)

Templates

Template 1: turbo.json Configuration

Sponsors

Details

Repository
github.com/wshobson/agents
Category
DevOps & CI/CD

More from wshobson/agents

All 174
1github avatarcreate-github-action-workflow-specificationgithub/awesome-copilotCreate a formal specification for an existing GitHub Actions CI/CD workflow, optimized for AI consumption and workflow maintenance.10.8Kskills.sh installs
2google avataragent-platform-tuninggoogle/skillsAgent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outsi9.5Kskills.sh installs
3google avataragent-platform-tuning-managementgoogle/skillsManages GenAI tuning jobs in Agent Platform. Use this to list, get, or cancel ongoing model tuning jobs. Don't use for fine-tuning models (use `agent-platform-t9.4Kskills.sh installs
4github avataraspiregithub/awesome-copilotAspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, 9Kskills.sh installs
5github avatarwinapp-cligithub/awesome-copilotWindows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications. Use when asked to initialize Windows a8.4Kskills.sh installs
6github avatarmsstore-cligithub/awesome-copilotMicrosoft Store Developer CLI (msstore) for publishing Windows applications to the Microsoft Store. Use when asked to configure Store credentials, list Store ap7Kskills.sh installs