nx-run-tasks

Run Nx workspace tasks for specified projects using run, run-many, and affected.

Updated May 14, 2026
One-click install
npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill nx-run-tasks-chroniicallydiistracted
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/chroniicallydiistracted/LorcanaChamp/tree/main/references/lorcana-simulator/.opencode/skills/nx-run-tasks
Command: npx skills add https://github.com/chroniicallydiistracted/LorcanaChamp --skill nx-run-tasks-chroniicallydiistracted

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Nx workspaces can have many projects and task targets, and manually discovering and running the right build, test, lint, or serve commands is time-consuming and error-prone.

Core Features & Use Cases

  • Discovers runnable Nx targets: Helps you identify which projects and targets exist using Nx project/targets introspection.
  • Runs single or multiple tasks: Supports targeted execution for one project target or batching across many projects.
  • Optimizes for CI and changes: Enables “affected” execution so you run tasks only where code changes impact dependent projects.

Use case example: You want to run tests and lint only for the projects impacted by recent changes in a large monorepo, without guessing project names or targets.

Quick Start

Ask the assistant to run Nx for your affected projects by executing the build, test, and lint targets.

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 for only the projects affected by recent changes in an Nx workspace?

Use the nx affected command to run build, test, and lint targets exclusively for projects impacted by recent code changes, optimizing CI execution by skipping unaffected projects.

What is the best way to execute multiple targets across different projects in an Nx monorepo?

Executing multiple targets across an Nx monorepo is best handled by the nx run-many command, which supports batching build, test, and lint tasks across many projects simultaneously.

How do I discover available build and test targets for a specific project in an Nx workspace?

To discover available build and test targets for a specific project in an Nx workspace, use the nx show project <project> --json command to inspect project configurations and runnable targets.

Can I run a single lint or serve task for a specific target using Nx?

Yes, you can run a single lint or serve task for a specific target using the nx run command, which enables targeted execution for one project target within the workspace.

Does Nx support incremental task execution for CI workflows?

Yes, Nx supports incremental task execution for CI workflows through the nx affected command, which runs tasks only where code changes impact dependent projects, reducing unnecessary build and test times.