Repository navigation
Description
Summary
An imported skill reached through a symlinked directory appears in Skills → My skills, but opening it shows Failed to load SKILL.md. Both bb skill show and bb skill files fail with HTTP 502. The target directory and SKILL.md exist and are readable.
Versions and environment
- BB 0.46.0, installed desktop app; local macOS server/host daemon, accessed through BB Connect.
- macOS 27.0.1 (26A434), arm64.
- Pi 1.2.0; the affected entry is a
provider-userskill under~/.pi/agent/skills. - Source investigation started at
d722659a2c89fdf371fdb5d9f09fdd1ba3d0cba7. Latest upstreammainchecked:05771e3c82404328854468f0fff7f0f8203e2076. - Source regression tests use Node 22.19.0 and pnpm 9.15.0. No agent turn is needed to reproduce.
Steps to reproduce
With the Pi provider enabled, run this against a BB project that lists provider skills (jq is used to extract the opaque skill ID):
probe_dir="$(mktemp -d)"
skill_name="bb-linked-detail-probe-$(date +%s)"
mkdir -p "$probe_dir/$skill_name" "$HOME/.pi/agent/skills"
printf -- '---\nname: %s\ndescription: Linked skill detail probe\n---\n# Linked skill probe\n' "$skill_name" > "$probe_dir/$skill_name/SKILL.md"
ln -s "$probe_dir/$skill_name" "$HOME/.pi/agent/skills/$skill_name"
skill_id="$(bb skill list --json | jq -r --arg name "$skill_name" '.skills[] | select(.provider == "pi" and .name == $name) | .id' | head -n 1)"
bb skill show "$skill_id" --json
bb skill files "$skill_id" --jsonAlternatively, open that entry in Skills → My skills. For cleanup:
rm "$HOME/.pi/agent/skills/$skill_name"
rm -r "$probe_dir"Expected vs actual
Expected: the skill detail and file list load from the resolved skill directory, with relative reads still confined to that directory.
Actual UI: Failed to load SKILL.md.
Actual CLI output from the original research entry:
{
"ok": false,
"error": {
"code": "invalid_path",
"message": "HTTP 502: Root path \"/Users/dillon/.pi/agent/skills/research\" must not be a symlink"
}
}The file-list command reports:
HTTP 502: Path "/Users/dillon/.pi/agent/skills/research" must not be a symlink
Evidence
The original directory is a valid link: ~/.pi/agent/skills/research → ../../../.agents/skills/research. realpath resolves its SKILL.md successfully. Discovery includes the logical path and marks the entry non-manageable.
- Skill file listing and reading forward the logical directory to host file RPCs.
- The host rejects a symlinked directory as a file-list root.
- The root validator rejects a symbolic link before resolving it.
An owner-boundary regression with host-files.ts taken from latest main fails with:
CommandDispatchError: Path "/tmp/bb-vt-hS37R4/bb-dispatch-linked-skill-d6vTCn/research" must not be a symlink
It passes with the proposed explicit root-symlink opt-in. The same regression checks SKILL.md, a nested reference file, hidden-file filtering, traversal rejection, and rejection of a nested link escaping the resolved root.
Investigation thread: https://dillonzq.getbb.app/projects/proj_atgmn3hmjt/threads/thr_mg3atqii27 (requires access to the reporting BB instance; the reproduction and evidence above are self-contained).
What I ruled out
- Missing or broken target: the original
SKILL.mdexists and resolves successfully. - Discovery failure: the imported entry is already listed; this fails later during content/file-list reads.
- Latest
mainfixing the read path: the relevant source files are unchanged from the investigated base, and its host reader still fails the regression. - Discover nested and linked Pi skills like Pi does #5519 / Pi nested skills are missing from BB discovery #5364 fix Pi discovery, not detail/file-list reads. Load project skills in one host round trip for / and thread start #5172 concerns workspace-context batching, not these detail endpoints.
- bb skill list ignores symlinked skills (root symlink and per-skill symlink both invisible, no warning) #3238 concerns BB-owned skill discovery and a separate staging failure; Markdown file preview fails for symlinks targeting folders outside the project root #3400 concerns project preview containment. This report is about a discovered provider skill whose directory itself is the read root.
- No matching open or closed PR/issue found after searching skill/symlink,
SKILL.md, and the exact root-symlink error.
Suggested priority and effort
Medium priority, low effort: linked provider skills cannot be inspected through the UI or CLI. No data loss observed.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 15, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-pi.confirmed-repro.05771e3c8240in two clean checkouts: both linked-directory operations fail while both ordinary-directory controls pass. All 48 existing file/discovery tests pass. Installed macOS UI and live HTTP were not exercised.Fix skill details for symlinked skill directories (#5556)