nx-run-tasks

Run build, test, and lint tasks for affected projects in an Nx workspace.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/ViewableGravy/better-ecs --skill nx-run-tasks-viewablegravy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/ViewableGravy/better-ecs/tree/main/.github/skills/nx-run-tasks
Command: npx skills add https://github.com/ViewableGravy/better-ecs --skill nx-run-tasks-viewablegravy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of running various tasks (build, test, lint, etc.) within an Nx monorepo, ensuring efficient development workflows.

Core Features & Use Cases

  • Task Execution: Run single or multiple tasks across projects in an Nx workspace.
  • Affected Commands: Efficiently execute tasks only on projects impacted by recent changes.
  • Use Case: When you need to build and test only the projects that have been modified in your large Nx monorepo, this skill helps you do that quickly.

Quick Start

Use the nx-run-tasks skill to run the 'build' and 'test' tasks for all affected projects.

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

To run affected tasks in an Nx monorepo, you can execute commands that analyze code changes and run build or test tasks only on the impacted projects. This optimizes CI/CD workflows by skipping unaffected projects.

What is the best way to execute multiple tasks across different projects in an Nx workspace?

Executing multiple tasks across an Nx workspace involves running single or combined task commands that integrate with Nx's caching and project dependency analysis. This ensures efficient task execution and prevents redundant processing.

Can I use this to run lint tasks alongside build and test commands in my Nx workspace?

Yes, you can run lint tasks alongside build and test commands in your Nx workspace. The skill facilitates the execution of various tasks, including lint, build, and test, across single or multiple projects.

Does Nx workspace task execution support caching for optimized CI/CD pipelines?

Nx workspace task execution supports caching for optimized CI/CD pipelines. It integrates directly with Nx's caching mechanisms and project dependency analysis to streamline development workflows and reduce build times.

Why should I run affected commands instead of all tasks when working in a large Nx monorepo?

Running affected commands in a large Nx monorepo saves time by executing tasks only on projects impacted by recent code changes. This targeted approach leverages dependency analysis to avoid running unnecessary builds and tests.