Plexus icon indicating copy to clipboard operation
Plexus copied to clipboard

[Bug]: cursor 自定义 skill 扫不出来

Open linmomo opened this issue 6 months ago • 2 comments

What happened?

Cursor adapter 的 skills 路径写成了 ~/.cursor/commands/,但 Cursor 实际加载 skill 的路径是 ~/.cursor/skills/。commands/ 是 Cursor 的 slash commands 目录,是另一个独立功能。

Steps to reproduce

Expected behavior

Environment

  • OS:
  • Node version:
  • Plexus version:
  • Agent involved:

Logs or screenshots

Please redact secrets before attaching config snippets.

linmomo avatar May 08 '26 07:05 linmomo

@linmomo 确实是路径配错了,多谢反馈,pull 一下代码试试~

miniLV avatar May 08 '26 08:05 miniLV

v0.0.8 已验证修复。看 commit 31a3623 改了三处:

  1. 路径修正(核心):packages/core/src/store/paths.ts 把 cursor.skillsDir 从 ~/.cursor/commands/ 改为 ~/.cursor/skills/
  2. 新增 managedByPlexus 字段:用 isInside(linkTarget, PLEXUS_PATHS.root) 区分 user 自建 symlink(external)和 Plexus 自管 symlink(plexus-owned),dashboard badge 也分了"external symlink"和"Plexus-owned"
  3. import 流程不再丢弃指向 Plexus store 之外的 symlink,把 user 自建的 symlink 当 native skill 处理

测试也补齐了(inspect.test.ts + share-all.test.ts)。这个 issue 可以关了,辛苦 @miniLV 👍

不过另外发现一个 skill bundle 完整同步的问题,我开个新 issue 跟踪。

linmomo avatar May 08 '26 15:05 linmomo