agentsclimarketplace

Monorepo manager

Skill ComeOnOliver/skillshub/skills/TerminalSkills/skills/monorepo-manager

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill monorepo-manager

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

4.2 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

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: [email protected]
- apps/api: [email protected] (major version behind!)
- apps/admin: not installed

Plan:
1. Add [email protected] 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.