nx
Installation
SKILL.md
Nx Monorepo
Nx is the project-graph and task layer over an Angular (or mixed) monorepo. Use it the token-cheap way: orient through the CLI's derived graph, and scope every task to the projects a change actually touches - never dump the whole workspace or run every target.
Navigate the project graph, do not read it
- Map the workspace through the CLI, not by opening config files:
nx show projectslists every project;nx show project <name> --jsongives one project's targets, tags, and dependencies;nx graph(interactive) ornx graph --file=graph.jsonis the dependency graph. Read these instead of opening a pile ofproject.json/nx.jsonfiles to reconstruct the structure by hand. - Do not hand the whole graph dump into context to answer a narrow question - query the one project
(
nx show project <name>) or the affected set (below). The full graph is large; pull only the slice the task needs.