nx-run-tasks

Execute Nx tasks across projects with run-many and affected workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinating Nx tasks across a multi-project workspace can be error-prone and time-consuming, especially when juggling build, test, lint, and serve targets across many apps. The nx-run-tasks skill provides a consistent interface to trigger and orchestrate these targets, reducing manual command overhead and ensuring consistent workflows.

Core Features & Use Cases

  • Unified Task Execution: Run single targets across projects with nx run <project>:<target> or across many projects with nx run-many.
  • Workspace Visibility: Inspect available targets with nx show project <name> --json to discover what’s possible.
  • Flexible Execution: Supports common package managers (npm/yarn/pnpm) and can integrate with affected, parallelism, and filtering options for CI.

Quick Start

Use the nx-run-tasks skill to execute a specific Nx task across projects, for example nx run myapp:build or nx run-many -t test.

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 Nx tasks across multiple projects in a workspace?

Run Nx tasks across multiple projects using nx run-many -t <target>, or execute a single project target with nx run <project>:<target> to orchestrate build, test, lint, and serve workflows consistently.

How can I discover available build and test targets for an Nx project?

Discover available Nx targets for a project by running nx show project <name> --json, which inspects the workspace configuration to reveal all possible build, test, lint, and serve targets you can execute.

Does Nx task execution work with pnpm and yarn package managers?

Nx task execution works with npm, yarn, and pnpm package managers. The command interface automatically aligns execution with your workspace's configured package manager to ensure consistent task orchestration.

What is the best way to run only Nx tasks affected by recent changes?

Run only affected Nx tasks by integrating the affected workflow with run-many. This allows you to filter and execute build, test, and lint targets exclusively for projects impacted by your recent changes.

Why is coordinating Nx targets across a multi-project workspace error-prone?

Coordinating Nx targets across a multi-project workspace is error-prone due to manual command overhead when juggling build, test, lint, and serve targets across many apps, which a unified task execution interface resolves.