nx-run-tasks

Execute build, test, lint, and serve tasks in an Nx monorepo.

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

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 optimization capabilities.

Core Features & Use Cases

  • Task Execution: Run single or multiple Nx tasks (build, test, lint, serve, etc.) across projects.
  • Affected Commands: Efficiently run tasks only on projects impacted by recent code changes, ideal for CI/CD pipelines.
  • Use Case: When a developer needs to build all applications and test all libraries in the monorepo, this Skill can execute nx run-many -t build test.

Quick Start

Run the build and test tasks 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 build and test tasks across multiple projects in an Nx monorepo?

To run build and test tasks in an Nx monorepo, you can execute commands like `nx run-many -t build test` to process all targeted projects. This utilizes Nx's caching and dependency graph to optimize the execution.

How do I run tasks only on projects affected by recent code changes?

Running tasks on affected projects in an Nx workspace filters execution to only code impacted by recent changes. This is ideal for CI/CD pipelines, reducing processing time by leveraging the dependency graph.

Can I execute lint and serve operations for a single project in an Nx workspace?

Yes, you can execute predefined lint and serve operations for a single project within an Nx workspace. This allows targeted task execution alongside the ability to run tasks across multiple projects.

Does Nx workspace task execution support caching for optimized builds?

Nx workspace task execution supports caching to optimize builds and tests. By utilizing the dependency graph and caching mechanism, it avoids redundant processing and speeds up task operations.

What is the best way to automate monorepo tasks in a CI pipeline?

Automating monorepo tasks in a CI pipeline is best achieved by running affected commands based on code changes. This ensures only impacted projects are built or tested, leveraging Nx caching for efficiency.