nx-import

Import multiple repositories into a single Nx workspace while preserving git histories.

Updated Apr 11, 2025
One-click install
npx skills add https://github.com/pabloimrik17/monolab --skill nx-import-pabloimrik17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-import
Source: https://github.com/pabloimrik17/monolab/tree/main/.opencode/skills/nx-import
Command: npx skills add https://github.com/pabloimrik17/monolab --skill nx-import-pabloimrik17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Import, merge, or consolidate repositories into a single Nx workspace, enabling a unified development flow and centralized tooling.

Core Features & Use Cases

  • Import and merge multiple repositories into apps/ and libs/ while preserving commit histories.
  • Normalize project layout in a monorepo and enable single-point tooling, scripts, and CI configuration.
  • Seamlessly adopt Nx across teams, enabling consistent workflows and build/test pipelines.

Quick Start

Begin by selecting the source repositories to import and execute an nx import in the target workspace to merge them into a single Nx-enabled project structure.

Frequently Asked Questions about nx-import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I merge multiple repositories into a single Nx workspace?

Merging multiple repositories into an Nx workspace involves executing an import process that moves projects into apps/ and libs/ directories while preserving commit histories. This standardizes project structure and consolidates microservices into one monorepo.

Can I preserve git histories when importing repos into a monorepo?

Yes, importing repos into a monorepo preserves git histories for auditability. The process enforces Nx workspace requirements and guides you through conflicts, dependencies, and top-level configuration during the import to maintain historical integrity.

What is the best way to consolidate microservices into a monorepo?

Consolidating microservices into a monorepo is best achieved by importing and merging multiple repositories into a single Nx-enabled workspace. This normalizes the project layout and enables single-point tooling, scripts, and CI configuration.

Does importing projects into an Nx workspace move them into apps and libs directories?

Yes, importing projects into an Nx workspace moves them into apps/ and libs/ directories to normalize the project layout. This enables single-point tooling, scripts, and CI configuration while adopting Nx across teams.

How do I handle dependencies and conflicts when migrating code to an Nx workspace?

When migrating code to an Nx workspace, the import process guides you through dependencies and conflicts. It enforces Nx workspace requirements and assists with top-level configuration to ensure a unified development flow.

Why normalize project layout in a monorepo?

Normalizing project layout in a monorepo enables centralized tooling, consistent workflows, and unified build and test pipelines. By importing projects into apps/ and libs/ directories, teams adopt Nx seamlessly and standardize CI configuration.