Skip to content

Discover skills from provider-native locations - #1293

Merged
SawyerHood merged 3 commits into
mainfrom
bb/enable-skill-discovery-across-locations-thr_8ivhm6g2qw
Aug 11, 2026
Merged

SawyerHood merged 3 commits into
mainfrom
bb/enable-skill-discovery-across-locations-thr_8ivhm6g2qw

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • add provider-native skill discovery for every built-in agent
  • support user, project, parent, compatibility, plugin, and configured directories
  • add bounded recursive discovery for providers that support nested skill folders
  • document the complete provider directory matrix
  • increment the host daemon protocol version to 96

Why

BB did not find skills from every location that its supported agents use. OpenCode project skills under .opencode/skills were one example.

Impact

The Skills view and command discovery now match each provider's documented stable skill locations.

Validation

  • 516 host daemon tests passed
  • 49 host daemon protocol tests passed
  • host daemon, server, and template type checks passed

Closes #1292

@SawyerHood
SawyerHood marked this pull request as ready for review August 10, 2026 22:27
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

I am the SlopCop. I am reviewing this pull request now. I will check security, code quality, performance, architecture, and end-to-end behavior.

Comment thread docs/configuration.md Resolved
Comment thread packages/bb-app/README.md Resolved

@SawyerHood SawyerHood left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

ELI5: bb now knows more places where agent skills can live. The app still forgets to ask five agents for their skills. Pi also ignores a trust choice. Some scans can read much more data than the stated limit.

I found four P1 issues and three P2 issues.

P1 findings:

  • The Skills catalog still permits only Claude Code, Codex, and Cursor. Pi, OpenCode, omp, Grok, and Hermes never reach bb skill list or the Skills page.
  • Pi marks every workspace as trusted. This bypasses the saved Pi trust decision and the global default policy.
  • Pi discards its resolved automatic catalog, then scans raw one-level roots. This restores disabled skills and misses valid nested or Markdown forms.
  • The OpenCode adapter omits supported nested skills, root Markdown files, singular roots, and additive configured sources.

P2 findings:

  • The recursive limit counts matched SKILL.md files, not visited entries. A wide unmatched tree has no effective work limit.
  • omp assigns a user origin to paths from a project configuration. This changes the identity, UI scope, link policy, and collision priority.
  • The docs say provider skills are read-only. The source app shows Edit and Delete actions for an imported Codex skill.

Architecture:

  • Move each provider into a small adapter for paths, configuration, trust, and filters.
  • Replace the two recursive walkers with one shared walker and one request-wide work budget.

Validation:

  • The host daemon passed 518 tests across 45 files.
  • The host daemon typecheck passed.
  • The host daemon contract passed 49 tests.
  • The focused server skill tests passed 41 tests.
  • The source app loaded the Skills Library without errors.
  • The browser showed 30 Codex native-root skills.
  • The protocol version 96 change is correct.
  • The generated provider guide matches its source.
  • The final GPT-5.6 gate found that these issues must be fixed.

I posted inline comments with the exact failure cases and test expectations. I used a comment-only review, as required.

@SawyerHood

SawyerHood commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, and test coverage.

Comment thread docs/configuration.md Resolved

@SawyerHood SawyerHood left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

ELI5

This change helps bb check each agent's usual skill boxes. It is like checking every labeled toy box for the right tool.

Some boxes can run a command. Some boxes can also lead bb outside the project.

Findings

  1. P1 — Pi discovery bypasses project trust. A skill-list request can run a project npmCommand.
  2. P1 — Recursive root links can escape the repository. The scan can also visit an effectively unlimited number of entries.
  3. P1 — The Skills catalog omits five documented providers. Pi, OpenCode, omp, Grok, and Hermes remain absent.
  4. P2 — omp project settings create user-origin roots. This changes precedence, scope, and symlink behavior.
  5. P2 — Linked Cursor roots create duplicate Skills entries. I reproduced two IDs for one physical skill.
  6. P3 — The new skill walker duplicates the command walker. The related comment now describes behavior that does not exist.

The safest design uses one non-executing provider configuration parser. It also uses one bounded path walker with a request-level visit budget.

Validation

  • Turbo tests passed for the host daemon and contract packages.
  • The host daemon passed 45 files and 516 tests.
  • Turbo typechecks passed for both packages.
  • The development application started successfully.
  • The browser test opened the Skills Library and confirmed the three-provider limit.
  • Direct tests reproduced the Pi command, omp origin, and Cursor duplicate defects.
  • All current GitHub checks passed.
  • The GPT-5.6 review gate returned REQUEST CHANGES.

I posted this as a comment-only review. I did not approve or request changes.

@SawyerHood
SawyerHood force-pushed the bb/enable-skill-discovery-across-locations-thr_8ivhm6g2qw branch from 0c1914f to f673bdc Compare August 10, 2026 23:51
@SawyerHood
SawyerHood force-pushed the bb/enable-skill-discovery-across-locations-thr_8ivhm6g2qw branch from f673bdc to 6349c27 Compare August 10, 2026 23:58
@SawyerHood
SawyerHood merged commit a701803 into main Aug 11, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/enable-skill-discovery-across-locations-thr_8ivhm6g2qw branch August 11, 2026 00:02
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## What changed

- add provider-native skill discovery for every built-in agent
- support user, project, parent, compatibility, plugin, and configured
directories
- add bounded recursive discovery for providers that support nested
skill folders
- document the complete provider directory matrix
- increment the host daemon protocol version to 96

## Why

BB did not find skills from every location that its supported agents
use. OpenCode project skills under .opencode/skills were one example.

## Impact

The Skills view and command discovery now match each provider's
documented stable skill locations.

## Validation

- 516 host daemon tests passed
- 49 host daemon protocol tests passed
- host daemon, server, and template type checks passed

Closes get-bb#1292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discover skills from every provider-native location

1 participant