Claude Skill

second-brain-rename

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 proble

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download undefined-ui-second-brain-os-skills_second-brain-rename-347feee.zip · 0 KB
Part of undefined-ui/second-brain-os — 18 skills

Install

skills CLI npx skills add https://github.com/undefined-ui/second-brain-os/tree/main/skills/second-brain-rename
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install undefined-ui-second-brain-os@llmmart
Git git clone https://github.com/undefined-ui/second-brain-os.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole undefined-ui/second-brain-os collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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

  1. Check the new name against existing pages and aliases. A rename that collides with an existing alias creates ambiguity the graph cannot resolve.
  2. Rename the file and update the title in frontmatter.
  3. Add the old title to aliases. This keeps external references, the user's memory, and any link you miss working.
  4. Update every inbound link. Search the whole vault, including index.md.
  5. Log it: old name, new name, links updated.
  6. 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.

Files (second-brain-os)
  • SKILL.md 1.7 KB
    ---
    name: second-brain-rename
    description: >-
      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.
    ---
    
    # 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
    
    1. **Check the new name** against existing pages and aliases. A rename that
       collides with an existing alias creates ambiguity the graph cannot resolve.
    2. **Rename the file** and update the `title` in frontmatter.
    3. **Add the old title to `aliases`.** This keeps external references, the
       user's memory, and any link you miss working.
    4. **Update every inbound link.** Search the whole vault, including `index.md`.
    5. **Log it:** old name, new name, links updated.
    6. **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.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related