Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alirezarezvani avatar

Monorepo Navigator

  • 565 installs
  • 23.5k repo stars
  • Updated July 17, 2026
  • alirezarezvani/claude-skills

monorepo-navigator is a Claude Code skill that helps developers navigate Turborepo-style monorepos with apps-versus-packages layouts, dependency rules, affected CI, and Changesets releases.

About

monorepo-navigator is a Claude Code skill documenting monorepo patterns for apps plus packages, domain-driven, and service monorepo layouts. It enforces one-way dependencies from apps and services to shared packages, disallows cross-app imports unless approved, and keeps types packages runtime-free. Build and CI guidance covers affected-only pipelines with --filter, Turborepo caching, and Changesets release workflows. Developers reach for monorepo-navigator when agents must edit the correct workspace package, respect boundary rules, or configure selective CI in large JavaScript or TypeScript monorepos.

  • Common layouts: apps+packages, domains+shared, and service monorepos with libs
  • One-way dependency rules and runtime-free types packages to limit coupling
  • Turborepo `turbo.json` pipelines with `dependsOn`, outputs, and env wiring
  • Affected-only CI via `--filter` plus remote cache for build and test tasks
  • Changesets (or equivalent) for automated, reproducible package publishing

Monorepo Navigator by the numbers

  • 565 all-time installs (skills.sh)
  • Ranked #254 of 1,440 DevOps & CI/CD skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/alirezarezvani/claude-skills --skill monorepo-navigator

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs565
repo stars23.5k
Security audit2 / 3 scanners passed
Last updatedJuly 17, 2026
Repositoryalirezarezvani/claude-skills

How do you structure Turborepo monorepo workspaces correctly?

Navigate Turborepo-style monorepos—apps versus packages layouts, dependency rules, affected CI, and Changesets releases—while your agent edits the right workspace.

Who is it for?

Developers working in Turborepo or pnpm monorepos who need agents to edit the right package and respect apps-versus-packages boundaries.

Skip if: Single-package repositories, or teams using Bazel or Go workspaces without JavaScript monorepo tooling.

When should I use this skill?

A developer asks about monorepo layout, Turborepo filters, affected CI, Changesets, or which workspace package to edit.

What you get

Correct workspace edits, dependency boundary map, affected CI filter commands, and Changesets release workflow guidance.

  • workspace boundary guidance
  • affected CI command patterns
  • Changesets release configuration notes

Files

SKILL.mdMarkdownGitHub ↗

Monorepo Navigator

Tier: POWERFUL Category: Engineering Domain: Monorepo Architecture / Build Systems

---

Overview

Navigate, manage, and optimize monorepos. Covers Turborepo, Nx, pnpm workspaces, and Lerna. Enables cross-package impact analysis, selective builds/tests on affected packages only, remote caching, dependency graph visualization, and structured migrations from multi-repo to monorepo. Includes Claude Code configuration for workspace-aware development.

---

Core Capabilities

  • Cross-package impact analysis — determine which apps break when a shared package changes
  • Selective commands — run tests/builds only for affected packages (not everything)
  • Dependency graph — visualize package relationships as Mermaid diagrams
  • Build optimization — remote caching, incremental builds, parallel execution
  • Migration — step-by-step multi-repo → monorepo with zero history loss
  • Publishing — changesets for versioning, pre-release channels, npm publish workflows
  • Claude Code config — workspace-aware CLAUDE.md with per-package instructions

---

When to Use

Use when:

  • Multiple packages/apps share code (UI components, utils, types, API clients)
  • Build times are slow because everything rebuilds when anything changes
  • Migrating from multiple repos to a single repo
  • Need to publish packages to npm with coordinated versioning
  • Teams work across multiple packages and need unified tooling

Skip when:

  • Single-app project with no shared packages
  • Team/project boundaries are completely isolated (polyrepo is fine)
  • Shared code is minimal and copy-paste overhead is acceptable

---

Tool Selection

ToolBest ForKey Feature
TurborepoJS/TS monorepos, simple pipeline configBest-in-class remote caching, minimal config
NxLarge enterprises, plugin ecosystemProject graph, code generation, affected commands
pnpm workspacesWorkspace protocol, disk efficiencyworkspace:* for local package refs
Lernanpm publishing, versioningBatch publishing, conventional commits
ChangesetsModern versioning (preferred over Lerna)Changelog generation, pre-release channels

Most modern setups: pnpm workspaces + Turborepo + Changesets

---

Turborepo

→ See references/monorepo-tooling-reference.md for details

Workspace Analyzer

python3 scripts/monorepo_analyzer.py /path/to/monorepo
python3 scripts/monorepo_analyzer.py /path/to/monorepo --json

Also see references/monorepo-patterns.md for common architecture and CI patterns.

Common Pitfalls

PitfallFix
Running turbo run build without --filter on every PRAlways use --filter=...[origin/main] in CI
workspace:* refs cause publish failuresUse pnpm changeset publish — it replaces workspace:* with real versions automatically
All packages rebuild when unrelated file changesTune inputs in turbo.json to exclude docs, config files from cache keys
Shared tsconfig causes one package to break all type-checksUse extends properly — each package extends root but overrides rootDir / outDir
git history lost during migrationUse git filter-repo --to-subdirectory-filter before merging — never move files manually
Remote cache not working in CICheck TURBO_TOKEN and TURBO_TEAM env vars; verify with turbo run build --summarize
CLAUDE.md too generic — Claude modifies wrong packageAdd explicit "When working on X, only touch files in apps/X" rules per package CLAUDE.md

---

Best Practices

1. Root CLAUDE.md defines the map — document every package, its purpose, and dependency rules 2. Per-package CLAUDE.md defines the rules — what's allowed, what's forbidden, testing commands 3. Always scope commands with --filter — running everything on every change defeats the purpose 4. Remote cache is not optional — without it, monorepo CI is slower than multi-repo CI 5. Changesets over manual versioning — never hand-edit package.json versions in a monorepo 6. Shared configs in root, extended in packages — tsconfig.base.json, .eslintrc.base.js, jest.base.config.js 7. Impact analysis before merging shared package changes — run affected check, communicate blast radius 8. Keep packages/types as pure TypeScript — no runtime code, no dependencies, fast to build and type-check

Related skills

How it compares

Use monorepo-navigator for workspace navigation and boundary rules; use a framework skill when the task is component code inside one app package.

FAQ

What monorepo layouts does monorepo-navigator document?

monorepo-navigator documents apps plus packages, domain-driven domains plus shared, and service monorepos with services plus libs. Each layout defines where deployable apps and shared libraries live.

How does monorepo-navigator handle CI in large repos?

monorepo-navigator recommends affected-only CI using --filter or equivalent selectors so pipelines run only on changed workspaces. Turborepo caching patterns reduce redundant builds across packages.

Is Monorepo Navigator safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

DevOps & CI/CDdevopsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.