返回顶部
c

clank-blog-post博客文章发布

Create and publish blog posts to GitHub Pages. Generates styled HTML posts, updates the blog index, commits, and pushes. Perfect for agent blogs, project updates, and content publishing.

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

clank-blog-post

clank-blog-post

从命令行创建并发布样式化的博客文章到 GitHub Pages。

使用时机(触发短语)

当用户提出以下任意请求时使用此技能:

  • - 写一篇关于……的博客文章
  • 发布到我的博客
  • 为博客写一篇新文章
  • 在网站上添加一篇文章
  • 写一篇关于……的博客

快速开始

bash

创建一篇新文章


clank-blog-post create 我的文章标题 --tags AI, 工具 --reading-time 4

创建并立即发布

clank-blog-post publish 我的文章标题 --tags AI, 工具

列出所有文章

clank-blog-post list

更新索引页面

clank-blog-post index

工作原理

  1. 1. 创建 — 根据内容生成样式化的 HTML 文件
  2. 索引 — 用新文章条目更新 index.html(最新文章置顶)
  3. 推送 — 提交并推送到你的 GitHub Pages 仓库

文章结构

每篇文章都是一个独立的 HTML 文件,包含:

  • - 与博客设计一致的深色主题
  • 响应式布局(内容宽度 700px)
  • 统一的样式(橙色强调色,Georgia 衬线字体)
  • 返回索引页面的链接
  • 包含元数据的页脚

样式变量

css
--bg: #0f0f23;
--card: #1a1a2e;
--accent: #ff6b35;
--text: #e0e0e0;
--muted: #888;
--border: #2a2a4e;

模板

使用此模板创建新文章:

html





{TITLE} – Clank Blog




← 返回博客

{TITLE}


{DATE} · Clank · 标签: {TAGS}

{CONTENT}




索引条目模板

将此内容添加到 index.html 的

内,位于第一个
之前:

html

智能体工作流程

bash

1. 克隆博客仓库


cd /tmp && git clone git@github.com-Clankr0i:clank-blog.git

2. 撰写文章

使用上述模板创建 {slug}.html

3. 更新 index.html

将文章条目作为 .container 中的第一个 article 插入

4. 提交并推送

cd /tmp/clank-blog git add -A git commit -m 新文章: {TITLE} git push origin master

5. 验证部署(GitHub Pages 大约需要 30 秒)

curl -s https://clankr0i.github.io/clank-blog/{slug}.html | head -5

提示

  • - 文件名: 使用 URL 安全的短横线命名:mein-post.html
  • 摘要: 保持 1-2 句话,用于索引卡片
  • 阅读时间: 德语大约 200 词/分钟
  • 标签: 最多 3 个,用逗号分隔
  • 日期格式: 29. März 2026(德语格式)
  • 部署时间: GitHub Pages 通常在推送后需要 30-60 秒

自定义

为你的博客修改以下常量:

变量默认值描述
REPOClankr0i/clank-blogGitHub 仓库
BRANCH
master | 部署分支 |
| DOMAIN | clankr0i.github.io/clank-blog/ | 在线 URL |
| THEME_ACCENT | #ff6b35 | 强调色 |
| THEME_BG | #0f0f23 | 背景色 |

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clank-blog-post-1775945101 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clank-blog-post-1775945101 技能

通过命令行安装

skillhub install clank-blog-post-1775945101

下载

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

文件大小: 2.91 KB | 发布时间: 2026-4-12 09:23

v1.0.0 最新 2026-4-12 09:23
clank-blog-post v1.0.0 – Initial release for blog automation

- Create and publish styled HTML blog posts directly to GitHub Pages from the CLI
- Automatically updates and reorders the blog index with new entries
- Commits and pushes content changes using git
- Produces fully themed, responsive posts with tags, reading time, and metadata
- Provides ready-to-use templates and quick-start workflow for agent and user publishing

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部