aj-geddes/useful-ai-prompts10 files

Monorepo Management

>

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:

GuideContents
Npm Workspaces ConfigurationNpm Workspaces Configuration, Lerna Configuration, Turborepo Configuration, Nx Workspace Configuration
Monorepo Directory StructureMonorepo Directory Structure
Workspace DependenciesWorkspace Dependencies
Lerna CommandsLerna Commands
Turborepo CommandsTurborepo Commands
CI/CD for MonorepoCI/CD for Monorepo
Version Management Across PackagesVersion 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

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.

Use this skill