monorepo-manager
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "monorepo-manager":https://skillpi.com/zh/skills/deepskill-913fb7e9d6acb099b12e43fe8dcf377689ce46ba258143333a26120308c5ffc2。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Monorepo Manager:用于在单体仓库中管理依赖、工作区配置和跨包关系的工具集。适用于使用 npm workspaces、pnpm、Yarn、Turborepo 或 Nx 同步包间依赖版本、解决版本冲突、分析依赖图或设置构建编排的场景。触发词包括 monorepo、workspace、dependency sync、version conflict、turborepo、nx、pnpm workspace、cross-package、internal dependency。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
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.jsonfor"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
dependsOnrelationships - 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 orresolutionsin 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
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决现代 monorepo 开发中的核心痛点:依赖版本同步、冲突解决、构建优化
- 适用于 npm/pnpm/yarn/Turborepo/Nx 等多种主流工具链
亮点
- 触发词覆盖全面,包含 monorepo、workspace、dependency sync、turborepo 等关键术语
- 边界清晰,能有效区分于普通包管理工具
亮点
- 结构完整,分步骤指导清晰,含端到端示例
- frontmatter 完整,文档长度适中
亮点
- 工具来源明确,参数建议合理
- 覆盖主要异常场景,对 breaking changes 有明确提示
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。