feishu-cron-setup

设置飞书定时任务投递,确保 cron 任务能稳定地将结果发送到飞书。当需要创建、修复或调试飞书频道的定时任务时使用此技能,特别是当 cron 任务执行成功但消息无法投递到飞书时。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "feishu-cron-setup" with this command: npx skills add nicccmy/feishu-cron-setup

飞书定时任务投递配置

核心问题

症状:cron 任务执行成功(status: ok),但 deliveryStatus: "not-delivered",错误为 cron announce delivery failed

根因:isolated session 的 cron 任务在飞书频道投递时,必须显式指定 --account 参数

正确的创建命令

openclaw cron add \
  --name "<任务名>" \
  --cron "<cron表达式>" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --account spy \
  --message "<任务提示词>" \
  --announce \
  --channel feishu \
  --to "<飞书用户open_id>" \
  --best-effort-deliver

关键参数说明

参数必须说明
--session isolated隔离会话模式
--account <id>飞书账号ID(如 spy、susu、hr 等),对应 openclaw.json 中配置的 accounts
--announce开启投递功能
--channel feishu投递渠道为飞书
--to <open_id>飞书用户的 open_id
--best-effort-deliver建议投递失败不影响任务状态

查找正确的 account ID

查看 ~/.openclaw/openclaw.json 中的 feishu 配置:

cat ~/.openclaw/openclaw.json | grep -A 20 '"feishu"'

找到 accounts 下配置的 key(如 defaultspysusuhr 等),使用对应账号的 key 作为 --account 参数。

验证投递是否正常

手动触发一次并检查结果:

openclaw cron run <job-id> --expect-final --timeout 90000

# 检查投递状态
openclaw cron runs --id <job-id> | grep -E "delivered|deliveryStatus|deliveryError"

成功的标志:"delivered": true"deliveryStatus": "delivered"

常见错误排查

错误原因解决
cron announce delivery failed缺少 --account添加 --account <id> 参数
channel not found渠道名错误确认飞书插件名为 feishu
user not foundto 字段格式错误使用 user:open_id 格式,如 user:ou_a894716def92ea8f9a1546f10d61441a

快速参考

  • 飞书用户 open_id:从消息元数据中获取,格式为 ou_xxxxxxxx
  • 任务执行成功 ≠ 投递成功,两者独立
  • 每次创建 isolated 模式的飞书 cron 任务时,都要加 --account <id>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi Edge-TTS CN

Edge-TTS 在线语音合成 skill。基于微软 Edge TTS 引擎,生成速度快(1-2秒),支持多种音色和输出格式。同时支持飞书(OGG/Opus)和企业微信(AMR)。默认音色 xiaoxiao_lively。需联网。

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated
General

One Person Company OS

Build a visual operating cockpit for an AI-native one-person company across promise, buyer, product, delivery, cash, learning, and assets. / 为 AI 一人公司建立可视化经营...

Registry SourceRecently Updated
General

健康追踪

健康追踪技能 - 追踪饮水、睡眠、步数等健康数据,JSON存储。

Registry SourceRecently Updated
feishu-cron-setup | V50.AI