nx-monorepo

Detect Nx workspaces by checking for nx.json and print a structured layout map.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/plutowang/term.conf --skill nx-monorepo-plutowang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-monorepo
Source: https://github.com/plutowang/term.conf/tree/main/opencode/skills/global/nx-monorepo
Command: npx skills add https://github.com/plutowang/term.conf --skill nx-monorepo-plutowang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams quickly identify whether a repository uses an Nx monorepo layout or a standard layout, providing a clear map of apps/libs and their source structure to streamline navigation and code generation.

Core Features & Use Cases

  • Workspace detection: Detect Nx workspace by presence of nx.json at root; otherwise assume standard layout.
  • Layout mapping: If Nx, outline apps/<app-name>/src/ and libs/<lib-name>/src/; if standard, outline frontend/backend structure like src/app/, src/components/, cmd/, internal/, pkg/.
  • Usage scenarios: Use it when onboarding new repos, planning code organization, or generating imports and paths across projects.

Quick Start

Run the nx-monorepo skill against your repo root to classify the layout and receive a structured layout map.

Frequently Asked Questions about nx-monorepo

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

FAQPage Schema
How do I detect if a repository uses an Nx monorepo layout?

Detect an Nx monorepo layout by checking for an nx.json file at the repository root. If present, the repo uses the Nx workspace structure; otherwise, it assumes a standard layout.

What is the difference between Nx and standard project structure layouts?

Nx layouts organize code into apps/<app-name>/src and libs/<lib-name>/src directories, while standard layouts use structures like src/app, src/components, cmd, internal, or pkg for frontend and backend separation.

How do I map apps and libs source paths in an Nx workspace?

Map Nx workspace source paths by outlining the apps/<app-name>/src and libs/<lib-name>/src directories to print a structured map, which assists tooling, code navigation, and import generation.

Can I use this layout detection for standard frontend and backend structures?

Yes, layout detection applies to standard frontend and backend structures by outlining src/app, src/components, cmd, internal, and pkg directories to guide file path reasoning when nx.json is absent.

When do I need to run Nx layout detection on my codebase?

Run Nx layout detection during repository onboarding, code organization planning, or when generating imports and paths across projects to ensure accurate file navigation and structure mapping.

Why does code navigation fail in a monorepo with multiple apps and libs?

Code navigation fails when the monorepo layout is unclassified. Detecting the Nx workspace structure and mapping apps/libs source paths provides the structured layout needed for accurate import reasoning.