Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Jxin-Cai/jxin-skillsnpx agentmods add skills/jxin-cai/jxin-skills/markdown-publisherWrote 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.
[](https://agentmods.dev/skills/jxin-cai/jxin-skills/markdown-publisher)<a href="https://agentmods.dev/skills/jxin-cai/jxin-skills/markdown-publisher"><img src="https://agentmods.dev/badge/skills/jxin-cai/jxin-skills/markdown-publisher/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.
<a href="https://agentmods.dev/skills/jxin-cai/jxin-skills/markdown-publisher"><img src="https://agentmods.dev/badge/skills/jxin-cai/jxin-skills/markdown-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.01714 |
| Opus 5 | $0.00020 | $0.00857 |
| Sonnet 5 | $0.00008 | $0.00343 |
| Haiku 4.5 | $0.00004 | $0.00171 |
Grade A, and why
markdown-publisher 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Markdown Publisher Skill
此技能将简单的 Markdown 文档转换为带有 内联 CSS 的精美 HTML。这确保了当 HTML 内容被复制粘贴到经常剥离外部样式表的第三方平台(如微信公众号、电子邮件或 CMS 编辑器)时,视觉呈现保持一致。
目的
当出现以下情况时使用此技能:
- 你需要将 markdown 文章发布到需要样式化 HTML 的平台。
- 你希望确保 "Thoughtworks" 或其他品牌样式在复制粘贴过程中得到保留。
- 你需要自动转换 Mermaid 图表(如
graph TD)为图片,以便在不支持脚本的平台显示。 - 你需要将 markdown 中引用的本地图片自动转换为内联 base64 格式,方便直接复制粘贴。
- 你需要防止冒号后内容换行的问题(特别是在微信公众号等富文本编辑器中)。
用法
基本转换
要使用默认的 'Thoughtworks' 主题转换 markdown 文件:
python3 scripts/convert_md.py /path/to/your/article.md
这将在同一目录中生成 /path/to/your/article.html。
选择主题
你可以按名称指定主题:
python3 scripts/convert_md.py /path/to/your/article.md --theme thoughtworks
主题位于 themes/ 目录中,为 JSON 文件。
可用主题
- thoughtworks (默认): 深青色背景,珊瑚色标题,专业技术博客外观。
添加新主题
要创建新主题:
- 在
themes/<theme-name>.json中创建一个 JSON 文件。 - 为以下键定义样式:
container,article,h1,h2,p,blockquote,code_block_wrapper,code,img,ul。 - 样式应为原始 CSS 字符串(例如,
"color: red; margin: 10px;")。
图片处理
此技能会自动处理 markdown 中的图片引用:
本地图片转换
- 本地图片(相对路径或绝对路径)会自动转换为 base64 内联格式
- 转换后的 HTML 可以直接复制粘贴到富文本编辑器,无需单独上传图片
- 支持的格式:PNG, JPG, JPEG, GIF, WebP, SVG, BMP
- 智能图片大小控制:
- 外部引用图片(本地和远程):统一 450px
- Mermaid 图表:根据元素数量和复杂度自动调整
- 自动识别图表类型(流程图、时序图、甘特图、类图、状态图等)
- 统计元素数(节点/参与者/状态/类/任务等)
- 统计关系数(连接/消息/转换/继承等)
- 复杂度 = 元素数 × 2 + 关系数
- 简单图(复杂度 ≤ 10):300px
- 中小图(复杂度 11-30):450px
- 中等图(复杂度 31-50):600px
- 复杂图(复杂度 > 50):900px
示例:


这些本地图片会被自动转换为:
<img src="data:image/png;base64,iVBORw0KG..." alt="示例图片" style="..." />
远程图片
- 远程图片(以
http://或https://开头)保持原始 URL 不变 - 已经是 base64 格式的图片(
data:开头)也保持不变
示例:

这些图片会保持原始 URL:
<img src="https://example.com/image.png" alt="远程图片" style="..." />
Mermaid 图表
- Mermaid 图表代码块会自动渲染为 PNG 图片并转换为 base64 内联格式
- 使用
--scale 3参数生成高清图片,确保在各种屏幕上清晰显示
What ships with it
4 files 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.
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.
- 11d ago First seen · 201 lines · 41 tokens per session scan A 475316e1f136
markdown-publisher is a skill published in the GitHub repository Jxin-Cai/jxin-skills (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 1,714 once invoked, about $0.0002 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.
Other skills, from other repositories
baoyu-youtube-transcript
A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.
orbit-notion
Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
read
Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…
overleaf-sync
A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.