Monorepo Management

Monorepo Management

Helps an agent set up and manage monorepos with Lerna, Turborepo and Nx: workspaces, shared dependencies, versioning across packages and cross-package testing.

Skill files10 files

references/

scripts/

templates/

SKILL.md94 lines
1
---
2
name: monorepo-management
3
description: >
4
Manage monorepo architectures using Lerna, Turborepo, and Nx. Configure
5
workspaces, dependency versioning, and cross-package testing.
6
---
7
8
# Monorepo Management
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Establish scalable monorepo structures that support multiple interdependent packages while maintaining build efficiency, dependency management, and deployment coordination.
21
22
## When to Use
23
24
- Multi-package projects
25
- Shared libraries across services
26
- Microservices architecture
27
- Plugin-based systems
28
- Multi-app platforms (web + mobile)
29
- Workspace dependency management
30
- Scaled team development
31
32
## Quick Start
33
34
Minimal working example:
35
36
```json
37
{
38
"name": "monorepo-root",
39
"version": "1.0.0",
40
"private": true,
41
"workspaces": ["packages/*", "apps/*"],
42
"devDependencies": {
43
"lerna": "^7.0.0",
44
"turbo": "^1.10.0"
45
},
46
"scripts": {
47
"lint": "npm run lint -r",
48
"test": "npm run test -r",
49
"build": "npm run build -r",
50
"clean": "npm run clean -r"
51
}
52
}
53
```
54
55
## Reference Guides
56
57
Detailed implementations in the `references/` directory:
58
59
| Guide | Contents |
60
|---|---|
61
| [Npm Workspaces Configuration](references/npm-workspaces-configuration.md) | Npm Workspaces Configuration, Lerna Configuration, Turborepo Configuration, Nx Workspace Configuration |
62
| [Monorepo Directory Structure](references/monorepo-directory-structure.md) | Monorepo Directory Structure |
63
| [Workspace Dependencies](references/workspace-dependencies.md) | Workspace Dependencies |
64
| [Lerna Commands](references/lerna-commands.md) | Lerna Commands |
65
| [Turborepo Commands](references/turborepo-commands.md) | Turborepo Commands |
66
| [CI/CD for Monorepo](references/cicd-for-monorepo.md) | CI/CD for Monorepo |
67
| [Version Management Across Packages](references/version-management-across-packages.md) | Version Management Across Packages |
68
69
## Best Practices
70
71
### ✅ DO
72
73
- Use workspace protocols for dependencies
74
- Implement shared tsconfig for consistency
75
- Cache build outputs in CI/CD
76
- Filter packages in CI to avoid unnecessary builds
77
- Hoist common dependencies
78
- Document workspace structure
79
- Use consistent versioning strategy
80
- Implement pre-commit hooks across workspace
81
- Test cross-package dependencies
82
- Version packages independently when appropriate
83
84
### ❌ DON'T
85
86
- Create circular dependencies
87
- Use hardcoded versions for workspace packages
88
- Build all packages when only one changed
89
- Forget to update lock files
90
- Ignore workspace boundaries
91
- Create tightly coupled packages
92
- Skip dependency management
93
- Use different tooling per package
94

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…