nx-run-tasks

Execute single, multiple, or affected tasks within an Nx monorepo.

Updated Oct 13, 2025
One-click install
npx skills add https://github.com/effinrich/rh-nx-monorepo --skill nx-run-tasks-effinrich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/effinrich/rh-nx-monorepo/tree/main/.cursor/skills/nx-run-tasks
Command: npx skills add https://github.com/effinrich/rh-nx-monorepo --skill nx-run-tasks-effinrich

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the execution of development and build tasks within an Nx monorepo, ensuring consistency and leveraging Nx's caching and affected project capabilities.

Core Features & Use Cases

  • Task Execution: Run single or multiple Nx tasks across projects (e.g., build, test, lint).
  • Affected Commands: Automatically identify and run tasks only on projects impacted by recent code changes.
  • Use Case: When you need to build all applications in the monorepo, or just test the projects that have been modified since the last commit.

Quick Start

Run the test task for all projects in the Nx workspace.

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 only on affected projects in an Nx monorepo?

Run tasks on affected Nx projects by leveraging the Nx project graph to identify code impacted by recent changes, executing builds or tests only on those modified workspaces to save CI time.

What is the best way to execute multiple build and test tasks across an Nx workspace?

Executing multiple Nx workspace tasks is handled by running single or batch task definitions across projects, utilizing Nx caching mechanisms to skip redundant builds and streamline monorepo workflows.

Do I need to understand Nx project configurations to run lint and build tasks?

Understanding Nx project configurations and task definitions is required, because the task execution relies on the Nx project graph to correctly map, cache, and target lint, build, and test workflows.

Can I run a single test task for a specific project in an Nx monorepo?

Running a single test task for a specific project in an Nx monorepo is supported, allowing targeted task execution that leverages the workspace graph to isolate and run individual project tests efficiently.

How does Nx caching work when running monorepo build tasks?

Nx caching works during monorepo task execution by storing build and test outputs, so when identical tasks are triggered again, the workspace retrieves cached results instead of re-running the full process.