agentCLAWHUBUnverified

Hugo Blog Publisher

发布文章到 Hugo 博客。用于当用户说"发布博客"、"推送到blog"、"post to blog"、"发布文章"等。自动完成 front matter 渲染、<!--more--> 标记添加、git 推送流程。 Skill: Hugo Blog Publisher Owner: tanteng Summary: 发布文章到 Hugo 博客。用于当用户说"发布博客"、"推送到blog"、"post to blog"、"发布文章"等。自动完成 front matter 渲染、<!--more--> 标记添加、git 推送流程。 Tags: latest:1.1.1 Version history: v1.1.1 | 2026-03-25T03:31:07.815Z | user 修正标签分类映射方式,全部使用_index.md文件 v1.0.1 | 2026-03-05T00:49:14.866Z | user 文件名格式改为不含日期 v1.5.0 | 2026-03-02T07:17:29.035Z | auto - 自动读取博客配置:现在会优先从用户记忆文件和 .git 配置中获取博客域名和路径,无需每次手动输入 - 仅在找不到配置时才

OpenClaw

Rank

62

Safety

84

Downloads

1.9k

Updated

Oct 9, 2026

Version

1.1.1

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 9, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 9, 2026
Adoption signal
1.9K downloadsadoption · observed Oct 9, 2026
Latest release
1.1.1release · observed Mar 25, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17arxxkc5tdc79a7pbqxxapad83jnyw:hugo-blog-publisher
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tanteng-hugo-blog-publisher/snapshot"

Documentation

CLAWHUB

24,986 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: hugo-blog-publisher
version: 1.1.0
description: 发布文章到 Hugo 博客。用于当用户说"发布博客"、"推送到blog"、"post to blog"、"发布文章"等。自动完成 front matter 渲染、<!--more--> 标记添加、git 推送流程。
---

# Hugo Blog Publisher

将 Markdown 文章发布到 Hugo 博客并推送到 GitHub。

## 自动读取配置

此 Skill 会自动尝试从以下位置读取博客配置:
1. 用户记忆文件(MEMORY.md / USER.md)中的博客域名、路径等
2. 博客目录下的 .git 配置

如果未找到配置,才询问用户。

## 使用前提

1. **本地运行**:此 Skill 需要在能够访问博客目录的机器上运行
2. **Git 配置**:确保机器上有 Git 和 GitHub 访问权限

## 发布流程

### 1. 分析内容

从用户提供的文章内容中自动提取:
- **标题**:从 front matter 或内容中提取
- **标签**:根据内容主题自动判断(如 AI → ["ai"])
- **分类**:根据内容类型判断(如技术文章 → ["tech"])

### 2. 生成文件名

- 格式: `content/posts/{slug}.md`
- slug: 标题转为 URL 友好格式(小写、连字符、去除特殊字符)
- 注意:文件名不要包含日期,日期在 front matter 的 `date` 字段中指定

### 3. 渲染 Front Matter

```yaml
---
title: "文章标题"
date: YYYY-MM-DD
draft: false
tags: ["tag1", "tag2"]
categories: ["Category"]
description: "文章描述"
---
```

**重要规则**:
- **categories**:使用已有分类(小写英文 slug),如 `tech`, `investment`, `ai`, `photo`
- **tags**:使用小写英文 slug,不要用中文
- **slug**:文件名使用小写英文,不要用中文

### 4. 标签/分类映射(重要)

**文章 frontmatter 用英文 slug,页面展示用中文**,通过 Hugo Taxonomy Branch Bundle 实现:

1. frontmatter 中使用英文 slug:
   ```yaml
   tags: ["ssg", "ssr"]
   categories: ["tech"]
   ```

2. 如果遇到新标签/分类没有映射文件,需要创建:
   ```
   content/tags/<slug>/_index.md
   content/categories/<slug>/_index.md
   ```

3. 文件内容极简:
   ```yaml
   ---
   title: "显示的中文名"
   ---
   ```

**不用 i18n,全部用 _index.md 映射!**

#### 常用分类 (categories)
| Slug | 中文显示 |
|------|----------|
| tech | 技术 |
| photo | 摄影 |
| ai | AI |
| investment | 投资 |
| tech-news | 科技资讯 |
| science | 科学 |
| art | 艺术 |
| life | 生活 |
| reading-notes | 读书笔记 |

#### 常用标签 (tags)
| Slug | 中文显示 |
|------|----------|
| ai | AI |
| llm | 大语言模型 |
| agent | 智能体 |
| programming | 编程 |
| thinking | 思考 |
| photography | 摄影 |
| camera | 相机 |
| photo | 照片 |
| options | 期权 |
| trading | 交易 |
| investment | 投资 |
| stock | 股票 |
| php | PHP |
| go | Go |
| kubernetes | Kubernetes |
| rag | RAG |

#### 专属名词(保持英文显示)
- AI、RAG、NLP、Kubernetes、Go、Elasticsearch、PHP、SQL、Kimi、DeepSeek、Claude、GPT、SSG、SSR 等技术名称用英文 slug

### 5. 添加 <!--more--> 截断标记

在第一段或导言后添加 `<!--more-->`,让列表页显示摘要。

位置通常在:
- 第一段结束后的空行
- 导言和正文之间

### 6. Git 推送

从博客目录自动检测 git 状态并推送:

```bash
cd {博客路径}
git add content/posts/{文件名}
git commit -m "新增:{文章标题}"
git push
```

如果 git push 需要认证,确保用户已配置 SSH key 或 git credentials。

### 7. 返回部署链接

告知用户文章已发布成功。

注意:不要硬编码域名,应该根据用户提供的博客信息返回相应链接。

## 使用示例

```
用户:帮我发布这篇blog(附文章内容)

系统自动完成:
1. 分析内容,提取标题、标签、分类
2. 生成文件名(slug)
3. 添加 front matter 和 <!--more--> 标记
4. 如需新标签/分类,创建 _index.md 映射文件
5. 检测博客目录并推送
6. 返回部署链接
```

## 注意事项

- slug 生成:英文直接用,中文可用拼音或英文关键词
- <!--more--> 位置:根据文章结构选择合适位置
- commit message:建议用 "新增:" 前缀
- 如果用户没有提供博客路径,默认用当前目录的 blog 子目录
- **所有标签/分类映射都用 _index.md 文件方式,不用 i18n/zh.toml!**

_meta.json

{
  "ownerId": "kn79n3vq8h276qmrnphaxxngcn825xnx",
  "slug": "hugo-blog-publisher",
  "version": "1.1.1",
  "publishedAt": 1774409467815
}

references/frontmatter-templates.md

# Hugo 博客常用 front matter 模板

## 标准模板

```yaml
---
title: "文章标题"
date: 2026-03-02
draft: false
tags: ["标签1", "标签2"]
categories: ["分类"]
---
```

## 带摘要模板

```yaml
---
title: "文章标题"
date: 2026-03-02
draft: false
tags: ["标签1", "标签2"]
categories: ["分类"]
description: "文章摘要描述"
---
```

## 常用标签参考

### 技术类
- AI, RAG, 大模型, 编程, Python, Go, 后端, 架构师
- 机器学习, 深度学习, LLM, Agent, 提示词

### 生活类
- 生活, 随想, 摄影, 旅行, 阅读, 电影

### 热点类
- 翻译, 名人名言, Hacker News, 科技, 热点

### 博客类
- 教程, 工具, 经验, 总结

## 常用分类

- 技术 (技术文章)
- 生活 (生活随想)
- 思考 (个人思考)
- 翻译 (翻译文章)
- 资源 (资源分享)

## <!--more--> 使用

位置:通常放在第一段结束之后,让列表页显示摘要而不是全文。

```markdown
第一段内容...

<!--more-->

第二段内容...
```

skill-card.md

## Description:

Publishes Markdown articles to a Hugo blog by generating front matter, adding a summary marker, creating taxonomy mapping files when needed, committing changes, and pushing to GitHub.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tanteng](https://clawhub.ai/user/tanteng)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, writers, and site maintainers use this skill to publish Markdown posts into a local Hugo blog repository and push the resulting changes to GitHub.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can read local memory or configuration to discover blog settings.

Mitigation: Provide the blog path and domain explicitly, and review any discovered configuration before using it.

Risk: The skill can write files, commit changes, and push to GitHub without an explicit review gate.

Mitigation: Manually review generated files, target repository, branch, remote, commit message, and final push before allowing git commands to run.

## Reference(s):

- [Hugo Blog Front Matter Templates](artifact/references/frontmatter-templates.md)

## Skill Output:

**Output Type(s):** [Markdown, Code, Shell commands, Configuration guidance]

**Output Format:** [Markdown with YAML front matter and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create or modify Hugo content files and taxonomy mapping files before proposing git commit and push commands.]

## Skill Version(s):

1.1.1 (source: server release evidence; artifact frontmatter reports 1.1.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 4h agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/tanteng/skills/hugo-blog-publisher",
      "sourceUrl": "https://clawhub.ai/tanteng/skills/hugo-blog-publisher",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-09T23:16:24.634Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-tanteng-hugo-blog-publisher/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-tanteng-hugo-blog-publisher/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-09T23:16:24.634Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.9K downloads",
      "href": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceUrl": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-09T23:16:24.634Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.1.1",
      "href": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceUrl": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-03-25T03:31:07.815Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-tanteng-hugo-blog-publisher/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-tanteng-hugo-blog-publisher/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.1.1",
      "description": "修正标签分类映射方式,全部使用_index.md文件",
      "href": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceUrl": "https://clawhub.ai/tanteng/hugo-blog-publisher",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-03-25T03:31:07.815Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 9, 2026.

Sponsored

Ads related to Hugo Blog Publisher and adjacent AI workflows.