nrwl avatar

Nx Workspace

This is your read-only map for Nx monorepos. It teaches Claude to use `nx show project --json` instead of reading project.json files directly, which is key since project.json only shows partial config while the CLI command returns the full resolved configuration including plugin-inferred targets. You'd reach for this when debugging why an nx command failed, checking what targets are available before running tasks, or answering questions about workspace structure and dependencies. The skill emphasizes programmatic answers using jq to parse JSON output rather than manually counting projects or parsing text. One thing that stands out is the detailed coverage of project filtering syntax across commands, which is genuinely useful since those glob patterns and tag filters work across run-many, release, and other nx commands.

skills.sh installs
88.7K
GitHub stars
30
last updated
Aug 21, 2026

Install

$ npx -y skills add nrwl/nx-ai-agents-config --skill nx-workspace --agent claude-code

Installs into .claude/skills of the current project.

Files

Nx Workspace Exploration

This skill provides read-only exploration of Nx workspaces. Use it to understand workspace structure, project configuration, available targets, and dependencies.

Keep in mind that you might have to prefix commands with npx/pnpx/yarn if nx isn't installed globally. Check the lockfile to determine the package manager in use.

Listing Projects

Use nx show projects to list projects in the workspace.

The project filtering syntax (-p/--projects) works across many Nx commands including nx run-many, nx release, nx show projects, and more. Filters support explicit names, glob patterns, tag references (e.g. tag:name), directories, and negation (e.g. !project-name).

# List all projects
nx show projects

# Filter by pattern (glob)
nx show projects --projects "apps/*"
nx show projects --projects "shared-*"

# Filter by tag
nx show projects --projects "tag:publishable"
nx show projects -p 'tag:publishable,!tag:internal'

# Filter by target (projects that have a specific target)
nx show projects --withTarget build

Sponsors

Details

Repository
github.com/nrwl/nx-ai-agents-config
Categories
AI & Agent Building, Debugging

More from nrwl/nx-ai-agents-config

All 7
1addyosmani avatarcode-review-and-qualityaddyosmani/agent-skillsConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to ass84.1Kskills.sh installs
2addyosmani avatarsecurity-and-hardeningaddyosmani/agent-skillsHardens code against vulnerabilities. Use when handling user input, authentication, data storage, or external integrations. Use when building any feature that a81.4Kskills.sh installs
3addyosmani avatarperformance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regres75.2Kskills.sh installs
4addyosmani avatarspec-driven-developmentaddyosmani/agent-skillsCreates specs before coding. Use when starting a new project, feature, or significant change and no specification exists yet. Use when requirements are unclear,74.7Kskills.sh installs
5addyosmani avatarplanning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large 73.5Kskills.sh installs
6addyosmani avatardocumentation-and-adrsaddyosmani/agent-skillsRecords decisions and documentation. Use when making architectural decisions, changing public APIs, shipping features, or when you need to record context that f73.5Kskills.sh installs