Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Turborepo Pro

ASecurity

Manage JS monorepos with Turborepo: task pipelines, caching, affected builds, and workspace conventions. Use when orchestrating builds/tests across multiple packages.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsjavascripttypescriptgojavabashapidatabase

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill turborepo-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Turborepo Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Turborepo Pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-turborepo-pro/badge)](https://www.skillsdirectory.com/skills/aicodedecode-turborepo-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: turborepo-pro
description: Manage JS monorepos with Turborepo: task pipelines, caching, affected builds, and workspace conventions. Use when orchestrating builds/tests across multiple packages.
category: development
---

# Turborepo Pro

A practical guide to Turborepo: defining task pipelines across a JavaScript/TypeScript monorepo, getting remote caching right, running only affected work, and the workspace conventions that keep monorepos fast and sane.

## Overview

Turborepo orchestrates tasks (build, test, lint) across monorepo packages with two superpowers: **a task graph** (packages build in dependency order, independent tasks run in parallel) and **caching** (identical inputs → skip the work, locally or via remote cache shared across the team/CI). It's intentionally thin — it doesn't manage dependencies or publishing; it makes `package.json` scripts fast and correct.

## When to use

- Monorepos with multiple apps/packages sharing code (npm/yarn/pnpm workspaces).
- Slow CI: caching build/test outputs across runs and developers.
- Running tasks in dependency order without hand-rolled scripts.
- "Affected" workflows: only build/test what changed.

## Core concepts

- **Workspaces.** The package manager's workspace feature (`package.json` `workspaces`, or pnpm's). Turborepo reads the graph from it — one package.json per package, internal deps via `workspace:*` (pnpm) or plain versions.
- **Pipeline (`turbo.json`).** Tasks with `dependsOn` (e.g., `build` depends on `^build` = dependencies' builds first) and `inputs`/`outputs` (what invalidates the cache). Getting inputs/outputs right is 80% of Turborepo value.
- **Caching.** Content-hash of inputs; hit = skip task and replay outputs. Local cache by default; remote cache (Vercel's or self-hosted) shares across machines/CI.
- **Affected.** `--filter=[HEAD^1...HEAD]` runs tasks only for changed packages and their dependents. The backbone of fast monorepo CI.
- **Filtering.** `--filter=web...` (web + dependencies), `--filter=...ui` (ui + dependents), `--filter=!docs` (exclude). Learn the microsyntax; it's the daily driver.
- **Env vars as inputs.** Tasks reading env vars must declare them (`env: ["DATABASE_URL"]`) or the cache silently serves stale results.

## Practical workflow

**1. Structure.**
```
apps/web        # deployables
apps/api
packages/ui     # shared component library
packages/config # shared eslint/tsconfig
packages/utils  # shared logic
turbo.json
```

**2. Define the pipeline.**
```json
{
  "$schema": "https://turbo.build/schema.json",
  "tasks": {
    "build": { "dependsOn": ["^build"], "inputs": ["src/**", "package.json", "tsconfig.json"], "outputs": ["dist/**"] },
    "test":  { "dependsOn": ["^build"], "inputs": ["src/**", "tests/**"] },
    "lint":  { "inputs": ["src/**", ".eslintrc*"] },
    "dev":   { "cache": false, "persistent": true }
  }
}
```

**3. Run.**
```bash
turbo run build --filter=web...        # build web and its deps
turbo run test lint --filter=[HEAD^1]  # CI: affected tests+lint
turbo run dev --filter=web             # persistent dev tasks aren't cached
```

**4. Enable remote caching.** Link the repo (`turbo login` / `turbo link`) so CI and teammates share cache hits. Verify with `turbo run build --dry=json` that the graph looks right before relying on it.

**5. CI pattern.** Install → `turbo run build test lint --filter=[origin/main...HEAD]` → deploy affected apps. Cache hits make unchanged packages near-instant.

## Common pitfalls

- **Wrong inputs/outputs.** Missing an input (e.g., a config file) = stale cache hits serving old builds. Missing outputs = cache restores nothing and downstream tasks fail. Audit both per task.
- **Undeclared env vars.** `NEXT_PUBLIC_*` or API keys read at build time but not in `env` → cached build with the wrong values. Declare every env var each task reads.
- **Caching dev servers.** `dev` tasks must have `cache: false` + `persistent: true`, or Turbo will try to cache a never-ending process.
- **Non-deterministic builds.** Timestamps, random IDs, or absolute paths in outputs poison the cache (every run "changes" outputs). Make builds deterministic.
- **Over-filtering in CI.** Filtering too aggressively skips packages that actually changed via undeclared dependencies. Prefer explicit internal deps over implicit imports.
- **One giant package.** Turborepo can't parallelize inside a package. Split by domain so the graph has real parallelism.
- **Ignoring `--dry`.** `--dry=json` shows exactly what will run and why — use it when the pipeline behaves unexpectedly instead of guessing.
- **Cache poisoning from local.** A developer's dirty local cache uploaded to remote can poison CI. Scope remote writes to CI, or at least to clean checkouts.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →