Skip to content

Build your personal knowledge base with Trilium Notes

docs(skills): state versions as majors rather than exact pins

Elian Dorane8719d34ec2c
diff --git a/.claude/skills/ckeditor5-plugin-development/SKILL.md b/.claude/skills/ckeditor5-plugin-development/SKILL.md
index 7f2fc810e3..933588cf4a 100644
--- a/.claude/skills/ckeditor5-plugin-development/SKILL.md
+++ b/.claude/skills/ckeditor5-plugin-development/SKILL.md
@@ -20,7 +20,7 @@ description: >-
CKEditor 5 is **plugin-based**: every feature — even typing and `<p>` support — is a
plugin. Without plugins the editor is an empty API. This skill is specific to **Trilium
(TriliumNext Notes)**, whose rich-text note editor is built from the CKEditor 5 library
-(external dep, pinned `48.3.1`) plus Trilium's own plugins. Both the editor build and the
+(external dep, **CKEditor 5 48 or later**) plus Trilium's own plugins. Both the editor build and the
plugins live in `packages/ckeditor5` (`@triliumnext/ckeditor5`): each feature is a folder under
`src/plugins/` — admonition, collapsible, footnotes, keyboard_marker, mermaid, mention, snippets
and the rest — with its tests co-located beside it. `@triliumnext/ckeditor5-math` is the only
@@ -65,7 +65,7 @@ data (HTML) ──upcast──▶ MODEL ──editing downcast──▶ editing
## Importing CKEditor in Trilium
-Import everything from the single **`ckeditor5`** aggregate package (pinned `48.3.1`; it is a
+Import everything from the single **`ckeditor5`** aggregate package (**48 or later**; it is a
`peerDependency` + `devDependency` of every plugin package). There is no premium package: every
premium plugin Trilium used has an in-tree GPL replacement, and the editor always runs under the
`GPL` license key:
@@ -285,8 +285,12 @@ review (workflow, CKEditor-specific defect patterns, contribution process), use
This skill is specific to the **Trilium (TriliumNext Notes) monorepo's** CKEditor 5 integration.
Repository paths it cites — `packages/ckeditor5`, `packages/ckeditor5/src/plugins/<name>/`,
`packages/ckeditor5-math`, `apps/client/...` — are **this repository**, and examples come from
-Trilium's own plugins (admonition, collapsible, footnotes, keyboard_marker, math, mermaid). The CKEditor 5 **library** is an external dependency
-pinned to **48.3.1**; its mechanics were distilled from the upstream docs (ckeditor.com/docs) and
-source (github.com/ckeditor/ckeditor5, commit 9ecca53627). Where a snippet cites an upstream library
-package (e.g. ckeditor5-basic-styles, -link, -image), that is the library's own source — not a
-Trilium package.
+Trilium's own plugins (admonition, collapsible, footnotes, keyboard_marker, math, mermaid). The
+CKEditor 5 **library** is an external dependency tracked at **48 or later**; its mechanics were
+distilled from the upstream docs (ckeditor.com/docs) and source (github.com/ckeditor/ckeditor5,
+commit 9ecca53627). Where a snippet cites an upstream library package (e.g. ckeditor5-basic-styles,
+-link, -image), that is the library's own source — not a Trilium package.
+
+**On versions:** these skills name **major versions only** ("48 or later"). Trilium tracks CKEditor
+5 closely, so an exact pin written here would be stale within weeks — read the current one from
+`packages/ckeditor5/package.json`.
diff --git a/.claude/skills/ckeditor5-plugin-development/references/architecture.md b/.claude/skills/ckeditor5-plugin-development/references/architecture.md
index eca93a6b2c..215cfe64cc 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/architecture.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/architecture.md
@@ -3,7 +3,7 @@
The conceptual foundation. Read this before working on editing behavior.
> **Scope.** Everything here is engine mechanics from the **`ckeditor5` library** (the npm
-> aggregate, pinned to `48.3.1` in the Trilium monorepo). The APIs (`editor.model`,
+> aggregate, **48 or later** in the Trilium monorepo). The APIs (`editor.model`,
> `editor.editing`, `Plugin`, the writer, schema, conversion) are the library's, imported as
> `import { Plugin } from 'ckeditor5'` (with file extensions). Paths under
> `packages/ckeditor5/src/plugins/` (admonition, collapsible, footnotes, keyboard_marker, mermaid,
diff --git a/.claude/skills/ckeditor5-plugin-development/references/commands.md b/.claude/skills/ckeditor5-plugin-development/references/commands.md
index 6b0a37584f..06c0714952 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/commands.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/commands.md
@@ -5,7 +5,7 @@ by `refresh()`). Commands encapsulate feature logic so UI, keystrokes, other plu
`editor.execute()` can all trigger and observe it. Most editor features expose their behavior
as commands.
-> `Command` and `AttributeCommand` come from the **`ckeditor5` library** (`48.3.1`), imported
+> `Command` and `AttributeCommand` come from the **`ckeditor5` library** (**48 or later**), imported
> as `from 'ckeditor5'` (with file extensions). In Trilium you don't always write a command
> class: simple `$text`-attribute features reuse the built-in `AttributeCommand` —
> `keyboard_marker` registers `new AttributeCommand( editor, '<attr>' )` and lets the
diff --git a/.claude/skills/ckeditor5-plugin-development/references/conventions.md b/.claude/skills/ckeditor5-plugin-development/references/conventions.md
index 7fc2663b5d..3125aa5c1e 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/conventions.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/conventions.md
@@ -100,7 +100,7 @@ declare module 'ckeditor5' {
`references/tooling-and-packaging.md` for the registration flow.
- The one surviving plugin package, `@triliumnext/ckeditor5-math`, shows the older shape:
scope `@triliumnext/`, `"type": "module"`, `"main": "src/index.ts"` (ships TS source — no
- per-package dist), `peerDependencies: { "ckeditor5": "48.3.1" }`, pulled in with
+ per-package dist), a `peerDependencies` entry for `ckeditor5` matching the repo's pin, pulled in with
`workspace:*`. Don't copy it for new work.
## TypeScript config
diff --git a/.claude/skills/ckeditor5-plugin-development/references/conversion.md b/.claude/skills/ckeditor5-plugin-development/references/conversion.md
index 3f567dcf29..e1459b27d0 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/conversion.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/conversion.md
@@ -5,7 +5,7 @@ of truth**; HTML/data is just I/O. That is why helper names look "reversed": con
`<mark>` element ↔ `highlight` model attribute uses `attributeToElement` (you name the
**model** side first).
-> All helpers and writers here come from the **`ckeditor5` library** (`48.3.1`); import as
+> All helpers and writers here come from the **`ckeditor5` library** (**48 or later**); import as
> `from 'ckeditor5'` with file extensions. Trilium's own plugins under `packages/ckeditor5-*`
> register converters via `editor.conversion`; real examples cited below are
> `ckeditor5-math` and `mermaid` (external/async-rendered widgets built with
diff --git a/.claude/skills/ckeditor5-plugin-development/references/core-plugin-patterns.md b/.claude/skills/ckeditor5-plugin-development/references/core-plugin-patterns.md
index 48b04a7f00..b647420da5 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/core-plugin-patterns.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/core-plugin-patterns.md
@@ -3,7 +3,7 @@
> **The source paths below (`packages/ckeditor5-basic-styles`, `-link`, `-image`, `-ui`, etc.)
> point into the CKEditor 5 *library* source
> ([github.com/ckeditor/ckeditor5](https://github.com/ckeditor/ckeditor5)) — the external
-> dependency Trilium pins at `48.3.1` — NOT into Trilium's monorepo.** They show where each idiom
+> dependency Trilium tracks at **48 or later** — NOT into Trilium's monorepo.** They show where each idiom
> lives in the library's own source. These are the upstream library packages (basic-styles, link,
> image, engine, ui, core, widget, typing); do **not** confuse them with Trilium's own
> `packages/ckeditor5-*` plugins (admonition, collapsible, footnotes, keyboard-marker, math,
@@ -11,7 +11,7 @@
> Trilium files — the symbols ship inside the `ckeditor5` npm package.
Real-world idioms mined from the actual library `packages/*/src` source (verified against
-`[email protected]`). These go beyond the tutorials and are the patterns the official plugins
+`ckeditor5` 48 or later). These go beyond the tutorials and are the patterns the official plugins
actually use — and the patterns Trilium's plugins follow. Each item cites its source file in the
CKEditor library repository.
diff --git a/.claude/skills/ckeditor5-plugin-development/references/recipes.md b/.claude/skills/ckeditor5-plugin-development/references/recipes.md
index 75a6dc7d98..47c56d55f5 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/recipes.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/recipes.md
@@ -1,7 +1,7 @@
# Recipes (task-oriented how-tos)
Task-oriented snippets for Trilium's CKEditor plugins (`packages/ckeditor5-*`). All library
-symbols import from `ckeditor5` (48.3.1); local imports carry file extensions. All model
+symbols import from `ckeditor5` (48 or later); local imports carry file extensions. All model
mutations run inside `editor.model.change( writer => … )`. In Trilium the "document" is the
content of a single text note, so these recipes operate over that note's model root.
diff --git a/.claude/skills/ckeditor5-plugin-development/references/tooling-and-packaging.md b/.claude/skills/ckeditor5-plugin-development/references/tooling-and-packaging.md
index 08bc285509..1d39c4ece6 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/tooling-and-packaging.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/tooling-and-packaging.md
@@ -1,9 +1,9 @@
# Tooling & packaging (Trilium)
How CKEditor 5 plugins are packaged, registered, built, and debugged in the **Trilium
-(TriliumNext Notes)** monorepo. This is a pnpm workspace (`[email protected]`, `nodeLinker: hoisted`,
+(TriliumNext Notes)** monorepo. This is a pnpm workspace (pnpm 11 or later, `nodeLinker: hoisted`,
no nx/turbo) with packages under `packages/*` and apps under `apps/*`, org scope `@triliumnext/`.
-The CKEditor 5 **library** is an external dependency pinned to `48.3.1`; there is no package
+The CKEditor 5 **library** is an external dependency on **48 or later**; there is no package
generator here — you add a plugin by hand, as a folder under `packages/ckeditor5/src/plugins/`.
Separate workspace packages are no longer the pattern (see "Where a new plugin goes" below).
@@ -52,7 +52,7 @@ The package layout below is documented **only** for reading `ckeditor5-math`. Do
"type": "module",
"main": "src/index.ts", // ships TS SOURCE — no per-package dist for consumers
"license": "GPL-2.0-or-later",
- "peerDependencies": { "ckeditor5": "48.3.1" },
+ "peerDependencies": { "ckeditor5": "<exact pin from packages/ckeditor5/package.json>" },
"scripts": {
"lint": "eslint \"**/*.{js,ts}\" --quiet",
"stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css'",
@@ -195,5 +195,5 @@ For test setup, model/view assertions, and command/UI test patterns, use the sep
Paths here (`packages/ckeditor5`, `packages/ckeditor5/src/plugins/<name>/`, `packages/ckeditor5-math`, `apps/client/...`) are **this
Trilium repository**. The CKEditor 5 library mechanics referenced (editor bases `BalloonEditor`/
-`DecoupledEditor`, `EditorConfig`, the watchdog) come from the external `ckeditor5` package at
-`48.3.1`.
+`DecoupledEditor`, `EditorConfig`, the watchdog) come from the external `ckeditor5` package,
+**48 or later**.
diff --git a/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md b/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md
index 968cb4b659..c6c43e47f8 100644
--- a/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md
+++ b/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md
@@ -1,7 +1,7 @@
# UI library & localization (Trilium)
In the Trilium monorepo every CKEditor plugin (`packages/ckeditor5-*`) builds its UI with the
-library's UI layer, imported from `ckeditor5` (pinned 48.3.1). It is a small MVC: **Views**
+library's UI layer, imported from `ckeditor5` (48 or later). It is a small MVC: **Views**
render DOM via **Templates**, expose **observable** properties, and are organized into
**collections** that form the UI tree. Features talk to views through observables — never the
native DOM directly. Trilium's text editor runs as one of three classes — `AttributeEditor`
diff --git a/.claude/skills/ckeditor5-reviewing/SKILL.md b/.claude/skills/ckeditor5-reviewing/SKILL.md
index fdb5432aa1..e299c189d7 100644
--- a/.claude/skills/ckeditor5-reviewing/SKILL.md
+++ b/.claude/skills/ckeditor5-reviewing/SKILL.md
@@ -9,8 +9,7 @@ description: >-
position mapping, command refresh/isEnabled bugs, memory leaks, t() gaps,
editing/UI split violations), and Trilium integration defects (plugin not
registered in plugins.ts, button missing from toolbar.ts, import/file-extension
- lint failures, wrong augmentation module, .po localization gaps, wrong test
- environment). Pairs with the ckeditor5-plugin-development and
+ lint failures, wrong augmentation module, wrong DOM assumptions in tests). Pairs with the ckeditor5-plugin-development and
ckeditor5-testing skills and delegates their checklists.
---
@@ -32,7 +31,7 @@ and **what subtle things tend to be wrong**.
## Scope & sources
This skill reviews **CKEditor 5 plugin code in the Trilium monorepo** (scope `@triliumnext/`). The
-CKEditor 5 library itself is the **external `ckeditor5` dependency pinned at 48.3.1** — its docs
+CKEditor 5 library itself is the **external `ckeditor5` dependency, 48 or later** — its docs
([ckeditor.com/docs](https://ckeditor.com/docs)) and source
([github.com/ckeditor/ckeditor5](https://github.com/ckeditor/ckeditor5)) are *external references*,
not the code under review. Nearly all Trilium plugins live **inside** `packages/ckeditor5`, under
@@ -40,6 +39,10 @@ not the code under review. Nearly all Trilium plugins live **inside** `packages/
in-tree plugins alongside them. `packages/ckeditor5-math` is the only remaining separate package.
The aggregate assembles them all and is wired into the editor UI from `apps/client`.
+**On versions:** these skills name **major versions only** ("48 or later"). Trilium tracks CKEditor
+5 closely, so an exact pin written here would be stale within weeks — read the current one from
+`packages/ckeditor5/package.json`.
+
## When to use
Reviewing a PR or diff that touches a Trilium CKEditor 5 plugin (`packages/ckeditor5/src/plugins/`
@@ -67,11 +70,11 @@ plugin; sanity-checking your own feature before opening a PR. For *writing* the
ClassicEditor[Decoupled], PopupEditor[Balloon]);
- any new toolbar component is added to `apps/client/src/widgets/type_widgets/text/toolbar.ts`,
otherwise the button never appears even though the plugin loaded.
-4. **Check conventions (Trilium-specific).** Imports come from the `ckeditor5` aggregate (or
- cross-plugin `@triliumnext/ckeditor5-<x>`) **with explicit file extensions**; augmentation uses
- `declare module 'ckeditor5'` (never `@ckeditor/ckeditor5-core`); any license header matches the
- package's existing convention (it's not uniform across packages); new UI strings are in
- `lang/en.po` + `lang/contexts.json`. These are enforced by `eslint-config-ckeditor5`
+4. **Check conventions (Trilium-specific).** Imports come from the `ckeditor5` aggregate (or a
+ relative path inside `packages/ckeditor5`) **with explicit file extensions**; augmentation uses
+ `declare module 'ckeditor5'` (never `@ckeditor/ckeditor5-core`), normally at the bottom of the
+ plugin's glue file; any license header matches the sibling files in that plugin folder and the
+ provenance recorded in its `README.md`. These are enforced by `eslint-config-ckeditor5`
(`require-file-extensions-in-imports`, `allow-imports-only-from-main-package-entry-point`,
`no-legacy-imports`) and `stylelint-config-ckeditor5` — a diff that breaks them fails lint.
5. **Run the tests for the affected package.** Use Vitest via
@@ -100,8 +103,8 @@ plugin; sanity-checking your own feature before opening a PR. For *writing* the
labels/`addKeystrokeInfos`), memory leaks, command enabled where the schema disallows it; **button
missing from `toolbar.ts`**; **lint-failing imports** (missing file extension / wrong package /
legacy `@ckeditor/*`) that block the build.
-- **Minor** — convention/naming issues, missing `t()`, missing `lang/en.po` entries, redundant
- converters, non-idiomatic but working code.
+- **Minor** — convention/naming issues, missing `t()`, redundant converters, non-idiomatic but
+ working code.
- **Nit** — style preferences with no behavioral impact; mark them as optional.
Lead with blockers/majors; don't bury them under nits.
@@ -137,7 +140,7 @@ I don't see a `dataDowncast`.") rather than a false assertion.
## Provenance & source references
The CKEditor-general defect patterns are distilled from the companion skills and the CKEditor 5
-library at the pinned **48.3.1**; `docs/…` / `packages/…` paths in those patterns point into the
+library at **48 or later**; `docs/…` / `packages/…` paths in those patterns point into the
**external CKEditor 5 repository** ([github.com/ckeditor/ckeditor5](https://github.com/ckeditor/ckeditor5)),
not the Trilium code under review. The Trilium-specific paths
(`packages/ckeditor5/src/plugins/<name>/`, `packages/ckeditor5-math`,
diff --git a/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md b/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md
index 20fb73ce85..fecfb50689 100644
--- a/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md
+++ b/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md
@@ -145,12 +145,12 @@ group covers the monorepo wiring/convention defects. For the idiomatic "how it s
- Why: breaks headless/server-side use and reuse of the editing layer.
- Fix: editing logic in `*Editing`, UI in `*UI`, glue plugin requiring both.
-**Outdated / mixed imports (Trilium pins ckeditor5 48.3.1).**
+**Outdated / mixed imports (Trilium tracks ckeditor5 48 or later).**
- Spot: deep imports `@ckeditor/ckeditor5-*/src/...`; any `@ckeditor/*` package import instead of the
`ckeditor5` aggregate; a `ckeditor5`/`@triliumnext/...` import *missing the file extension*;
removed/renamed symbols (the UI model class is `ViewModel` — what Trilium's plugins use — not the
old `Model`; `icons.check` → `IconCheck`).
-- Why: Trilium always imports from the `ckeditor5` aggregate (pinned 48.3.1), or by relative path
+- Why: Trilium always imports from the `ckeditor5` aggregate (48 or later), or by relative path
within `packages/ckeditor5`, **with explicit file extensions** — `eslint-config-ckeditor5`
(`require-file-extensions-in-imports`, `allow-imports-only-from-main-package-entry-point`,
`no-legacy-imports`) fails the build otherwise; deep `@ckeditor/*` paths also risk duplicate
diff --git a/.claude/skills/ckeditor5-testing/SKILL.md b/.claude/skills/ckeditor5-testing/SKILL.md
index b42bcb6f86..1fc8d19cfb 100644
--- a/.claude/skills/ckeditor5-testing/SKILL.md
+++ b/.claude/skills/ckeditor5-testing/SKILL.md
@@ -24,9 +24,13 @@ metrics, so every code change must ship with a test.
## Scope & sources
This skill covers testing CKEditor 5 plugins in the **Trilium (TriliumNext Notes) monorepo**
-(`packages/ckeditor5` and `packages/ckeditor5-math`). The CKEditor 5 library is pinned to 48.3.1.
+(`packages/ckeditor5` and `packages/ckeditor5-math`). The CKEditor 5 library is 48 or later.
For general (non-CKEditor) Trilium testing, see the `writing-unit-tests` skill.
+**On versions:** these skills name **major versions only** ("48 or later"). Trilium tracks CKEditor
+5 closely, so an exact pin written here would be stale within weeks — read the current one from
+`packages/ckeditor5/package.json`.
+
## When to use this skill
Adding/reviewing unit tests for a plugin, debugging a failing test, or configuring a package's
@@ -35,7 +39,7 @@ Trilium testing (Preact components, jQuery widgets, server routes), use `writing
## The current setup at a glance
-- **Runner:** Vitest (`[email protected]`). **No shared factory** — each package has its own
+- **Runner:** Vitest 4 or later. **No shared factory** — each package has its own
`vitest.config.ts` built with `defineConfig` directly.
- **One environment: WebdriverIO browser mode** (`@vitest/browser-webdriverio`, headless Chrome),
used by both `ckeditor5` and `ckeditor5-math`. Real DOM and real layout, so
diff --git a/.claude/skills/ckeditor5-testing/references/running-and-config.md b/.claude/skills/ckeditor5-testing/references/running-and-config.md
index 737687492d..3a1fbb3de3 100644
--- a/.claude/skills/ckeditor5-testing/references/running-and-config.md
+++ b/.claude/skills/ckeditor5-testing/references/running-and-config.md
@@ -2,8 +2,8 @@
Two packages carry CKEditor 5 tests: `packages/ckeditor5` (the aggregate, which holds every
in-tree plugin under `src/plugins/`) and `packages/ckeditor5-math`. Each has its own
-`vitest.config.ts` built with `defineConfig` directly — there is no shared factory. Vitest is
-`4.1.10`.
+`vitest.config.ts` built with `defineConfig` directly — there is no shared factory. Vitest is 4 or
+later.
## Per-package scripts