본문으로 건너뛰기
cccskills
무료GitHub에 공개

openakita/skills@dingtalk-cli

DingTalk Workspace CLI (dws) - officially open-sourced cross-platform CLI tool from DingTalk. Provides 86 commands across 12 products: Contact, Chat, Bot, Calendar, Todo, Approval, Attendance, Ding, Report, AITable, Workbench, DevDoc. Built in Go with zero-trust security architecture. Use when user wants to operate DingTalk resources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(4)

  • SKILL.md7.7 KB
  • agents/openai.yaml408 B
  • scripts/dws_quick.py4.5 KB
  • scripts/dws_setup.py3.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

钉钉 Workspace CLI (dws)

钉钉官方开源的跨平台 CLI 工具,Go 语言开发。为人类用户和 AI Agent 场景同时设计,统一钉钉全套产品能力。

官方 GitHub: https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli 1500+ Stars | Apache-2.0 许可

安装

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.ps1 | iex

其他方式

# npm(需 Node.js)
npm install -g dingtalk-workspace-cli

# 预编译二进制:从 GitHub Releases 下载
# https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli/releases

认证

dws auth login            # 浏览器自动打开授权
dws auth login --device   # 无头环境(Docker、SSH、CI)

选择组织并授权即可。凭证使用 PBKDF2 + AES-256-GCM 加密存储。

自定义应用模式(CI/CD、ISV 集成)

dws auth login --client-id <your-app-key> --client-secret <your-app-secret>

产品覆盖(86 条命令,12 个产品)

产品命令子命令说明
通讯录 contact6user dept按姓名/手机号搜索、批量查询、部门、当前用户
聊天 chat10message group search群管理、成员管理、机器人消息、webhook
机器人 bot6bot group message search机器人创建/搜索、群/单聊消息、webhook、消息撤回
日历 calendar13event room participant busy日程 CRUD、会议室预订、忙闲查询、参会人管理
待办 todo6task创建、列表、更新、完成、详情、删除
审批 approval9approval同意/拒绝/撤回、待办任务、发起实例、流程列表
考勤 attendance4record shift summary rules打卡记录、排班、考勤汇总、组规则
钉 ding2message发送/撤回 DING 消息
报表 report7create list detail template stats sent创建报表、收发列表、模板、统计
AI 表格 aitable20base table record field attachment template完整增删改查
工作台 workbench2app批量查询应用详情
开发文档 devdoc1article搜索平台文档和错误码

AI Agent 特性

智能输入纠正

内置管道引擎自动修正 AI 模型常见的参数错误:

Agent 输出dws 自动修正为
--userId--user-id
--limit100--limit 100
--tabel-id--table-id
--USER-ID--user-id

Schema 自省

Agent 无需预置知识,可动态发现能力:

# 发现所有可用产品
dws schema --jq '.products[] | {id, tool_count: (.tools | length)}'

# 查看目标工具的参数 Schema
dws schema aitable.query_records --jq '.tool.parameters'

jq 过滤与字段选择

# 精确过滤输出,减少 token 消耗
dws aitable record query --base-id BASE_ID --table-id TABLE_ID --jq '.invocation.params'

管道与文件输入

# 从文件读取消息体
dws chat message send-by-bot --robot-code BOT_CODE --group GROUP_ID \
  --title "周报" --text @report.md

# 从 stdin 读取
cat report.md | dws chat message send-by-bot --robot-code BOT_CODE --group GROUP_ID \
  --title "周报"

Agent Skills 系统

仓库自带完整 Agent Skill 系统(skills/ 目录):

# 安装 skills 到当前项目
curl -fsSL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install-skills.sh | sh

包含内容

组件路径说明
Master SkillSKILL.md意图路由、决策树、安全规则、错误处理
产品参考references/products/*.md各产品命令参考
意图指南references/intent-guide.md易混淆场景消歧
全局参考references/global-reference.md认证、输出格式、全局 flags
错误码references/error-codes.md错误码 + 调试流程
恢复指南references/recovery-guide.mdRECOVERY_EVENT_ID 处理
预置脚本scripts/*.py13 个批量操作 Python 脚本

预置 Python 脚本

脚本功能
calendar_schedule_meeting.py创建日程 + 添加参会人 + 查找并预订会议室
calendar_free_slot_finder.py多人共同空闲时段查找,推荐最佳会议时间
calendar_today_agenda.py查看今日/明日/本周日程
import_records.py从 CSV/JSON 批量导入 AI 表格记录
bulk_add_fields.py批量添加 AI 表格字段
todo_batch_create.py从 JSON 批量创建待办(含优先级、截止日期)
todo_daily_summary.py汇总今日/本周未完成待办
todo_overdue_check.py扫描逾期待办
contact_dept_members.py按部门名称搜索并列出全部成员
attendance_my_record.py查看我的考勤记录
attendance_team_shift.py查询团队排班与考勤统计
report_inbox_today.py查看今日收到的报表详情

安全设计

零信任架构:凭证不落盘、Token 不离开可信域、权限不超越授权、操作不逃过审计。

机制详情
加密令牌存储PBKDF2 + AES-256-GCM,基于设备物理 MAC 地址加密
输入安全路径遍历保护、CRLF 注入拦截、Unicode 视觉欺骗过滤
域名白名单DWS_TRUSTED_DOMAINS 默认 *.dingtalk.com,bearer token 不发往非白名单域
HTTPS 强制所有请求要求 TLS
Dry-run 预览--dry-run 展示调用参数但不执行,防止误操作
零凭证持久化Client ID / Secret 仅在内存中使用

升级

dws upgrade                    # 交互式升级到最新版
dws upgrade --check            # 检查新版本
dws upgrade --rollback         # 回滚到上一版本

快速开始

dws contact user search --keyword "engineering"     # 搜索联系人
dws calendar event list                              # 列出日历事件
dws todo task create --title "季度报告" --executors "<userId>"  # 创建待办
dws todo task list --dry-run                          # 预览(不执行)

预置脚本

scripts/dws_setup.py

钉钉 CLI 安装和认证脚本。

python3 scripts/dws_setup.py install
python3 scripts/dws_setup.py auth
python3 scripts/dws_setup.py status

scripts/dws_quick.py

钉钉常用操作快捷脚本(dws 薄封装;命令路径以 dws schema 输出为唯一事实源)。

# 通过机器人发消息到群(--text 支持 @file 引用,与 dws CLI 一致)
python3 scripts/dws_quick.py send --robot-code <BOT> --group <GID> --text "你好" --title "通知"

# 搜索联系人
python3 scripts/dws_quick.py contacts --keyword "engineering"

# 列日程
python3 scripts/dws_quick.py calendar

# 创建待办(executors 多个用英文逗号分隔)
python3 scripts/dws_quick.py todo --title "季度报告" --executors "userId1,userId2"

# 透传任意 dws 子命令(attendance/approval 等命名空间快速发现)
python3 scripts/dws_quick.py raw -- attendance --help
python3 scripts/dws_quick.py raw -- approval instance list --help

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Record important information to long-term memory for learning user preferences, successful patterns, and error lessons. When you need to remember user preferences, save successful patterns, or record lessons from errors.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

Click page elements by CSS selector or text content. When you need to click buttons, links, or select options. PREREQUISITE - must use browser_navigate to open target page first.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

Extract page content and element text from current webpage. When you need to read page information, get element values, scrape data, or verify page content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

List all open browser tabs with their index, URL and title. When you need to check what pages are open, manage multiple tabs, or find a specific tab to switch to.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

Navigate browser to specified URL to open a webpage. When you need to open webpages or start web automation. PREREQUISITE - must call before browser_click/type operations. Auto-starts browser if not running.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

Open new browser tab and navigate to URL (keeps current page open). When you need to open additional page without closing current, or multi-task across pages. PREREQUISITE - must confirm browser is running first.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openakita/openakita2천2026년 9월 24일 업데이트

openakita의 스킬 모두 보기

이 스킬의 문제 신고