cnblogs-skill

cnblogs-skill is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 151 tokens per session (3,210 once invoked), scanned A, original, Apache-2.0.

An automation skill for 博客园 (Cnblogs), a Chinese technology blogging platform. It covers researching topics, writing and formatting posts, handling images, publishing through an API, checking formatting, and community interactions.

In plain words
What is it for?
Use it to create and publish technical posts, generate and upload illustrations, manage published-post records, recommend or comment on posts, and handle 博问 questions and replies.
Why use it?
It brings writing, publishing, account checks, and community activity into one workflow instead of requiring separate manual steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create and publish technical posts, generate and upload illustrations, manage published-post records, recommend or comment on posts, and handle 博问 questions and replies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/cnblogs-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 Morningstar202604/awesome-skillkit --skill cnblogs-skill
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

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 cnblogs-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/cnblogs-skill/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/cnblogs-skill)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/cnblogs-skill"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/cnblogs-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 cnblogs-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/cnblogs-skill"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/cnblogs-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,210 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.00151 $0.03210
Opus 5 $0.00076 $0.01605
Sonnet 5 $0.00030 $0.00642
Haiku 4.5 $0.00015 $0.00321

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

Security

Grade A, and why

cnblogs-skill 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/cnblogs-pre-publish-check.py, tests/test_pre_publish_check.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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://i.cnblogs.com/api/posts/{任意已有postId}" -H "Cookie: $COOKIE" | head -c 20
skills/writing/blog/cnblogs-skill/SKILL.md · 264 lines

How it starts

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

博客园自动化发文与管理技能

概述

本技能是博客园(cnblogs.com)的全自动化操作技能,定位为自动化发文 + 自动化管理博客园

采用 API优先、浏览器兜底 的双轨策略:

  • API方式(推荐):通过 i.cnblogs.com/api/posts 等 REST 接口直接操作,无需浏览器交互
  • 浏览器方式(兜底):通过任意 Playwright 驱动的浏览器会话操作页面,用于评论提交、博问互动等无 API 的场景

账号信息

账号数据不随本技能分发,存于 references/account.local.json(gitignored):

字段 说明
username 博客园用户名
blog_url 博客首页地址
blog_id 博客 ID(API 发文必需)
signature_id 签名 ID
personal_categories 个人分类 ID 映射
published_posts 已发布文章台账(本地运营记录)

首次使用:复制 references/account.example.jsonaccount.local.json 并填入你自己的账号。所有发文/互动流程先读该文件;文件缺失时提示用户配置,不要猜测账号。

已发布文章列表

→ 运营台账已移至 references/account.local.jsonpublished_posts 字段(含 PostId、标题、分类),发文成功后由流程负责追加更新。

认证管理

Cookie 来源

Cookie 存储在会话工作目录的 auth-state.json 文件中。该文件包含浏览器完整 cookie(含 HttpOnly),由 Playwright 登录会话的 storage_state 导出。

提取方式见 references/publish-api.md 的"Cookie 提取"章节。

XSRF Token

POST 请求需要 X-XSRF-TOKEN header。获取方式:

  1. GET 请求 https://i.cnblogs.com/posts(HTML 页面)
  2. 从响应的 Set-Cookie 头中提取 XSRF-TOKEN
  3. decodeURIComponent 解码后使用

重要:XSRF token 会定期变化,每次 POST 前重新获取最安全。

登录态验证

# GET 请求任意 API 端点,返回 JSON = 有效,返回 HTML = 过期
curl -s "https://i.cnblogs.com/api/posts/{任意已有postId}" -H "Cookie: $COOKIE" | head -c 20
# JSON 开头 = 有效;<!doctype = 过期

过期后需提示用户通过浏览器重新登录。

核心工作流

任务路由

根据用户需求选择对应工作流,先读参考文件再操作

用户意图 工作流 参考文件
选题/找热门话题 热点调研 references/topic-research.md
写文章/发文/发布博文 API发文流程 references/publish-api.md
检查文章格式 格式检查 references/formatting-guide.md
生成配图/上传图片 配图流程 references/image-guide.md
评论/回复评论/社区活跃 社区互动 references/community.md
查看消息/有没有人回复 社区互动 references/community.md
遇到操作失败/超时 故障排查 references/troubleshooting.md

发文完整流程(API方式)

  1. 热点调研 → 浏览博客园首页 + websearch 搜索最新话题和数据
  2. 分析优秀文章 → 看高阅读量文章的标题技巧、结构、引流方式
  3. 确定选题 → 选择有差异化角度的话题
  4. 搜索素材 → 用 websearch 获取最新数据、案例、趋势
  5. 撰写文章 → 按排版规范和发文风格写 Markdown 正文
  6. 格式检查 → 运行 scripts/cnblogs-pre-publish-check.py
  7. 生成配图 → 用任意可用的文生图工具/技能生成 2 张配图(无配图能力可跳过)
  8. 上传配图 → Python urllib 直接 POST 到博客园图床
  9. 插入图片 → 将图片 URL 插入 Markdown 正文
  10. 提取 Cookie + XSRF → 从 auth-state.json 提取,GET HTML 页面获取新 XSRF
  11. POST 创建文章https://i.cnblogs.com/api/postspublishAt 必须为 null
  12. 验证 → GET 文章确认字段完整、图片到位、格式检查全 PASS

Read the full file on GitHub · 264 lines

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. 11d ago First seen · 264 lines · 151 tokens per session scan A ca5680db45b5

Subscribe to this mod's changes

cnblogs-skill is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 151 tokens to every session and 3,210 once invoked, about $0.0008 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-08-31.

Related

Other skills, from other repositories

agentic-webdesign-html-anything

Install and use html-anything — the agentic HTML editor where your local AI agent writes HTML and you ship it. 75 skills × 9 surfaces, BYOK, zero API key. Use when building magazine articles, keynote decks, resumes, posters, social cards, web prototypes, data reports, or Hyperframes videos with AI coding agents.

S3YED/appie-kit · 78 tokens

blog-post

Full-stack blog post production — turns a topic, idea, or brief into a complete publishing package across written, social, and multimedia surfaces. Generates broomva.tech .mdx posts (or Substack/other long-form), X posts and threads, LinkedIn posts, Instagram posts and reel scripts, plus multimedia asset plans…

broomva/skills · 182 tokens

content-creation

Full-stack content creation pipeline: idea or reference to published blog post, audio narration, video, and social media distribution. Orchestrates research, reference extraction, storytelling, AI visual assets (Nano Banana, Veo 3.1), TTS audio (Voicebox, kokoro-tts, Edge TTS), Remotion video, and social copy into a…

broomva/skills · 239 tokens

revenuecast

/revenuecast is the verb that turns what you can do into a machine that makes the world want it. You have a real capability — a craft, an expertise, a running system. revenuecast builds the loop where the capability's output becomes its own advertisement, and the demand that output creates is monetized by selling the…

broomva/skills · 389 tokens

citable

Make authored content survive the two selection surfaces it now faces: human engagement and LLM retrieval for citation. These partially anti-correlate, and the tactics that raise reactions are in two measured cases the ones that suppress citation. Encodes effect sizes from published causal studies (Scrunch, 12,000…

broomva/skills · 304 tokens

claude-md-improver

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project…

anthropics/claude-plugins-official · 82 tokens