Agent skill

Migrate Tags

by benoror in benoror/obsidianos_work

Migrate body-level hashtags to frontmatter tags: lists so Bases can filter on them.

MITAuto-check passed

Install Migrate Tags

skills CLI
$ npx skills add benoror/obsidianos_work --skill migrate-tags -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install benoror/obsidianos_work migrate-tags --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/benoror/obsidianos_work.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/migrate-tags .claude/skills/migrate-tags && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrate-tags
GitHub stars
165
Token cost
~850 tokens
SKILL.md length
382 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Migrate body-level hashtags to frontmatter tags: lists so Bases can filter on them.

  • Works in 5 steps: Discover candidates → Present the plan → Apply migration → …
  • SKILL.md covers Usage, Why this skill exists, Workflow and Important Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Migrate Tags is an agent skill from benoror/obsidianos_work. Migrate body-level hashtags to frontmatter tags: lists so Bases can filter on them. Idempotent — leaves files that already have frontmatter tags alone.

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Obsidian. The repository describes itself as: ObsidianOS - Work Vault. The licence is MIT.

Example prompts

  • “/migrate-tags”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Discover candidates
  2. Present the plan
  3. Apply migration
  4. Verify
  5. Commit

What it can do on your machine

Read from SKILL.md and the folder at commit 3c7923e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrate Tags loads about 850 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 382 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~850

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from benoror/obsidianos_work at commit 3c7923e, republished under its MIT licence (© benoror). 382 words, ~850 tokens.

Download SKILL.mdSave it as .claude/skills/migrate-tags/SKILL.md (or your agent's skills folder).
name
migrate-tags
description
Migrate body-level #hashtags to frontmatter `tags:` lists so Bases can filter on them. Idempotent — leaves files that already have frontmatter tags alone.
license
MIT

Migrate Tags

Usage

  • /migrate-tags — Scan vault, present a migration plan, prompt to confirm.
  • /migrate-tags <path> — Migrate a single file.
  • /migrate-tags <folder> — Migrate all .md files under a folder.
  • /migrate-tags --dry-run — Show what would change without writing.

Why this skill exists

Obsidian supports two tag styles:

  • Body tags: #frontend written inline in note text.
  • Frontmatter tags: a YAML tags: list at the top of the file.

Bases can filter on the frontmatter style (file.hasTag("frontend")) but not the body style reliably. Migrating one to the other makes tags queryable in Bases views — e.g. a "People with #mobile tag" view becomes trivial once everyone's @Name.md has tags: [mobile].

This skill is a one-shot migration utility plus an ongoing cleanup tool for new notes.

Workflow

Step 1: Discover candidates

Use obsidian tags format=json to enumerate all tags + their usage counts and source files. Identify files where:

  • A body #tag exists, AND
  • The same tag is NOT already present in frontmatter tags:.

These are the migration candidates.

Step 2: Present the plan

Show a numbered table grouped by file:

| # | File | Body tags to migrate | Existing frontmatter tags |
|---|------|----------------------|---------------------------|
| 1 | Teams/People/@Jane Doe.md | #team-engineering, #backend | (none) |
| 2 | Teams/People/@John Smith.md | #team-engineering, #remote | (none) |
| 3 | Misc/Reading.md | #to-read, #book | (none) |

Ask the user: "all", "1,2", "none", or per-file picks.

Step 3: Apply migration

For each confirmed file:

  1. Read the file body, collect all #tag patterns (respecting word boundaries — #tag not https://foo.com/path#section).
  2. Use obsidian property:set name=tags value='["a","b","c"]' type=list path="<file>" to write the frontmatter list. If tags: already exists, merge (don't overwrite). See frontmatter-mutations.
  3. Optionally remove the body #tag patterns (default: leave them — Obsidian indexes both, body tags don't hurt). Add a --strip-body flag for users who want clean bodies.
Show full SKILL.md (127 more words)Show less
Step 4: Verify

Run obsidian property:read name=tags path="<file>" on each migrated file to confirm the write. Spot-check that no tags were lost.

Step 5: Commit

See /commit. Commit message: chore: migrate body #tags to frontmatter tags: list (N files).

Important Notes

  • Idempotent: re-running on already-migrated files is a no-op.
  • Don't strip body tags by default — users may rely on visible tags in the body for in-note navigation. Opt-in via --strip-body.
  • Tag normalization: leave tag names as-is. Don't auto-convert #team-engineering → team-engineering (the leading # is stripped automatically; nothing else).
  • Nested tags (#team/engineering) are preserved.
  • Tags inside code blocks are skipped — they're literal, not Obsidian tags.
  • After running on People files, People.base per-team views can use file.hasTag("team-X") as an alternative to the file.hasLink(file("Teams/+X.md")) filter (which works but is more verbose).

© benoror, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/migrate-tags of benoror/obsidianos_work.

Open the folder on GitHubat commit 3c7923e

Compare with similar skills

Migrate Tags next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrate Tags compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrate Tags this skillbenoror/obsidianos_work165—~850Automated safety check: PassMIT
Obsidian BasesAtmosphere/atmosphere3.8k22 repos~3.2kAutomated safety check: PassApache-2.0
Knap Markdown Templateskepano/obsidian-skills49k2 repos~986Automated safety check: PassMIT
JSON Canvasheyitsnoah/claudesidian2.6k18 repos~3.5kAutomated safety check: PassMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
Obsidian CLIAtmosphere/atmosphere3.8k13 repos~795Automated safety check: PassApache-2.0

Similar skills

  • Obsidian Bases

    Atmosphere/atmosphere

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries.

    3.8k GitHub starsUsed in 22 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Knap Markdown Templates

    kepano/obsidian-skills

    Renders Markdown notes from Knap templates and JSON data on the command line, including notes built from Defuddle web page output.

    49k GitHub starsUsed in 2 repos~986 tokens
    Documents & OfficeAuto-check passed
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • Obsidian CLI

    Atmosphere/atmosphere

    Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more.

    3.8k GitHub starsUsed in 13 repos~795 tokens
    Knowledge ManagementAuto-check passed
  • Obsidian Canvas Creator

    axtonliu/axton-obsidian-visual-skills

    Create Obsidian Canvas files from text content, supporting both MindMap and freeform layouts.

    3.6k GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed

More from benoror/obsidianos_work

All 18 skills in this repo
  • Qmd

    benoror/obsidianos_work

    Search vault notes by keyword or meaning. An agent skill from benoror/obsidianos_work.

    165 GitHub stars~858 tokensUpdated 4 mo ago
    Auto-check passed
  • Cache Notes

    benoror/obsidianos_work

    Fetch & embed AI transcripts as Obsidian callouts. An agent skill from benoror/obsidianos_work.

    165 GitHub stars~2.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Fill Participants

    benoror/obsidianos_work

    Resolve and fill Participants frontmatter + link unlinked names in body.

    165 GitHub stars~1.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Followup Todos

    benoror/obsidianos_work

    Extract action items as plain markdown bullets (with confirmation).

    165 GitHub stars~1.8k tokensUpdated 4 mo ago
    Auto-check passed
  • Last 1on1

    benoror/obsidianos_work

    Show when you last had a 1:1 with each direct report / peer, sorted by recency.

    165 GitHub stars~732 tokensUpdated 4 mo ago
    Auto-check passed
  • Mail Transcripts

    benoror/obsidianos_work

    Gmail AI transcript notifications → meeting Notes: URLs + mark read.

    165 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Migrate Tags

What does Migrate Tags do?

Migrate body-level hashtags to frontmatter tags: lists so Bases can filter on them. Migrate Tags is an agent skill from benoror/obsidianos_work. Migrate body-level hashtags to frontmatter tags: lists so Bases can filter on them.

How do I install Migrate Tags in Claude Code?

Run `npx skills add benoror/obsidianos_work --skill migrate-tags -a claude-code`. Or copy the skill folder (.agents/skills/migrate-tags in benoror/obsidianos_work) into .claude/skills/migrate-tags in your project. Claude Code loads it when a task matches its description.

How do I install Migrate Tags in Codex?

Run `npx skills add benoror/obsidianos_work --skill migrate-tags -a codex`. Or copy the skill folder (.agents/skills/migrate-tags in benoror/obsidianos_work) into .agents/skills/migrate-tags in your project. Codex loads it when a task matches its description.

Can I use Migrate Tags in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benoror/obsidianos_work --skill migrate-tags -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-tags, .gemini/skills/migrate-tags, .github/skills/migrate-tags and .opencode/skills/migrate-tags in your project.

What does Migrate Tags need to run?

SKILL.md names no scripts, command-line tools or credentials: Migrate Tags is instructions for the agent only.

Does Migrate Tags access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Migrate Tags safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migrate Tags use?

Migrate Tags is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migrate Tags use?

About 850 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migrate Tags?

Skills that share tags, products or a category with Migrate Tags: Obsidian Bases (Atmosphere/atmosphere, 3.8k stars), Knap Markdown Templates (kepano/obsidian-skills, 49k stars), JSON Canvas (heyitsnoah/claudesidian, 2.6k stars) and Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrate Tags?

benoror (a GitHub user) maintains it in benoror/obsidianos_work, which has 165 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on June 11, 2026.

Source: benoror/obsidianos_work on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.