nx-workspace

Inspect Nx workspace projects, targets, and dependency graphs using nx CLI commands.

Updated May 8, 2026
Ready to run
npx skills add https://github.com/AshleyZheng5114/smartsheet-clone-frontend --skill nx-workspace-ashleyzheng5114
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: nx-workspace
Source: https://github.com/AshleyZheng5114/smartsheet-clone-frontend/tree/main/smartsheet/.cursor/skills/nx-workspace
Command: npx skills add https://github.com/AshleyZheng5114/smartsheet-clone-frontend --skill nx-workspace-ashleyzheng5114

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Understanding an Nx monorepo's structure, project configuration, and available targets often requires digging through partial config files, which leads to errors like "Cannot find configuration for task". This Skill provides read-only exploration commands that return fully resolved workspace information. ## Core Features & Use Cases - Project Discovery: List and filter projects with nx show projects using globs, tags, targets, and negation patterns. - Resolved Configuration: Retrieve full project configuration including plugin-inferred targets via nx show project <name> --json, avoiding misleading partial project.json reads. - Dependency Graph Analysis: Query the project graph with nx graph --print and jq to find dependents and trace relationships. - Use Case: When an nx command fails with a missing target error, use this Skill to list the project's actual targets and check which projects support the target before rerunning. ## Quick Start Ask the AI to list all projects in this Nx workspace and show the build target configuration for a specific app.

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

Run `nx show projects` to list every project in the workspace. Add `--json` for machine-readable output, or filter with `--projects` using globs, tags like `tag:publishable`, or `--withTarget build` to narrow results.

How do I see the full configuration of an Nx project?▼

Use `nx show project <name> --json` to get the fully resolved configuration, including targets inferred by plugins. Do not read `project.json` directly because it only contains partial configuration.

How do I find which projects depend on a library in Nx?▼

Run `nx graph --print` and pipe it to jq, filtering `.graph.dependencies` for entries whose target matches the library name. This returns all projects that depend on that library.

Why does Nx say 'Cannot find configuration for task'?▼

This error means the target does not exist on the project. Check available targets with `nx show project X --json | jq '.targets | keys'` and find projects that have the target using `nx show projects --withTarget <target>`.

How do I find affected projects in an Nx monorepo?▼

Run `nx show projects --affected` to detect projects changed relative to the base branch. You can specify `--base=main`, compare commits with `--base` and `--head`, or include uncommitted changes with `--uncommitted`.