1. Habit
  2. Skills
  3. Nx Workspace skill
nrwl · 73K installs

Nx Workspace skill
Runs by itself, every Monday.

A current map of your monorepo.

Install the Nx Workspace skill and make it a habit: follow https://gethabit.dev/skills/nrwl/nx-workspace.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

73K installs29 starsMIT licenceSource on GitHub ↗

Nx Workspace

by nrwl · 73K installs

The skill

The nx workspace skill helps your agent explore an Nx monorepo read-only: list and filter projects, read full resolved targets, check nx.json and query the project graph, for teams who work in Nx workspaces.

Only when you ask.

The habit

A current map of your monorepo.

↻ Runs by itselfevery Monday

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one workspace map per run.

  1. 01

    Pick the runner

    Your agent checks the lockfile to know whether to prefix nx with npx, pnpx or yarn.

  2. 02

    List projects

    It runs nx show projects --json and counts them with jq.

  3. 03

    Read targets

    For each project it runs nx show project <name> --json instead of reading project.json.

  4. 04

    Read the graph

    It runs nx graph --print to collect dependency edges.

  5. 05

    Read nx.json

    It notes targetDefaults, namedInputs and plugins.

  6. 06

    Diff and write

    It compares with the last map and writes new projects, removed targets and new edges.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Nx Workspace skill helps.

Use it when

  • ✓ You need to know what is in a monorepo
  • ✓ You look up how to build or test a project
  • ✓ You want to see what depends on a library

Skip it when

  • – The repo does not use Nx
  • – You want to change config, not read it

Questions

Nx Workspace skill, answered.

Does it change the workspace?

No. The skill is read-only exploration.

Why not read project.json?

The skill says it holds only part of the config; nx show project --json includes inferred targets.

How do I install the Nx Workspace skill?

Copy the prompt at the top into your agent. It installs the skill from nrwl/nx-ai-agents-config and sets up the habit. Or run npx skills add nrwl/nx-ai-agents-config --skill nx-workspace.

Is the Nx Workspace skill free?

Yes. It is published under MIT. Habit is free too.

Nx Workspace. Now as a habit.

Install the Nx Workspace skill and make it a habit: follow https://gethabit.dev/skills/nrwl/nx-workspace.md

  • Free
  • No account
  • Undo in one line

All nrwl skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by nrwl, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.