home / skills / ehtbanton / claudeskillsrepo / turbo-config-generator

turbo-config-generator skill

/turbo-config-generator

This skill generates a complete Turborepo configuration in turbo.json for monorepos, including pipelines for build and test, enabling streamlined CI/CD.

npx playbooks add skill ehtbanton/claudeskillsrepo --skill turbo-config-generator

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
721 B
---
name: turbo-config-generator
description: Generate Turborepo configuration files for monorepo build orchestration. Triggers on "create turbo config", "generate turborepo configuration", "turbo setup", "monorepo build config".
---

# Turbo Config Generator

Generate Turborepo configuration for efficient monorepo build pipelines.

## Output Requirements

**File Output:** `turbo.json`
**Format:** Valid Turborepo configuration
**Standards:** Turborepo 1.x

## When Invoked

Immediately generate a complete Turborepo configuration with pipeline definitions.

## Example Invocations

**Prompt:** "Create turbo config for monorepo with build and test"
**Output:** Complete `turbo.json` with build, test, lint pipelines.

Overview

This skill generates a complete Turborepo configuration (turbo.json) for monorepo build orchestration. It produces valid Turborepo 1.x pipeline definitions tailored to common workflows like build, test, lint, and format. Use it to quickly scaffold repeatable, cacheable pipelines across packages in a TypeScript monorepo.

How this skill works

When triggered, the skill inspects the requested pipelines and options and returns a ready-to-use turbo.json that follows Turborepo 1.x syntax and best practices. It includes pipeline tasks, caching rules, outputs, and recommended dependency relationships so Turborepo can compute affected tasks and reuse caches. The generated file is minimal by default and can be extended with custom task names, global env, or remote caching hints.

When to use it

  • Setting up a new TypeScript monorepo and you need a starting turbo.json
  • Adding consistent build/test/lint pipelines across many packages
  • Converting ad hoc scripts into cacheable, parallelized Turborepo pipelines
  • Creating CI configurations that rely on Turborepo affected task detection
  • Standardizing outputs and caching to speed local and CI runs

Best practices

  • Define outputs for each task so Turborepo can cache and restore artifacts
  • Keep tasks composable (e.g., build depends on lint/test only when needed)
  • Use pipeline dependencies (dependsOn) to express cross-package ordering
  • Pin node package manager and environment vars in CI for deterministic runs
  • Start with a minimal turbo.json and evolve tasks as the monorepo grows

Example use cases

  • Generate a turbo.json with build, test, lint, and format pipelines for a TypeScript monorepo
  • Create a configuration that marks 'build' outputs as dist/** and caches them
  • Produce a setup where 'test' runs in parallel and 'build' dependsOn '^build' to build dependents first
  • Scaffold a config optimized for CI with remote caching hints and run-order constraints

FAQ

Which Turborepo version does this target?

It generates configurations compatible with Turborepo 1.x syntax and semantics.

Can I customize task names and outputs?

Yes. The skill accepts requested pipeline names and output patterns and includes them in the generated turbo.json.