A Claude Code skill for sending messages to Feishu (飞书/Lark) via Webhook.
This skill enables Claude Code to send various types of messages to Feishu, including:
- Plain text messages
- Rich text (post) messages
- Interactive card messages
- Messages with images
Add this skill to your Claude Code configuration:
# Clone the repository
git clone https://github.com/viktorxhzj/feishu-webhook-skill.git
# Add to your Claude Code skills directoryOnce installed, invoke the skill in Claude Code:
/feishu-webhook-skill
The skill will guide you through sending messages to Feishu webhooks.
- Text: Simple text messages
- Rich Text (Post): Messages with formatting, links, mentions, images, and code blocks
- Interactive Cards: Complex card layouts with buttons, forms, and visualizations
The scripts/upload_image.py tool allows you to upload images to Feishu:
# Install dependencies
pip install requests requests-toolbelt
# Upload an image
python scripts/upload_image.py ./image.png --token <your_token>Supported formats: JPG, JPEG, PNG, WEBP, GIF, BMP, ICO, TIFF, HEIC
SKILL.md- Main skill definition and message content guidewebhook-card-common.md- Card structure basicswebhook-card-content.md- Card content componentswebhook-card-container.md- Card container componentswebhook-card-visual.md- Chart and visualization componentswebhook-image.md- Image handling guide
| Variable | Description |
|---|---|
FEISHU_TENANT_ACCESS_TOKEN |
Feishu tenant access token for API calls |
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.