monorepo-management

Installation
SKILL.md

Monorepo Management — Scaling Multi-Package Projects


Mandatory Pre-Flight Context Inspection

Before organizing workspace packages or writing Turborepo/pnpm configs, you MUST inspect:

  1. Internal Package Protocol (Section 128) → Reference internal monorepo dependencies via "workspace:*" protocol and mark them "private": true
  2. Topological Task Dependencies (Section 146) → Define topological ordering ("^build") in turbo.json to ensure dependencies build before consumers
  3. Domain-Focused Package Partitioning (Section 261) → Divide shared code into domain packages (packages/ui, packages/db, packages/utils); ban single monolithic packages/shared dumpsters

Activation Boundaries

  • Activate when: Operating in tasks requiring Monorepo architecture and tooling mastery. Turborepo, Nx, pnpm workspaces, shared package design, task pipelines, dependency hoisting, change detection, versioning strategies (independent vs. fixed), shared TypeScript configs, internal packages, and CI optimization for monorepos. Use when setting up monorepos, managing shared code across apps, or optimizing build pipelines..
  • DO NOT activate when: The task falls strictly outside monorepo-management domain or belongs to a different dedicated specialist.

Hallucination Traps (Read First)

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026