monorepo-navigator

Analyze monorepo dependency graphs to identify affected packages and optimize builds.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill monorepo-navigator-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: monorepo-navigator
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/cache/claude-code-skills/engineering-advanced-skills/2.1.2/monorepo-navigator
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill monorepo-navigator-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, pnpm, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of managing large-scale monorepos, solving issues related to slow build times, dependency management, and fragmented CI/CD pipelines.

Core Features & Use Cases

  • Impact Analysis: Automatically determine which packages are affected by code changes to prevent unnecessary rebuilds.
  • Build Optimization: Implement remote caching and selective execution for Turborepo, Nx, and pnpm workspaces.
  • Migration Support: Provides structured workflows for migrating from multi-repo setups to unified monorepos without losing git history.

Quick Start

Use the monorepo-navigator to analyze the dependency graph and identify affected packages in the current directory.

Frequently Asked Questions about monorepo-navigator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize monorepo build pipelines for selective task execution?

Monorepo build pipelines are optimized by analyzing the dependency graph to enable selective task execution, preventing unnecessary rebuilds for unaffected packages. This facilitates incremental builds and remote caching for Turborepo, Nx, and pnpm workspaces.

What is the best way to identify affected packages in a pnpm workspace after code changes?

The best way to identify affected packages in a pnpm workspace is through automated impact analysis of the monorepo dependency graph. This determines exactly which packages are impacted by recent code changes to prevent redundant rebuilds during CI/CD.

Does this monorepo navigator support migrating from a multi-repo setup without losing git history?

Yes, monorepo migration support includes structured workflows for transitioning from multi-repo setups to a unified monorepo. These workflows are designed to preserve your existing git history throughout the consolidation process.

How do I implement remote caching and automated versioning for Turborepo and Nx?

Implementing remote caching and automated versioning for Turborepo and Nx involves analyzing the monorepo structure to configure build optimization and manage cross-package dependencies. This setup satisfies requirements for incremental builds and changesets.

Do I need to install pnpm and jq before analyzing cross-package dependencies?

Yes, you need pnpm, jq, and python3 installed as prerequisite dependencies before analyzing cross-package dependencies. These tools provide the necessary environment for scripts to parse workspace configurations and visualize the dependency graph.

Why is my CI/CD pipeline slow when building a large-scale monorepo?

A CI/CD pipeline is slow when building a large-scale monorepo if it fails to leverage incremental builds and remote caching. Implementing selective task execution ensures only affected packages are rebuilt, drastically reducing fragmented pipeline times.