No slash command · from obsidian-plugin
Bulk-strips legacy `id:` fields, cleans Templater markers, removes bare emoji placeholders and null tag entries from Obsidian note YAML frontmatter offline.
Ships in obsidian-plugin. 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.
None: SKILL.md is the whole skill.
| Use this skill when... | Use the alternative instead when... |
|---|---|
Bulk-stripping legacy id: fields or null tags: entries across many .md files offline | Setting a single property on one live note via the running CLI — use properties |
Cleaning up unrendered {{title}} / <% tp.file.cursor() %> placeholders inside YAML | Repairing those markers in note body text — use vault-templates |
| Adding missing frontmatter blocks to notes that lack one | Consolidating the actual tag values once the YAML structure is sound — use vault-tags |
Offline, file-level repair of YAML frontmatter. Complements the properties skill (which uses the Obsidian CLI) by operating on .md files directly — safe for bulk mechanical passes.
id: field from a batch of notes<% tp.file.cursor() %>, {{title}})null entries inside tags: listscontext: work---
tags:
- 🛠️/neovim # emoji-prefixed category tag
- 📝/notes # note-type tag
context: work # work-namespace notes only
---
Rules:
id: field — removed from all current templates.emoji/subcategory or a bare note-type like 📝/moc.📝, 🌱, 📝/🌱) — they indicate the tag was never specified.null tag values — YAML must be valid.work/) carry context: work; personal notes omit the field.| Issue | Grep pattern | Notes |
|---|---|---|
Legacy id: | ^id: inside frontmatter block | Strip entire line |
| Bare placeholder tag | YAML tag value exactly 📝, 🌱, or 📝/🌱 | Remove if note has other useful tags; else leave |
| Null tag | YAML tag value literally null | Remove list entry |
| Templater leak | <% tp\. or \{\{title\}\} or \{\{date\}\} | Replace {{title}} with filename stem; strip <% tp.* %> |
| Corrupt emoji | Tag contains Unicode replacement char \ufffd | Flag for manual fix — don't guess |
| Missing work context | File under the work namespace (e.g. work/) without context: work | Add the line |
Before:
---
id: 20240118235900
tags: [🛠️/neovim]
---
After:
---
tags: [🛠️/neovim]
---
Before:
tags:
- 📝
- 🛠️/ansible
After:
tags:
- 🛠️/ansible
Before:
tags:
- 🗺️
After:
tags:
- 📝/moc
Use Edit with small targeted old_string / new_string replacements that preserve exact indentation. Never rewrite whole files when a line edit suffices — it minimizes the commit diff and makes reviews easy.
For bulk fixes across many files, drive from a script that emits one Edit call per file rather than running sed in Bash. The commit-per-category pattern (fix(tags): strip bare 📝 from 639 notes) relies on keeping all edits in one logical batch.
.obsidian/, .claude/, .git/, Files/. The safety hook enforces this.Notes/ or work/notes/ without verifying — they often don't need any.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin obsidian-plugin21 skills in this plugin
/basesObsidian Bases (database-over-notes): list base files/views, create items, run view queries with json/csv/tsv/md output. Use when user mentions Bases or .base files./bookmarksObsidian bookmarks: list and add file/folder/heading/saved-search/URL bookmarks. Use when starring or saving notes for quick access./command-paletteRun, list, and inspect Obsidian commands and hotkeys from the CLI. Use when triggering a command, enumerating commands, or checking hotkey bindings.Other plugins' skills for the same job