nx-workspace

Inspect Nx workspace projects, targets, and dependencies via CLI commands.

2|Updated Sep 2, 2024
One-click install
npx skills add https://github.com/e-burgos/tucu-ui --skill nx-workspace-e-burgos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace
Source: https://github.com/e-burgos/tucu-ui/tree/main/.cursor/skills/nx-workspace
Command: npx skills add https://github.com/e-burgos/tucu-ui --skill nx-workspace-e-burgos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly understand and inspect Nx workspaces to reveal project structure, targets, and dependencies, without changing code.

Core Features & Use Cases

  • Read-only exploration of workspace layout, project configs, targets, and dependencies.
  • Quickly diagnose configuration issues or missing targets in large monorepos.
  • Use with commands like nx show projects, nx show project, and nx graph to surface insights.

Quick Start

Ask it to list projects and show project configurations for a given Nx workspace.

Frequently Asked Questions about nx-workspace

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

FAQPage Schema
How do I list all projects in an Nx workspace?

To list all projects in an Nx workspace, use the `nx show projects` command. This provides a read-only view of your monorepo's project structure, helping you quickly understand the overall layout without modifying any code.

How do I inspect project targets and configurations in an Nx monorepo?

You can inspect project targets and configurations in an Nx monorepo by running `nx show project`. This reveals specific project metadata and target definitions, allowing you to diagnose missing targets or configuration issues across your workspace.

What is the best way to visualize dependencies across Nx projects?

The best way to visualize dependencies across Nx projects is by using the `nx graph` command. This surfaces dependency insights and maps the structural relationships within your monorepo, aiding in diagnosing configuration and dependency issues.

Can I get JSON output from Nx workspace commands for tooling integration?

Yes, Nx workspace commands like `nx show projects` and `nx show project` can return JSON outputs. This allows for structured tooling integration, enabling you to programmatically parse project configurations and workspace metadata for further automation.

Why does my Nx workspace have missing targets or configuration issues?

Missing targets or configuration issues in an Nx workspace often stem from incorrect project.json setups or misconfigured dependencies. You can diagnose these issues by interpreting workspace metadata through read-only inspection commands like `nx show project`.