Skip to content

Skills S1: invoke a bot's own Project Skill from / in a DM #4232

Open

Description

@DoodleBears

Parent: #4231

What to build

第一刀,最窄的端到端:Human 在 PersonaBot DM 里用 / 选中这个 bot 自己的 Project Skill(或一个 Host Skill),bot 收到 skill 文本并按它执行。

  • Host:单 bot 的 skill 目录 = Host Skill + skills.list({cwd: <Memory Repository>}) 中 user-invocable 的条目,标出 owner(host / bot:<slug>)、path、描述;新增 bridge RPC 读取。
  • Client:DM composer 的 / 菜单先列现有命令,再列 skill。每行:owner 图标(PersonaBot 头像 / Host 标识)、名称、单行描述(超出省略)。排序复用 rankByName(名称前缀 > 名称子序列 > 描述子串)。上下键 + Enter 选中,插入 skill chip(交互与渲染对齐 @ mention chip)。
  • 发送:ChannelMessage 新增带类型的 skillInvocations part;Host 在发送时解析并快照 {name, owner, path, content}。时间线中消息显示 chip,悬停可看快照全文。
  • 投递:bot-runtime 的 inbound 文本为每个 invocation 渲染 <skill_invocation name owner path>…快照正文…</skill_invocation>。
  • CLI parity:deepseekbot skills list --bot <slug> [--query](与 / 同目录、同排序);发消息命令支持 --skill <owner>/<name>。
  • 同一 PR 提交 GLOSSARY.md / GLOSSARY.zh.md 的 Skills 一节与 ADR-0341、ADR-0342(如编号冲突则重编号)。

Acceptance criteria

  • AC-1:在 Memory Repository 放 .agents/skills/demo/SKILL.md,DM 中输入 /de 能看到它(带 bot 头像),Host Skill 也在列表里且带 Host 标识,命令排在 skill 前面。
  • AC-2:选中后消息带 chip 发出;修改或删除 SKILL.md 后,历史消息的快照不变。
  • AC-3:bot 的 inbound 文本含 <skill_invocation>,包含 owner 与 path;用真实模型验证 bot 按 skill 指令执行。
  • AC-4:同名时 Memory Repository 的 skill 覆盖 Host Skill(DSH 原生行为)在列表里两者都显示、来源可区分。
  • AC-5:deepseekbot skills list 与 --skill 可用,pnpm lint 的 CLI parity 通过。
  • AC-6:PR 附 / 菜单与 chip 的截图,在隔离 Host 上验证。

Activity

  1. added
    ready-for-agentFully specified, ready for an AFK agent
    feature:channelChannel chat, timeline, composer, and navigation
    feature:memoryPersonaBot Memory Repository and Memory Service
    scope:tracerHuman-testable implementation slice
    on Nov 15, 2026
  2. added this to the v1.8.0 milestone on Nov 15, 2026
  3. DoodleBears commented on Nov 15, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Claude Code
    • Task: claude-code/local/0d4a6a9f-6296-49dd-b14c-6789efa657c3 (not a DSH Session)
    • Issue scope: S1 — / Skill Invocation of a PersonaBot's Memory Repository Project Skills and Host Skills in DMs, plus ADR-0341/0342
    • Branch: claude/bot-skill-trigger-e16a1f
    • Started: 2026-11-15 11:49 UTC
    • State: active
  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    in-progressHeld by an agent session; see Claim comment for who
    on Nov 15, 2026
  5. DoodleBears commented on Nov 15, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex implementation sub-agent
    • Task: codex/local/01a1e0bf-b3b5-7c23-9f65-bbc04bc24987 (not a DSH Session)
    • Issue scope: Four PR feat: invoke a Bot's Skills from / in a Human DM #4252 review fixes in core/CLI: repeated Skill selections, span-preserving prompt rendering, Group mention defanging, and oversized Skill refusal. Client and ADR changes remain with the coordinating task.
    • Branch: t3/939912c2
    • Started: 2026-11-16
    • State: active
  6. DoodleBears commented on Nov 15, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Agent: Codex implementation sub-agent
    • Task: codex/local/01a1e0bf-b3b5-7c23-9f65-bbc04bc24987 (not a DSH Session)
    • State: handed-off
    • Branch: t3/939912c2
    • Commit: 63bd1a098c75f8a8825fab4a2b92cce46d877bc9 (local only; no push or PR created)
    • Completed scope: Four PR feat: invoke a Bot's Skills from / in a Human DM #4252 core/CLI review fixes: repeated Skill names select unused spans; prompt marking preserves selected spans through mention formatting; Group mentions are defanged before Skill marking; oversized Skills refuse with skill-too-large before message persistence.
    • Verification: pnpm lint passed; pnpm -w exec tsc --noEmit passed; focused suites passed (53 tests); CI-plan-selected related run passed with at most two workers (298 suites passed, 4 skipped; 3795 tests passed, 15 skipped); formatting and staged whitespace checks passed.
    • Remaining scope: Parent-owned Client/ADR review fixes and PR integration. This task did not modify those directories. Leave agent:active for the coordinating task's active claim.
  7. DoodleBears commented on Nov 15, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex implementation sub-agent
    • Task: codex/local/01a1e114-73bc-76d1-9b25-d052767849d7 (not a DSH Session)
    • Issue scope: PR feat: invoke a Bot's Skills from / in a Human DM #4252 channelSend review fixes: scoped Bot Skill authorization and All Bots Skill offset adjustment, with regression and team-security verification.
    • Branch: t3/fix-skill-token-auth-offsets
    • Started: 2026-11-16
    • State: active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDsfeature:channelChannel chat, timeline, composer, and navigationfeature:memoryPersonaBot Memory Repository and Memory Servicein-progressHeld by an agent session; see Claim comment for whoready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions