nx-run-tasks

Runs build, test, lint, and other tasks in an Nx workspace.

3|10|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/fleetshift/fleetshift-poc --skill nx-run-tasks-fleetshift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-run-tasks
Source: https://github.com/fleetshift/fleetshift-poc/tree/main/.agents/skills/nx-run-tasks
Command: npx skills add https://github.com/fleetshift/fleetshift-poc --skill nx-run-tasks-fleetshift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers working in Nx monorepos often struggle to discover available project targets and run tasks efficiently across many projects, especially when they need to limit execution to affected code. ## Core Features & Use Cases - Target Discovery: Inspect runnable targets with nx show project <name> --json, including tasks inferred by Nx plugins that are not visible in package.json or project.json. - Single and Multi-Project Execution: Run one task with nx run <project>:<task> or many with nx run-many -t build test lint, with filtering by project, pattern, or tag. - Affected-Based Runs: Use nx affected -t build test lint to execute tasks only on changed projects and their dependents, ideal for CI pipelines. - Use Case: After modifying a shared library in a large monorepo, run nx affected -t test to test only the impacted projects instead of the entire workspace. ## Quick Start Ask the assistant to run the test target for all affected projects in this Nx workspace.

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 single project in Nx?

Use `nx run <project>:<task>`, where the project name comes from package.json or project.json. If nx is not installed globally, prefix the command with npx, pnpx, or yarn depending on the workspace package manager.

How do I run tests only on changed projects in Nx?

Use `nx affected -t test` to run tests only on changed projects and their dependents. You can customize the comparison with --base and --head, or pass specific files with --files.

How can I see which targets a project has in Nx?

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

Can I exclude specific projects when running nx run-many?

Yes, use the --exclude flag, for example `nx run-many -t test --projects=*-app --exclude=excluded-app`. You can also filter by tag with --projects=tag:api-* and control parallelism with --parallel.

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, and use --verbose to see additional details such as stack traces when debugging.