second-brain-rename
Skill891 starsChanged 3 months agoMITView on GitHub
Rename a page safely: update the file, fix every inbound wikilink, add the old name as an alias, and log it. Use this skill whenever a page needs a different canonical title, the user says "rename X to Y", asks to fix an inconsistent title, or after a lint run flags naming problems. Do NOT use for merging two pages, for moving a page between folders without a name change, or for renaming files outside the wiki.
In this repository18 other files it gives its agents.
- vault-template/CLAUDE.mdCLAUDE.md
- second-brain-backfillSkill
- second-brain-changed-my-mindSkill
- second-brain-chat-importSkill
- second-brain-graphSkill
- second-brain-ingestSkill
- second-brain-lintSkill
- second-brain-mergeSkill
- second-brain-metricsSkill
- second-brain-privacySkill
- second-brain-projectSkill
- second-brain-publishSkill
- second-brain-querySkill
- second-brain-quizSkill
- second-brain-reportSkill
- second-brain-reviewSkill
- second-brain-transcriptSkill
- second-brain-writeSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Update every inbound link: Search the whole vault, including index.md.
- Distinctive: line 44
Do not rename to fix a style preference on a page with many inbound links.
- Distinctive: line 47
If the correct name is genuinely ambiguous, ask rather than picking.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rename a page
An agent renaming a file directly is the single most common source of broken links in an agent-maintained vault. Obsidian fixes links when you rename inside the app; writing the file directly does not.
Core rule
A rename is four operations, not one. All four, or none.
Workflow
- Check the new name against existing pages and aliases. A rename that collides with an existing alias creates ambiguity the graph cannot resolve.
- Rename the file and update the
titlein frontmatter. - Add the old title to
aliases. This keeps external references, the user's memory, and any link you miss working. - Update every inbound link. Search the whole vault, including
index.md. - Log it: old name, new name, links updated.
- Verify with a link check.
Output format
Renamed: [[old]] -> [[new]]
Inbound links updated: <n> across <n> pages
Alias added: <old>
Remaining references: <none | list>Calibration
Do not rename to fix a style preference on a page with many inbound links. The cost is real and the benefit is cosmetic.
If the correct name is genuinely ambiguous, ask rather than picking. A second rename is more disruptive than the first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

