Repository navigation
Discover Cursor project skills from .cursor/skills - #1272
Conversation
00c352c to
492d979
Compare
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this pull request under the review rule. ELI5: This change lets bb find Cursor project skills in I will run security, code quality, and performance reviews in parallel. I will also test the changed product path. |
492d979 to
060c53f
Compare
| return []; | ||
| } | ||
| const records: DiscoveredSkill[] = []; | ||
| const rootLinked = await isSymbolicLinkPath(root.rootPath); |
There was a problem hiding this comment.
🚨 slopcop/review — A linked .cursor ancestor can permit external edits and deletes.
This check detects only a linked skills entry. It misses a linked .cursor parent.
The server then marks the external skill as manageable. Edit and delete operations follow that external path.
Please check each workspace path component before you permit changes. Add a test where .cursor points outside the workspace.
| export const skillProviderSchema = z.enum([ | ||
| "claude-code", | ||
| "codex", | ||
| "acp-cursor", |
There was a problem hiding this comment.
🚨 slopcop/review — The generated plugin SDK contracts omit the new Cursor values.
The source contracts add Cursor scopes and acp-cursor. The bundled SDK declaration and its template copy remain stale.
A clean integration typecheck fails at plugin-api.ts:1299. The templates check also reports stale generated output.
Please regenerate and commit both generated contract files.
| (skill.rootKind !== "shared-user" && skill.rootKind !== "shared-project") || | ||
| skill.description === null || | ||
| skill.linked | ||
| skill.description === null |
There was a problem hiding this comment.
🚨 slopcop/review — Linked shared leaf skills now appear in the catalog but fail at runtime.
The removed check also admits a linked skill directory or SKILL.md. The staging code still rejects both cases and skips the skill.
Please distinguish a linked configured root from a linked leaf. Keep the leaf protection while you support linked roots.
| export const SKILL_COMMAND_SURFACE_PROVIDERS: readonly SkillProvider[] = [ | ||
| "claude-code", | ||
| "codex", | ||
| "acp-cursor", |
There was a problem hiding this comment.
🚨 slopcop/review — This provider adds a third full host scan to each skill operation.
Each provider request scans the same bb roots before server deduplication. A detail view also rebuilds the catalog for files and content.
The calls run in parallel, so this note does not block the change. Please consider one shared bb scan or a multi-provider request.
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
ELI5: This change teaches bb to find Cursor project skills in .cursor/skills.
The normal discovery path works. The CLI found a test skill with the correct Cursor provider and project scope.
I found three defects that block a safe merge:
- High: A linked
.cursorparent bypasses the new link check. A user can edit or delete a skill outside the workspace. - High: The generated plugin SDK contracts omit the new Cursor provider and scopes. Clean integration and template typechecks fail.
- Medium: Linked shared leaf skills now appear in the catalog. The host rejects these skills during runtime staging.
I also found one non-blocking architecture cost. Each provider repeats the same bb skill scans before the server removes duplicates.
The focused Turbo test set passed. The app, server, host, and contract typechecks passed.
The integration and templates typechecks failed because generated SDK files are stale. The Skills library browser route loaded without an error.
The final GPT-5.6 review gate confirmed all four findings. I used a comment review and did not approve or request changes.
060c53f to
c546fdb
Compare
Stack layer 2 of 3. ## Summary - Add top-level sharedSkillRoots for one physical user or project skill collection. - Index shared roots as read-only sources in the composer, Skills view, SDK, and bb CLI. - Stage shared skills for Codex, Claude, Pi, and ACP runtimes. - Apply deterministic precedence: bb project, shared project, bb user, shared user, plugins, then built-ins. - Support target-host paths without copying the canonical source. ## Stack - Depends on #1270. - Next: #1272 ## Validation - Shared-root configuration, discovery, precedence, remote transport, runtime staging, CLI, and UI tests pass. - Affected package typechecks pass. Closes #1188
Stack layer 2 of 3. ## Summary - Add top-level sharedSkillRoots for one physical user or project skill collection. - Index shared roots as read-only sources in the composer, Skills view, SDK, and bb CLI. - Stage shared skills for Codex, Claude, Pi, and ACP runtimes. - Apply deterministic precedence: bb project, shared project, bb user, shared user, plugins, then built-ins. - Support target-host paths without copying the canonical source. ## Stack - Depends on get-bb#1270. - Next: get-bb#1272 ## Validation - Shared-root configuration, discovery, precedence, remote transport, runtime staging, CLI, and UI tests pass. - Affected package typechecks pass. Closes get-bb#1188
Stack layer 3 of 3. ## Summary - Discover acp-cursor project skills from .cursor/skills. - Follow a .cursor/skills root link to a canonical root such as .agents/skills. - Add Cursor scopes to the Skills view, SDK, CLI, and delete contract. - Mark skills reached through a linked root as read-only. ## Stack - Depends on get-bb#1271. - This is the top layer. ## Validation - The exact .agents/skills plus .cursor/skills link reproduction passes. - Host discovery, server listing, contract, and Skills view tests pass. - Affected package typechecks pass. Closes get-bb#1251
Stack layer 3 of 3.
Summary
Stack
Validation
Closes #1251