返回顶部
b

blog-generator博客生成器

Analyzes journal entries and chat history to identify high-value topics and automatically generate blog posts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
461
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

blog-generator

Blog Generator | OpenClaw 技能

描述

分析日志条目和聊天记录,识别高价值主题,并自动生成博客文章。

Blog Generator | OpenClaw 技能

通过分析日志条目、聊天记录和近期活动,自动生成博客文章,识别与 OpenClaw 相关的高价值、高搜索量主题。

使用方法

  • - 作为定时 cron 任务,每周或每日自动生成博客内容
  • 手动操作,从近期日志分析中创建博客文章
  • 识别并记录高价值的解决方案和发现

bash

X 格式文章输出为 HTML;生成之间运行人性化处理;页眉来自 visual-explainer


python3 /Users/ghost/.openclaw/workspace/skills/blog-generator/scripts/blog_generator.py

跳过人性化处理(例如没有 OPENROUTERAPIKEY)

python3 /Users/ghost/.openclaw/workspace/skills/blog-generator/scripts/blog_generator.py --no-humanize

自定义人性化处理或 visual-explainer 路径

python3 /Users/ghost/.openclaw/workspace/skills/blog-generator/scripts/blog_generator.py --humanizer-path /Users/ghost/Downloads/humanizer-1.0.0 --visual-explainer-path /Users/ghost/.openclaw/workspace/skills/visual-explainer-main

经典格式(概述/问题/解决方案),仍为 HTML

python3 /Users/ghost/.openclaw/workspace/skills/blog-generator/scripts/blog_generator.py --format classic

JSON 输出

python3 /Users/ghost/.openclaw/workspace/skills/blog-generator/scripts/blog_generator.py --days 14 --max-topics 5 --json

该技能的功能

  • - 扫描 最近 N 天的日志条目,寻找有趣的主题(发现、障碍、解决方案)
  • 识别 基于关键词相关性和问题解决价值的高价值主题
  • 研究 搜索量和关键词机会(基于启发式方法,可通过 API 增强)
  • 生成 结构化的博客文章,包含概述、问题、解决方案和要点总结部分
  • 保存 博客文章至 /Users/ghost/.openclaw/blogs/,仅输出 HTML(X 文章格式,页眉来自 visual-explainer,生成之间进行人性化处理)

作为 Cron 任务集成

该技能设计为通过 OpenClaw cron 定期运行(每日或每周),自动生成博客内容。

示例 Cron 任务配置(每日):

json
{
payload: {
kind: agentTurn,
message: 运行 blog-generator 技能,分析日志条目并生成高价值博客文章。,
model: openrouter/google/gemini-2.5-flash,
thinking: low,
timeoutSeconds: 300
},
schedule: {
kind: cron,
cron: 0 9 *
},
delivery: {
mode: announce
},
sessionTarget: isolated,
name: 博客文章生成器
}

示例 Cron 任务配置(每周):

json
{
payload: {
kind: agentTurn,
message: 运行 blog-generator 技能,使用 --days 7 --max-topics 3 参数,从日志分析中生成每周博客文章。,
model: openrouter/google/gemini-2.5-flash,
thinking: low,
timeoutSeconds: 300
},
schedule: {
kind: cron,
cron: 0 10 1
},
delivery: {
mode: announce
},
sessionTarget: isolated,
name: 每周博客生成器
}

输出格式

仅 HTML(无 Markdown)。输出采用 X 文章接受的格式:一个页眉(来自 visual-explainer),然后是文章正文,无交错视觉元素。

  • - 文件: /Users/ghost/.openclaw/blogs/YYYYMMDDslugified-title.html
  • 文章结构: X 风格(长文):有力的钩子、短段落、两种人框架、转折点、利害关系。使用 --format classic 获得概述/问题/解决方案格式。
  • 页眉: 仅来自 visual-explainer。默认路径:/Users/ghost/.openclaw/workspace/skills/visual-explainer-main。该技能的 scripts/generateheader.py 以 section: header 调用,返回 htmlsnippet(包含标题和可选摘要的横幅)。正文中无图表或图片。
  • 人性化处理: 默认在生成之间运行。每篇文章的正文在渲染为 HTML 之前,通过 /Users/ghost/Downloads/humanizer-1.0.0 处理(需要 OPENROUTERAPI_KEY)。使用 --no-humanize 跳过。

主题评分

主题根据以下标准评分:

  • - 高价值关键词: OpenClaw 特定术语、问题解决类语言
  • 内容类型: 解决方案得分最高,其次是障碍,然后是发现
  • 内容深度: 更长、更详细的内容得分更高
  • 搜索量指标: 如 how to、tutorial、fix 等关键词增加价值

要求

  • - 日志条目位于 /Users/ghost/.openclaw/journal/
  • 博客目录可写入 /Users/ghost/.openclaw/blogs/
  • 聊天历史分析器技能(用于日志条目)

工作原理

  1. 1. 扫描日志目录中最近 N 天的 Markdown 文件
  2. 从发现、障碍和解决方案部分提取主题
  3. 根据关键词相关性和价值对主题进行评分
  4. 选择排名前 N 的高价值主题
  5. 生成结构化的博客文章,采用问题/解决方案格式
  6. 将文章保存到博客目录,文件名带有时间戳

增强机会

  • - 集成 Google Keyword Planner API 获取真实搜索量数据
  • 使用 AI 模型提升博客文章质量和 SEO 优化
  • 与现有博客文章交叉引用以避免重复
  • 生成文章的多个变体用于 A/B 测试

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 blog-generator-1776298055 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 blog-generator-1776298055 技能

通过命令行安装

skillhub install blog-generator-1776298055

下载

⬇ 下载 blog-generator v1.0.0(免费)

文件大小: 23.31 KB | 发布时间: 2026-4-16 18:41

v1.0.0 最新 2026-4-16 18:41
Initial release of Blog Generator for OpenClaw.

- Analyzes journal entries and chat history to identify high-value topics.
- Automatically generates blog posts in HTML (X-article format) with structured sections (overview, problem, solution, takeaways).
- Scores and selects topics by relevance, content depth, and search volume indicators.
- Designed to run as a scheduled cron job or manually for ad-hoc generation.
- Supports article humanization via pluggable humanizer; integrates with visual-explainer for headers.
- Outputs blog posts to a dedicated folder with timestamped filenames.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部