Tooluck logoTooluck
SKILL.md

second-brain-rename

Agent skill fromundefined-ui/second-brain-os

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.

How to install second-brain-rename

install second-brain-rename
# install the second-brain-os pack with the skills CLI
npx skills add undefined-ui/second-brain-os

# or add only this skill to Claude Code: copy the folder

skills/second-brain-rename/

# into

~/.claude/skills/second-brain-rename/ (all projects)

.claude/skills/second-brain-rename/ (one project)

skills/second-brain-rename/SKILL.md

MITFull file
1# Rename a page
2
3An agent renaming a file directly is the single most common source of broken
4links in an agent-maintained vault. Obsidian fixes links when you rename inside
5the app; writing the file directly does not.
6
7## Core rule
8
9A rename is four operations, not one. All four, or none.
10
11## Workflow
12
131. **Check the new name** against existing pages and aliases. A rename that
14 collides with an existing alias creates ambiguity the graph cannot resolve.
152. **Rename the file** and update the `title` in frontmatter.
163. **Add the old title to `aliases`.** This keeps external references, the
17 user's memory, and any link you miss working.
184. **Update every inbound link.** Search the whole vault, including `index.md`.
195. **Log it:** old name, new name, links updated.
206. **Verify** with a link check.
21
22## Output format
23
24```
25Renamed: [[old]] -> [[new]]
26Inbound links updated: <n> across <n> pages
27Alias added: <old>
28Remaining references: <none | list>
29```
30
31## Calibration
32
33Do not rename to fix a style preference on a page with many inbound links. The
34cost is real and the benefit is cosmetic.
35
36If the correct name is genuinely ambiguous, ask rather than picking. A second
37rename is more disruptive than the first.

Excerpt shown under the repository's MIT license.

More skills in second-brain-os

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates