nx-run-tasks

Runs build, test, lint, and serve tasks in Nx monorepo workspaces.

Updated May 8, 2026
Ready to run
npx skills add https://github.com/AshleyZheng5114/smartsheet-clone-frontend --skill nx-run-tasks-ashleyzheng5114
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/AshleyZheng5114/smartsheet-clone-frontend/tree/main/smartsheet/.cursor/skills/nx-run-tasks
Command: npx skills add https://github.com/AshleyZheng5114/smartsheet-clone-frontend --skill nx-run-tasks-ashleyzheng5114

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running tasks across an Nx monorepo requires knowing the right commands, project names, and flags. This Skill provides the exact Nx CLI patterns for executing single tasks, batch tasks, and affected-only tasks without memorizing the documentation. ## Core Features & Use Cases - Single Task Execution: Run any target on a specific project using nx run <project>:<task>. - Batch Task Execution: Run tasks across multiple projects with nx run-many, including filtering by project patterns, tags, and exclusions. - Affected-Only Runs: Use nx affected to run tasks only on changed projects and their dependents, ideal for CI pipelines. - Use Case: You just modified a shared library in a large monorepo. Instead of testing everything, run nx affected -t test to test only the impacted projects. ## Quick Start Ask the assistant to run the tests for all projects affected by your recent changes in the Nx workspace.

Frequently Asked Questions about nx-run-tasks

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

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

Use `nx run <project>:<task>`, where project is the name defined in package.json or project.json. Run `nx show project <name> --json` first to see which targets are available, including tasks inferred by Nx plugins.

How to run tests only on changed projects in Nx?▼

Use `nx affected -t test` to run tests only on changed projects and their dependents. You can customize the comparison with `--base` and `--head` flags, or pass specific files with `--files`.

How do I run tasks on multiple projects at once in Nx?▼

Use `nx run-many -t build test lint` to run tasks across all projects. Filter with `-p` for specific projects, `--projects` with patterns or tags, `--exclude` to skip projects, and `--parallel` to control concurrency.

Does nx affected work without a git repository?▼

Nx affected relies on git history to compare the base and head commits for change detection. Without git, you can still specify changed files directly using the `--files` flag to determine affected projects.

Why is my Nx task not rerunning after code changes?▼

Nx caches task results, so unchanged inputs return cached output. Pass the `--skipNxCache` flag to force re-execution, or use `--verbose` to inspect what Nx is caching and why.