Skip to content

Discover Cursor project skills from .cursor/skills - #1272

Merged
SawyerHood merged 1 commit into
shared-skill-rootsfrom
cursor-skill-discovery
Aug 10, 2026
Merged

SawyerHood merged 1 commit into
shared-skill-rootsfrom
cursor-skill-discovery

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

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 #1251

@SawyerHood SawyerHood changed the title fix(cursor): discover project skills Discover Cursor project skills from .cursor/skills Aug 10, 2026
@SawyerHood
SawyerHood force-pushed the cursor-skill-discovery branch from 00c352c to 492d979 Compare August 10, 2026 19:07
@SawyerHood
SawyerHood marked this pull request as ready for review August 10, 2026 19:09
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request under the review rule.

ELI5: This change lets bb find Cursor project skills in .cursor/skills.

I will run security, code quality, and performance reviews in parallel. I will also test the changed product path.

@SawyerHood
SawyerHood force-pushed the cursor-skill-discovery branch from 492d979 to 060c53f Compare August 10, 2026 19:17
return [];
}
const records: DiscoveredSkill[] = [];
const rootLinked = await isSymbolicLinkPath(root.rootPath);

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.

🚨 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",

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.

🚨 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

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.

🚨 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",

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.

🚨 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 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 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 .cursor parent 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.

@SawyerHood
SawyerHood force-pushed the cursor-skill-discovery branch from 060c53f to c546fdb Compare August 10, 2026 19:34
@SawyerHood
SawyerHood merged commit 7fd628a into main Aug 10, 2026
12 of 19 checks passed
@SawyerHood
SawyerHood deleted the cursor-skill-discovery branch August 10, 2026 19:44
SawyerHood added a commit that referenced this pull request Aug 10, 2026
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
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
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
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
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
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.

Cursor project skills in .cursor/skills/ are not auto-discovered for acp-cursor threads

1 participant