nx-workspace

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

3|Updated May 14, 2026
One-click install
npx skills add https://github.com/jbadeau/fabster --skill nx-workspace-jbadeau
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace
Source: https://github.com/jbadeau/fabster/tree/main/.cursor/skills/nx-workspace
Command: npx skills add https://github.com/jbadeau/fabster --skill nx-workspace-jbadeau

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 requires digging through scattered config files, and nx commands often fail with unclear errors like "Cannot find configuration for task". This Skill provides read-only exploration commands that answer workspace questions and diagnose nx task failures directly. ## Core Features & Use Cases - Project Discovery: List and filter projects with nx show projects using globs, tags, target filters, and negation patterns. - Resolved Configuration: Retrieve full project configuration including plugin-inferred targets via nx show project <name> --json, avoiding the trap of reading partial project.json files. - Dependency Graph Queries: Find what depends on a library or inspect project relationships using nx graph --print with jq. - Troubleshooting: Diagnose "Cannot find configuration for task" errors and stale workspace state with targeted commands. - Use Case: An agent needs to run tests for a library but the command fails. Use this Skill to check which targets actually exist on the project, then run the correct one. ## Quick Start Ask the AI to list all projects in this Nx workspace and show the build target configuration for a specific project.

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 all workspace projects. Add `--json` for structured output, or filter with `--projects` using globs, tags like `tag:publishable`, or `--withTarget build` to find projects with specific targets.

How to find what targets a project has in Nx?

Run `nx show project <name> --json | jq '.targets | keys'` to list all targets. This returns the full resolved configuration including targets inferred by Nx plugins, which reading project.json directly would miss.

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'`, or find which projects have that target using `nx show projects --withTarget <target>`.

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

Use the project graph: `nx graph --print | jq '.graph.dependencies | to_entries[] | select(.value[].target == "lib-name") | .key'`. This returns all projects that depend on the specified library.

Should I read project.json to see Nx project configuration?

No, project.json only contains partial configuration. Use `nx show project <name> --json` instead, which returns the fully resolved config including targets inferred by Nx plugins.

How do I fix Nx workspace out of sync errors?

Run `nx sync` to resynchronize the workspace. If the problem persists due to stale cache, run `nx reset` to clear the Nx cache and daemon state.