Turborepo high-performance monorepo build system. Use for monorepo setup, build optimization, task pipelines, caching strategies, or multi-package orchestration.
/plugin marketplace add secondsky/claude-skills/plugin install turborepo@claude-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/advanced-filtering.mdreferences/best-practices-patterns.mdreferences/ci-cd-guide.mdreferences/configuration-guide.mdreferences/migration-guide.mdreferences/troubleshooting.mdscripts/link-remote-cache.shscripts/setup-monorepo.shtemplates/Dockerfiletemplates/github-actions.ymltemplates/gitlab-ci.ymltemplates/monorepo-structure.txttemplates/turbo-basic.jsontemplates/turbo-fullstack.jsontemplates/turbo-nextjs.jsontemplates/turbo-vite.jsonTurborepo is a high-performance build system optimized for JavaScript and TypeScript monorepos, written in Rust. It provides intelligent caching, task orchestration, and remote execution capabilities to dramatically speed up development workflows.
Official Reference: https://turborepo.com/llms.txt
# Create new turborepo
bunx create-turbo@latest my-monorepo
cd my-monorepo
# Install dependencies
bun install
# Run all builds
bun run build
# Start dev servers
bun run dev
# Install Turborepo
bun add turbo --dev
# Create turbo.json (see templates/turbo-basic.json)
# Copy templates/turbo-basic.json to ./turbo.json
# Run builds
bunx turbo run build
Templates: See templates/ directory for ready-to-use configurations.
Need Help?: See references/troubleshooting.md for common issues.
Keywords: monorepo, turborepo, build system, caching, task pipeline, workspace, incremental builds, remote cache, vercel, next.js monorepo, pnpm workspace, yarn workspace, npm workspace, bun workspace
Turborepo organizes code into packages within a single repository:
Example Structure: See templates/monorepo-structure.txt
Tasks are organized in a dependency graph:
Configuration: Defined in turbo.json
Turborepo caches task outputs based on inputs:
.turbo/)Cache Benefits:
Define what gets cached:
# Requires Node.js 18+
node --version # v18.0.0+
bun add turbo --dev
# Alternatives:
# npm install turbo --save-dev
# pnpm add turbo --save-dev
# yarn add turbo --dev
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [".env", "tsconfig.json"],
"globalEnv": ["NODE_ENV"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": ["build"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
For complete configuration guide: Load references/configuration-guide.md when configuring turbo.json, task pipelines, or framework-specific setups.
Available Templates:
templates/turbo-basic.json - Minimal configurationtemplates/turbo-fullstack.json - Production-ready setuptemplates/turbo-nextjs.json - Next.js specifictemplates/turbo-vite.json - Vite specific# Run build in all packages
turbo run build
# Run multiple tasks
turbo run build test lint
# Run in specific packages
turbo run build --filter=web
turbo run build --filter='./apps/*'
# Build only changed packages
turbo run build --filter='...[origin/main]'
For complete command reference: Load references/configuration-guide.md when using advanced command options or filters.
# Prune monorepo for deployment
turbo prune --scope=web --docker
# Link to remote cache
turbo login
turbo link
# List packages
turbo ls
# Single package
turbo run build --filter=web
# Git-based (changed since main)
turbo run build --filter='[origin/main]'
# With dependencies
turbo run build --filter='...web'
# With dependents
turbo run test --filter='ui...'
For complete filtering guide: Load references/advanced-filtering.md when implementing CI/CD filters, dependency-based builds, or advanced filter patterns.
Enabled by default, stores in ./node_modules/.cache/turbo
# Clear cache
rm -rf ./node_modules/.cache/turbo
# Or skip cache
turbo run build --force
Share cache across team and CI:
turbo login
turbo link
For complete caching guide: Load references/best-practices-patterns.md when optimizing cache configuration or implementing remote caching strategies.
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: bun install
- run: bunx turbo run build test
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
For complete CI/CD guide: Load references/ci-cd-guide.md when setting up CI/CD pipelines, optimizing builds, or configuring platform-specific workflows (GitHub Actions, GitLab, Docker, etc.).
Complete Templates:
templates/github-actions.yml - GitHub Actionstemplates/gitlab-ci.yml - GitLab CItemplates/Dockerfile - Docker buildsCache not working:
turbo run build --dry-run=json # Check cache hash
turbo run build --force # Force rebuild
rm -rf ./node_modules/.cache/turbo
Tasks running in wrong order:
dependsOn configuration^task for dependency tasksDev server not starting:
{
"pipeline": {
"dev": {
"cache": false,
"persistent": true // Add this
}
}
}
For complete troubleshooting: Load references/troubleshooting.md when encountering cache issues, dependency problems, task execution issues, or CI/CD errors.
# 1. Install Turborepo
npm install turbo --save-dev
# 2. Create turbo.json (see templates/turbo-basic.json)
# 3. Update scripts in package.json
# 4. Test builds locally
# 5. Update CI/CD workflows
Command Mapping:
lerna run build → turbo run buildlerna run test --scope=pkg → turbo run test --filter=pkglerna run build --since main → turbo run build --filter='...[main]'# 1. Install Turborepo
npm install turbo --save-dev
# 2. Convert nx.json to turbo.json
# 3. Update scripts
# 4. Update CI/CD
Command Mapping:
nx run-many --target=build → turbo run buildnx run app:build → turbo run build --filter=appnx affected --target=build → turbo run build --filter='...[origin/main]'For complete migration guide: Load references/migration-guide.md when migrating from Lerna or Nx, including detailed steps, configuration conversion, and common pitfalls.
Load reference files when working on specific aspects of Turborepo:
Load when:
Load when:
Load when:
Load when:
Load when:
Load when:
templates/ directoryscripts/ directoryreferences/ directoryreferences/configuration-guide.md - Complete configuration, commands, framework setupsreferences/best-practices-patterns.md - Best practices, architectural patternsreferences/advanced-filtering.md - Complete filtering guidereferences/ci-cd-guide.md - CI/CD platform integrationreferences/migration-guide.md - Migration from Lerna/Nxreferences/troubleshooting.md - Complete troubleshooting guideWhen setting up Turborepo:
Last Updated: 2025-12-17 Skill Version: 2.0.0 Turborepo Version: 2.6.1+ Official LLM Docs: https://turborepo.com/llms.txt
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.