src/orchestrator/plugins/nx/SKILL.md
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'.
npx skillsauth add etylsarin/opencastle nx-workspaceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 only
yarn nx run <project-name>:lint --fix
yarn nx run <project-name>:lint-styles --fix # CSS/SCSS
yarn nx affected -t lint
yarn nx run <project-name>:build
yarn nx affected -t build
yarn 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 test
yarn 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 --fix
reports/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-interactive
CRITICAL: 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.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.