Turborepo Workflow

VerifiedCaution

Root scripts are Turborepo-driven (dev, build, lint, check-types). Always define tasks in turbo.json with minimal inputs/outputs and correct dependencies for reliable caching. Helps when adding or modifying tasks, optimizing builds/dev, or troubleshooting task pipelines.

Sby Skills Guide Bot
DevelopmentIntermediate
806/2/2026
Claude Code
#turborepo#monorepo#task-pipeline#build-optimization#pnpm

Recommended for

Our review

This skill manages and optimizes Turborepo task pipelines in a Liftera monorepo, automating task definitions in turbo.json and ensuring correct dependencies and caching for dev, build, lint, and type-checking scripts.

Strengths

  • Automates consistent task definitions in turbo.json
  • Ensures correct inter-package dependencies (^task)
  • Optimizes caching by minimizing inputs/outputs
  • Integrates standard monorepo scripts (pnpm dev, build, lint, check-types)

Limitations

  • Specific to Liftera architecture, not generic
  • Does not cover advanced Turborepo features (filters, remote caching)
  • Relies on pnpm as package manager
When to use it

When adding or modifying tasks in turbo.json, optimizing build/dev, or troubleshooting task pipelines in a Turborepo-based monorepo.

When not to use it

For projects not using Turborepo or pnpm, or for non-standard build configurations outside the monorepo structure.

Security analysis

Caution
Quality score70/100

The skill allows Bash, which could execute arbitrary commands, but the instructions are limited to standard Turborepo tasks and project setup. There are no destructive, exfiltrating, or obfuscated actions. The risk is inherent to the Bash tool, not the skill's content.

No concerns found

Examples

Add a new task to turbo.json
Add a new 'test' task to turbo.json that runs tests in all packages, depends on the build task of upstream packages, and caches outputs in a 'coverage' directory.
Optimize build caching
Optimize the turbo.json to reduce cache misses: set minimal inputs for the build task (only source files) and ensure outputs are precise (dist folder).
Fix task pipeline dependency
The dev task isn't picking up changes from dependent packages. Check and fix the task dependencies in turbo.json so that dev has the correct upstream dependencies.

name: turborepo description: > Turborepo workflow for Liftera. Trigger: When adding/modifying tasks in turbo.json, optimizing builds/dev, or troubleshooting task pipelines. license: Apache-2.0 metadata: author: liftera version: "1.0" scope: [root] auto_invoke: "Working with Turborepo tasks" allowed-tools: Read, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, Task

Core Commands (REQUIRED)

  • Root scripts are Turborepo-driven:
    • pnpm dev -> turbo run dev
    • pnpm build -> turbo run build
    • pnpm lint -> turbo run lint
    • pnpm check-types -> turbo run check-types

Task Principles (REQUIRED)

  • ALWAYS define tasks in turbo.json.
  • ALWAYS keep dev non-cached and persistent.
  • ALWAYS keep build outputs accurate for caching.

When Editing turbo.json

  • Ensure task dependencies include ^task when packages depend on other packages.
  • Keep inputs/outputs minimal and correct so caching is reliable.
Related skills