Appearance
date: 2026-06-03 tags: [skills, rename, grep] status: graduated graduated_to: .claude/skills/build-claude-skill/SKILL.md
A renamed skill's new name can contain its old token
Symptom — after tempo-domain → fyi-tempo-domain, the verification grep -E '\btempo-domain\b' still reported matches, falsely implying stale references survived the rename.
Root cause — the new name is a superstring of the old (fyi-tempo-domain ⊃ tempo-domain; the - is a word boundary, so \b…\b matches inside it). Only some renames hit this — build-crud-in-tempo does not contain tempo-crud, but suffix/prefix renames do.
Fix — when verifying "no stale refs" after a rename, exclude the new names and the intentional (formerly X) description notes: grep … | grep -vE '<new-name>|formerly'.
Guard — build-claude-skill's "After creating or renaming" step warns that a new name can contain the old token and to filter those out.