Blog Generator | OpenClaw Skill
Description
Analyzes journal entries and chat history to identify high-value topics and automatically generate blog posts.
Blog Generator | OpenClaw Skill
Automatically generates blog posts by analyzing journal entries, chat history, and recent activity to identify high-value, high-search-volume topics related to OpenClaw.
Usage
- - As a scheduled cron job to automatically generate blog content weekly or daily
- Manually to create blog posts from recent journal analysis
- To identify and document high-value solutions and discoveries
CODEBLOCK0
What this skill does
- - Scans journal entries from the last N days for interesting topics (discoveries, obstacles, solutions)
- Identifies high-value topics based on keyword relevance and problem-solving value
- Researches search volume and keyword opportunities (heuristic-based, can be enhanced with APIs)
- Generates structured blog posts with overview, problem, solution, and takeaways sections
- Saves blog posts to
/Users/ghost/.openclaw/blogs/ as HTML only (X-article format, header from visual-explainer, humanizer between generations)
Integration as a Cron Job
This skill is designed to run periodically (daily or weekly) via OpenClaw cron to automatically generate blog content.
Example Cron Job Configuration (Daily):
CODEBLOCK1
Example Cron Job Configuration (Weekly):
CODEBLOCK2
Output Format
HTML only (no Markdown). Output is in the format accepted by X articles: one header (from visual-explainer), then article body with no interlaced visuals.
- - File: INLINECODE1
- Article structure: X-style (long-form): punchy hook, short paragraphs, "two types of people" framing, pivot, stakes. Use
--format classic for overview/problem/solution. - Header: From visual-explainer only. Default path:
/Users/ghost/.openclaw/workspace/skills/visual-explainer-main. The skill’s scripts/generate_header.py is called with section: "header" and returns an html_snippet (hero with title and optional summary). No diagrams or images in the body. - Humanizer: Runs between generations by default. Each article’s body is sent through
/Users/ghost/Downloads/humanizer-1.0.0 (requires OPENROUTER_API_KEY) before rendering to HTML. Use --no-humanize to skip.
Topic Scoring
Topics are scored based on:
- - High-value keywords: OpenClaw-specific terms, problem-solving language
- Content type: Solutions score highest, then obstacles, then discoveries
- Content depth: Longer, more detailed content scores higher
- Search volume indicators: Keywords like "how to", "tutorial", "fix" increase value
Requirements
- - Journal entries in INLINECODE10
- Blogs directory writable at INLINECODE11
- Chat history analyzer skill (for journal entries)
How it works
- 1. Scans journal directory for markdown files from the last N days
- Extracts topics from discoveries, obstacles, and solutions sections
- Scores topics based on keyword relevance and value
- Selects top N high-value topics
- Generates structured blog posts with problem/solution format
- Saves posts to blogs directory with timestamped filenames
Enhancement Opportunities
- - Integrate with Google Keyword Planner API for real search volume data
- Use AI model to enhance blog post quality and SEO optimization
- Cross-reference with existing blog posts to avoid duplicates
- Generate multiple variations of posts for A/B testing
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. 扫描日志目录中最近 N 天的 Markdown 文件
- 从发现、障碍和解决方案部分提取主题
- 根据关键词相关性和价值对主题进行评分
- 选择排名前 N 的高价值主题
- 生成结构化的博客文章,采用问题/解决方案格式
- 将文章保存到博客目录,文件名带有时间戳
增强机会
- - 集成 Google Keyword Planner API 获取真实搜索量数据
- 使用 AI 模型提升博客文章质量和 SEO 优化
- 与现有博客文章交叉引用以避免重复
- 生成文章的多个变体用于 A/B 测试