nx-run-tasks

Run Nx tasks across projects with run, run-many, and affected commands.

Updated Dec 20, 2025
One-click install
npx skills add https://github.com/iqbal125/typescript_projects --skill nx-run-tasks-iqbal125
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/iqbal125/typescript_projects/tree/main/nestjs-react-monorepo-nx/.agents/skills/nx-run-tasks
Command: npx skills add https://github.com/iqbal125/typescript_projects --skill nx-run-tasks-iqbal125

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the challenge of running Nx tasks across a workspace.

Core Features & Use Cases

  • Execute single tasks or run-many targets across projects with nx run <project>:<task>.
  • Inspect available targets by querying nx show project <project> --json to tailor task execution.
  • Use in CI and local development to run affected tasks or selective project scopes efficiently.

Quick Start

Run a specific Nx task by providing the project and task, for example nx run myapp:build.

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 Nx tasks like build and test across multiple projects in a workspace?

To run Nx tasks across a workspace, use the nx run-many command to execute targets like build, test, lint, and serve across selected projects. It supports parallel execution and optional package manager prefixes like npx or yarn.

What is the best way to execute only the tasks affected by my recent code changes in an Nx workspace?

The best way to run affected Nx tasks is by using the nx affected command. This executes targets such as test or lint only on projects impacted by your changes, making it highly efficient for both local development and CI environments.

How do I check available targets before running a specific Nx task?

You can inspect available targets by running nx show project <project> --json. This queries the project configuration from package.json or project.json, allowing you to tailor your task execution before running nx run.

Can I use package managers like yarn or pnpm to execute Nx workspace tasks?

Yes, you can execute Nx workspace tasks using package managers. The task runner integrates optional prefixes such as npx, pnpx, or yarn to run commands like build, test, and serve across your projects.

Does this Nx task runner support parallel execution for multiple project targets?

Yes, the Nx task runner supports parallel execution options. When running multiple targets like build and test across projects using nx run-many, you can configure parallel execution to optimize workflow speed.