AI-powered security blog automation system (identical to github.com/rebugui/intelligence-agent). Collects news from Google News, arXiv, HackerNews → generates blog posts with GLM-4.7 → publishes to Notion → auto-deploys to GitHub Pages via Git. Features Human-in-the-Loop approval workflow. Use when you want to automate blog writing, news collection, or content generation with the exact functionality of the original intelligence-agent repository. Triggers: "블로그 글 작성", "보안 뉴스 발행", "깃헙 블로그 발행", "in
这是一个自动收集安全新闻,使用LLM(GLM-4.7)撰写专家级博客文章,并自动发布到Notion和GitHub Pages的系统。
GitHub仓库地址: https://github.com/rebugui/intelligence-agent
新闻收集 (Google News, arXiv, HackerNews)
↓
GLM-4.7 文章撰写 (专业安全博客)
↓
Notion 草稿保存 (状态: Draft)
↓
用户审核与批准 (Human-in-the-Loop)
↓
Git Push → GitHub Actions → GitHub Pages
bash
cd ~/.openclaw/workspace/skills/intelligence-agent/scripts
pip3 install -r requirements.txt
bash
bash
cd ~/.openclaw/workspace/skills/intelligence-agent/scripts
python3 intelligence_pipeline.py --max-articles 5
python
from collector import NewsCollector
collector = NewsCollector()
articles = collector.fetchall(maxresultspersource=15)
python
from writer import BlogWriter
writer = BlogWriter()
post = writer.generatearticle(articledata)
python
from notion_publisher import NotionPublisher
publisher = NotionPublisher()
result = publisher.createarticle(blogpost)
python
from gitpublisherservice import GitPublisherService
git_publisher = GitPublisherService()
gitpublisher.publish(blogposts)
python
def fetch_arxiv(self, category=cs.CR):
# 收集arXiv安全论文
pass
def fetch_hackernews(self):
# 收集HackerNews热门文章
pass
python
python
python
python
python
scheduler = BlockingScheduler()
scheduler.addjob(runpipeline, cron, hour=8, minute=30)
scheduler.start()
| 属性名 | 类型 | 描述 |
|---|---|---|
| 标题 | title | 博客文章标题 |
| 状态 |
blog/
├── _posts/
│ ├── 2025-03-09-cve-2025-xxxx-analysis.md
│ ├── 2025-03-09-ai-security-trends.md
│ └── ...
├── _layouts/
│ ├── post.html
│ └── default.html
├── _config.yml
└── .github/
└── workflows/
└── jekyll.yml
❌ Error: Rate limit reached (429)
解决方案:
❌ Error: Notion API error
解决方案:
❌ Error: Git push failed
解决方案:
intelligence-agent/
├── SKILL.md (本文件)
├── scripts/
│ ├── intelligence_pipeline.py (主流水线)
│ ├── collector.py (新闻收集)
│ ├── selector.py (AI文章筛选)
│ ├── writer.py (博客文章撰写)
│ ├── notion_publisher.py (Notion发布)
│ ├── gitpublisherservice.py (Git发布)
│ ├── llm_client.py (GLM API客户端)
│ ├── llmclientasync.py (异步GLM客户端)
│ ├── prompt_manager.py (提示词管理)
│ ├── prompts.yaml (提示词模板)
│ ├── models.py (数据模型)
│ ├── utils.py (工具函数)
│ ├── config.py (配置)
│ └── requirements.txt (依赖)
└── references/
├── architecture.md (详细架构)
├── prompts_guide.md (提示词指南)
└── api_reference.md (API参考)
bash
GLMAPIKEY # GLM-4.7 API密钥
NOTIONAPIKEY # Notion API密钥
NOTIONDATABASEID # Notion数据库ID
bash
GITHUB_TOKEN # GitHub个人访问令牌
GITHUBBLOGREPO # GitHub博客仓库 (username/repo)
BLOGLOCALPATH # 本地博客路径
bash
python3 testfullpipeline.py
bash
python3 testmermaidfix.py
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 auto-sec-blogger-1776179464 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-sec-blogger-1776179464 技能
skillhub install auto-sec-blogger-1776179464
文件大小: 60.57 KB | 发布时间: 2026-4-15 10:29