context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
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
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-rename --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-rename -a windsurf -y
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.
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.
A rename is four operations, not one. All four, or none.
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.
Renamed: [[old]] -> [[new]] Inbound links updated: <n> across <n> pages Alias added: <old> Remaining references: <none | list>
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.
Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Scaffold a first eval suite for an agent: mine real failures into cases, write behavioural checks over traces, and generate the…
Find the decisions in a pipeline that do not need the expensive model and propose the gate for each: a rule, a classic…
Turn a vague task into a testable definition of done and generate an executable goal-test script for it, optionally with a…
Audit an agent's harness against the four rings: containment, guides, sensors, permissions. Use when the user asks whether their…
Import a large archive into the vault in controlled batches: triage what is worth ingesting, process oldest first, checkpoint…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…