nx-run-tasks

Automate Nx workspace task orchestration across projects and targets.

Updated Apr 11, 2025
One-click install
npx skills add https://github.com/pabloimrik17/monolab --skill nx-run-tasks-pabloimrik17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/pabloimrik17/monolab/tree/main/.opencode/skills/nx-run-tasks
Command: npx skills add https://github.com/pabloimrik17/monolab --skill nx-run-tasks-pabloimrik17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

nx-run-tasks addresses the challenge of coordinating and executing Nx workspace tasks across projects, reducing manual overhead and ensuring consistent task execution.

Core Features & Use Cases

  • Run single or multiple targets with nx run and nx run-many to cover common CI and local development workflows.
  • Inspect project configuration and targets using Nx CLI helpers like nx show project <name> --json to plan changes before execution.
  • Use with nx affected to optimize tasks by focusing on impacted projects and leveraging parallel execution for faster feedback loops.

Quick Start

Run a single task for a project by saying: nx run <project>:<task> to execute the desired 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 tasks across multiple projects in an Nx workspace?

The nx run-many command automates orchestrating Nx workspace tasks across multiple projects, applying parallel execution to optimize builds, tests, and linting during local development and CI workflows.

What is the best way to execute only impacted targets in an Nx monorepo?

Using nx affected optimizes Nx monorepo task execution by targeting only impacted projects, leveraging parallel execution for faster feedback loops and reducing manual overhead during development.

How do I inspect an Nx project configuration before running a target?

You can inspect an Nx project configuration and available targets using the nx show project command with the --json flag, allowing you to plan changes and verify setup before executing builds or tests.

Can I execute a single build or test target for a specific Nx project?

Yes, you can execute a single build or test target for a specific Nx project using the nx run command with the project and target names, providing reliable task execution for local development workflows.

Does Nx task automation support parallel execution for linting and serving?

Yes, Nx task automation supports parallel execution for linting, serving, builds, and tests across workspace projects, ensuring consistent task execution while optimizing feedback loops in monorepos.