nrwl avatar

Nx Import

This handles the messy reality of consolidating repositories into an Nx monorepo while preserving git history. It covers the two main strategies: importing subdirectories one at a time (recommended for monorepos) versus whole repositories (for single-project repos only). The real value is in the gotchas it documents. Nx import doesn't merge root dependencies, targetDefaults, or namedInputs, so you'll need to manually diff and reconcile configs. It also botches pnpm workspace globs by adding literal directory names instead of glob patterns, breaking cross-package imports until you fix it. Worth having if you're migrating multiple repos into Nx, since the official docs don't cover half of these issues.

skills.sh installs
2.7K
GitHub stars
30
last updated
Aug 21, 2026

Install

$ npx -y skills add nrwl/nx-ai-agents-config --skill nx-import --agent claude-code

Installs into .claude/skills of the current project.

Files

Quick Start

  • nx import brings code from a source repository or folder into the current workspace, preserving commit history.
  • After nx 22.6.0, nx import responds with .ndjson outputs and follow-up questions. For earlier versions, always run with --no-interactive and specify all flags directly.
  • Run nx import --help for available options.
  • Make sure the destination directory is empty before importing. EXAMPLE: target has libs/utils and libs/models; source has libs/ui and libs/data-access — you cannot import libs/ into libs/ directly. Import each source library individually.

Primary docs:

Read the nx docs if you have the tools for it.

Import Strategy

Subdirectory-at-a-time (nx import <source> apps --source=apps):

Sponsors

Details

Repository
github.com/nrwl/nx-ai-agents-config
Categories
Git & Pull Requests, AI & Agent Building
First seen
Apr 16, 2026

More from nrwl/nx-ai-agents-config

All 7
1qodo-ai avatarqodo-get-rulesqodo-ai/qodo-skillsLoads coding rules from Qodo most relevant to the current coding task by generating a semantic search query from the assignment. Use when Qodo is configured and2.6Kskills.sh installs
2paulrberg avatarbump-releasepaulrberg/agent-skillsCut a release: bump versions, write changelogs, commit, tag.2.4Kskills.sh installs
3bytedance avatarweb-design-guidelinesbytedance/deer-flowReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site 2.3Kskills.sh installs
4yoshiko-pg avatardifityoshiko-pg/difitAsk the user for a code review through difit after code changes.2.3Kskills.sh installs
5cursor avatarloop-on-cicursor/pluginsMonitor PR checks and fix failures until green. Uses gh pr checks as the source of truth for PR-attached checks.2.3Kskills.sh installs
6cursor avatarthermoscursor/pluginsLaunch both thermo-nuclear review subagents in parallel, then synthesize their findings.2.3Kskills.sh installs