What is the Nx Run Tasks skill?
Nx Run Tasks is a productivity skill by nrwl for Claude Code, Cursor, Codex and other AI coding agents. Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.
Keep in mind that you might have to prefix things with npx/pnpx/yarn if the user doesn't have nx installed globally. Look at the package.json or lockfile to determine which package manager is in use.
When to use it
USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.
What the SKILL.md covers
- Understand which tasks can be run
- Run a single task
- Run multiple tasks
- Run tasks for affected projects
- Useful flags
- Author
- nrwl
- Pack
- nrwl/nx-ai-agents-config (10 skills)
- Category
- Productivity, #538 of 640
- Alyn Score
- 53 / 99
- Files
- 1
- License
- MIT
- Last updated
- 31 h ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Nx Run Tasks compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Nx Run Tasks · nrwl | 53 | 29 | 31 h ago |
| Teach · Matt Pocock | 88 | 332k | 31 h ago |
| Grok Build · sanjay3290 | 62 | 459 | 23 days ago |
| Autonomous Agent Harness · affaan-m | 91 | 310k | 3 days ago |
Install Nx Run Tasks
Pick your agent. Every command is ready to paste.
npx alyn-cli add nx-run-tasksDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add nrwl/nx-ai-agents-config --skill nx-run-tasksOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads nx-run-tasks when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the nx-run-tasks skill”. In Codex, type $nx-run-tasks.
You can run tasks with Nx in the following way.
Keep in mind that you might have to prefix things with npx/pnpx/yarn if the user doesn't have nx installed globally. Look at the package.json or lockfile to determine which package manager is in use.
For more details on any command, run it with --help (e.g. nx run-many --help, nx affected --help).
Understand which tasks can be run
You can check those via nx show project <projectname> --json, for example nx show project myapp --json. It contains a targets section which has information about targets that can be run. You can also just look at the package.json scripts or project.json targets, but you might miss out on inferred tasks by Nx plugins.
Run a single task
nx run <project>:<task>
where project is the project name defined in package.json or project.json (if present).
Run multiple tasks
nx run-many -t build test lint typecheck
You can pass a -p flag to filter to specific projects, otherwise it runs on all projects. You can also use --exclude to exclude projects, and --parallel to control the number of parallel processes (default is 3).
Examples:
nx run-many -t test -p proj1 proj2— test specific projectsnx run-many -t test --projects=*-app --exclude=excluded-app— test projects matching a patternnx run-many -t test --projects=tag:api-*— test projects by tag
Run tasks for affected projects
Use nx affected to only run tasks on projects that have been changed and projects that depend on changed projects. This is especially useful in CI and for large workspaces.
nx affected -t build test lint
By default it compares against the base branch. You can customize this:
nx affected -t test --base=main --head=HEAD— compare against a specific base and headnx affected -t test --files=libs/mylib/src/index.ts— specify changed files directly
Useful flags
These flags work with run, run-many, and affected:
--skipNxCache— rerun tasks even when results are cached--verbose— print additional information such as stack traces--nxBail— stop execution after the first failed task--configuration=<name>— use a specific configuration (e.g.production)
Tips for Nx Run Tasks
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 10 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Nx Run Tasks
What does the Nx Run Tasks skill do?
Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.
How do I install Nx Run Tasks?
Run "npx alyn-cli add nx-run-tasks" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Nx Run Tasks work in Cursor and Codex?
Yes. Nx Run Tasks uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Nx Run Tasks skill?
USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.
What is inside the Nx Run Tasks skill?
The SKILL.md covers Understand which tasks can be run, Run a single task, Run multiple tasks, Run tasks for affected projects, Useful flags.
What is a good alternative to Nx Run Tasks?
Teach by Matt Pocock is the highest-ranked similar skill from another creator, with an Alyn Score of 88 compared to 53 for Nx Run Tasks.
Is Nx Run Tasks free?
Nx Run Tasks is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Nx Run Tasks?
Nx Run Tasks is published by nrwl in the nrwl/nx-ai-agents-config repository, together with 9 other skills.


