feat: add OpenClaw Skill support for one-click installation - #5
Open
gudo7208 wants to merge 4 commits into
Open
Conversation
- Add AI-generated Executive Summary at report top (via Gemini) - Hide empty sections instead of showing "暂无数据" - Add webhook notifier supporting WeChat Work, Feishu, Slack, DingTalk - Update .env.example with webhook configuration - Update tests for new behavior Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Add support for multiple notification channels: - Domestic: WeChat Work, Feishu, DingTalk - International: Slack, Discord, Telegram - Personal: Bark (iOS), Pushover - Email: SMTP with HTML/plain text - Custom: Generic webhook for n8n/Zapier Improvements: - Smart content formatting (Markdown/HTML/plain text) - Extract executive summary and top items per section - Platform-specific optimizations (Discord Embed, Feishu Card, etc.) - Respect each platform's length limits - Optional REPORT_BASE_URL for "view full report" link Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
- Telegram: Switch from Markdown to HTML mode for better stability (avoids special character escaping issues) - Bark: Add level parameter, improve URL format documentation - Pushover: Use string values for html/priority parameters Verified against official documentation: - WeChat Work: https://developer.work.weixin.qq.com/document/ - Feishu: https://open.feishu.cn/document/ - DingTalk: https://open.dingtalk.com/document/ - Slack: https://api.slack.com/messaging/webhooks - Discord: https://discord.com/developers/docs/resources/webhook - Telegram: https://core.telegram.org/bots/api - Bark: https://github.com/Finb/Bark - Pushover: https://pushover.net/api Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
- Add SKILL.md with OpenClaw skill definition - Add scripts/openclaw_handler.py as OpenClaw adapter - Remove webhook_notifier.py (646 lines) - push via OpenClaw instead - Simplify .env.example (95 -> 45 lines) - Update README with OpenClaw installation instructions Users can now install via: clawhub install intel-briefing Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
新增 OpenClaw Skill 支持,让用户可以一键安装使用情报简报功能。
🆕 OpenClaw Skill 支持
一键安装
自然语言触发
OpenClaw 会自动处理数据采集、AI 摘要和推送。
变更内容
新增文件
SKILL.md: OpenClaw 技能定义文件,包含元数据、触发词、操作步骤scripts/openclaw_handler.py: OpenClaw 适配层,复用核心逻辑删除文件
src/utils/webhook_notifier.py: 646 行代码,推送功能交给 OpenClaw 处理修改文件
.env.example: 从 95 行精简到 45 行,只保留数据源配置README.md: 添加 OpenClaw 安装说明run_mission.py: 移除 webhook 调用设计理念
webhook_notifier.py核心价值聚焦: Intel Briefing 专注于情报聚合和报告生成,推送交给 OpenClaw。
测试验证
所有测试通过,向后兼容。