nx-run-tasks

Run and coordinate Nx workspace tasks across projects and targets.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/G9000/animaOS-SWARM --skill nx-run-tasks-g9000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/G9000/animaOS-SWARM/tree/main/.agents/skills/nx-run-tasks
Command: npx skills add https://github.com/G9000/animaOS-SWARM --skill nx-run-tasks-g9000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers and CI operators run, coordinate, and understand Nx targets across large monorepo workspaces so tasks like build, test, lint, and serve can be executed correctly and efficiently.

Core Features & Use Cases

  • Discover Targets: Show available project targets and inferred tasks using nx show project <project> --json so you know what can be executed.
  • Run Single & Multiple Tasks: Guidance for nx run <project>:<task>, nx run-many for running tasks across selected projects, and tips for filtering, excluding, and parallelizing runs.
  • Affected Runs & CI Workflows: Use nx affected to run tasks only for changed projects and their dependents, with options to set base/head or specify files for CI optimization.
  • Useful Flags: Explains flags like --skipNxCache, --verbose, --nxBail, --configuration, and how to control parallelism and project selection.

Quick Start

Run the build target for project myapp using Bun-prefixed Nx commands by executing bun x 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 across multiple projects in a monorepo?

Run Nx tasks across multiple projects using `nx run-many` with project filtering and parallel execution flags. You can target specific projects, exclude others, and control parallelism to efficiently execute build, test, or lint targets across your workspace.

What is the best way to run only affected Nx tasks in a CI pipeline?

Run only affected Nx tasks in CI using `nx affected` to execute targets for changed projects and their dependents. You can set base and head references or specify files directly to optimize pipeline execution and avoid unnecessary work.

How do I discover available targets for an Nx project?

Discover available Nx project targets and inferred tasks by running `nx show project <project> --json`. This outputs a JSON object detailing all executable targets so you know exactly what can be run for that specific project.

Does this Nx task runner support Bun-prefixed commands?

Yes, this Nx task runner supports Bun-prefixed commands. You can execute workspace tasks by running `bun x nx run <project>:<task>` to integrate task execution within a Bun-powered development environment.

What flags control cache, configuration, and verbosity when running Nx tasks?

Control Nx task execution using flags like `--skipNxCache` to bypass caching, `--configuration` to select environments, `--verbose` for detailed logs, and `--nxBail` to stop on errors. These flags apply to single runs, run-many, and affected operations.