monorepo-manager

Monorepo Manager: A toolset for managing dependencies, workspace configuration, and cross-package relationships in a monorepo. Use when working with npm workspaces, pnpm, Yarn, Turborepo, or Nx to sync dependency versions across packages, resolve version conflicts, analyze dependency graphs, or set up build orchestration. Trigger terms include monorepo, workspace, dependency sync, version conflict, turborepo, nx, pnpm workspace, cross-package, internal dependency.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "monorepo-manager" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-913fb7e9d6acb099b12e43fe8dcf377689ce46ba258143333a26120308c5ffc2. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Monorepo Manager: A toolset for managing dependencies, workspace configuration, and cross-package relationships in a monorepo. Use when working with npm workspaces, pnpm, Yarn, Turborepo, or Nx to sync dependency versions across packages, resolve version conflicts, analyze dependency graphs, or set up build orchestration. Trigger terms include monorepo, workspace, dependency sync, version conflict, turborepo, nx, pnpm workspace, cross-package, internal dependency.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: monorepo-manager
description: >-
  Manage dependencies, workspace configurations, and cross-package relationships
  in monorepos using npm workspaces, pnpm, Yarn, Turborepo, or Nx. Use when
  syncing dependency versions across packages, resolving version conflicts,
  analyzing the dependency graph, or setting up build orchestration. Trigger
  words: monorepo, workspace, dependency sync, version conflict, turborepo,
  nx, pnpm workspace, cross-package, internal dependency.
license: Apache-2.0
compatibility: "Node.js monorepos (npm/pnpm/yarn workspaces, Turborepo, Nx)"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: development
  tags: ["monorepo", "dependencies", "workspaces", "turborepo"]

Monorepo Manager

Overview

Analyze, maintain, and optimize monorepo dependency graphs. Detect version mismatches across packages, sync shared dependencies, configure build pipelines, and resolve workspace conflicts that slow teams down.

Instructions

1. Detect monorepo structure

Identify the monorepo tool in use:

  • Check for pnpm-workspace.yaml → pnpm workspaces
  • Check package.json for "workspaces" → npm/yarn workspaces
  • Check for turbo.json → Turborepo
  • Check for nx.json → Nx
  • Check for lerna.json → Lerna (legacy)

Map all packages:

Monorepo: pnpm workspaces + Turborepo
Packages (14):
  apps/
    web          → Next.js 14 app
    api          → Express server
    admin        → React admin panel
  packages/
    ui           → Shared component library
    config       → ESLint/TS configs
    database     → Prisma schema + client
    utils        → Shared utilities
    types        → TypeScript type definitions

2. Audit dependency versions

Scan all package.json files and flag mismatches:

## Dependency Version Mismatches

| Package    | apps/web | apps/api | apps/admin | packages/ui |
|------------|----------|----------|------------|-------------|
| react      | 18.3.1   | —        | 18.2.0 ⚠️  | 18.3.1      |
| typescript | 5.4.2    | 5.3.3 ⚠️ | 5.4.2      | 5.4.2       |
| zod        | 3.22.4   | 3.21.1 ⚠️| —          | —           |

3 mismatches found across 14 packages.

3. Resolve conflicts

For each mismatch, recommend and apply fixes:

  • Identify which version to standardize on (usually latest)
  • Check for breaking changes between versions
  • Update all package.json files
  • Run the appropriate install command
  • Verify build still passes

4. Analyze internal dependency graph

Map which packages depend on which:

packages/types ← packages/utils ← packages/ui ← apps/web
                                                ← apps/admin
               ← packages/database ← apps/api

Flag circular dependencies and suggest extraction points.

5. Optimize build configuration

For Turborepo/Nx, ensure:

  • Build tasks declare correct dependsOn relationships
  • Caching is configured for all cacheable tasks
  • Only affected packages rebuild on changes
  • CI pipeline uses remote caching

Examples

Example 1: Sync React versions

Input: "Our monorepo has 6 apps using different React versions. Sync them all."

Output:

Found React version mismatches:

| Package       | Current | Target |
|---------------|---------|--------|
| apps/web      | 18.3.1  | 18.3.1 ✅ |
| apps/admin    | 18.2.0  | 18.3.1 ⬆️ |
| apps/mobile   | 18.2.0  | 18.3.1 ⬆️ |
| packages/ui   | 18.3.1  | 18.3.1 ✅ |

Updated 2 package.json files. Run `pnpm install` to apply.

Breaking changes in 18.2→18.3: None (patch release).
Recommend running `pnpm turbo build` to verify all packages compile.

Example 2: Add shared dependency

Input: "Add date-fns to packages/utils and make sure all apps use the same version"

Output:

Current date-fns usage:
- apps/web: date-fns@3.3.1
- apps/api: date-fns@2.30.0 (major version behind!)
- apps/admin: not installed

Plan:
1. Add date-fns@3.6.0 to packages/utils
2. Upgrade apps/web from 3.3.1 → 3.6.0
3. Upgrade apps/api from 2.30.0 → 3.6.0 (breaking changes — see migration notes)
4. Remove direct date-fns deps from apps, import via packages/utils

⚠️ date-fns v2→v3 breaking changes:
- Named exports only (no default import)
- `format` tokens changed: `DD` → `dd`, `YY` → `yy`

Updated 4 package.json files. Review the v3 migration in apps/api.

Guidelines

  • Always map the full dependency graph before making changes
  • Check for breaking changes before bumping major versions
  • Prefer hoisting shared deps to the root when possible
  • Use catalog: protocol in pnpm or resolutions in yarn for version pinning
  • After any dependency change, verify builds across all affected packages
  • Circular dependencies between packages are a code smell — suggest extraction
  • For large monorepos (50+ packages), prioritize the most impactful mismatches first
  • Internal packages should use workspace:* protocol, not pinned versions

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value82/100

Highlights

  • 解决现代 monorepo 开发中的核心痛点:依赖版本同步、冲突解决、构建优化
  • 适用于 npm/pnpm/yarn/Turborepo/Nx 等多种主流工具链
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含 monorepo、workspace、dependency sync、turborepo 等关键术语
  • 边界清晰,能有效区分于普通包管理工具
Structure and Standards90/100

Highlights

  • 结构完整,分步骤指导清晰,含端到端示例
  • frontmatter 完整,文档长度适中
Execution Reliability88/100

Highlights

  • 工具来源明确,参数建议合理
  • 覆盖主要异常场景,对 breaking changes 有明确提示
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.