Best use case
Monorepo Manager is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
## Overview
Teams using Monorepo Manager should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/monorepo-manager/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Monorepo Manager Compares
| Feature / Agent | Monorepo Manager | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
## Overview
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 versionsRelated Skills
certificate-lifecycle-manager
Certificate Lifecycle Manager - Auto-activating skill for Security Advanced. Triggers on: certificate lifecycle manager, certificate lifecycle manager Part of the Security Advanced skill category.
cert-manager-setup
Cert Manager Setup - Auto-activating skill for DevOps Advanced. Triggers on: cert manager setup, cert manager setup Part of the DevOps Advanced skill category.
api-key-manager
Api Key Manager - Auto-activating skill for Security Fundamentals. Triggers on: api key manager, api key manager Part of the Security Fundamentals skill category.
alertmanager-rules-config
Alertmanager Rules Config - Auto-activating skill for DevOps Advanced. Triggers on: alertmanager rules config, alertmanager rules config Part of the DevOps Advanced skill category.
secrets-manager
AWS Secrets Manager for secure secret storage and rotation. Use when storing credentials, configuring automatic rotation, managing secret versions, retrieving secrets in applications, or integrating with RDS.
persona-project-manager
Coordinate projects — track tasks, schedule meetings, and share docs.
nuget-manager
Manage NuGet packages in .NET projects/solutions. Use this skill when adding, removing, or updating NuGet package versions. It enforces using `dotnet` CLI for package management and provides strict procedures for direct file edits only when updating versions.
cron-manager
定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用。
agent-team-manager
多智能体团队管理。创建、查看、修改、删除 CountBot 的多智能体团队,管理团队成员(角色)和团队级自定义模型配置。当用户要新建 Pipeline/Graph/Council 团队、调整成员分工、修改依赖关系、开关技能系统、设置团队专属模型时使用。
../../../marketing-skill/social-media-manager/SKILL.md
No description provided.
release-manager
Use when the user asks to plan releases, manage changelogs, coordinate deployments, create release branches, or automate versioning.
monorepo-navigator
Monorepo Navigator