nx-run-tasks

Runs build, test, lint, and other targets in Nx workspaces via CLI commands.

3|Updated May 14, 2026
One-click install
npx skills add https://github.com/jbadeau/fabster --skill nx-run-tasks-jbadeau
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/jbadeau/fabster/tree/main/.cursor/skills/nx-run-tasks
Command: npx skills add https://github.com/jbadeau/fabster --skill nx-run-tasks-jbadeau

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers working in Nx monorepos often struggle to discover which targets exist across projects and how to run them efficiently, especially when filtering by project, tag, or affected code. ## Core Features & Use Cases - Target Discovery: Inspect available targets per project using nx show project <name> --json, including inferred targets from Nx plugins. - Single and Multi-Project Execution: Run one target with nx run <project>:<task> or many with nx run-many -t build test lint, with filtering via -p, --exclude, and --parallel. - Affected-Based Execution: Use nx affected -t build test lint to run tasks only on changed projects and their dependents, ideal for CI pipelines. - Use Case: In a large monorepo CI job, run nx affected -t test --base=main --head=HEAD to test only the projects impacted by a pull request instead of the entire workspace. ## Quick Start Ask the assistant to run the test target for a specific project in this Nx workspace, or to run builds only for projects affected by recent changes.

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 a task for a specific Nx project?

Use `nx run <project>:<task>`, where the project name comes from package.json or project.json. For example, `nx run myapp:build` runs the build target for the myapp project.

How to run tests only on affected projects in Nx?

Run `nx affected -t test` to execute tests only on changed projects and their dependents. Customize the comparison with `--base` and `--head`, or pass specific files with `--files`.

How do I see which targets an Nx project has?

Run `nx show project <projectname> --json` to list all targets, including ones inferred by Nx plugins. Checking package.json scripts or project.json alone may miss plugin-inferred targets.

Does nx run-many support filtering projects by tag?

Yes, use `--projects=tag:api-*` to select projects by tag, or glob patterns like `--projects=*-app`. Combine with `--exclude` to skip specific projects and `--parallel` to control concurrency.

Why does Nx skip running my task even after code changes?

Nx caches task results, so unchanged inputs return cached output. Pass `--skipNxCache` to force re-execution, or use `--verbose` to inspect what Nx is doing.