run-nx-checks

Solid

Run nx format, lint, test, and build on affected or specified projects, then fix unambiguous failures

AI & Automation 26 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
48
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 ``` Do **not** rely on `export` for the remote-cache-off env vars (or any other nx env var) — each Bash tool call is a fresh shell, so exports do not carry across calls. Always inline env vars on the command line of each nx invocation (see Steps below). ## Fix rule - Apply only mechanical/unambiguous fixes: lint auto-fix output, missing imports/types, obvious type errors, test expectations that mirror a clear code change. - Never guess on anything judgment-laden: test failure that could be a real bug vs. an outdated assertion, errors pointing at unrelated areas, pre-existing failures unrelated to recent work, anything where mul...

Details

Author
eai-org
Repository
eai-org/agent-toolkit
Created
2 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