monorepo-management

Configure and optimize multi-package repositories using Turborepo, pnpm workspaces, or Nx.

3|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/firstsun-dev/skills --skill monorepo-management-firstsun-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: monorepo-management
Source: https://github.com/firstsun-dev/skills/tree/main/custom/develop/monorepo-management
Command: npx skills add https://github.com/firstsun-dev/skills --skill monorepo-management-firstsun-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing multi-package repositories involves scattered dependency versions, slow builds, and unclear package boundaries. This Skill provides structured guidance for setting up and optimizing monorepos with modern tooling. ## Core Features & Use Cases - pnpm Workspaces: Centralize dependency versions with pnpm Catalogs and manage packages with filtered commands. - Turborepo: Configure task pipelines, caching, and remote caching for faster builds. - Nx: Use affected commands, module boundary rules, and dependency graph visualization. - Boundary Enforcement: Prevent cross-package relative imports using ESLint rules and dependency-cruiser. - Use Case: When migrating a growing codebase into a monorepo, use this Skill to choose between Turborepo and Nx, set up pnpm Catalogs for shared dependencies, and enforce architecture rules so apps cannot import each other directly. ## Quick Start Ask the agent to set up a Turborepo monorepo with pnpm workspaces and shared ESLint and TypeScript configs for your project.

Frequently Asked Questions about monorepo-management

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

FAQPage Schema
How do I set up a monorepo with pnpm workspaces?▼

Define packages in pnpm-workspace.yaml with globs like apps/* and packages/*. Use pnpm add with the --filter flag to add dependencies to specific packages, and pnpm -r to run commands across all packages.

Turborepo vs Nx for monorepo management?▼

Turborepo focuses on high-performance task running and caching configured through turbo.json pipelines. Nx adds advanced graph analysis, affected commands, module boundary enforcement, and polyglot support for non-JavaScript projects.

How do I centralize dependency versions in pnpm workspaces?▼

Use pnpm Catalogs in pnpm-workspace.yaml to declare shared versions like react and typescript once. Packages then reference them with the catalog: protocol in their package.json dependency fields.

How do I prevent cross-package relative imports in a monorepo?▼

Configure ESLint no-restricted-imports to block relative paths into other packages, forcing imports through workspace package names. For complex graphs, use dependency-cruiser to forbid cross-app imports entirely.

Does Turborepo support remote caching?▼

Yes, Turborepo supports remote caching through Vercel by running turbo login and turbo link. Enterprise setups can also use custom S3 or GCS cache adapters for self-hosted storage.