nx

Guides Nx workspace tasks, generators, and MCP tools for monorepo development.

23|5|Updated Apr 3, 2025
One-click install
npx skills add https://github.com/LedgerHQ/lumen --skill nx-ledgerhq
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nx
Source: https://github.com/LedgerHQ/lumen/tree/main/.claude/skills/nx
Command: npx skills add https://github.com/LedgerHQ/lumen --skill nx-ledgerhq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working in an Nx monorepo requires knowing the correct project names, targets, and generator options, and guessing them leads to failed commands and misconfigured scaffolding. This Skill directs the AI to use the live Nx MCP server and canonical workspace docs instead of assumptions. ## Core Features & Use Cases - Workspace introspection: Uses Nx MCP tools like nx_workspace and nx_project_details to inspect the project graph, targets, and configuration before answering questions. - Generator-driven scaffolding: Lists generators, reads their schemas, and runs them through the Nx generate UI flow rather than hand-writing files. - Task execution guidance: Runs targets via nx run <project>[:target] and inspects already-running tasks without duplicating continuous processes. - Use Case: When asked to add a new library or run tests in the Lumen monorepo, the assistant queries the live project graph and generator schemas first, then executes the correct Nx command. ## Quick Start Ask the assistant to inspect the Nx workspace and run the test target for a specific project using the MCP tools.

Frequently Asked Questions about nx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a target for a specific Nx project?▼

Run targets with nx run <project>[:target], where targets are defined in each project's project.json or inferred from config. Use the nx_project_details MCP tool to inspect a project's available targets before running them.

How do I use Nx generators to scaffold new code?▼

List available generators with nx_generators, inspect options with nx_generator_schema, then run the flow through nx_open_generate_ui and read results via nx_read_generator_log. This avoids hand-writing files and keeps options minimal.

What is the Nx MCP server and why use it?▼

The Nx MCP server exposes tools like nx_workspace and nx_docs that reflect the live project graph and current Nx documentation. Using it prevents assistants from guessing workspace structure or relying on outdated configuration knowledge.

Can I rerun a task that is already running in Nx?▼

Inspect running tasks with nx_current_running_tasks_details and nx_current_running_task_output, then rerun with nx run <taskId> so it executes in the same Nx context. Do not offer to rerun tasks marked as continuous.

Where are common Nx commands like test and build defined?▼

Canonical commands for test, lint, typecheck, build, and storybook live in the Commands and Libraries sections of AGENTS.md, along with the package-to-lib mapping. The Skill intentionally does not duplicate them.