run-nx-checks

Featured

Run 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

View on GitHub

Quality Score: 89/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

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