turbo-workspaces

Manage Turborepo workspaces by creating, validating, and pruning for deployment.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill turbo-workspaces
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turbo-workspaces
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/turbo/workspaces
Command: npx skills add https://github.com/theslashdojo/dojo --skill turbo-workspaces

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, turbo, pnpm, and includes scripts (resource) components.

What problem does it solve?

This skill removes manual overhead when structuring and maintaining Turborepo monorepos by automating workspace creation, validation, dependency installation, and pruning for deployment so teams can add apps and shared packages reliably.

Core Features & Use Cases

  • Detects the repository package manager and workspace configuration to ensure consistent workspace discovery across pnpm, npm, yarn, and bun.
  • Scaffolds new workspaces with package.json and tsconfig, applies namespace conventions and exports, and wires common build, lint, and typecheck scripts.
  • Validates existing workspaces for missing package.json, name uniqueness, scripts, and exports; lists workspaces under apps/ and packages/.
  • Produces minimal pruned outputs for targeted apps to optimize Docker layers and deployment using pruning and turbo build filters.

Quick Start

Run the manage-workspaces script to create a new workspace named my-lib in the packages directory and then install dependencies from the repo root.

Frequently Asked Questions about turbo-workspaces

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new workspace in a Turborepo monorepo?

To scaffold a Turborepo workspace, run the management script to generate workspace directories and package.json files with configured exports, tsconfig, and standard build, lint, and typecheck scripts. It then runs root-level dependency installs to wire the new package into the monorepo.

What is turbo prune used for when building Docker images?

Turbo prune produces minimal pruned outputs for targeted apps to optimize Docker layers and deployment. By invoking turbo prune and turbo build filters, it extracts only the necessary workspace dependencies, reducing the final container size and build context.

Can I use this to validate existing Turborepo workspace configurations?

Yes, you can validate existing Turborepo workspaces to check for missing package.json files, name uniqueness, scripts, and exports. It lists all discovered workspaces under the apps/ and packages/ directories to ensure configuration consistency.

Does the workspace scaffolding support package managers besides pnpm?

Yes, workspace scaffolding supports pnpm, npm, yarn, and bun. The tool automatically detects the repository's package manager and workspace configuration to ensure consistent workspace discovery and dependency installation across different environments.

What's the best way to add a shared package to a Turborepo monorepo?

The best way to add a shared package is to run the manage-workspaces script to create the workspace in the packages directory. It applies namespace conventions, generates package.json with exports, and executes root-level installs to integrate the new library.