Skip to content
Back to skills

Nx Run Tasks

ASecurity

Running Nx tasks (build, test, check, etc.)

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 5, 2026
testingbashtesting

Security analysis

A100/100

Scanned October 5, 2026

npx -y skills add JacobLey/leyman --skill nx-run-tasks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nx Run Tasks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nx Run Tasks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jacobley-nx-run-tasks/badge)](https://www.skillsdirectory.com/skills/jacobley-nx-run-tasks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nx-run-tasks
description: Running Nx tasks (build, test, check, etc.)
---

# Running Nx Tasks

```bash
nx run <project>:<target>
nx run-many -t <target> [-p <project1> <project2>]
nx affected -t <target>        # vs main
```

Run the high-level target you care about (`build`, `test`, `check`, `verify`). Its dependencies run first and are usually cache hits. See the [lifecycle skill](../../../leyman/main/.claude/skills/lifecycle/SKILL.md) for the ordering.

`test` only tests the project itself. To test everything, use `nx run-many -t test` or `nx affected -t test`.

`--excludeTaskDependencies` rarely does what you want. Tests run from `dist/`, so skipping the build means testing stale code.

## Configurations

- `-c fix`: auto-fix lint (`eslint`). Formatting (`biome`) always writes outside CI; `-c check` makes it check only.

## Shortcuts (`scripts/commands`, on `PATH`)

| Command | Runs |
|---------|------|
| `test-only` | `test` with `--nxBail`: build + test, no lint. Fastest feedback |
| `test-and-fix` | `verify` with `-c fix` |
| `test-ci` | `verify` (lint + test, including `coverage-report`): what CI runs |
| `dagger-test` | The full CI pipeline in a container (see [dagger-ci](../dagger-ci/SKILL.md)) |

## Finding targets

`nx show project <project>` lists the resolved targets, including ones inferred by plugins (e.g. `typecheck`). Work targets are described in [nx-tasks-reference](../nx-tasks-reference/SKILL.md).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…