feat: prompt user to rescan when skill folder changes detected - #15
feat: prompt user to rescan when skill folder changes detected#15dominic323 wants to merge 1 commit into
Conversation
Adds filesystem sync check in smart entry to detect when skills are manually installed or removed. Prompts user to rescan inventory instead of silently using stale cache. - Compares cached inventory count with actual ~/.claude/skills/ files - Prompts user with clear options when mismatch detected - Respects user choice to skip rescan if desired - Adds ~50ms overhead for Glob check (acceptable for UX improvement) Fixes issue where manually installed skills were invisible until user explicitly mentioned them.
|
Thanks for picking this up — the underlying UX problem is real (silent cache drift when skills are manually installed or removed is a genuine gap). That said, I don't think this is ready to merge as-is. The core issue isn't where the check lives; it's that the comparison model doesn't match the existing discovery contract. Main blocker:
|
Adds filesystem sync check in smart entry to detect when skills are manually installed or removed. Prompts user to rescan inventory instead of silently using stale cache.
Fixes issue where manually installed skills were invisible until user explicitly mentioned them.
Summary
Adds filesystem sync check to detect when skills are manually installed or removed, prompting the user to rescan inventory instead of silently using stale cache.
Problem
When users manually install a new skill (e.g.,
git clone skill-repo ~/.claude/skills/new-skill), running/skillcompassdoes not detect the change. The tool trusts the cached inventory insetup-state.jsonwithout verifying it against the filesystem, causing newly installed skills to be invisible.Solution
Modified the smart entry logic (Step 3 in
SKILL.md) to:~/.claude/skills/*/SKILL.mdfilesinventory.lengthChanges
SKILL.md(lines 126-137, inserted filesystem sync check)Why prompt instead of auto-scan?
Test Plan
/skillcompass→ should prompt to rescan/skillcompass→ should prompt to update/skillcompass→ should skip check and continue normallysetup-state.jsonRelated Issue
Discovered during user session where
agile-product-ownerwas manually installed but not detected until user explicitly mentioned it.