Run and generate NX targets, configure project.json, and visualize dependency graphs. Use when you say: 'run affected tests', 'nx generate a library', 'configure project.json', or 'show dependency graph'.
100
100%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
yarn nx run <project-name>:test
yarn nx run <project-name>:test --coverage
yarn nx run <project-name>:test -u # Update snapshots
yarn nx affected -t test # Affected tests onlyyarn nx run <project-name>:lint --fix
yarn nx run <project-name>:lint-styles --fix # CSS/SCSS
yarn nx affected -t lintyarn nx run <project-name>:build
yarn nx affected -t buildyarn nx run <project-name>:serve
yarn nx run <project-name>:dev# Generate a library
yarn nx generate @nrwl/js:library ui --no-interactive
# Run affected builds/tests
yarn nx affected -t build
yarn nx affected -t testyarn nx format --fix# NEVER use these:
npm test | npm run test | npm run lint | npm run build
npm run dev | npm start | npx jest | npx eslint
jest --coverage | eslint --fixreports/coverage/jest/.--fix flag.yarn nx run <project>:lint-styles --fix for CSS/SCSS.yarn nx run <project-name>:<target> for explicit runs.yarn nx affected -t <target> for multi-project changes.The NX MCP server provides tools for understanding and working with the workspace. Use these tools instead of guessing about workspace structure:
| Tool | When to Use |
|---|---|
nx_workspace | First — understand workspace architecture, get errors |
nx_docs | Configuration questions, best practices (always check before assuming) |
nx_project_details | Inspect a specific project's targets, config, and dependencies |
nx_visualize_graph | Visualize project/task dependency graphs |
nx_generators | List available generators (plugin + local) |
nx_generator_schema | Get schema details for a specific generator |
nx_available_plugins | Discover installable plugins when no existing generator fits |
nx_current_running_tasks_details | Monitor running/completed/failed tasks |
nx_current_running_task_output | Get terminal output for a specific task |
See REFERENCE.md for generator schemas and project.json examples.
nx_generators MCP tool (plugin + local workspace generators).nx_available_plugins; only fall back to manual creation after exhausting all generator options.nx_generator_schema — note required options, defaults, and file structure impactsyarn nx generate <generator-name> <options> --dry-run --no-interactive # optional preview
yarn nx generate <generator-name> <options> --no-interactiveCRITICAL: Always include --no-interactive to prevent prompts that hang execution.
CRITICAL: Verify cwd before running — generators may use it to determine file placement.
On failure: read the error, adjust options, and retry. Use the self-improvement skill for non-obvious fixes.
yarn nx format --fixnx_current_running_tasks_details to check for active/completed/failed tasksnx_current_running_task_output to get terminal output for a specific taskyarn nx run <taskId> to preserve NX contextserve) are already running — don't rerun, just check outputSee project.instructions.md for the full project name → location mapping.
f5c8508
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.