← 返回 Skills 市场
575
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install generate-news-article
功能描述
Generate individual Markdown articles from SerpAPI Google search results with images
使用说明 (SKILL.md)
Generate News Article
自动从 SerpAPI Google 搜索结果生成多篇独立的 Markdown 文章。
功能
- 接收搜索关键词(默认:AI助手)
- 调用 SerpAPI Google 搜索(默认获取 5 条结果)
- 为每条结果生成独立的 Markdown 文件
- 自动下载缩略图到 assets 目录
- 以时间目录结构保存文章
使用
# 使用默认关键词 "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 文件包含:
---
title: 文章标题
cover: ./assets/image.jpg
---
# 文章标题
摘要内容...
[原文链接](https://example.com/article)
特性
- ✅ 每条搜索结果生成独立文件
- ✅ 文件名使用搜索标题(自动清理特殊字符)
- ✅ 自动下载缩略图
- ✅ 支持指定文章数量
- ✅ 按日期归档
依赖
- SerpAPI skill(必须已安装)
- SERPAPI_API_KEY 环境变量
- Python 3(用于 JSON 解析和图片下载)
注意事项
- 如果搜索结果没有缩略图,cover 字段会留空
- 文件名会自动清理特殊字符
- 文章按搜索结果的序号生成
- 搜索使用 Google 搜索引擎(不是 Google News)
安全使用建议
Do not run this skill without reviewing and editing the script. Specific recommendations:
- The script contains a hard-coded SerpAPI API key. Remove this key and ensure the script uses the SERPAPI_API_KEY from your environment (or prompt you). If you or your organization already exposed this key somewhere, rotate it immediately.
- Change the absolute paths to relative or configurable paths (avoid /Users/xyz/...). Confirm the referenced serp.py exists in your environment before running; otherwise the script exits.
- Verify that downloading images from arbitrary external URLs is acceptable for your environment (network and storage). The script will fetch external resources referenced in search results.
- Because the skill overrides the environment key, it could cause calls to SerpAPI to be billed to the embedded account. Only proceed after you replace the embedded key with your own or remove it entirely.
- Prefer installing a maintained SerpAPI client or using the official SerpAPI skill interface rather than relying on another skill's script path.
Given the embedded credential and path issues, treat this as suspicious: fix the problems above or use a different, audited skill implementation.
功能分析
Type: OpenClaw Skill
Name: generate-news-article
Version: 1.0.0
The skill is classified as suspicious primarily due to the hardcoded `SERPAPI_API_KEY` found in `scripts/generate.sh`. This constitutes a critical credential leak, exposing a sensitive API key (`9cda299d6f3c24995d727709d33fd8a2ae9b6287be51667802acb4edb7b16796`) to anyone with access to the skill bundle. While the key is used for the skill's stated purpose (SerpAPI searches), its direct inclusion in the script violates security best practices and creates a severe vulnerability. Additionally, the script uses hardcoded paths for dependencies and output, reducing portability.
能力评估
Purpose & Capability
The SKILL.md and README state the skill needs a SerpAPI key and the SerpAPI skill, but the registry metadata lists no required env vars or credentials. The code does call SerpAPI (via another skill's serp.py), so requiring SerpAPI is reasonable — however the mismatch between declared requirements and actual behavior is inconsistent and could mislead users.
Instruction Scope
The runtime script writes to a hard-coded agent root (/Users/lihaijian/.openclaw/workspace-wechat-publisher), expects another skill's script at a fixed absolute path, and downloads images from external URLs. These actions go beyond a simple, portable generator: the absolute paths make the script environment-specific and it overrides environment-based configuration (see below).
Install Mechanism
There is no network install spec (instruction-only), and the script is delivered with the skill (no remote download or extract). That lowers install risk, but the shipped script will be copied to the user's skills directory and executed locally — review it before running.
Credentials
SKILL.md says SERPAPI_API_KEY is required, but the bash script embeds a long SerpAPI API key inline and sets SERPAPI_API_KEY to that value when invoking the serp.py command. Embedding someone else's API key is unexpected and disproportionate: it overrides the user's key, leaks a credential to anyone who inspects the script, and could lead to billing/abuse of that account.
Persistence & Privilege
The skill does not request always:true and does not modify other skills' configurations. It writes files to an output directory (normal for a generator). The main privilege concern is the script's use of absolute paths into another skill's folder, but it does not alter system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install generate-news-article - 安装完成后,直接呼叫该 Skill 的名称或使用
/generate-news-article触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - generate Markdown news articles from Google search results.
- Automatically generates individual Markdown articles from SerpAPI Google search results with images.
- Supports keyword input and result count customization.
- Downloads thumbnails into assets directory and links them in articles.
- Saves articles in date-based folders with clean file names.
- Each article includes title, cover image, summary, and source link.
- Requires SerpAPI skill, API key, and Python 3 for execution.
元数据
常见问题
Generate News Article 是什么?
Generate individual Markdown articles from SerpAPI Google search results with images. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 575 次。
如何安装 Generate News Article?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install generate-news-article」即可一键安装,无需额外配置。
Generate News Article 是免费的吗?
是的,Generate News Article 完全免费(开源免费),可自由下载、安装和使用。
Generate News Article 支持哪些平台?
Generate News Article 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Generate News Article?
由 near2sea(@near2sea)开发并维护,当前版本 v1.0.0。
推荐 Skills