agentleFS
grasscaograssgrasscaograss/AwesomeWeldoneSkills/feishu-webhook/SKILL.md

feishu-webhook

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

通过飞书 webhook 发送文本消息。触发场景:(1) 用户要求发送消息到飞书,(2) 二次向用户确认发送内容,然后才能通过 webhook 推送通知,(3) 发送自动化提醒或告警到飞书群聊

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

飞书 Webhook 消息发送

重要:必须使用 pwsh 7 脚本发送,禁止使用 curl 或 Python。

  • curl 在 Windows 上无法正确处理中文编码,会导致乱码。
  • Python 在本环境不可用(python/python3 指向 Microsoft Store 占位符,实际未安装)。

发送方法

步骤一: 将消息内容写入临时文件(使用 Write 工具):

路径:.claude/tmp/msg.txt,内容为要发送的文本。

步骤二: 执行 pwsh 7 脚本(默认 UTF-8):

pwsh -NoProfile -ExecutionPolicy Bypass -File ".claude/skills/feishu-webhook/scripts/feishu-webhook.ps1" -Webhook "912c3ff9626dc8fd25a16fd9d102f629" -MsgFile ".claude/tmp/msg.txt"

步骤三: 删除临时文件:

rm .claude/tmp/msg.txt

编码说明

pwsh 7 默认使用 UTF-8。脚本启动时会显式设置输入、输出和 cmdlet 编码默认值,并通过 [System.IO.File]::ReadAllText(path, UTF8) 读取消息文件。

消息发送时统一使用 application/json; charset=utf-8,避免中文在 webhook 请求或控制台输出中乱码。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.