Specification
- Skill ID
- aj-geddes/useful-ai-prompts/monorepo-management
- Publisher
- aj-geddes
- Repository
- useful-ai-prompts
- Installs
- 0
- Files
- 10
- Synced
- Sep 23, 2026
How to use it
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
aj-geddes/useful-ai-prompts/monorepo-managementInstalls these files- SKILL.md
- references/cicd-for-monorepo.md
- references/lerna-commands.md
- references/monorepo-directory-structure.md
- references/npm-workspaces-configuration.md
- references/turborepo-commands.md
- references/version-management-across-packages.md
- references/workspace-dependencies.md
- scripts/validate-pipeline.sh
- templates/pipeline.yaml
What this skill tells the agent
Monorepo Management
Table of Contents
- Overview
- When to Use
- Quick Start
- Reference Guides
- Best Practices
Overview
Establish scalable monorepo structures that support multiple interdependent packages while maintaining build efficiency, dependency management, and deployment coordination.
When to Use
- Multi-package projects
- Shared libraries across services
- Microservices architecture
- Plugin-based systems
- Multi-app platforms (web + mobile)
- Workspace dependency management
- Scaled team development
Quick Start
Minimal working example:
{
"name": "monorepo-root",
"version": "1.0.0",
"private": true,
"workspaces": ["packages/*", "apps/*"],
"devDependencies": {
"lerna": "^7.0.0",
"turbo": "^1.10.0"
},
"scripts": {
"lint": "npm run lint -r",
"test": "npm run test -r",
"build": "npm run build -r",
"clean": "npm run clean -r"
}
}Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Npm Workspaces Configuration | Npm Workspaces Configuration, Lerna Configuration, Turborepo Configuration, Nx Workspace Configuration |
| Monorepo Directory Structure | Monorepo Directory Structure |
| Workspace Dependencies | Workspace Dependencies |
| Lerna Commands | Lerna Commands |
| Turborepo Commands | Turborepo Commands |
| CI/CD for Monorepo | CI/CD for Monorepo |
| Version Management Across Packages | Version Management Across Packages |
Best Practices
✅ DO
- Use workspace protocols for dependencies
- Implement shared tsconfig for consistency
- Cache build outputs in CI/CD
- Filter packages in CI to avoid unnecessary builds
- Hoist common dependencies
- Document workspace structure
- Use consistent versioning strategy
- Implement pre-commit hooks across workspace
- Test cross-package dependencies
- Version packages independently when appropriate
❌ DON'T
- Create circular dependencies
- Use hardcoded versions for workspace packages
- Build all packages when only one changed
- Forget to update lock files
- Ignore workspace boundaries
- Create tightly coupled packages
- Skip dependency management
- Use different tooling per package
More from aj-geddes
Use this skill in a project
Open any RiverX project, search the Skills panel for aj-geddes/useful-ai-prompts/monorepo-management, and install it in one click.
