You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e475093
Browse filesBrowse the repository at this point in the historyBrowse files
Techno911
committed
fix(skills): dedup skill listing by SKILL.md content, not just filePath
The same skill often gets registered under several roots at once (a
shared-user copy in .bb/shared-provider-skills mirrored into a
provider's own native root such as .claude/skills, or into
.agents/skills for another provider). listProjectSkills concatenated
four independent scan groups (provider-native, shared, bb-owned,
plugin) with no dedup across them, so the identical skill showed up
once per registration.
Dedup by content digest (SKILL.md sha256), not by name: two unrelated
skills can legitimately share a name and must not be merged. The
digest for provider/shared scans is free - command-discovery.ts
already reads the full SKILL.md to parse frontmatter, so it now hashes
that same read once and carries it on DiscoveredSkill.contentSha256
(optional/nullable, so older builds and hand-built test fixtures keep
validating). bb-owned and plugin skills are hashed locally since they
already live on the server's own disk.
Resolution by opaque skillId (read/write/delete a skill file) still
searches the full undeduped registration list, so no previously issued
id stops resolving - only the display list collapses duplicates, never
the disk or the addressable set of ids.
Nothing on disk changes; .claude/skills and .agents/skills stay as
they are.
0 commit comments