Repository navigation
Discover skills from provider-native locations - #1293
Conversation
|
🚨 SLOP COP 🚨 · I am the SlopCop. I am reviewing this pull request now. I will check security, code quality, performance, architecture, and end-to-end behavior. |
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 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 listor 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.mdfiles, 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.
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, and test coverage. |
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 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
- P1 — Pi discovery bypasses project trust. A skill-list request can run a project
npmCommand. - P1 — Recursive root links can escape the repository. The scan can also visit an effectively unlimited number of entries.
- P1 — The Skills catalog omits five documented providers. Pi, OpenCode, omp, Grok, and Hermes remain absent.
- P2 — omp project settings create user-origin roots. This changes precedence, scope, and symlink behavior.
- P2 — Linked Cursor roots create duplicate Skills entries. I reproduced two IDs for one physical skill.
- 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.
0c1914f to
f673bdc
Compare
f673bdc to
6349c27
Compare
## 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
What changed
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
Closes #1292