nx-workspace

Explore Nx workspace projects, targets, and dependencies via nx CLI JSON output.

6|4|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/Montte-erp/montte-nx --skill nx-workspace-montte-erp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace
Source: https://github.com/Montte-erp/montte-nx/tree/main/.opencode/skills/nx-workspace
Command: npx skills add https://github.com/Montte-erp/montte-nx --skill nx-workspace-montte-erp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers quickly discover the projects, targets, and dependency relationships inside an Nx monorepo so they can inspect configurations and troubleshoot failing Nx tasks without guesswork.

Core Features & Use Cases

  • Project discovery: List all workspace projects and filter by pattern, tag, type, or target to find relevant apps and libs.
  • Configuration inspection: Retrieve full resolved project and target configurations to see executors, commands, options, inputs, and outputs.
  • Dependency and affected analysis: Use the project graph and affected commands to find dependents and determine which projects change with a patch.
  • Use Case: When an Nx task fails with "Cannot find configuration for task", use this skill to list project targets, check nx.json targetDefaults, and locate the missing configuration.

Quick Start

Run nx show projects --json to list all projects, then run nx show project <project-name> --json to inspect its targets and configuration.

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 monorepo?

To list Nx monorepo projects, run `nx show projects --json` to parse and filter apps and libraries by pattern, tag, type, or target for programmatic project discovery.

Why does my Nx task fail with cannot find configuration for task?

When an Nx task fails with cannot find configuration, use this skill to list project targets, check nx.json targetDefaults, and inspect the full resolved project configuration to locate missing executors or options.

How do I find which projects are affected by a change in an Nx workspace?

To find affected projects in an Nx workspace, use the project graph and affected commands to analyze dependency relationships and determine which apps and libs change with a specific patch.

Can I inspect resolved target configurations and executors in an Nx workspace?

Yes, you can inspect resolved target configurations in an Nx workspace by running `nx show project <project-name> --json` to view executors, commands, options, inputs, and outputs.

Do I need the nx CLI installed to explore workspace project dependencies?

Yes, exploring Nx workspace project dependencies requires access to workspace files and the nx CLI or a package manager runner, utilizing commands with `--json` output for programmatic parsing.