multi-version-compliance
Skill29k starsChanged 8 days agoMITView on GitHub
Audit or fix Nx plugins for multi-version support compliance, including package ranges, generators, migrations, and runtime behavior. Use for plugin compatibility work or a multi-version compliance Linear task.
Trending
More talk lately.about the whole repository
Who's talking about nrwl/nx
- Nx“Nx 17.0 Has Landed!!!”YouTube · Oct 24, 2023 · 8k views
- Nx“Nx 19.0 Has Landed!!”YouTube · May 8, 2024 · 5.9k views
- Nx“What's new in Nx 15.3?”YouTube · Dec 8, 2022 · 4.8k views
- Nx“Nx 15.8 - All you need to know!”YouTube · Mar 8, 2023 · 4.7k views
- Nx“Nx 17.2 Has Landed!!”YouTube · Jan 9, 2024 · 4.2k views
The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 93
Talked about on GitHub, YouTube, Stack Overflow, Bluesky and Hacker News (93 times).
On GitHub · 26
- Feb 8, 2024📈 Tracking: Flat Config support — eslint/eslint91 reactions · 100 comments
- Apr 24, 2024📈 Tracking: ESLint v9 support — eslint/eslint85 reactions · 60 comments
- Mar 20, 2026feat(oxlint): add oxlint labs plugin — nrwl/nx-labs29 reactions · 14 comments
- Oct 3, 2019Feature: Support NX workspace — stenciljs/core25 reactions · 8 comments
- Apr 14, 2026action-setup v6 renders invalid YAML file — pnpm/action-setup21 reactions · 10 comments
21 more on GitHub
- Mar 1, 2022`IDBIndex is not defined` runtime exception in Node.js when importing ESM — firebase/firebase-js-sdk21 reactions · 12 comments
- Oct 14, 2024feat(core): add support for community remote caching — Jordan-Hall/NXRC18 reactions · 2 comments
- Jul 19, 2022feat: nuxt3 support — ZachJW34/nx-plus6 reactions · 5 comments
- May 26, 2025feat: add support for angular 20 — thymikee/jest-preset-angular5 reactions · 1 comment
- Apr 15, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.5 — ModaLabs/moda-python4 reactions · 2 comments
- Apr 2, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.4 — ModaLabs/moda-python3 reactions · 4 comments
- Mar 25, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.1 — ModaLabs/moda-python3 reactions · 4 comments
- Mar 18, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.0 — ModaLabs/moda-python3 reactions · 3 comments
- Mar 11, 2026chore(deps-dev): bump nx from 20.8.2 to 22.5.4 — ModaLabs/moda-python3 reactions · 2 comments
- Mar 4, 2026chore(deps-dev): bump nx from 20.8.2 to 22.5.3 — ModaLabs/moda-python3 reactions · 3 comments
- Nov 13, 2024Handle nx monorepo setup — software-mansion/radon-ide3 reactions · 1 comment
- Jul 9, 2024chore: replace lage with nx for task(targets) orchestration — microsoft/fluentui3 reactions · 8 comments
- Mar 25, 2023Fix type plugin for NX workspaces — vercel/next.js3 reactions · 7 comments
- Jun 16, 2022Issue with TypeScript declaration files — nrwl/nx-examples3 reactions · 2 comments
- Dec 4, 2021feat: provide json schema for nx.json — nrwl/nx-console3 reactions · 3 comments
- Jun 9, 2021Angular : Update angular dependences to v12 — storybookjs/storybook3 reactions · 8 comments
- Oct 20, 2026build(deps): bump follow-redirects and nx — XRPLF/xrpl.js2 reactions · 1 comment
- Oct 12, 2026build(deps): bump brace-expansion and nx — XRPLF/xrpl.js2 reactions · 2 comments
- Oct 8, 2026build(deps): bump axios and nx — XRPLF/xrpl.js2 reactions · 1 comment
- Apr 1, 2026Bump minimatch and nx — cicero-im/browser-control-mcp2 reactions · 1 comment
- Jun 20, 2023fix: adapt processProjectGraph to work w/ Nx >= 16.3.0 — agmonks/nx-vue2 reactions
On YouTube · 25
- Oct 24, 2023Nx 17.0 Has Landed!!! — Nx - Grow your repos, not your build times8k views · 42 comments
- May 8, 2024Nx 19.0 Has Landed!! — Nx - Grow your repos, not your build times5.9k views · 33 comments
- Dec 8, 2022What's new in Nx 15.3? — Nx - Grow your repos, not your build times4.8k views · 25 comments
- Mar 8, 2023Nx 15.8 - All you need to know! — Nx - Grow your repos, not your build times4.7k views · 14 comments
- Jan 9, 2024Nx 17.2 Has Landed!! — Nx - Grow your repos, not your build times4.2k views · 18 comments
20 more on YouTube
- Jan 4, 2023Wrap any command with Nx Run-Commands — Nx - Grow your repos, not your build times4k views · 5 comments
- Dec 23, 2022Nx 15.4 is out! Here's all you need to know — Nx - Grow your repos, not your build times3.4k views · 22 comments
- May 24, 2021Nx Office Hours: Workspace Automation with Nx Devkit — Nx - Grow your repos, not your build times2.9k views · 4 comments
- Mar 7, 2023Ever tried to Delete or Move a Project in a Monorepo? — Nx - Grow your repos, not your build times2.3k views · 18 comments
- Dec 13, 2022Introducing the Nx Task Graph Visualization — Nx - Grow your repos, not your build times2.3k views · 3 comments
- Jun 8, 2023Caching is HARD. — Nx - Grow your repos, not your build times1.9k views · 2 comments
- Jan 24, 2022Let's chat! Monorepo & tools — Nx - Grow your repos, not your build times1.8k views · 3 comments
- Jan 18, 2023New Nx Console && Nx Cloud Integrations — Nx - Grow your repos, not your build times1.7k views · 3 comments
- Feb 10, 2023We Built An Example App With the tRPC Core Team!! — Nx - Grow your repos, not your build times1.7k views · 5 comments
- Sep 24, 2022Tune your monorepo! Automated autocompletion support with Nx Console #shorts — Nx - Grow your repos, not your build times1.6k views · 3 comments
- Aug 28, 2025Nx npm Malware Explained: AI Agent Hijacking — Snyk1.4k views · 5 comments
- Sep 9, 2022Why Nx is super fast! — Nx - Grow your repos, not your build times1.1k views · 1 comment
- Apr 26, 2021Nx Office Hours | Schema-Driven Workspaces w/ Bram Borggreve — Nx - Grow your repos, not your build times551 views
- Feb 7, 2023Isolating Task Logs w/ Nx Cloud — Nx - Grow your repos, not your build times519 views
- Jun 23, 2020Nx Office Hours: June 23, 2020 — Nx - Grow your repos, not your build times436 views
- Sep 8, 20261,700 Developers Got a Public Repo Full of Their Own Secrets — NikByte223 views
- Oct 16, 2026⚡ [Top 5 AI Repos This Week] nx: The Free Tool Taking Over GitHub! #shorts — githubrepo_cloud133 views
- Sep 5, 2024GitHub - nrwl/nx: Smart Monorepos · Fast CI — GitHub Daily Trend AI Podcast37 views
- Nov 17, 2026Nx | core: filter remote cache terminal output before storing and replaying it — Kill the Busywork16 views
- May 29, 2026An invisible commit on GitHub's own repo. 💀 — TheCyberTrend11 views
On Stack Overflow · 25
- Mar 18, 2019Could not find an NgModule. Use the skip-import option to skip importing in NgModule40 votes
- May 21, 2021eslint rule @nrwl/nx/enforce-module-boundaries fails29 votes · 2 answers
- May 28, 2021Add Angular Material to Nx Workspace23 votes
- Sep 25, 2022update an nx-angular project to a specific major version of angular11 votes
- Feb 23, 2022Rules inside NX workspace's root `.eslintrc.json` file not extending to project's `.eslintrc.json` file10 votes
20 more on Stack Overflow
- Jan 14, 2022Jest setup "SyntaxError: Unexpected token export"9 votes
- Aug 23, 2021concatLatestFrom with multiple selectors ngrx8 votes · 3 answers
- May 9, 2022How to test the Swiper library with Jest in an Angular Nx repo?7 votes · 2 answers
- Sep 13, 2021How to use d3.js v7 with jest and babel-loader?6 votes · 1 answer
- Jul 26, 2023How to fix "Error: Expected to be running in 'ProxyZone', but it was not found." in mocha testing?says it tested it5 votes
- May 17, 2022How to set up Jest w/ESM to recognize non-cjs modules in node_modules5 votes
- Jul 1, 2019How to import a component from a library (in nrwl/nx with Angular)5 votes
- Oct 20, 2018How to integrate firebase in Nrwl Nx5 votes
- May 22, 2024error: src/main.tsx: Cannot read properties of undefined (reading 'includes') Nx monorepo ios/ android app runtime error4 votes
- Jan 24, 2023How to create Nx 15 workspace with Karma/Jasmine instead of Jest/Cypress4 votes · 1 answer
- Dec 16, 2022VSCode is unable to detect the tsconfig that resides in the Next.js app created using NX4 votes
- Nov 16, 2022Nx 13 Migration failure: update-tasks-runner4 votes
- Nov 9, 2021nx - configure main/module for generated package.json4 votes
- Jul 19, 2021Module not found: Error: Can't resolve 'zlib'4 votes
- Aug 18, 2019Jest Unit Tests do not work started with WebStorm Jest Testrunner4 votes
- Jul 9, 2024Angular 17 ESBuild Configuration for environment variables3 votes · 1 answer
- Jun 23, 2024Vite - dist is not inside project root and will not be emptied. Use --emptyOutDir to override3 votes
- Jun 15, 2024How to trigger Nx Release on apps/* when changes made to dependent libs/* modules?3 votes
- Feb 20, 2024NX - how can I build and serve node application that depends on ESM libs3 votes
- Dec 30, 2020Now.sh build breaking due to: Support for the experimental syntax 'decorators-legacy' isn't currently enabled3 votes
On Bluesky · 11
- Nov 22, 2024Let it rain ✨ & celebrate OSS 🚀 Quote this post to keep the appreciation train going and 👉 list 3 OSS repos with links ⭐ star them on GH… — @juri.dev30 likes and reposts
- Feb 13, 2025📦 nrwl / nx ⭐ 24,552 (+36) 🗒 TypeScript Build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced… — @github-trending-js.bsky.social7 likes and reposts
- Jan 30, 2025Fixing something I should have done a while ago.... Didn't star @nx.dev before, but finally went around and did it. github.com/nrwl/nx — @mhartington.io6 likes and reposts · 2 replies
- Jul 11, 2026📦 nrwl / nx ⭐ 29,144 (+76) 🗒 TypeScript The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds,… — @github-trending-js.bsky.social4 likes and reposts
- Mar 14, 2025Tooling is essential, and I believe there is a gap in the tooling industry for monorepos. With great tooling, having a monorepo is… — @edolic.bsky.social3 likes and reposts
6 more on Bluesky
- Feb 1, 2024Bonjour et bon jeudi ! Si vous êtes sur une approche de développement axée monorepo, vous pourriez être intéressés par nx, un système de… — @ponceto91.bsky.social2 likes and reposts
- May 6, 2025Nxというツールは、モノレポでの開発において、影響のある箇所だけをビルド・テストする賢さとキャッシュ機能で、開発サイクルやCIを速くするらしい。 yug1224 starred nrwl/nx https://github.com/nrwl/nx — @yug1224.com1 likes and repost
- Sep 5, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 23,152 (+104) 🗒 TypeScript Smart Monorepos · Fast CI — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Feb 1, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 21,061 (+118) 🗒 TypeScript Smart Monorepos · Fast CI — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Apr 22, 20255. Nx - Build system optimized for monorepos Nx optimizes monorepos with AI-driven architecture, advanced CI features, and efficient task… — @madza.dev0 likes and reposts · 1 reply
- Jul 7, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 18,243 (+126) 🗒 TypeScript Smart, Fast and Extensible Build System — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 6
- Aug 27, 2025Malicious versions of Nx and some supporting plugins were published443 points · 433 comments
- Nov 1, 2019Extensible Web Dev Tools for Monorepos5 points
- Aug 28, 2025NX Hack: stolen GitHub credential used to turn private repositories public3 points
- Aug 27, 2025Malicious versions of Nx and some supporting plugins were published2 points
- Oct 21, 2024Nx Powerpack Moves Previously Free Feature Behind Paywall1 point · 1 comment
1 more on Hacker News
- Dec 14, 2020Nx 11.0.0 – Extensible Dev Tools for Monorepos1 point
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- author-migrationSkill
- check-docs-styleSkill
- deslopSkill
- dist-build-migrationSkill
- docs-website-updateSkill
- grill-meSkill
- nx-gradle-plugin-version-bumpSkill
- nx-multi-repo-migrateSkill
- reproduce-issueSkill
- review-local-branchSkill
- review-many-prsSkill
- review-pending-pr-reviewsSkill
- review-prSkill
- run-nx-generatorSkill
- setup-review-sandboxSkill
- triage-issuesSkill
- triage-prsSkill
- triage-review-paneSkill
- update-cnw-templatesSkill
- author-migrationSkill
- check-docs-styleSkill
- deslopSkill
- dist-build-migrationSkill
- docs-website-updateSkill
- draft-security-advisorySkill
- grill-meSkill
- multi-version-complianceSkill
- nx-gradle-plugin-version-bumpSkill
- nx-multi-repo-migrateSkill
- reproduce-issueSkill
- review-local-branchSkill
- review-many-prsSkill
- review-pending-pr-reviewsSkill
- review-prSkill
- run-nx-generatorSkill
- setup-review-sandboxSkill
- triage-issuesSkill
- triage-prsSkill
- triage-review-paneSkill
- update-cnw-templatesSkill
- vitest-migrationSkill
- ci-monitorSkill
- nx-generateSkill
- nx-pluginsSkill
- nx-run-tasksSkill
- nx-workspaceSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 12 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Read Codex execution conventions before following this workflow.
- Very specific: line 44
Before citing any PR by number, verify state — these go stale: gh pr view <N> --repo nrwl/nx --json state.
- Distinctive: line 57
Stop-after-Phase-2 (audit-equivalent): if you want findings without edits, decline to approve at the end of Phase 2.
- Very specific: line 61
On a branch matching
nxc-NNNNwith no explicit arg: before asking the user, suggest "Use NXC-NNNN?" inferred from the branch name. - Distinctive: line 66
Before any code-level work in Linear-driven mode, the skill MUST:
- Distinctive: line 68
Check Linear MCP availability: If a connected Linear issue lookup tool isn't available (MCP server not installed / not connected), tell the …
- Very specific: line 72
Fetch the task: Use the connected Linear issue lookup tool with issue ID NXC-XXXX.
- Distinctive: line 73
If the call errors (invalid ID, network), halt and ask the user to verify the ID.
- Distinctive: line 78
Read description sections: Every per-plugin task has:
- Distinctive: line 83
Fetch comments: Use the connected Linear comments tool for the resolved issue.
- Distinctive: line 97
Default to the task's resolved support window: Don't re-derive it from code unless the user explicitly overrides.
- Distinctive: line 112
If a Linear task ID was provided, fetch it per the Linear-fetching protocol.
- Very specific: line 115
No task case: If no task exists for this plugin: run discovery instead — apply the policy ladder for the support window (Rule 1: upstream …
- Very specific: line 122
If on a branch matching nxc-NNNN, read recent commits to understand prior scope decisions.
- Very specific: line 124
Read references/canonical-shape.md and references/anti-patterns.md.
- Distinctive: line 137
User OK gate: Wait for explicit "proceed" before Phase 3.
- Very specific: line 169
Cross-cutting: if the fix changes runtime behavior, update any in-codebase docs (astro-docs/, docs/, inline .md) that describe the changed …
- Distinctive: line 173
If during implementation you spot something not in the task's Findings: stop, surface it, ask whether to (a) add to this PR, (b) defer as a …
- Very specific: line 179
Add all-generators-enforce-floor.spec.ts — parameterized via assertGeneratorsEnforceVersionFloor.
- Very specific: line 215
Code-level checks: Run the "Code-level verification (review-mode lens)" section of canonical-shape.md.
- Very specific: line 232
Group related non-blockers: When multiple non-blockers describe symptoms of one blocker (e.g., five symptoms of a single version-utils.ts …
- Very specific: line 280
Above-ceiling is silent fallthrough: Do not warn, do not throw, do not branch.
- Distinctive: line 286
Do not flag missing flags in migration code.
- Very specific: line 307
When fix mode hits the no-task case (Phase 1 step 2), produce tmp/<plugin>-findings.md shaped to mirror a Linear task body so the user can …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Read Codex execution conventions before following this workflow.
Multi-version compliance for Nx plugins
What this is
The nx migrate --first-party-only flag lets users upgrade Nx without
dragging the managed third-party ecosystems (Angular, Cypress, Playwright,
Jest, Vitest, ESLint, etc.) along. For that to be safe, every first-party
plugin must keep working across its declared support window — not silently
fall through to the latest install constants on older workspaces, not
silently break on newer ones.
Source-of-truth split:
| Source | Owns |
| Linear milestone "Multi-version supported across plugins" (project NXC-4072) | What's wrong per plugin, the resolved support window, open human decisions. Per-plugin tasks NXC-4381..NXC-4410 (P1–P29). |
| This skill | How to implement the canonical shape, code-level anti-patterns, gotchas, findings doc shape (no-task case). |
The skill is the gap-closer: it accepts a Linear task, parses it, drives the fix. When no task exists for the plugin, fix mode runs discovery in Phase 1–2 and produces a findings doc that mirrors a Linear task body — so the user can file it as a new task before proceeding.
Reference PRs (the canonical shape):
#35587—@nx/angular— merged. Set the precedent. IntroducedthrowForUnsupportedVersion.#35642—@nx/playwright— merged. Generalized the shared helpers into@nx/devkit/internal. Established executor / runtime feature- gating.#35670—@nx/cypress— merged. AddedexcludeGeneratorsto the parameterized test helper.#35671—@nx/vitest— open at time of writing. Demonstrates "drop phantom peer-range claim" and "declared floor < effective floor" patterns.
Before citing any PR by number, verify state — these go stale:
gh pr view <N> --repo nrwl/nx --json state. Verify any unmerged PR's
contents via gh pr diff <N> --repo nrwl/nx.
Entry points
| Invocation | Mode | Behavior |
multi-version-compliance <NXC-XXXX> | Fix (primary) | Fetch task, surface findings + decisions in Phase 2, wait for user OK before Phase 3 edits. |
multi-version-compliance (no arg) | Ask for task ID | Prompt for NXC-XXXX. |
multi-version-compliance @nx/<plugin> (bare plugin) | Fix (task lookup) | Look up the per-plugin task in milestone NXC-4072. If found, confirm with user and enter fix mode. If not found, run discovery in Phase 1–2 (rubric against code), present findings, suggest filing as a new task before any edits. |
multi-version-compliance review #<N> | Review | Fetch PR, derive Linear task from branch name if possible, compare diff vs. task findings (or run pure code-level review if no task). |
Stop-after-Phase-2 (audit-equivalent): if you want findings without edits, decline to approve at the end of Phase 2. The skill stops, no branch, no commits.
On a branch matching nxc-NNNN with no explicit arg: before
asking the user, suggest "Use NXC-NNNN?" inferred from the branch name.
Linear-fetching protocol
Before any code-level work in Linear-driven mode, the skill MUST:
- Check Linear MCP availability. If a connected Linear issue lookup tool isn't available (MCP server not installed / not connected), tell the user and fall through to the no-task discovery path (fix mode Phase 1 step 2). Don't pretend to fetch.
- Fetch the task. Use the connected Linear issue lookup tool with issue ID
NXC-XXXX. If the call errors (invalid ID, network), halt and ask the user to verify the ID. - Verify shape. Confirm:
- Title matches
[multi-version][P##] \@nx/<plugin>` — multi-version support compliance(per-plugin) or[multi-version][W#] ...` (cross-cutting). If the pattern doesn't match, halt and ask the user to confirm this is the right task. - Status.
Done→ ask whether re-audit or follow-up.Canceled→ halt and ask.
- Title matches
- Read description sections. Every per-plugin task has:
- Plugin: — path, upstream support, peerDep declarations, per-major install map, paired secondaries.
- Needs human decision — open items blocking implementation.
- Findings —
(high|medium|low)items with[file:line]and a suggested fix per item. - Verification checklist — Sections A (Support window declarations) / B (Generator inputs) / C (Generator outputs) / D (Migrations) / E (Runtime) / F (Out-of-window UX).
- Fetch comments. Use the connected Linear comments tool for the resolved issue. Audits attached as files / linked uploads may carry additional context.
- Surface "Needs human decision" as a batch. Restate every decision item in chat. The user can resolve all, defer some, or override. Block until the user has acknowledged the set — don't proceed silently.
- Translate findings → code changes. Map each finding to a canonical
pattern in
references/canonical-shape.md. The Linear task's suggested fix is the authoritative scope; the skill verifies it conforms to the canonical shape and flags any deviation. - Run the A–F checklist against the final code state. The task's checklist is the agreed scope. The skill verifies code-level conformance.
Default to the task's resolved support window. Don't re-derive it from code unless the user explicitly overrides. If the user overrides: restate the new window and confirm before applying.
Don't expand scope beyond the task's Findings without asking. If you spot a new issue mid-fix: stop, present it, ask whether to (a) add it to this PR, (b) defer as a follow-up, or (c) update the Linear task as a comment.
Mode workflows
Fix mode (primary)
Phase 1 — Read.
- If a Linear task ID was provided, fetch it per the Linear-fetching protocol. If only a plugin name was provided, look up the per-plugin task in milestone NXC-4072.
- No task case. If no task exists for this plugin: run discovery instead — apply the policy ladder for the support window (Rule 1: upstream LTS for Angular/React/ESLint/Next/Expo; Rule 2: N & N-1; widen to existing supported set if larger), inventory the plugin's code against the A–F rubric, find the effective floor by walking imports, classify all results as new findings. The skill is producing audit-quality output for a plugin that wasn't ticketed.
- If on a branch matching
nxc-NNNN, read recent commits to understand prior scope decisions. - Read
references/canonical-shape.mdandreferences/anti-patterns.md.
Phase 2 — Align.
- (task case) Surface every "Needs human decision" item from the task as a batch. Wait for resolutions.
- (task case) Restate the Findings list with severity tags. Confirm scope.
- (no-task case) Surface findings discovered from the rubric inventory + decisions the rubric surfaces (floor raise/drop, peer declarations, optional-vs-required peer, one-sided gates, etc.). Suggest filing them as a new Linear task in milestone NXC-4072 before proceeding to Phase 3.
- User OK gate. Wait for explicit "proceed" before Phase 3. Declining stops the skill — no branch, no edits. (This is the audit-equivalent.)
Phase 3 — Implement (per canonical-shape.md).
- Branch from
masterif needed using the repo'snxc-NNNNconvention. - Order: any shared-helper extension lands first; plugin changes land after. Commit/PR titling defers to the user's conventions.
- For each Finding category, apply the canonical pattern:
- Section A → peer ranges + version map + install constants. Every
third-party package the plugin invokes at runtime (TS import,
executor spawning the CLI binary, or inferred-plugin emitting a
target with
command: '<bin>') gets a peer entry. Default tooptional: trueviapeerDependenciesMetafor gated surfaces (executor opt-in, inferred plugin gated on config file presence). Non-optional peers are reserved for packages every workspace using the plugin needs. - Section B → generator entry asserts,
keepExistingVersions, fresh-install branch. - Section C → templates, schema stubs with runtime throws, version-map coverage.
- Section D →
requiresgates per package per AND-semantics; split mixed entries; retain intentional pre-floor entries. Default to bilateral bounds (>=N <M) for cross-majorpackageJsonUpdateswindows. One-sided windows (<Nwith no lower,>=Nwith no upper) need a justified reason (legacy cleanup, undefined source, v0→v1 bridge) — record the reason in the findings doc or as a code comment. Migration entries gate on the destination instead, usually>=Nalone (checklist below). - Section E → executor and inferred-plugin feature gates.
- Section F → below-floor throw via shared util.
- Cross-cutting: if the fix changes runtime behavior, update any
in-codebase docs (
astro-docs/,docs/, inline.md) that describe the changed behavior. Docs that contradict the code are a correctness bug, not a PR-body concern.
- Section A → peer ranges + version map + install constants. Every
third-party package the plugin invokes at runtime (TS import,
executor spawning the CLI binary, or inferred-plugin emitting a
target with
- If during implementation you spot something not in the task's Findings: stop, surface it, ask whether to (a) add to this PR, (b) defer as a follow-up, or (c) update the Linear task as a comment.
Phase 4 — Tests (same commit as Phase 3 usually).
- Add
all-generators-enforce-floor.spec.ts— parameterized viaassertGeneratorsEnforceVersionFloor. This exercises every generator's floor assert and is the high-value spec. - Footgun: assert calls must be in place in every generator BEFORE running the parameterized spec, or every untouched generator fails and you'll restart.
- Optional: a per-plugin
assert-supported-<pkg>-version.spec.tswith the 5 canonical cases. The sharedassertSupportedPackageVersionalready has full coverage in devkit, so this is mostly symmetry across the PR series — skip unless the user asks.
Phase 5 — Verify locally.
npx nx test <plugin> --testPathPattern="all-generators-enforce-floor"(addassert-supported-if you added the optional wrapper spec).npx nx test <plugin> --testPathPattern="<modified-generator>"per touched generator.npx nx format.
Phase 6 — Hand off. Code changes complete. The user drives
commit/push/PR per their own conventions (loaded globally from
the applicable AGENTS.md and user instructions). This skill does not enforce PR title,
body, commit shape, or related-issues format.
Review mode
- Fetch PR.
gh pr view <N> --repo nrwl/nxandgh pr diff <N> --repo nrwl/nx. For a local branch:git diff master...HEAD. - Derive the Linear task. Branch name
nxc-NNNN→NXC-NNNN. If no match: ask the user. - Fetch the task (if derivable). Compare diff vs. task Findings:
every Finding addressed; nothing extra without justification. Flag
scope drift.
If no task and the user has none: skip task-comparison; run pure
code-level review against
canonical-shape.mdandanti-patterns.md. - Code-level checks. Run the "Code-level verification (review-mode
lens)" section of
canonical-shape.md. Cross-referenceanti-patterns.md. For each finding, anchor atfile:lineand cite which reference PR / file demonstrates the correct pattern. Scope: code, configs, migrations, and in-codebase docs that claim runtime behavior. NOT PR title / body / commit shape — those defer to the user's PR conventions. - Classify each finding.
- Only two inline categories:
[blocker]and[non-blocker]. No "open question," "ask," or other inline tags. Questions for the author surface in the closing "Open questions for author" block, drawn from non-blocker findings — list each question once. - Severity is independent of scope-drift. A finding can be both a blocker AND not in the Linear task. Flag it as a blocker in the code-level section AND list it under "in PR but not in Linear task" in scope drift. Don't hedge with "in this PR or follow-up?" — if it's a blocker, the answer is "this PR."
- Group related non-blockers. When multiple non-blockers describe
symptoms of one blocker (e.g., five symptoms of a single
version-utils.tsduplication), list them as sub-bullets under the blocker with "(resolved when §X is fixed)" rather than as N separate top-level non-blockers. - Be terse on passes. A section with no findings gets a single summary line ("Pass — all 7 generator entries assert at first statement"), not a per-file enumeration. Detail is reserved for blockers and non-blockers. The reviewer's audience skims for actionable items; passing checks should not eat reading budget.
- Only two inline categories:
- Output. Markdown checklist of blockers / non-blockers anchored at
file:line, followed by the structured verdict block fromcanonical-shape.md§"Verdict template". The verdict block is the skimmable index — produce it, don't substitute a free-form prose summary. Do not post viagh pr reviewunless the user explicitly asks.
Which references to load (context hygiene)
| Mode | Required | Optional |
| Fix | canonical-shape.md, anti-patterns.md | gotchas.md (effective floor, ecosystem lockstep, cypress inline tree), examples.md (when copying a pattern) |
| Review | anti-patterns.md, canonical-shape.md (especially the "Code-level verification" section) | gotchas.md (cross-plugin coordination, lockstep), examples.md (when citing) |
| "What is compliance?" answer | none | answer from SKILL.md alone |
References are ~100–500 lines each. Don't pull all of them just because you're invoked. Match the load to the mode.
Critical rules (apply in every mode)
- Linear task is the source of truth for scope (ratified decisions
and Findings).
- (a) Don't produce a parallel scope document. The task IS the scope. Fix mode runs against the task as input — drift checks, new findings, and decisions feed back to the task (via comments or as deferred items), not into a competing source of truth.
- (b) Don't expand a fix beyond the task's Findings without surfacing the new issue.
- (c) Don't second-guess the task's resolved support window without an explicit user override.
- Do not create or duplicate shared helpers. They live in
@nx/devkit/internal(assertSupportedPackageVersion,getInstalledPackageVersion,getDeclaredPackageVersion,throwForUnsupportedVersion,normalizeSemver,isNonSemverDistTag) and@nx/devkit/internal-testing-utils(assertGeneratorsEnforceVersionFloor). Reject any local re-implementation (cleanVersion,getInstalled<Pkg>VersionRuntime, privatethrowBelowFloor, etc.). Seecanonical-shape.md. - Above-ceiling is silent fallthrough. Do not warn, do not throw,
do not branch. Reject
throwAboveWindow,warnAboveCeiling,versions()withswitch + throw default:. The only throw is below the declared floor. keepExistingVersions: trueis for generators only. Migration generators (src/migrations/) are exempt — their job is to bump. Do not flag missing flags in migration code.- Floor assert is the first statement in the function doing the
actual work. Wrapper/internal split (cypress, playwright): in
*Internal. Single-function generators (angular): in the function itself. Not conditional, not inside an install branch, not after a tree read. - Phase 1–2 never writes, never branches. Discovery, finding
classification, and decision-surfacing happen on the current branch
with no edits. Any working artifact (e.g., a findings doc for a
no-task case, multi-plugin scratch notes) goes in
tmp/(gitignored) and stays uncommitted. NoTRIAGE-REPORT.md/AUDIT.mdat repo root. Branch creation and edits start at Phase 3, after the user OK. - PR / commit conventions are out of scope. Title format, body shape,
commit-message structure, related-issues handling, push flags, etc.
are governed by the user's global memory (
pr-creation-shorthand.md,push-conventions.md,explain-before-committing.md,chore-not-fix-non-prod.md). Don't enforce or flag these from this skill — defer to whatever the user's conventions resolve to at PR time.
Findings doc template (Phase 2 output, used when no Linear task exists)
When fix mode hits the no-task case (Phase 1 step 2), produce
tmp/<plugin>-findings.md shaped to mirror a Linear task body so the
user can file it as a new task in milestone NXC-4072 before proceeding
to Phase 3.
For plugins managing multiple primary packages, repeat the install-map / decisions / findings bullets per primary.
# @nx/<plugin> — multi-version support compliance findings
> No Linear task in milestone NXC-4072. This doc is filing-ready —
> create the task with this body before proceeding to fix.
## Plugin
- Path: packages/<plugin>
- Upstream support: <official policy if any, else "no formal LTS">
- peerDep declarations: <list>
- Per-major install (`<file>` branches on installed `<package>` major):
- v<N-1>: <constants>
- v<N>: <constants> (default)
- Paired secondaries: <list of ecosystem-locked siblings>
## Needs human decision
1. <decision 1 — e.g., raise floor to vN.0.0 vs keep current>
2. <decision 2 — e.g., drop ^1.0.0 from peer (no v1 install lane)>
## Findings
- **(high) <one-line summary>** [file:line]
_Suggested fix_: <one-line>
- **(medium) ...**
- **(low) ...**
## Verification checklist (A–F)
### A. Support window declarations
- [ ] peerDep ranges match the support window
- [ ] Version map / runtime branching covers every supported major
- [ ] Every third-party package the plugin **invokes at runtime** has a peerDep entry. "Invokes" = TS import/`require` OR executor spawns its CLI binary OR inferred plugin emits a target whose `command` invokes its CLI (look for `externalDependencies: ['<pkg>']` in emitted target inputs). Packages the generator installs for the user to consume independently (ESLint plugins loaded by the user's eslintrc, `@types/*`) don't need peer-declaration.
- [ ] Peers needed only when a user opts into a specific surface (executor opt-in, inferred plugin gated on config file presence, opt-in preset) are declared **optional** via `peerDependenciesMeta: { "<pkg>": { "optional": true } }`. Required-non-optional peers are reserved for packages every workspace using the plugin needs.
### B. Generator inputs
- [ ] Generators don't overwrite installed third-party versions
- [ ] `addDependenciesToPackageJson` passes `keepExistingVersions=true` or branches on detected version
- [ ] Fresh-install path installs the latest supported version
### C. Generator outputs
- [ ] Templates compile and run on every supported version
- [ ] Generated `project.json` target shape valid on every major
- [ ] Default option values valid on every major
- [ ] Version map covers every managed third-party dep — no gaps
- [ ] Schema accepts union of options; runtime throws when inapplicable
### D. Migrations (migrations.json + packageJsonUpdates)
- [ ] Cross-major `packageJsonUpdates` declare `requires` per bumped package
- [ ] `packageJsonUpdates` `requires` windows are bilateral (`>=N <M`) by default. One-sided ranges (`<N` with no lower, `>=N` with no upper) are intentional (legacy cleanup, undefined source major, v0→v1 bridge) — flagged in "Needs human decision" or noted in the Findings.
- [ ] Migration entries gate on the destination: `requires` evaluates once at collection time against the version the package lands on in this run (installed only when the run does not bump it), so a bound meant as the source window (`>=9 <10` for "migrating from 9") skips whenever the run bumps past the cap (the storybook bug, #33613). Default is `>=N` alone; add an upper bound only when the migration is inapplicable at or above it (`next >=15.0.0 <16.0.0` on the next-15 instructions entry). Semantics: `.agents/skills/author-migration/SKILL.md`, `requires` section.
- [ ] A migration declares a gate only when its behavior depends on the touched package's version; conditions `requires` cannot express (an OR of alternative package names) get an in-body check instead
- [ ] Nx-only migrations have no third-party `requires`
- [ ] No silent gap in `packageJsonUpdates` across the support window
### E. Runtime
- [ ] Executors branch on installed version where behavior diverges
- [ ] Inferred plugin (createNodes/V2) parses configs across every major
### F. Out-of-window UX
- [ ] Below-floor: throws via shared util naming package + installed + floor; no silent fall-through
## Out-of-scope (deferred follow-ups)
- <e.g., consolidate ... across plugins — separate PR>References
See "Which references to load" near the top. Don't pull all of them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

