AgentSkillsCN

turborepo-caching

配置 Turborepo,实现本地与远程缓存的高效单体仓库构建。适用于 Turborepo 的搭建、构建管道的优化,或分布式缓存的实施。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: turborepo-caching
description: Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing distributed caching.

Turborepo Caching

Production patterns for Turborepo build optimization.

Do not use this skill when

  • The task is unrelated to turborepo caching
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Use this skill when

  • 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

🧠 Knowledge Modules (Fractal Skills)

1. 1. Turborepo Architecture

2. 2. Pipeline Concepts

3. Template 1: turbo.json Configuration

4. Template 2: Package-Specific Pipeline

5. Template 3: Remote Caching with Vercel

6. Template 4: Self-Hosted Remote Cache

7. Template 5: Filtering and Scoping

8. Template 6: Advanced Pipeline Configuration

9. Template 7: Root package.json Setup

10. Do's

11. Don'ts