run-nx-checks
FeaturedRun nx format, lint, test, and build on affected or specified projects, then fix unambiguous failures
AI & Automation 46 stars
6 forks Updated today MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Run Nx Checks
Run format, lint, test, build. Fix unambiguous failures. Report anything judgment-laden.
## Arguments
`$ARGUMENTS` — optional, space-separated: `[cpuCount] [projectName] [--remote-cache]`. Number token
→ `cpuCount`. Non-number, non-flag token → `projectName`. `--remote-cache` flag → opt back into the
remote cache by dropping the remote-cache-off prefix. Default `cpuCount` = cores - 4 (min 1);
count cores with `getconf _NPROCESSORS_ONLN` (`nproc` is GNU-only).
Default project scope = affected. Default remote-cache state = off (see Steps).
## Workspace
Run nx commands from wherever `nx.json` lives in this repo (commonly the root; in some repos a
subdirectory).
## Setup (before step 1)
Keep the Nx daemon warm so the project graph is reused across targets:
```bash
NX_DAEMON=true npx nx daemon --start >/dev/null 2>&1 || true
```
### Affected base (skip when `$projectName` was passed)
`nx affected` diffs against the *local* default branch, which is often stale or missing. Resolve
the remote-tracking ref once and write it literally into every `affected`, `format:write` and
`show projects --affected` command below as `--base=$base` (each call is a fresh shell, see Steps):
```bash
base=${NX_BASE:-$(node -p 'const j=require("./nx.json"); j.defaultBase ?? j.affected?.defaultBase ?? "main"' 2>/dev/null || echo main)}
base=${base#remotes/}; [[ $base == */* ]] || base="origin/$base"
GIT_TERMINAL_PROMPT=0 GIT_SSH_COMMAND='ssh -o BatchMode=yes -o ConnectTimeout=15'...
Details
- Author
- eai-org
- Repository
- eai-org/agent-toolkit
- Created
- 3 months ago
- Last Updated
- today
- Language
- Shell
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
nx-run-tasks
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.
38 Updated today
skyf0xx AI & Automation Listed
nx-run-tasks
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.
3 Updated today
whimzyLive Code & Development Listed
nx-run-tasks
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.
30 Updated today
berenddeboer