nx-run-tasks

Run Nx workspace tasks for build, test, lint, and serve targets.

7|2|Updated Jan 12, 2024
One-click install
npx skills add https://github.com/wghglory/ngx-lift-workspace --skill nx-run-tasks-wghglory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/wghglory/ngx-lift-workspace/tree/main/.opencode/skills/nx-run-tasks
Command: npx skills add https://github.com/wghglory/ngx-lift-workspace --skill nx-run-tasks-wghglory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you run the right tasks in an Nx workspace without guessing command syntax, project names, or task flags.

Core Features & Use Cases

  • Single-task execution: Run build, test, lint, serve, or any other target for one project.
  • Batch workflows: Trigger the same task across multiple projects with filtering and exclusions.
  • CI efficiency: Limit execution to affected projects so large monorepos stay fast and focused.
  • Practical example: Use it when you need to verify one app before release or run validation only on the libraries changed in a pull request.

Quick Start

Ask the skill to run the appropriate Nx task for your target project and tell you the exact command to use.

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, test, and lint tasks for a single project in an Nx monorepo?

To run Nx tasks for a single project, specify the target project and task name like build, test, or lint. This Skill reads your Nx project targets to generate the exact command with correct invocation and flags.

What's the best way to execute tasks only on affected projects in an Nx monorepo CI pipeline?

To execute tasks only on affected projects, use the affected-project CI run mode. This limits task execution to changed projects, keeping large monorepos fast and focused during continuous integration validation.

Can I batch run the same Nx task across multiple projects with exclusions?

Yes, you can batch run the same Nx task across multiple projects. This Skill supports batch workflows that trigger targets with filtering and exclusions across your monorepo workspace.

Does running Nx workspace tasks require knowing the correct package manager context?

Running Nx workspace tasks requires reading the package manager context to ensure commands use the correct nx invocation. This Skill automatically applies the right caching controls and flags for your environment.

Why should I use Nx affected runs instead of running tasks across the entire monorepo?

Using Nx affected runs limits execution to changed libraries or apps, ensuring large monorepos stay fast. It is ideal for verifying only the projects modified in a pull request before release.