nx-run-tasks

Run Nx tasks for building, testing, linting, and serving projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/braxtondiggs/Chansey --skill nx-run-tasks-braxtondiggs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/braxtondiggs/Chansey/tree/main/.github/skills/nx-run-tasks
Command: npx skills add https://github.com/braxtondiggs/Chansey --skill nx-run-tasks-braxtondiggs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx task runner helps you execute build, test, lint, serve, or any other workspace-defined tasks efficiently.

Core Features & Use Cases

  • Run single tasks: nx run <project>:<task> to execute a specific target for a project.
  • Run multiple tasks: nx run-many -t build test lint to process several targets across projects.
  • Inspect available targets: nx show project <project> --json to view valid targets and options.
  • Run tasks for affected projects: nx affected -t build test lint to operate only on changed projects.
  • Prefix commands when needed: prepend with npx/pnpx/yarn if Nx is not installed globally.

Quick Start

Run a single task with nx run <project>:<task> by replacing <project> and <task> with your actual project name and task.

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 for multiple projects in a monorepo workspace?

Run Nx tasks for multiple projects by using `nx run-many -t build test lint` to process targets across the workspace, or use `nx affected -t build test lint` to operate only on changed projects.

How do I inspect available targets and options for an Nx project?

Inspect available Nx targets for a project by running `nx show project <project> --json`. This outputs valid targets and configuration options defined in the project's project.json or package.json scripts.

What is the best way to execute a specific build or test target in an Nx workspace?

The best way to execute a specific target is running `nx run <project>:<task>`, replacing the placeholders with your actual project name and task. This directly invokes the specific target defined in your workspace configuration.

Do I need Nx installed globally to run workspace tasks?

You do not need Nx installed globally to run workspace tasks. If Nx is not installed globally, prefix commands with npx, pnpx, or yarn to execute build, test, lint, and serve targets successfully.

How does Nx determine available targets when running tasks?

Nx determines available targets by checking the package.json or nx.json configuration files in your workspace. It reads project.json and package.json scripts to identify valid build, test, lint, and serve targets for execution.