Feishu hook
A personal collection of reusable AI agent skills.
npx -y skills add Gazer2020/zglii --skill feishu-hookAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 13 days oldThe repository was created 13 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Send Markdown card messages to Feishu (Lark) group chats through a custom bot webhook, with optional signature verification. Use when the user asks to post a notification, alert, status update, or other message to a Feishu/Lark group.
SKILL.md
2.0 KB, as published. Nobody here has run it
Send Feishu messages
Use Python 3.10+. Keep the working directory in the user's target project and resolve <skill-dir> to this skill's absolute directory:
python -m pip install -r <skill-dir>/requirements.txt
Use one .env: if the current Git project root .env exists, use only that file; otherwise use this skill's .env. Before the first send, check configuration:
python <skill-dir>/scripts/send_message.py --check-config
If missing, ask the user to run setup in their terminal. When the project has no .env, setup asks whether to create it or use the skill directory. Never ask the user to paste credentials into chat:
python <skill-dir>/scripts/send_message.py --setup
Send a Markdown card. Plain strings also work as ordinary text:
python <skill-dir>/scripts/send_message.py --title "通知" --message "**任务已完成**"
For direct Python use, add scripts/ to the import path and let the function load .env:
from send_message import send_feishu_message
result = send_feishu_message(
"**任务已完成**",
title="通知",
)
Use --check-config to report the selected file and any environment override without revealing credentials. Warn that any later-created project .env will replace, not merge with, the skill .env. A project .env may be committed, shared, or consumed by other tools, so require .gitignore. A skill .env is safer from project commits but can be lost during reinstall or updates.
Send the complete message without local length rejection, truncation, or splitting. If Feishu rejects an oversized message, report its API error and let the user shorten the content. Never print credentials. Do not retry automatically after a timeout because the message may already have arrived.