fix(skills): 限制 send 技能仅在飞书会话触发#495
Open
Phoobobo wants to merge 8 commits into
Open
Conversation
Owner
|
@Phoobobo 之前已经优化过了,不会往全局安装skill了,在非botmux场景还会走到么? |
Contributor
Author
|
会,来源不是 botmux daemon 现在的默认安装路径,而是独立安装/发布的同名 Agent Skill。我刚在一个没有 所以你之前做的 prompt 默认 + 清理 CLI 全局目录是有效的,已经解决了 botmux 自己向 |
added 4 commits
July 17, 2026 12:58
Contributor
Author
|
已持续同步到最新 |
added 3 commits
July 18, 2026 18:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
botmux-sendskill 的触发描述:仅在 prompt 有 botmux 路由上下文、存在BOTMUX_SESSION_ID,或用户明确要求发送到飞书时使用botmux send为什么
Pi 会按 Agent Skills 规范把全局 skill 的名称和 description 放入 system prompt,但不会自动执行 skill。旧 description 把“用户在飞书阅读”写成无条件事实,模型在普通本地 Pi 会话中可能仅因看到该 skill、且 cwd 恰好是 botmux 仓库,就误调用
botmux send。本 PR 在 skill 层补齐明确的运行时前置条件,避免误路由。影响面
botmux-sendskill 文案和对应单测<botmux_routing>/<botmux_reminder>或BOTMUX_SESSION_ID,原有发送能力不受影响验证
pnpm vitest run test/builtin-skills.test.ts:18/18 通过pnpm build:通过pnpm daemon:restart:6 个 PM2 应用均 onlinepnpm test:552 个文件 / 9038 个用例通过;现有环境下 5 个文件 / 86 个用例失败,集中在 VC meeting daemon 与 worker terminal integration,与本次仅 skill 文案改动无关