Upgrades @entur/* packages to versions requiring React 18, covering ESM exports, modal, tabs, expand, layout, and utils breaking changes.
Ships in entur-linje. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The latest major versions of all @entur/* packages require React 18 as a minimum. Most consumer projects are already on React 18+ — the main work is handling package-specific breaking changes.
Scan package.json (and monorepo workspace package.json files if applicable) for:
@entur/* packages and their current versions@testing-library/react version (if present)tsconfig.json jsx settingReport what you found before proceeding.
Done when: every @entur/* package, React version, and testing-library version is listed.
If React is already 18+, skip to step 3.
If React is below 18:
npm install react@^18 react-dom@^18 @types/react@^18 @types/react-dom@^18
Then search for ReactDOM.render — replace with createRoot:
// Before
import ReactDOM from 'react-dom';
ReactDOM.render(<App />, document.getElementById('root'));
// After
import { createRoot } from 'react-dom/client';
const root = createRoot(document.getElementById('root')!);
root.render(<App />);
Also search for ReactDOM.hydrate — replace with hydrateRoot from react-dom/client.
If tsconfig.json has "jsx": "react", change to "jsx": "react-jsx".
Done when: React is 18+ and entry points use the new API (or were already there).
Update all @entur/* packages to their latest versions:
npm install @entur/button@latest @entur/modal@latest ...
List every @entur/* package in the project and upgrade them all in one command.
Done when: all @entur/* packages are at their latest versions.
Load references/breaking-changes.md and work through each section that applies to this project. Only process sections for packages the project actually uses.
The reference covers:
| Package | Key changes |
|---|---|
ESM exports (all packages) | Deep dist/ imports break; built files renamed to .mjs/.cjs |
@entur/modal | onDismiss required, <div> → <dialog>, data-reach-* selectors gone |
@entur/tab | data-reach-* selectors gone, stricter types, ID format changed, tab/panel index comes from the markup |
@entur/expand | Content stays in DOM when collapsed; unmountOnClose opt-out |
@entur/layout (beta) | LayoutProvider removed; responsive base key s → base |
@entur/utils | useRandomId deprecated → use React useId() |
For each applicable section: grep for the affected patterns, fix them, and confirm no instances remain.
Done when: every pattern listed in breaking-changes.md has been searched for and resolved for each used package.
After all code changes are applied, inform the user about behavioral differences they should be aware of. Load references/behavioral-changes.md and present every section relevant to the packages this project uses.
These are changes that require no code fix but alter how the application behaves at runtime, in tests, or during development.
Done when: every relevant behavioral change has been communicated to the user.
Run the project's own type check, build and tests: the scripts in package.json, with the project's package manager (look for yarn.lock, pnpm-lock.yaml or package-lock.json).
Fix any remaining type errors or test failures. Common issues:
@entur/tab components no longer accept arbitrary props. Remove unknown props.useId() format. Don't match specific ID strings; use aria-controls/aria-labelledby to find linked elements.<TabPanels>, or pass each one an explicit index prop. @entur/tab logs an error in development when this happens.<TabPanels> takes an index even when it renders no panel, so a heading or layout component shifts every panel after it. Move it out of <TabPanels>, or inline it as plain markup.<Tab> and its <TabPanel> sit under different conditions, so a falsy conditional shifts every later index on one side only. Silent when the conditional is mid-list; merely logged when it's last. Put both behind the same condition.act() or use waitFor.<StrictMode> now mounts, unmounts, and re-mounts components. This is expected; fix missing useEffect cleanups it reveals.Done when: build succeeds and tests pass.
What SKILL.md sets; muted values are Claude Code's defaults
/entur-linje:migrate-react-18from entur-linje
entur-linje@entur is listed by entur/ai — review the source before installing
npx claudepluginhub entur/ai --plugin entur-linje6 skills in this plugin
/entur-accessibilityBuild accessible Entur web applications that comply with WCAG 2.1 and Norwegian universell utforming (UU) requirements. Use when the user is working on accessibility, asking about WCAG, universell utforming, screen readers, keyboard navigation, focus management, color contrast, aria attributes, semantic HTML, or Norwegian IKT accessibility regulation. Also trigger when building @entur/* applications that need to meet legal compliance requirements — all Entur digital products must comply with WCAG 2.1. Use even if the user just says "make this accessible" or "is this accessible" without mentioning WCAG by name./entur-brand-designApply Entur's visual identity correctly in designs, presentations, data visualizations, and web UI. Use when the user asks about Entur colors, Entur branding, Entur typography, Entur data visualization, creating charts or graphs for Entur, making a presentation that looks like Entur, building a branded web page or document for Entur, or anything that should follow Entur's visual identity. Trigger even if the user doesn't say "design system" — if they mention Entur and are making something visual, this skill applies./entur-linjeEntur Linje design system — use when building anything with @entur/* React components, Entur branding, Entur tokens, Entur colors, Entur typography, Entur data visualization, Entur accessibility, or universell utforming (UU). Trigger for any question or task involving the Entur design system, Entur's visual identity, Entur transport UI, or compliance with Norwegian accessibility law (WCAG). Use this skill whenever the user mentions Entur in a design, development, or content context — even if they don't specifically say "design system."Other plugins' skills for the same job