qiaomu-blog-publish

qiaomu-blog-publish is a skill for Claude Code from joeseesun/qiaomu-blog-opensource. It costs 37 tokens per session (1,052 once invoked), scanned A, original, MIT.

A publishing workflow for sending Markdown, text, or a web page to a Qiaomu Blog, with category and draft or published status controls.

In plain words
What is it for?
Use it to publish or draft posts, choose blog categories, extract article text from a URL, and upload images used by the content.
Why use it?
It turns content from files, URLs, or pasted text into a blog post and can upload referenced local or remote images.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to publish or draft posts, choose blog categories, extract article text from a URL, and upload images used by the content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add joeseesun/qiaomu-blog-opensource --skill qiaomu-blog-publish-skill
Clone the repo
git clone --depth 1 https://github.com/joeseesun/qiaomu-blog-opensource

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qiaomu-blog-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill/github.svg)](https://agentmods.dev/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill)
Your own site
<a href="https://agentmods.dev/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill"><img src="https://agentmods.dev/badge/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qiaomu-blog-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill"><img src="https://agentmods.dev/badge/skills/joeseesun/qiaomu-blog-opensource/qiaomu-blog-publish-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01052
Opus 5 $0.00018 $0.00526
Sonnet 5 $0.00007 $0.00210
Haiku 4.5 $0.00004 $0.00105

Measured 8d ago against content hash e6e70634931e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

qiaomu-blog-publish scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://your-domain.com/api/admin/categories" \
ecosystem/qiaomu-blog-publish-skill/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

qiaomu-blog-publish: 发布内容到 Qiaomu Blog

触发方式

Slash command:

  • /qiaomu-blog-publish path/to/file.md
  • /qiaomu-blog-publish https://example.com/article
  • /qiaomu-blog-publish 然后粘贴 Markdown 或正文

自然语言:

  • “发布到博客”
  • “发布成草稿”
  • “发到 Qiaomu Blog”
  • “把这篇文章发到自己的博客”
  • “publish to blog”
  • “publish draft”

配置

API Base URL: https://your-domain.com

Token 读取优先级:

  1. 环境变量 QIAOMU_BLOG_API_TOKEN
  2. 环境变量 QMBLOG_API_TOKEN(兼容旧配置)
  3. 配置文件 ~/.claude/skills/qiaomu-blog-publish/config.json

如果没有 token,提示用户:

  1. 打开 https://your-domain.com/admin/settings
  2. API Token 页面生成 token
  3. 保存到:
{
  "apiUrl": "https://your-domain.com",
  "token": "qm_xxx"
}

工作流

1. 判断输入来源

  • 文件路径:读取本地 Markdown 或文本文件
  • URL:抓取正文并转成 Markdown
  • 纯文本:直接作为正文使用

2. 读取配置

优先读取环境变量;如果没有,再读取 config.json 中的 apiUrltoken

3. 拉取分类

curl -s "https://your-domain.com/api/admin/categories" \
  -H "Authorization: Bearer $TOKEN"

让用户选择分类;如果不选,可以留空,后续再在后台调整。

4. 解析内容

标题优先级:

  1. YAML frontmatter 的 title
  2. 第一条 # Heading
  3. 文件名

正文处理:

  • 去掉 frontmatter
  • 如果标题来自第一条 # Heading,则移除这条 heading,避免重复
  • 其余 Markdown 原样保留

5. 上传本地媒体

需要识别这些引用:

  • ![alt](./image.png)
  • ![[image.png]]
  • 音频 / 视频 / 附件本地路径

上传接口:

curl -s -X POST "https://your-domain.com/api/uploads" \
  -H "Authorization: Bearer $TOKEN" \
  -F "file=@/absolute/path/to/file"

拿到返回 URL 后,替换正文中的本地引用。

6. 转存第三方图片

如果 Markdown 中有第三方远程图片:

  1. 先下载到临时文件
  2. 再上传到博客
  3. 替换成博客自己的图片 URL

如果下载失败,保留原图 URL,并在最终结果里提示。

7. 让用户确认发布参数

确认三件事:

  1. 标题
  2. 分类
  3. 状态:draftpublished

默认用 draft

8. 发布

curl -s -X POST "https://your-domain.com/api/posts" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "The Title",
    "content": "Full processed Markdown content",
    "category": "selected-category-or-empty",
    "status": "draft"
  }'

9. 输出结果

Published successfully!

Title: xxx
Status: draft
Category: xxx
Edit: https://your-domain.com/editor?slug=2026-04-16-abc123
View: https://your-domain.com/posts/2026-04-16-abc123
Files: Uploaded N files

Read the full file on GitHub · 163 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 163 lines · 37 tokens per session scan A e6e70634931e

Subscribe to this mod's changes

qiaomu-blog-publish is a skill published in the GitHub repository joeseesun/qiaomu-blog-opensource (299 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 1,052 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens