nx-run-tasks

Run Nx workspace tasks for build, test, lint, or serve.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/johnnystefan/test-saas-business --skill nx-run-tasks-johnnystefan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/johnnystefan/test-saas-business/tree/main/.github/skills/nx-run-tasks
Command: npx skills add https://github.com/johnnystefan/test-saas-business --skill nx-run-tasks-johnnystefan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running Nx workspace tasks requires discovering the right target names, knowing whether to run a single project or multiple, and choosing the correct flags so builds, tests, and lint checks execute consistently across the monorepo.

Core Features & Use Cases

  • Discover Available Targets: Use nx show project projectname --json to inspect target names in project.json or package.json and learn what can be run.
  • Execute Tasks: Run nx run project:task for one-off commands, nx run-many with project filters and exclusions for batch work, or nx affected to limit work to changed projects.
  • Control Execution Behavior: Prefix commands with the workspace package manager when necessary, and use flags such as skipNxCache, verbose, nxBail, and configuration to match CI and local workflows.

Quick Start

Ask the assistant to run nx run admin:serve to start the admin dashboard target.

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

Run Nx tasks across multiple projects using nx run-many with project filters and exclusions, or use nx affected to execute commands only on changed projects within the workspace.

Can I find available target names before running an Nx task?

Yes, you can discover available target names by running nx show project projectname --json to inspect targets defined in project.json or package.json before execution.

How do I skip the Nx cache when running workspace tasks?

Skip the Nx cache during task execution by applying the skipNxCache flag to your command, ensuring builds, tests, and lint checks run from scratch without relying on cached outputs.

Do I need to prefix Nx commands with my package manager?

Prefixing commands with the workspace package manager is supported when necessary, allowing you to match package manager execution conventions for local workflows and CI pipelines.

What is the best way to execute a single-project target in an Nx workspace?

Execute a single-project target by running nx run project:task, which handles one-off commands for building, testing, linting, or serving individual projects within the monorepo.

How do I control verbosity and bail behavior when running Nx tasks?

Control execution behavior by applying verbose and nxBail flags to your commands, adjusting output detail and stopping sequences upon failures during workspace task runs.