Monorepo Navigator

SkillAI & models

This skill helps your AI work with monorepos, where many packages live together in one repository. Once added, your AI can set up a new monorepo, keep builds and tests fast by only running what a change actually affects, and guide a move from several separate repositories into one. It works with Turborepo, Nx, pnpm workspaces, and Lerna.

Available today. Use it from your connected AI after setup.

Add the skill, then ask your AI to set up a new monorepo or review and optimize the one you already have. If your code is currently split across several repositories, ask it to plan the migration.

Then ask your AI: use the Monorepo Navigator skill

What your AI can do with it

  • Set up a new monorepo with Turborepo, Nx, pnpm workspaces, or Lerna
  • Analyze how a change in one package affects the others
  • Build and test only the packages a change touches
  • Set up remote caching to speed up repeated builds
  • Show how the packages in your repo depend on each other
  • Plan and carry out a migration from multiple separate repositories into one monorepo

What this skill tells your AI

The instructions your AI receives, as published by borghei/claude-skills in engineering/monorepo-navigator/SKILL.md and read by ahel’s review.

Navigate, manage, and optimize monorepos at any scale. Covers Turborepo, Nx, pnpm workspaces, and Lerna/Changesets for cross-package impact analysis, selective builds on affected packages only, dependency graph visualization, remote caching configuration, migration from multi-repo to monorepo with preserved git history, and coordinated package publishing with automated changelogs.

Keywords: monorepo, Turborepo, Nx, pnpm workspaces, Changesets, dependency graph, remote cache, affected packages, selective builds, cross-package impact, npm publishing, workspace protocol

Core Capabilities

  • Impact analysis — determine which apps break when a shared package changes, trace dependency chains, visualize Mermaid graphs, and calculate blast radius.
  • Selective execution — run tests/builds only for affected packages, filter by changed files since a git ref, and skip unchanged packages in CI.
  • Build optimization — remote caching (Turborepo/Vercel, Nx Cloud), incremental builds with input/output config, dependency-aware parallel scheduling, and artifact sharing.
  • Publishing — Changesets for coordinated versioning, automated per-package changelogs, pre-release channels, and workspace:* replacement during publish.

When to Use

  • Multiple packages/apps share code (UI components, utils, types, API clients)
  • Build times are slow because everything rebuilds on every change
  • Migrating from multiple repos to a single monorepo
  • Publishing npm packages with coordinated versioning
  • Teams work across packages and need unified tooling

Clarify First

Before analyzing or configuring, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Tooling — Turborepo, Nx, pnpm workspaces, or Changesets (drives the config and commands generated)
  • Task — impact/dependency analysis, build optimization, or publishing setup (selects dependency_graph.py vs impact_detector.py vs package_analyzer.py)
  • Repo root & git ref — the monorepo path and the baseline ref for "affected" detection (sets --ref and what counts as changed)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
dependency_graph.pyGenerate a Mermaid dependency graph of internal packagespython scripts/dependency_graph.py . --focus @repo/ui --direction dependents
impact_detector.pyDetect which packages are affected by file changespython scripts/impact_detector.py . --ref origin/main --affected-only
package_analyzer.pyAnalyze package structure, dependencies, and healthpython scripts/package_analyzer.py . --only-shared

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/tooling-and-configuration.md — tool selection decision matrix, recommended repo structure, full turbo.json and pnpm-workspace config, key Turborepo/pnpm commands, impact-analysis commands, remote-caching setup, affected-only CI workflow, Changesets publishing, and multi-repo→monorepo migration steps. Read when configuring or operating a monorepo.
  • references/operations-and-best-practices.md — common pitfalls, best practices, troubleshooting table, and success criteria. Read when something misbehaves or when validating a setup.

Scope & Limitations

This skill covers:

  • Turborepo, Nx, and pnpm workspace configuration and optimization
  • Cross-package dependency analysis and impact visualization
  • Remote caching setup (Vercel, Nx Cloud, self-hosted)
  • Changesets-based coordinated versioning and npm publishing

This skill does NOT cover:

  • Application-level build configuration (webpack, Vite, esbuild internals) — see performance-profiler
  • CI/CD pipeline design beyond monorepo-specific filters — see ci-cd-pipeline-builder
  • Git branching strategies and release flow — see release-manager
  • Dependency vulnerability scanning and license auditing — see dependency-auditor

Integration Points

SkillIntegrationData Flow
ci-cd-pipeline-builderMonorepo-aware CI workflows use --filter flags and remote caching tokensMonorepo Navigator defines filter patterns and cache config that CI pipelines consume
release-managerChangesets versioning feeds into release orchestration and tag managementRelease Manager triggers changeset version and changeset publish as part of release flow
dependency-auditorWorkspace dependency graph informs vulnerability and license scanning scopeMonorepo Navigator exports the package dependency tree that Dependency Auditor analyzes
performance-profilerBuild profiling data identifies slow packages for optimizationPerformance Profiler measures per-package build times surfaced by Turborepo --summarize
changelog-generatorChangesets produce per-package changelogs consumed by release notesChangeset summaries flow into Changelog Generator for formatted release documentation
tech-debt-trackerCross-package coupling and circular dependencies surface as tracked tech debt itemsMonorepo Navigator's impact analysis identifies coupling hotspots that Tech Debt Tracker records

Signals

GitHub stars
752
Forks
137
Last commit
Aug 2026

ahel review

  • K1binfo
    installs-packages (in references/tooling-and-configuration.md)

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
monorepo-navigator
Source
github.com/borghei/claude-skills