home / skills / sickn33 / antigravity-awesome-skills / monorepo-management
This skill helps you set up and optimize monorepos with Turborepo, Nx, and pnpm, ensuring scalable dependency sharing and fast builds.
npx playbooks add skill sickn33/antigravity-awesome-skills --skill monorepo-managementReview the files below or copy the command above to add this skill to your agents.
---
name: monorepo-management
description: Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.
---
# Monorepo Management
Build efficient, scalable monorepos that enable code sharing, consistent tooling, and atomic changes across multiple packages and applications.
## Use this skill when
- Setting up new monorepo projects
- Migrating from multi-repo to monorepo
- Optimizing build and test performance
- Managing shared dependencies
- Implementing code sharing strategies
- Setting up CI/CD for monorepos
- Versioning and publishing packages
- Debugging monorepo-specific issues
## Do not use this skill when
- The task is unrelated to monorepo management
- You need a different domain or tool outside this scope
## Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.
## Resources
- `resources/implementation-playbook.md` for detailed patterns and examples.
This skill helps you master monorepo management using Turborepo, Nx, and pnpm workspaces to build scalable multi-package repositories with fast, deterministic builds and consistent dependency handling. It focuses on practical setup, build optimization, dependency hygiene, and CI/CD patterns that reduce friction when sharing code across services and packages.
The skill inspects repository layout, tooling choices, and dependency graphs to recommend configuration and migration steps. It provides actionable commands, caching and pipeline optimizations, workspace manifest guidance, and verification checks for build correctness and dependency deduplication. You get recommended patterns for versioning, publishing, and CI integration based on repo goals and constraints.
Which tool should I choose: Turborepo or Nx?
Choose based on team needs: use Turborepo for simple, high-performance pipelines and lightweight config; use Nx if you need advanced dependency graphs, code generators, or integrated dev tooling.
How do I avoid dependency duplication in a monorepo?
Use pnpm workspaces to enforce a single installation and hoist strategy, keep a clear dependency policy, and run automated audits and dedupe checks in CI.