Generate individual Markdown articles from SerpAPI Google search results with images
Scanned 9/7/2026
Install to Claude Code
npx -y skills add modbender/skill-library-mcp --skill generate-news-article --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Generate News Article?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-generate-news-article)More formats (shields.io, HTML) on the badges page.
---
name: generate_news_article
description: Generate individual Markdown articles from SerpAPI Google search results with images
homepage:
metadata: {"clawdbot":{"emoji":"📰","requires":["serpapi"]}}
---
# Generate News Article
自动从 SerpAPI Google 搜索结果生成多篇独立的 Markdown 文章。
## 功能
1. 接收搜索关键词(默认:AI助手)
2. 调用 SerpAPI Google 搜索(默认获取 5 条结果)
3. 为每条结果生成独立的 Markdown 文件
4. 自动下载缩略图到 assets 目录
5. 以时间目录结构保存文章
## 使用
```bash
# 使用默认关键词 "AI助手"
generate.sh
# 指定关键词
generate.sh "AI大模型"
# 指定关键词和结果数量
generate.sh "ChatGPT" 10
```
## 输出结构
生成的文章保存在 agent 根目录的 output 文件夹中:
```
/Users/lihaijian/.openclaw/workspace-wechat-publisher/output/
└── 2026-02-22/
├── 文章标题1.md
├── 文章标题2.md
├── 文章标题3.md
├── 文章标题4.md
├── 文章标题5.md
└── assets/
├── image1.jpg
├── image2.jpg
└── ...
```
## 文章格式
每篇 Markdown 文件包含:
```markdown
---
title: 文章标题
cover: ./assets/image.jpg
---
# 文章标题
摘要内容...
[原文链接](https://example.com/article)
```
## 特性
- ✅ 每条搜索结果生成独立文件
- ✅ 文件名使用搜索标题(自动清理特殊字符)
- ✅ 自动下载缩略图
- ✅ 支持指定文章数量
- ✅ 按日期归档
## 依赖
- SerpAPI skill(必须已安装)
- SERPAPI_API_KEY 环境变量
- Python 3(用于 JSON 解析和图片下载)
## 注意事项
- 如果搜索结果没有缩略图,cover 字段会留空
- 文件名会自动清理特殊字符
- 文章按搜索结果的序号生成
- 搜索使用 Google 搜索引擎(不是 Google News)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...