monorepo-navigator
Manage and optimize monorepos with Turborepo, Nx, pnpm workspaces, and Changesets. Use when working in monorepos, running impact analysis, optimizing build…
от borghei★ 1 250 звёзд на GitHub
Установить monorepo-navigator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Monorepo Navigator
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, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- 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.pyvsimpact_detector.pyvspackage_analyzer.py). - Repo root & git ref: the monorepo path and the baseline ref for "affected" detection (sets
--refand what counts as changed).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Tools Overview
| Tool | Purpose | Command |
|---|---|---|
dependency_graph.py |
Mermaid dependency graph of internal packages, optionally focused on one package | python3 scripts/dependency_graph.py <root> --focus @repo/ui --direction dependents |
impact_detector.py |
Packages affected (directly and transitively) by changed files | python3 scripts/impact_detector.py <root> --ref origin/main --affected-only |
package_analyzer.py |
Package inventory, internal and shared external dependencies, version drift, orphans | python3 scripts/package_analyzer.py <root> --only-shared |
Workspace detection order: pnpm-workspace.yaml, then the root package.json workspaces field (npm, Yarn), then lerna.json. Exit codes: 0 report; 2 no packages found or bad input (a directory that is not a workspace root must not look like an empty monorepo).
Quick Start
# from engineering/monorepo-navigator/ (a four-package pnpm workspace)
python3 scripts/package_analyzer.py assets/sample_monorepo # 4 packages, 3 internal deps, date-fns drift
python3 scripts/impact_detector.py assets/sample_monorepo --files packages/utils/src/index.ts --affected-only
python3 scripts/dependency_graph.py assets/sample_monorepo --focus @acme/utils --direction dependents --mermaid-only
A change in packages/utils affects @acme/ui, @acme/utils and @acme/web (through ui), but not @acme/docs.
Reference Documentation
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.
Anti-Patterns
Mistake: Running every test and build on every change.
Why it matters: CI time grows with the repo, not with the change, and teams start skipping checks.
Instead: Use the affected set from impact_detector.py (or the build tool's filter) and run the full suite on a schedule.
Mistake: Letting shared dependencies drift between packages. **Why
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/sample_monorepo/apps/docs/package.json
- assets/sample_monorepo/apps/web/package.json
- assets/sample_monorepo/apps/web/src/page.tsx
- assets/sample_monorepo/package.json
- assets/sample_monorepo/packages/ui/package.json
- assets/sample_monorepo/packages/ui/src/button.tsx
- assets/sample_monorepo/packages/utils/package.json
- assets/sample_monorepo/packages/utils/src/index.ts
- assets/sample_monorepo/pnpm-workspace.yaml
- references/operations-and-best-practices.md
- references/tooling-and-configuration.md
- scripts/dependency_graph.py
- scripts/impact_detector.py
- scripts/package_analyzer.py
FAQ
Что делает скилл monorepo-navigator?
Manage and optimize monorepos with Turborepo, Nx, pnpm workspaces, and Changesets. Use when working in monorepos, running impact analysis, optimizing build times with remote caching, migrating from multi-repo, or coordinating publishing.
Как установить скилл monorepo-navigator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monorepo-navigator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…