# Turborepo

> Use when: configure a Turborepo monorepo with task pipelines, caching, and affected-only runs.

- Skill: `kimtth/turborepo` (Agent Skill)
- Install (CLI): `npx skillmds@latest add kimtth/turborepo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kimtth/turborepo/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: kimtth (https://skillmd.com/u/kimtth)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/kimtth/turborepo

---


Goal: fast, correct monorepo builds with maximal cache reuse.

Use for:
- structuring tasks across multiple packages
- slow CI from rebuilding unchanged packages
- setting up local and remote caching

Workflow:
1. Define tasks and their dependsOn graph in the pipeline.
2. Declare inputs and outputs so caching is correct.
3. Run with workspace filters to scope to affected packages.
4. Enable local caching; verify cache hits on reruns.
5. Add remote caching to share across CI and team.
6. Tune task boundaries to maximize parallelism.

Patterns:
- pipeline dependsOn to order build/test/lint correctly
- precise inputs/outputs to avoid false cache hits and misses
- --filter to run only affected packages
- remote cache for CI and cross-machine reuse

Rules:
- declare every output a task produces, or caching breaks
- keep tasks deterministic so cache results are valid
- do not over-couple packages; it kills parallelism
- verify cache correctness before trusting CI speedups

