一键导入
dingtalk-channel-connect
使用可视浏览器自动完成 CoPaw 的钉钉频道接入。适用于用户提到钉钉、DingTalk、开发者后台、Client ID、Client Secret、机器人、Stream 模式、绑定或配置 channel 的场景;支持遇到登录页时暂停,等待用户登录后继续。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
使用可视浏览器自动完成 CoPaw 的钉钉频道接入。适用于用户提到钉钉、DingTalk、开发者后台、Client ID、Client Secret、机器人、Stream 模式、绑定或配置 channel 的场景;支持遇到登录页时暂停,等待用户登录后继续。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
当用户明确希望连接到已运行的 Chrome 浏览器(connect_cdp)、扫描本地 CDP 端口、或以暴露 CDP 端口的方式启动浏览器(start + cdp_port)时,使用本 skill。用户没有明确提到 CDP、共享浏览器或远程调试时,启动浏览器不得携带 cdp_port,也不得使用 connect_cdp。CDP 模式会暴露浏览器历史、Cookies 等敏感信息,使用前须告知用户;同一 workspace 同时只能运行或连接一个浏览器。
当用户希望打开真实可见的浏览器窗口(而非后台无头模式)时,使用 browser_use 的 headed 参数启动浏览器,随后可正常 open/snapshot/click 等。适用于用户想亲眼看到页面、演示或调试场景。
Use this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/session or when proactive notification is needed. First query sessions with copaw chats list, then push with copaw channels send. | 当需要主动向用户/会话/频道单向推送消息时使用,通常仅在用户明确要求发往某个 channel / 会话,或需要主动通知时使用;先用 copaw chats list 查 session,再用 copaw channels send 推送
将用户问题中的主题、关键词映射到 CoPaw 官方文档路径与常见源码入口,减少盲目搜索。适用于内置 QA Agent 在回答安装、配置、技能、MCP、多智能体、记忆、CLI 等问题时快速选定要读的文件。
Use this skill only for scheduled or recurring tasks. Manage cron jobs with copaw cron list/create/get/state/pause/resume/delete/run. Always pass --agent-id explicitly. | 仅在需要未来定时执行或周期执行时使用本 skill。用 copaw cron list/create/get/state/pause/resume/delete/run 管理任务;必须显式传 --agent-id
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
| name | dingtalk_channel_connect |
| description | 使用可视浏览器自动完成 CoPaw 的钉钉频道接入。适用于用户提到钉钉、DingTalk、开发者后台、Client ID、Client Secret、机器人、Stream 模式、绑定或配置 channel 的场景;支持遇到登录页时暂停,等待用户登录后继续。 |
| metadata | {"builtin_skill_version":"1.1","copaw":{"emoji":"🤖","requires":{}}} |
此 skill 用于通过可视浏览器自动化完成钉钉应用创建与 CoPaw channel 绑定。
{"action": "start", "headed": true}
遇到登录关卡必须暂停:
登录、扫码登录、手机号/密码登录),立即停止自动操作。任何应用配置变更都必须新建版本并发布后才生效:
在开始自动化点击前,先向用户发起一次“配置确认”,明确告知可自定义项、图片规范、默认值。建议使用如下结构化确认:
让用户可自定义以下字段:
明确告知图片规范(显著提示):
240*240px 以上,1:1,2MB 以内,无圆角。png/jpeg/jpg,不超过 2MB。明确告知默认值(用户不指定时自动采用):
CoPawYour personal assistanthttps://img.alicdn.com/imgextra/i4/O1CN01M0iyHF1FVNzM9qjC0_!!6000000000492-2-tps-254-254.pnghttps://img.alicdn.com/imgextra/i4/O1CN01M0iyHF1FVNzM9qjC0_!!6000000000492-2-tps-254-254.png若用户未给任何自定义值,必须先明确回复:
file_upload 传入本地路径数组(paths_json)file_upload 的 paths_json 必须是“JSON 字符串数组”,注意转义:{
"action": "file_upload",
"paths_json": "[\"xxx.png\"]",
"frame_selector": "iframe[src*=\"/fe/app?isHideOuterFrame=true\"]"
}
若页面在 iframe 内,建议优先带上 frame_selector,否则可能出现找不到上传控件或 chooser 未触发。
上传前必须先点击上传入口;若直接 file_upload 会报:
No chooser. Click upload then file_upload.机器人图标区域的常见结构特征可用于定位(示例):
text: "* 机器人图标"button: "使用应用图标"button: "avatar"(通常内部有 img "avatar")当 snapshot 中同时出现“使用应用图标”和“avatar”时,优先点击 avatar 按钮触发上传,再执行 file_upload。
headed: true)https://open-dev.dingtalk.com/snapshot 判断是否需要登录若需要登录,使用如下话术暂停:
检测到需要登录钉钉开发者后台。我已暂停自动操作,请先在弹出的浏览器中完成登录。完成后回复“继续”,我再从当前页面接着执行。
用户确认登录后继续:
CoPawYour personal assistant若页面文案或结构与预期不一致,重新 snapshot,按可见文本语义重新定位元素。
https://img.alicdn.com/imgextra/i4/O1CN01M0iyHF1FVNzM9qjC0_!!6000000000492-2-tps-254-254.pnghttps://img.alicdn.com/imgextra/i4/O1CN01M0iyHF1FVNzM9qjC0_!!6000000000492-2-tps-254-254.pngStream 模式应用发布 -> 版本管理与发布基础信息 -> 凭证与基础信息Client ID(AppKey)和Client Secret(AppSecret)在该页面上。不主动进行修改,引导用户自行绑定拿到凭证后,引导用户选择以下任一方式:
控制台前端配置:
控制 -> 频道 -> DingTalkClient ID 与 Client Secret配置文件方式:
"dingtalk": {
"enabled": true,
"bot_prefix": "[BOT]",
"client_id": "你的 Client ID",
"client_secret": "你的 Client Secret"
}
路径:~/.copaw/config.json,位于 channels.dingtalk 下。
Client ID 与真实 Client Secret。console 配置、不主动改 ~/.copaw/config.json。控制 -> 频道 -> DingTalk~/.copaw/config.json 的 channels.dingtalk 字段默认按以下顺序执行:
start with headed: trueopensnapshotclick / type / select_option / press_key as neededsnapshot after page transitionsstop when donesnapshot 的 ref;仅在必要时使用 selector。wait_for)并立即重新 snapshot。