nx-import

Consolidate separate code repositories into a single Nx monorepo while preserving git history.

3|1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/wahidyankf/ose-primer --skill nx-import-wahidyankf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-import
Source: https://github.com/wahidyankf/ose-primer/tree/main/.opencode/skills/nx-import
Command: npx skills add https://github.com/wahidyankf/ose-primer --skill nx-import-wahidyankf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious manual work of consolidating separate code repositories into a single Nx monorepo, handling git history preservation and all post-import configuration fixes automatically, so you don't have to debug broken builds or missing dependencies after importing projects.

Core Features & Use Cases

  • Git History Preservation: Imports code from source repositories or folders while retaining full commit history for full traceability of code changes.
  • Cross-Repo Compatibility: Supports importing both Nx and non-Nx source repos, including Vite, Next.js, Gradle, and Turborepo projects, with framework-specific guidance for each.
  • Automated Post-Import Fixes: Resolves common issues like pnpm workspace glob errors, TypeScript project reference misconfigurations, missing ESLint/Jest plugins, dependency version conflicts, and frontend/backend configuration mismatches.
  • Use Case: If you are merging three separate backend and frontend repositories into a single Nx monorepo, this Skill handles the entire import process and all required configuration adjustments to get all projects building and testing correctly immediately.

Quick Start

Use the nx-import skill to bring your existing standalone Next.js repository into the current Nx workspace as a new project under apps/, preserving all git history and fixing all required configuration automatically.

Frequently Asked Questions about nx-import

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

FAQPage Schema
How do I import an existing repository into an Nx monorepo while preserving git history?

Importing repositories into an Nx monorepo while preserving git history involves consolidating separate codebases into a single workspace. This process retains full commit traceability and automatically applies required post-import configuration fixes for immediate builds.

What is the best way to migrate a Vite or Next.js project into an Nx workspace?

Migrating a Vite or Next.js project into an Nx workspace is best handled by an automated import process that applies framework-specific configuration adjustments. This ensures frontend projects build correctly immediately after consolidation without manual debugging.

How do I fix pnpm workspace glob errors and TypeScript project references after merging repos?

Fixing pnpm workspace glob errors and TypeScript project references after merging repos requires automated post-import configuration adjustments. This resolves dependency conflicts and sets up project references to ensure all imported projects build and test correctly.

Can I merge multiple separate backend and frontend repositories into a single Nx monorepo?

Yes, you can merge multiple separate backend and frontend repositories into a single Nx monorepo. The process supports cross-repo compatibility for both Nx and non-Nx source projects, handling the entire import and configuration adjustment automatically.

Does importing a Turborepo project into an Nx workspace require manual ESLint and Jest plugin registration?

Importing a Turborepo project into an Nx workspace does not require manual ESLint and Jest plugin registration. The automated post-import fixes handle missing plugin registrations, dependency version conflicts, and framework-specific configuration mismatches automatically.