Skip to content
Productivity
Command

/refactor

Reorganize notes and folders safely — rename, move, split, merge — and rewire every affected wikilink

From plugin
obsidian-knowledge-agent
20612 skills12 commands
> /plugin marketplace add Michael-OvO/obsidian-knowledge-agent
> /plugin install obsidian-knowledge@obsidian-knowledge-agent

Command definition

refactor.md
description: Reorganize notes and folders safely — rename, move, split, merge — and rewire every affected wikilink
argument-hint: <the change, e.g. "rename ML to Machine Learning" or "split the Transformers note">

Carry out the restructuring in `$ARGUMENTS` without breaking the vault.

1. **Plan.** State exactly what will move, rename, split, or merge, and which files link to the affected notes (search for wikilinks to them). Show me the plan before changing anything. 2. **Baseline.** Validate links first (`scripts/validate_links.py`) so we know the starting point is clean. 3. **Execute** with `git mv` where possible (preserve history). For a split, create the new notes and move the relevant content; for a merge, combine and redirect. Preserve frontmatter. 4. **Rewire EVERY wikilink** that pointed at a moved/renamed/merged note — including aliased and table-escaped (`\|`) links — and update any indexes and concept-graph canvas. 5. **Re-validate links** (must be zero broken) and **commit**. Never delete a note without my explicit approval — leave a redirect stub or archive it instead.

@michael-ovo
Ships withobsidian-knowledge-agent

Talk to your vault. It does the rest. You drop it in. It files, it teaches, and it remembers how you like your notes. Point any agentic assistant at your Obsidian vault and talk to it — "save this link", "organize my inbox", "ingest the syllabus in Inbox".

Stars on GitHub

Momentum

stars in total
206
Star history of Michael-OvO/obsidian-knowledge-agent on GitHub, a chart by star-history.com

Other commands on obsidian-knowledge-agent.

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command