/trilium:trilium-manage-note-attributesfrom trilium
Add, update, or remove labels and relations on a note in Trilium Notes via set_attribute, get_attributes and delete_attribute. Use when the user asks to tag a note, add or remove a label/relation, or change an attribute's value — general attribute management, not specifically template promoted attributes (those are covered inline by the template skills).
Ships in trilium. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Labels (#name / #name=value) and relations (~name pointing at another note) are both "attributes" in Trilium Notes' model. This skill covers ad-hoc tagging and relations generally; the template skills (trilium-create-note-from-template, trilium-apply-template-to-note) already handle the ~template relation and promoted-attribute values inline.
set_attribute adds or replaces (verified against a live instance): if the note already owns an attribute with the same type and name, its value is updated; otherwise a new one is created. So it can't add a second label of the same name (#tag=one and #tag=two); the second call overwrites the first. For a repeated label, tell the user and suggest adding it in Trilium Notes.
If more than one Trilium Notes instance is connected this session, resolve which one to use first — see Working with multiple instances.
Resolve the target note (by title via search_notes or by noteId if given).
Determine the operation:
set_attribute with noteId, type (label or relation), name, value (for a relation, the target noteId; resolve the target note first). Check get_attributes first if the name may already exist, and say that its value will be replaced.delete_attribute the old one, then set_attribute the new one.attributeId in get_attributes (only ones the note owns, not inherited ones), then delete_attribute with noteId and attributeId.Confirm before removing or replacing an attribute that looks structurally significant — a ~template relation, a #template label, or a label:<field>=promoted,... definition — since that changes how the note behaves, not just its metadata. Plain tags/labels don't need this.
Report back: which attribute(s) changed and their new state. Don't dump the note's full attribute list unless the user asks for it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marceltov/trilium-plugin --plugin trilium12 skills in this plugin
/trilium-apply-template-to-noteRetroactively attach an existing note in Trilium Notes to a template via a ~template relation, which merges the template's child-note structure, content, and promoted attributes onto that note. Use when the user asks to convert, retrofit, or "make this note use" an existing template. This overwrites the target note's content and adds child notes to it — always confirm before writing./trilium-create-noteCreate a new plain note in Trilium Notes (title, content, type, and parent location) via the create_note MCP tool. Use when the user asks to create, add, jot down, or capture a new note in Trilium Notes and no template is involved./trilium-create-note-from-templateCreate a new note in Trilium Notes instantiated from an existing template note, by creating a blank note and attaching a ~template relation, then prompting for the template's promoted-attribute values. Use when the user asks to create a note "from" or "using" a template (e.g. "create a new Server note from the Server template")./trilium-delete-noteDelete a note in Trilium Notes (and its entire subtree of child notes) via the delete_note MCP tool, after confirming with the user. Use when the user asks to delete, remove, or get rid of a note in Trilium Notes./trilium-export-note-subtreeExport a note in Trilium Notes and its subtree as one readable Markdown document, built from get_subtree and get_note_content. Use when the user asks to export, dump, or get a readable copy of a note and its children — e.g. for backup, review, or pasting elsewhere./trilium-find-template-instancesSearch for notes in Trilium Notes instantiated from a given template, optionally filtered by promoted-attribute values, using ~template relation search syntax. Use when the user asks to list, find, or query notes created from a template (e.g. "show me all Server notes" or "which notes use the Meeting template").