Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(llm): address some issues in skills
Elian Doran20492f71fc30
diff --git a/apps/server/src/assets/llm/skills/backend_scripting.md b/apps/server/src/assets/llm/skills/backend_scripting.mdindex f028bdb2a2..65f9cb72e3 100644--- a/apps/server/src/assets/llm/skills/backend_scripting.md+++ b/apps/server/src/assets/llm/skills/backend_scripting.md@@ -74,7 +74,7 @@ Use the native `fetch()` API for HTTP requests. Since `fetch()` is async and top})();```-Note: `api.axios` was removed in 2026 due to a supply chain security incident. Use `fetch()` instead.+Note: `api.axios` was removed in March 2026 following an npm supply chain attack. Use `fetch()` instead.### Advanced- `api.transactional(func)` - wrap code in a database transactiondiff --git a/apps/server/src/assets/llm/skills/search_syntax.md b/apps/server/src/assets/llm/skills/search_syntax.mdindex a43b6b25d7..4008dac553 100644--- a/apps/server/src/assets/llm/skills/search_syntax.md+++ b/apps/server/src/assets/llm/skills/search_syntax.md@@ -13,7 +13,7 @@- `#title *= Rings` — ends with- `#publicationYear >= 1950` — numeric comparison (>, >=, <, <=)- `#dateNote >= TODAY-30` — date keywords: NOW+-seconds, TODAY+-days, MONTH+-months, YEAR+-years-- `#phone %= '\d{3}-\d{4}'` — regex match+- `#phone %= '\\d{3}-\\d{4}'` — regex match (backslashes in the regex MUST be doubled — a single `\d` is lexed as a plain `d`)- `#title ~= trilim` — fuzzy exact match (tolerates typos, min 3 chars)- `#content ~* progra` — fuzzy contains match@@ -23,9 +23,10 @@- `~author.relations.son.title = 'Christopher Tolkien'` — deep relation traversal## Note properties-Access via `note.` prefix: noteId, title, type, mime, text, content, rawContent, dateCreated, dateModified, isProtected, isArchived, parentCount, childrenCount, attributeCount, labelCount, relationCount, contentSize, revisionCount.+Access via `note.` prefix: noteId, title, type, mime, content, rawContent, dateCreated, dateModified, isProtected, isArchived, parentCount, childrenCount, attributeCount, labelCount, relationCount, contentSize, revisionCount.- `note.type = code AND note.mime = 'application/json'`- `note.content *=* searchTerm`+- `note.text *=* searchTerm` — virtual property searching title OR content; supports ONLY the `*=*` operator## Hierarchy- `note.parents.title = 'Books'` — parent named "Books"