cyxj-blog-pub

cyxj-blog-pub is a skill for Claude Code, Codex from chenyuxiaojin/xiaochen-skills. It costs 99 tokens per session (1,086 once invoked), scanned A, original, MIT.

A publishing workflow for adding a finished article to an Astro blog, a website built with the Astro framework.

In plain words
What is it for?
Use it to turn a completed draft into a correctly formatted blog post, build the site, and deploy it.
Why use it?
It checks required post details, standardizes filenames, and prevents local image paths from breaking the published article.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to turn a completed draft into a correctly formatted blog post, build the site, and deploy it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub
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 chenyuxiaojin/xiaochen-skills --skill cyxj-blog-pub
Clone the repo
git clone --depth 1 https://github.com/chenyuxiaojin/xiaochen-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin cyxj-blog-pub/plugin install cyxj-blog-pub after adding the marketplace above.

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 cyxj-blog-pub

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub/github.svg)](https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub)
Your own site
<a href="https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub"><img src="https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub/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 cyxj-blog-pub

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub"><img src="https://agentmods.dev/badge/skills/chenyuxiaojin/xiaochen-skills/cyxj-blog-pub.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,086 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00099 $0.01086
Opus 5 $0.00049 $0.00543
Sonnet 5 $0.00020 $0.00217
Haiku 4.5 $0.00010 $0.00109

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

Security

Grade A, and why

cyxj-blog-pub scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cyxj-blog-pub/skills/cyxj-blog-pub/SKILL.md · 72 lines

What it actually says

cyxj-blog-pub — Astro 博客发布

把一篇成稿文章发到博客站点。只做博客这一个平台,不要顺手发别处。

前置检查

  • 博客仓库路径读环境变量 CYXJ_BLOG_REPO;未设置则回退 ~/项目/服务器/server-config/blog/,并向用户确认。
  • 后文所有 $CYXJ_BLOG_REPO 都指这个路径。

何时用

  • 用户说「发到博客」「发个博客」并指明(或已存在)一篇文章
  • 文章源通常是 Obsidian $CYXJ_VAULT_BASE/待发布/ 的成稿(未设置 CYXJ_VAULT_BASE 时按 ~/obsidian/灵感库 兜底,并向用户确认),或刚由 cyxj-transcript 产出的草稿

前置:文章已成文。还是逐字稿先走 /cyxj-transcript

项目坐标(来自内容创作 CLAUDE.md)

博客项目 $CYXJ_BLOG_REPO(见「前置检查」)
文章目录 src/content/posts/(文件名 kebab-case
图片 全部用图床公网 URL,禁止本地路径进正文
部署 进入 $CYXJ_BLOG_REPO 后先定位 package.json 所在目录再跑 pnpm build;build 后确认 dist/ 实际位置再拷贝 → bash deploy.sh blog

frontmatter 规范

---
title: <文章标题>          # 必填
description: <一句话摘要>   # 必填
pubDate: <YYYY-MM-DD>      # 必填
tags: [<可选>]            # 可选
image: <封面图床 URL>      # 可选
draft: false              # 可选;true 则不发布
---

发布前校验三个必填项齐全:title/pubDate 可据稿推断后向用户确认;description 缺失必须问用户。

工作流

  1. 取稿:Read 文章源(路径不明就在 $CYXJ_VAULT_BASE/待发布/ 搜或问用户)。
  2. 定文件名:英文 kebab-case,如 claude-code-for-non-coders.md
  3. 处理图片(关键红线):正文里所有图片必须是图床 URL。
    • 本地图 → 先传图床(img.xiaochens.com,Lsky Pro,见内容创作 CLAUDE.md「图床操作参考」),拿到公网 URL 再写进正文。
    • 若读不到图床操作参考或缺少凭据,必须停下向用户要上传方式;绝不允许跳过图床直接用本地路径发布。
    • 绝不把本地图片路径写进博客正文。
  4. 写 post:先检查目标 $CYXJ_BLOG_REPO/src/content/posts/<kebab>.md 是否已存在,存在则停下确认是否覆盖;再组装 frontmatter + 正文写入。
  5. 构建 + 部署(动手前向用户确认要不要立即上线):
    • 进入 $CYXJ_BLOG_REPO 后先定位 package.json 所在目录,在那里跑 pnpm build
    • build 完成后用 ls 确认 dist/ 的实际位置,再执行拷贝(如 cp -r dist/* landing/);拷贝目标不确定时停下问用户。
    • 最后 bash deploy.sh blog
  6. 报告:给出文章路径 + 部署结果;失败就贴报错原文,别说「成功了」。

红线

  • 只发博客这一个平台,不默认走多平台。
  • 正文图片只用图床 URL。
  • 不臆造 frontmatter:title/pubDate 可据稿推断后向用户确认;description 缺失必须问用户。
  • 部署是对外动作——pnpm build 之后、推上线之前,先跟用户确认一次。
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. 12d ago First seen · 72 lines · 99 tokens per session scan A 28a5c4e42af5

Subscribe to this mod's changes

cyxj-blog-pub is a skill published in the GitHub repository chenyuxiaojin/xiaochen-skills (6 stars, last pushed 8d ago), licensed MIT. It adds 99 tokens to every session and 1,086 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. 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

quick

Quick planning — single-response plans with no ceremony. Auto-detects intent or accepts explicit mode. /quick — auto-detect (build, research, fix, design, spec) /quick eng — lightweight implementation plan /quick spec — lightweight requirements /quick design — lightweight UI/UX plan /quick research — lightweight…

iamvonpasion/hashb · 100 tokens

tldraw-canvas

Create interactive visual canvases using TLDraw React SDK. Generates mind maps, content plans, pipeline visualizations, and brainstorming boards.

OpenAnalystInc/10x-Content-Expert · 0 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

live-preview

Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.

SethGammon/Citadel · 40 tokens

shiny-bslib

Build modern Shiny dashboards and applications using bslib (Bootstrap 5). Use when creating new Shiny apps, modernizing legacy apps (fluidPage, fluidRow/column, tabsetPanel, wellPanel, shinythemes), or working with bslib page layouts, grid systems, cards, value boxes, navigation, sidebars, filling layouts, theming…

posit-dev/skills · 107 tokens