/engineering-advanced-skills:monorepo-navigatorfrom engineering-advanced-skills
Navigates, manages, and optimizes monorepos with Turborepo, Nx, pnpm workspaces, and Changesets. Handles impact analysis, selective builds, remote caching, migration from multi-repo, and coordinated publishing.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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
workspace:* replacement during publish.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.
dependency_graph.py vs impact_detector.py vs package_analyzer.py).--ref and 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.
| 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).
# 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.
Load the reference that matches the task — keep this file lean and pull detail on demand:
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 it matters: Two versions of the same library ship twice, and bugs reproduce in one app but not another.
Instead: Check package_analyzer.py --only-shared and pin shared versions in one place (catalog or root constraints).
Mistake: Deep imports across package boundaries (../../packages/ui/src/...).
Why it matters: The dependency never appears in package.json, so impact analysis and the build cache miss it.
Instead: Import through the package name and declare it with workspace:*.
| File | Purpose |
|---|---|
scripts/package_analyzer.py, scripts/impact_detector.py, scripts/dependency_graph.py | Stdlib CLIs |
assets/sample_monorepo/ | pnpm workspace: apps/web, apps/docs, packages/ui, packages/utils |
This skill covers:
This skill does NOT cover:
performance-profilerci-cd-pipeline-builderrelease-managerdependency-auditorassets/sample_monorepo/apps/docs/package.json (opens in a new tab)assets/sample_monorepo/apps/web/package.json (opens in a new tab)assets/sample_monorepo/apps/web/src/page.tsx (opens in a new tab)assets/sample_monorepo/package.json (opens in a new tab)assets/sample_monorepo/packages/ui/package.json (opens in a new tab)assets/sample_monorepo/packages/ui/src/button.tsx (opens in a new tab)assets/sample_monorepo/packages/utils/package.json (opens in a new tab)assets/sample_monorepo/packages/utils/src/index.ts (opens in a new tab)assets/sample_monorepo/pnpm-workspace.yaml (opens in a new tab)references/operations-and-best-practices.md (opens in a new tab)references/tooling-and-configuration.md (opens in a new tab)scripts/dependency_graph.py (opens in a new tab)scripts/impact_detector.py (opens in a new tab)scripts/package_analyzer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
monorepo, turborepo, nx, pnpm-workspaces, changesets, impact-analysis, selective-builds
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
/agenthubRuns a multi-agent job as a dependency graph: validates the DAG, tracks each agent's state on a board, then ranks and merges their outputs. Use when spawning parallel agents, monitoring a run, or merging results.
/agentic-evaluation-frameworkBuilds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect. Use when setting up a judge, scoring outputs, or comparing model or prompt variants.
/agent-protocolDesign AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.
Other plugins' skills for the same job