Skip to content

Grok Build skips user skills installed as symlinks #4013

Open

Description

@balazstasi

Summary

Ego installs the ego-browser skill as a symlink in ~/.agents/skills and ~/.grok/skills. The grok CLI lists /ego-browser. Grok Build in the BB desktop app does not. Codex does list it. Codex uses a one-level user skill scan that follows symlinks. Grok Build scans the same folders recursively, and that walk skips every symlink.

Versions and environment

  • bb 0.43.3, desktop app, macOS
  • Provider acp-grok, Grok Build, grok 1.0.3, build 1a29d5bc12d4
  • Default data dir on the same machine

Steps to reproduce

  1. Let Ego, or any other installer, create ~/.agents/skills/ego-browser and ~/.grok/skills/ego-browser as symlinks to one skill directory. Ego points both at ~/.local/share/ego/ego-skills.
  2. Run grok inspect. ego-browser is a user skill and userInvocable is true.
  3. Run bb skill list --json and filter for the name ego-browser.
  4. In a Grok Build thread, type / and look for ego-browser.

This does not fail for Codex. The same command lists ~/.agents/skills/ego-browser/SKILL.md with provider codex. OpenCode lists ~/.claude/skills/ego-browser/SKILL.md.

Expected vs actual

Actual rows from bb skill list before any local change:

acp-opencode  /Users/balazstasi/.claude/skills/ego-browser/SKILL.md
codex         /Users/balazstasi/.agents/skills/ego-browser/SKILL.md

There is no acp-grok row. The slash menu in a Grok Build thread has no /ego-browser. grok inspect does list the skill.

Expected: Grok Build offers /ego-browser, as the grok CLI does.

Evidence

The symptom and the cause are separate. I read main at b629714. I did not rebuild that commit.

walkMarkdownTree skips every symlink:

source: args.source,
origin: args.origin,
description: frontmatter.description,
argumentHint: frontmatter.argumentHint,

scanRecursiveSkillRootFiles uses that walk. acp-grok declares a recursive user root for .agents/skills:

env: {},
// omp reads its own, pi's and every cross-agent tree in the workspace
// and its ancestors. Its agent directory (profile- and env-moved), the
// pi, Codex and opencode user directories, its config's
// `skills.customDirectories` and the Claude plugins come from the
// resolver.
nativeSkillRoots: {

resolveGrokNativeRoots also adds ~/.grok/skills with recursive set to true:

if (seen.has(key)) {
continue;
}
seen.add(key);
const plugin = await resolveGrokPlugin(candidate, config);

The flat skill scan already follows a user symlink one level. Codex uses that scan, so it sees the link. Grok Build never uses it.

I tried a local edit in apps/host-daemon/src/command-discovery.ts. For a user-origin recursive root, if a symlink is a directory and SKILL.md is directly inside it, or the symlink itself is SKILL.md, record that skill and mark it linked. Do not read any other file through the link. Project roots still skip links. I added coverage in command-discovery.test.ts and list-skills.test.ts, and those tests passed. I did not open a pull request. Desktop 0.43.3 does not include that edit.

For the current app I replaced ~/.grok/skills/ego-browser with a real directory copy of the skill, and left ~/.agents/skills/ego-browser as the symlink. After that, bb skill list shows an acp-grok row at ~/.grok/skills/ego-browser/SKILL.md. Ego's installer only creates or repairs a symlink, so it will not put the link back. The copy goes stale when Ego updates the skill.

Found while using Grok Build in BB thread thr_532ibn7npy.

What you ruled out

Suggested priority and effort

Medium. Grok Build drops every user skill that is installed as a symlink. A real directory copy avoids it. No data is lost. The code change is small, but following a link can read a skill outside the skill folder, so the scan needs an explicit limit.

Checks

  • I reproduced this on bb desktop 0.43.3. The same skip is on main at b629714.
  • I searched open and closed issues.

An agent wrote this issue. A person hit the missing /ego-browser command while using Grok Build in BB.

AGENT GENERATED

Activity

  1. added theissue type on Sep 21, 2026
  2. added
    providers
    provider-acp
    confirmed-repro
    on Sep 21, 2026
  3. bb-slop-cop commented on Sep 21, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Bug · Priority: Medium · Effort: Medium, with providers and provider-acp. No existing classifications were replaced.

    REPRODUCED — high root-cause confidence. Report and reproduction artifacts. Two clean checkouts of trusted main produced the same failure: recursive discovery skips linked user skills because its walker rejects every symlink; Grok selects that recursive path. The flat-scan control finds the links. Full build and all 26 existing command-discovery tests passed; desktop/Grok CLI behavior was not exercised directly.

    Reproduction label: confirmed-repro. No PR: enabling previously skipped symlink traversal changes the filesystem read boundary, which this rule excludes from automatic fixes.

    AGENT GENERATED

  4. lanjak commented on Nov 13, 2026

    @lanjak
    Contributor

    This looks fixed on main at 88cf8f644c and in releases from 0.47.1. PR #6185 (f1f26b3) added one shared skill scanner, @bb/skill-index, and daemon skill discovery now uses it. In a recursive user skill root, the scanner follows a symlink that points to a skill folder (index.ts#L166-L174). A test on that commit with a symlinked ego-browser folder in a recursive .grok/skills root found the skill. I did not check it in the Grok Build UI. If 0.47.1 or later lists /ego-browser for you, this issue can be closed.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions