zenn_github

Publish Zenn articles by managing Markdown in a GitHub-connected repository (push/PR -> merge) and previewing with Zenn CLI.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "zenn_github" with this command: npx skills add tachi-koma-x/zenn

Zenn: GitHub Push/PR Publishing

Overview

Zenn publishes by syncing a GitHub repository. Articles/books are Markdown files placed in specific directories, and Zenn CLI helps you preview and scaffold content locally.

This skill defines an operational workflow that is both fast and safe:

  • Draft in PRs (published: false)
  • Review with local preview (zenn preview)
  • Publish by flipping published: true once the PR is ready

Inputs to collect

  • Repo path (local clone) and GitHub remote
  • Publishing branch (the branch connected to Zenn)
  • Article metadata: title, emoji, type (tech or idea), topics, published
  • Slug / filename for the Markdown file (kebab-case recommended)
  • Assets (images) location strategy (recommended: images/<slug>/...)

File placement rules (Zenn)

  • Articles must be placed under articles/ as individual .md files.
  • (Optional) Books are placed under books/.

Recommended repo layout:

.
├─ articles/
│  └─ 20260216-openclaw-to-zenn.md
├─ books/                # optional
└─ images/               # optional, recommended
   └─ openclaw-to-zenn/
      ├─ cover.png
      └─ diagram.png

Zenn CLI usage (local)

Install / init (one-time per repo)

If Zenn CLI is not set up yet in the repo:

npm init --yes
npm install zenn-cli
npx zenn init

Preview locally

npx zenn preview

Create new content

npx zenn new:article
npx zenn new:book

List existing content

npx zenn list:articles
npx zenn list:books

Article template (copy/paste)

Create articles/<slug>.md:

---
title: "記事タイトル"
emoji: "🧩"
type: "tech" # tech or idea
topics: ["ruby", "rails", "ai"]
published: false
---

## TL;DR
- ...
- ...
- ...

## 背景
...

## 実装 / 検証
...

## 学び
...

## 参考
- ...

Notes:

  • Title is in front matter, so body headings should generally start at ##.
  • Keep topics to a small, consistent set for series-building.

Standard workflow (recommended)

1) Draft in a feature branch

  1. Create or edit articles/<slug>.md (keep published: false)
  2. Add images (if any) under images/<slug>/...
  3. Preview locally:
    npx zenn preview
    

2) Open a PR

git checkout -b article/<slug>
git add articles/<slug>.md images/<slug>/
git commit -m "Add draft: <title>"
git push -u origin article/<slug>

Open a PR into the Zenn publishing branch.

3) Publish safely

Option A (safest): publish in a second tiny PR/commit

  1. Merge the draft PR (still published: false)
  2. Flip to published: true and merge a small PR

Option B (fast): publish in the same PR

  • Keep published: false during writing/review
  • Flip to true right before merging

Quality gate checklist (minimum)

Before setting published: true, verify:

  • No confidential info (customer names, internal URLs, unreleased metrics)
  • Code blocks are runnable or clearly labeled as pseudo-code
  • Images render and paths are correct
  • Links are correct
  • Spelling / headings / formatting are acceptable

Troubleshooting

  • Preview differs from Zenn web or CLI shows update notice:
    npm install zenn-cli@latest
    
  • Images not showing:
    • Ensure they are committed and pushed
    • Ensure references look like /images/<slug>/... (not ./images/...)
  • Article not appearing:
    • File is under articles/
    • published: true
    • The branch synced to Zenn is the one being updated

When does this not work?

  • Skipping PR review (direct publish) increases risk of accidental leaks.
  • Relying on UI/browser automation instead of GitHub sync is brittle to UI changes.
  • Mixing multiple articles in one file or placing files outside articles/ will not publish as expected.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Content Collector

个人内容收藏与知识管理系统。收藏、整理、检索、二创。 Use when: (1) 用户分享链接/文字/截图并要求保存或收藏, (2) 用户说"收藏这个"/"存一下"/"记录下来"/"save this"/"bookmark"/"clip this", (3) 用户要求按关键词/标签搜索之前收藏的内容, (4) 用...

Registry SourceRecently Updated
Coding

Github Stars Tracker

GitHub 仓库 Stars 变化监控与通知。追踪指定仓库的 star 增长、fork 变化,发现新趋势。适合开发者关注项目动态。

Registry SourceRecently Updated
Coding

RabbitMQ client guide for Tencent Cloud TDMQ

RabbitMQ 客户端代码指南。当用户需要编写、调试或审查 RabbitMQ 应用代码时使用。涵盖:用任意语言(Java/Go/Python/PHP/.NET)写生产者或消费者;排查连接暴增、消息丢失、Broken pipe、消费慢、漏消费等客户端问题;审查 spring-boot-starter-amqp、a...

Registry SourceRecently Updated